blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
116
path
stringlengths
2
241
src_encoding
stringclasses
31 values
length_bytes
int64
14
3.6M
score
float64
2.52
5.13
int_score
int64
3
5
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
text
stringlengths
14
3.57M
download_success
bool
1 class
652d5917ea51331c7c877e0f69aa830308780056
PHP
coderdao/Generalutil
/src/V1/Utils/TimeUtil.php
UTF-8
1,206
3.015625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php namespace Abo\Generalutil\V1\Utils; class TimeUtil { // 各时间单位 list( $season, $month, $week, $date ) = everyRangeTime(); public function everyRangeTime( $date ) { if ( !$date ) { $date = date( 'Y-m-d' ); } $timeStamp = strtotime( $date ); return [ $this->getSea...
true
048530684d1b71f1e4598e32417da8e1d55cf181
PHP
nandaadityaa/majapahitwebadmin
/application/models/Auth_m.php
UTF-8
2,358
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Auth_m extends MY_Model { private $key = '8bas8wdw'; public function __construct() { parent::__construct(); $this->load->helper('url'); $this->load->helper('form'); $this->load->librar...
true
bf760d32cc9824009ae043f0e8ee13e7980e92d3
PHP
song3304/laravel
/vendor/addons/core/src/Validation/Validator.php
UTF-8
10,330
2.953125
3
[ "MIT" ]
permissive
<?php namespace Addons\Core\Validation; use Illuminate\Validation\Validator as BaseValidator; use Illuminate\Support\Str; /** * 本Class主要是处理宽字符的长度、Fields检索等 * */ class Validator extends BaseValidator { /** * Allow only alphabets, spaces and dashes (hyphens and underscores) * * @param string $attribute ...
true
6649a0a3c5c32cbd62099f523caba45bfcdc3dc8
PHP
takatoshi-maeda/Spika-Server
/HookUpServer/hookup/fileuploader.php
UTF-8
703
2.796875
3
[ "MIT" ]
permissive
<?php function generateRandomString($length = 20) { $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, strlen($characters) - 1)]; } return $randomString; } include("./l...
true
0b97531ecd8e804cad6ee06d5bafca1f9c82d7f3
PHP
andreAguia/grh
/grhRelatorios/ferias.exercicio.solicitacoes.php
UTF-8
4,395
2.53125
3
[]
no_license
<?php /** * Sistema GRH * * Relatório * * By Alat */ # Servidor logado $idUsuario = null; # Configuração include ("../grhSistema/_config.php"); # Permissão de Acesso $acesso = Verifica::acesso($idUsuario, [1, 2, 12]); if ($acesso) { # Conecta ao Banco de Dados $servidor = new ...
true
d33be61b67fe745487edcb3bc3e302cb6bb05ebb
PHP
sellastica/scheduler
/src/Entity/SchedulerProjectBuilder.php
UTF-8
2,015
2.890625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace Sellastica\Scheduler\Entity; use Sellastica\Entity\IBuilder; use Sellastica\Entity\TBuilder; /** * @see SchedulerProject */ class SchedulerProjectBuilder implements IBuilder { use TBuilder; /** @var int */ private $jobId; /** @var int */ private $period; /** @var int|null */ private $project...
true
0c2261cc86504be085bb5004ca383d8d2feab64b
PHP
lartist/GlobalTestSolution
/src/SegmentCollection.php
UTF-8
1,881
2.75
3
[]
no_license
<?php namespace Salim\GlobTest; class SegmentCollection { /** @var Segment[] */ private $segments; /** * @param array $segments */ public function __construct(array $segments) { $this->setSegmentsFromArray($segments); } public function removeSegment(Segment $segment) ...
true
ce87580c133ecab1b30b9206bb71bdaf32479446
PHP
ashish19goyal/vyavsaay
/crons/cron3.php
UTF-8
2,826
2.75
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/php <?php include_once "../Classes/vUtil.php"; include_once "../Classes/emailSES.php"; use RetailingEssentials\emailSES; use RetailingEssentials\vUtil; date_default_timezone_set('Asia/Kolkata'); /** * Method for displaying the help and default variables. **/ function displayUsage() { echo "\n"; ...
true
ff5e5a7d5e5400641c07ace87fa2581b807452f2
PHP
lchrusciel/MpkMiddleWare
/src/App/Adapter/ConnectionAdapterInterface.php
UTF-8
324
2.671875
3
[ "MIT" ]
permissive
<?php namespace MPK\App\Adapter; use MPK\App\Entity\Connection; /** * @author Łukasz Chruściel <lchrusciel@gmail.com> */ interface ConnectionAdapterInterface { /** * Provides connection for given stop. * * @param integer $stopNumber * * @return Connection */ public function ge...
true
7fb913cc3c5ebc241cf99c92639968406982d1a9
PHP
Fulfillment-dot-com/postage-api-php
/src/Models/Response/ZonePostalCode.php
UTF-8
495
2.75
3
[ "MIT" ]
permissive
<?php namespace Fulfillment\Postage\Models\Response; use Fulfillment\Postage\Models\Traits\SimpleSerializable; class ZonePostalCode implements Contracts\ZonePostalCode, \JsonSerializable { use SimpleSerializable; /** * @var string */ public $fromPostalCode; /** * @var int */ public $zone; /** *...
true
a0653951d6220daf80e1fc90f2c01b899ac2835b
PHP
gustavNdamukong/DGZ_Uploader
/src/DGZ_Upload.php
UTF-8
6,720
2.875
3
[]
no_license
<?php namespace DGZ_Uploader; use Illuminate\Support\Facades\Redirect; class DGZ_Upload { protected $_uploaded = array(); protected $_destination; protected $_max = 51200; protected $_messages = array(); protected $_permitted = array('image/gif', 'image/jpeg', 'image/jpg', ...
true
bb022503a7eec5af1d0e0941d004dadb8863f22f
PHP
tolgadevsec/HDIVSecurityBundle
/HDIVCore/State/Parameter.php
UTF-8
771
2.75
3
[ "Apache-2.0" ]
permissive
<?php /* * This file is part of the HDIV bundle. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace HDIV\SecurityBundle\HDIVCore\State; /** * Class Parameter * @package HDIV\SecurityBundle\HDIVCore\State */...
true
4edf569e8eb8cb171b3ceade87d2c1fa21629574
PHP
Shloxi/movies-collection
/indexReq.php
UTF-8
319
2.671875
3
[]
no_license
<?php require_once ('connect.php'); try{ $connexion = connect_bd(); $recherche = "SELECT * FROM FILMS"; $films = $connexion->query($recherche); while ($film = $films->fetchObject()) { echo $film->Titre."\n"; } $connexion = null; } catch (PDOException $e) { echo $e−>getMessage(); }
true
1e5183c93c7d6b57016340d9586da30c833c11f2
PHP
SimantovYousoufov/alexa-skills-php
/src/Response/Response.php
UTF-8
2,790
3.046875
3
[ "MIT" ]
permissive
<?php namespace AlexaPHP\Response; use AlexaPHP\Card\CardInterface; use AlexaPHP\Session\SessionInterface; class Response implements ResponseInterface { /** * Session storage * * @var \AlexaPHP\Session\SessionInterface */ private $session; /** * AlexaPHP config storage * * @var array */ private ...
true
144cf145c2c054a564dfe94db3330c6920035c3c
PHP
daggerhart/d8-essential-training
/php/2.autoloading/index.php
UTF-8
1,108
3.625
4
[]
no_license
<?php // No longer need this. We are autoloading. //require_once __DIR__ . "/includes/CalculatorInterface.php"; //require_once __DIR__ . "/includes/Calculator.php"; //require_once __DIR__ . "/includes/WholeNumberCalculator.php"; /* * Register our custom autoloading function with PHP. */ spl_autoload_register("my_cu...
true
a1120235bd995f48896a8d6ce32e138015249926
PHP
r-onikin/AdmiGames
/app/Http/Controllers/SoftwaresController.php
UTF-8
5,860
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Software; use App\Http\Controller\Auth; use App\Developer; use App\Distributor; class SoftwaresController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ pub...
true
b0674f5efdcd575d76d0cb196012b24e7599b046
PHP
mhawker/VSAC
/application/modules/inc-router.php
UTF-8
4,673
2.71875
3
[ "MIT" ]
permissive
<?php /** * Application routing and URL building functions */ namespace VSAC; //----------------------------------------------------------------------------// //-- Framework required functions --// //-------------------------------------------------------------------------...
true
709cb60c171b506fb26a00315e9d38f5bdd5299e
PHP
asdbaihu/crawl-anywhere
/web/crawler/src/pub/themes/theme.class.inc.php
UTF-8
1,176
2.9375
3
[ "Apache-2.0" ]
permissive
<?php interface iTheme { public function generateHtmlStart(); public function generateTop($page); public function generateFooter(); } abstract class ThemeBase { protected $config; protected $user; protected $mg; protected $current_account_id; function __construct($config, $user, $current_account_id, $mg) { ...
true
642f7db0435524c0642d695bb51013a69acb7759
PHP
maslenm/week-06
/01-basic-php/04.php
UTF-8
229
3.796875
4
[]
no_license
<?php require __DIR__ . "/vendor/autoload.php"; /* Write some code that lists all multiples of 13 up to 1,000 using a for loop Example output: 13 26 39 52 … 988 */ for ($i = 13; $i < 1000; $i += 13) { dump($i); };
true
1c8e13b7d164224d9c4d6f8851428b5b871875c8
PHP
RichardChangCA/WebPage-BeltAndRoad
/yuanma/createManagerProcess.php
UTF-8
1,088
2.96875
3
[]
no_license
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="utf-8"> </head> <body> <?php if ($_SERVER["REQUEST_METHOD"] == "POST") { $psw = test_input($_POST["psw"]); } function test_input($data) { $data = trim($data); //Strip unnecessary characters (extra space, tab, newline) from the user input data $...
true
99f90c9660e6aa763a44015f03ae2039a0f2bbd3
PHP
Nilex-x/my_sandwich_store
/src/Controller/UpdateSandwichController.php
UTF-8
3,699
2.53125
3
[]
no_license
<?php namespace App\Controller; use App\Entity\Sandwich; use App\Entity\Ingredient; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Core\Util\StringUtils; use Symfony\Component\Form\Extension\Co...
true
f8a6aa14cb90bf40f33d9536b8647d88ffe4c269
PHP
mansha99/Testing-Laravel-Apps
/AppTestExample/app/Http/Controllers/Rectanglecontroller.php
UTF-8
617
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use \Illuminate\Support\Facades\Input; class Rectanglecontroller extends Controller { public function index() { $rectangle = new \App\Models\Rectangle(); $rectangle->setLength(Input::get("length", 0)); $rectangle->setBreadth(Input::get("breadth", 0))...
true
2a46aea21afb4069e08a862524e9ee489cce5a0a
PHP
siucacm/SalukiLAN_Website
/get_registered_users.php
UTF-8
1,309
2.765625
3
[ "CC-BY-3.0" ]
permissive
<? php require_once('mysql_connect.php'); $registered_query = "SELECT first_name, last_name, email, address, zip_code, city, state, phone FROM registeredParticipants"; #SQL to retreive information from the database. $rsp = @mysql_query($dbcon, $registered_query); if($response){ echo '<table align="left" cellspaci...
true
5a949d022ec0708f5bc6fa12ae39631a6dab661f
PHP
kyarmkn/Camp-Challenge
/PHPからのDBアクセス/challenge7_7.php
UTF-8
639
2.953125
3
[]
no_license
<?php /*課題7:profileID=1のnameを「松岡 修造」に、ageを48に、birthdayを1967-11-06に更新してください*/ try{ $pdo = new PDO('mysql:host=localhost;dbname=Challenge_db;charset=utf8','nakamura','phlox'); }catch(PDOException $Exception){ die('接続に失敗しました:'.$Exception->getMessage()); } $sql = "update profile set name='松岡 修造',age=48,birthday=...
true
63481e225c2bf293e28bc309532d10a7d5218395
PHP
FriendsOfCXML/cxml-php
/src/CXml/Model/Message/PunchOutOrderMessageHeader.php
UTF-8
2,059
2.625
3
[ "MIT" ]
permissive
<?php namespace CXml\Model\Message; use Assert\Assertion; use CXml\Model\MoneyWrapper; use CXml\Model\Shipping; use CXml\Model\ShipTo; use CXml\Model\SupplierOrderInfo; use CXml\Model\Tax; use JMS\Serializer\Annotation as Ser; class PunchOutOrderMessageHeader { public const OPERATION_CREATE = 'create'; public cons...
true
991ff67a64f64e8ecdb03d69b67579796b3495a3
PHP
RishabhJain96/RoboWebProj
/other/development/controllers/tasksController.php
UTF-8
417
2.828125
3
[]
no_license
<?php /** * tasksController Class * * This class holds all the server-side functions related to the tasks system. */ class tasksController { // instance variables protected $_dbConnection; public function __construct() { parent::__construct(); } /** * Assigns the given task to the given user * $pa...
true
6db0e83d9f9f19e86706806580bcd2c20c6ad72b
PHP
kuzushiki/sop_demo
/app/login.php
UTF-8
765
2.6875
3
[]
no_license
<?php session_start(); $err = ""; if (isset($_GET['id']) && $_GET['id'] !== "") { if ($_GET['id'] === "hoge") { if ($_GET['pw'] === "hoge") { $_SESSION['id'] = $_GET['id']; header('Location: /index.php'); exit; } else { $err = "パスワードが違います!"; } ...
true
bf13740fe5862c7b9b6e1c376080b2685f8632f2
PHP
253033688/bbs-laravel
/app/Services/Api/SchoolApi.php
UTF-8
1,878
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Services\Api; use App\Services\school\bm\SchoolService; use App\Services\school\dm\SchoolDm; use App\Services\school\vo\SchoolSo; use App\Core\Utility; class SchoolApi { public function getSchool($id) { return $this->_getSchoolDs()->getSchool($id); } public function fetc...
true
05a781eb9a9f3571eff3c1535199d0a21139dca5
PHP
dobrinic/AlgebraBlog1
/app/Post.php
UTF-8
1,353
2.6875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Cviebrock\EloquentSluggable\Sluggable; class Post extends Model { // protected $fillable = ['title', 'body', 'user_id', 'slug']; protected $guarded = ['id']; public function getRouteKeyName() { return 'slug'; } use Slug...
true
34438b4370e82aa4f9ba3c1463377a4048cd3493
PHP
DufourSy/PPE
/modele/m_signin.php
UTF-8
1,323
2.59375
3
[]
no_license
<?php // La page d'inscription s'appelle elle-même. Si les infos sont renseignées, on réalise l'inscription // et on redirige vers la page d'accueil avant l'affichage du formulaire. // Si les infos ne sont pas là, le code est ignoré, il n'y a pas de redirection et le formulaire // est affiché plus l...
true
756358f9e4af945796833ceefd0870d9001f4a67
PHP
reformalaw/CE-Reforma
/apps/admin/modules/auth/actions/actions.class.php
UTF-8
9,965
2.515625
3
[]
no_license
<?php /** * auth actions. * * @package Luckzy * @subpackage auth * @author Bhavik Shah <bhavikshah@greymatterindia.com> * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class authActions extends sfActions { /** * Executes index action * *...
true
b6a9976dda69e28e0b08c43d2af680ee0100ac80
PHP
yanntyb/blog
/api/articles/post.php
UTF-8
911
2.734375
3
[]
no_license
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/assets/parts/include.php"; use Model\Manager\ArticleManager; header('Content-Type: application/json'); $requestType = $_SERVER['REQUEST_METHOD']; $articleManager = new ArticleManager(); switch($requestType) { case 'POST': //Get Ajax post content ...
true
9b2bb9d67ef809e34c3a39aa992df83f01bab0ee
PHP
eliana0220/ClaseDos
/rectangulo.php
UTF-8
1,387
3.671875
4
[]
no_license
<?php include "figuraGeometrica.php"; class Rectangulo extends FiguraGeometrica { private $_ladoUno; private $_ladoDos; function __construct ($lUno, $lDos) { #Se llama al constructor padre parent::__construct(); $this->_ladoUno = $lUno; $this->_ladoDos = $lDos; $this->CalcularDatos(); } ...
true
deea2aedff3ecb80c266df669356e0667775b36d
PHP
rebus-ink/Rebus-Library-Prototype
/_bits/_books_same_authors.php
UTF-8
2,326
2.6875
3
[ "MIT" ]
permissive
<?php // Set "All Authors' Other Books' IDs" //print_r($authors); //echo $bd['caid']."\n"; $aaobids = array(); foreach ($authors as $k => $author) { $book_ids = $aia[$author['auid']]['books']; // Remove the current book from the array of all books by this author if(($key = arra...
true
bbe3aa3e623076fd268e447fd65672a157ebc516
PHP
Mateusz-Nejman/NiemiecZajecia
/src/Author.php
UTF-8
1,291
2.96875
3
[]
no_license
<?php /** * @Entity @Table(name="author") */ class Author { /** * @Id * @Column(type="integer") */ protected $id; /** * @Column(type="string", length=255) */ protected $first_name; /** * @Column(type="string", length=255) */ protected $sur...
true
1ba497278069242ebba870f9348bd652b93f03b6
PHP
michaeljoelphillips/Engine
/src/Roll/DamageRoll.php
UTF-8
1,245
3.234375
3
[]
no_license
<?php namespace Engine\Roll; use Engine\Roll\RollInterface; use Engine\Character; use Engine\Weapon; use Engine\Enum\AbilityEnum; use Engine\Weapon\MeleeWeapon; /** * @author Michael Phillips <michaeljoelphillips@gmail.com> */ class DamageRoll implements RollInterface { /** @var Character */ protected $cha...
true
ca0e694e02a64892e52a0c47d9c102143388e483
PHP
mountain-techbase/project
/new.php
UTF-8
5,356
2.71875
3
[]
no_license
<?php ini_set("display_errors", 1); error_reporting(E_ALL); ?> <?php // セッション開始 session_start(); // 既にログインしている場合にはメインページに遷移 if (isset($_SESSION['USERID'])) { header('Location: mission7_index2.php'); exit; } $db['host'] = 'localhost'; $db['user'] = ''; $db['pass'] = ''; $db['dbname'] = ''; $error = ''; // ログインボタ...
true
feecfb9a337e4f87be86dba8858b5d462f3fd4bf
PHP
ameksike/demo.php
/KS-geomobile/lib/DvWDOM/WDOM/base/WWindow.php
UTF-8
1,851
2.625
3
[]
no_license
<?php /** * * @framework: Ksike * @package: Lib * @subpackage: WDOM * @version: 0.1 * @description: WNode es la clase que define las funciones compatibles con DOM para cada nodo * @authors: ing. Antonio Membrides Espinosa * @making-Date: 07/07/2011 * @update-Date: 07/07/2011 * @license: GPL v3 * */ if(!...
true
343b52ecc519aa80b40f99c3e368102cc68c48d4
PHP
akazad1235/Ajax-with-php
/classes/ajaxproject.php
UTF-8
1,357
2.78125
3
[]
no_license
<?php $filepath=realpath(dirname(__FILE__));?> <?php include_once($filepath.'/../lib/database.php')?> <?php class AjaxProject{ private $db; public function __construct() { $this->db=new Database(); } public functio...
true
72dc0734f61fee4b37a5f199f2ece0b9a8787074
PHP
rabsaque/ControlCNE
/InventarioTransporte/Modelo/checklogin.php
UTF-8
1,990
2.78125
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento sin título</title> </head> <body> <?php session_start(); h...
true
fb7ff4548fd21cc0675a006f85c8b456daf41fdd
PHP
tomphp/hal-client
/spec/Resource/ResourceSpec.php
UTF-8
4,039
2.53125
3
[ "MIT" ]
permissive
<?php namespace spec\TomPHP\HalClient\Resource; use PhpSpec\ObjectBehavior; use TomPHP\HalClient\Exception\FieldNotFoundException; use TomPHP\HalClient\Exception\LinkNotFoundException; use TomPHP\HalClient\Exception\ResourceNotFoundException; use TomPHP\HalClient\ResourceFetcher; use TomPHP\HalClient\Resource\FieldNo...
true
7779788b4119a8f315b826ce2bafd30d33b7fa48
PHP
hiwynn/Study-zgldh-Scaffold
/Modules/User/Repositories/UserRepository.php
UTF-8
1,403
2.734375
3
[ "MIT" ]
permissive
<?php namespace Modules\User\Repositories; use App\Scaffold\BaseRepository; use Modules\User\Models\Role; use Modules\User\Models\User; class UserRepository extends BaseRepository { /** * @var array */ protected $fieldSearchable = [ 'name', 'email', 'password', 'remem...
true
0b3091a42ff387b3e0d94960a5ffa18a33e98d49
PHP
upovod/fl-ru-damp
/siteadmin/stats/c_reg.php
UTF-8
1,630
2.578125
3
[]
no_license
<?php $rpath = "../../"; require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/stdf.php"); $DB = new DB('master'); $syear = $_GET['y']; $smonth = $_GET['m']; $data = array(); $days = date('t',mktime(0,0,0, $smonth, 1, $syear)); for($n=1;$n<=$days;$n++) { $data[$n] = 0; } $sql = "SELECT u_reg, extract(day from date) as...
true
06af41ca50d261b8866412e8021a9f4ec0dce0be
PHP
metaclass-nl/tresholds-governor
/src/Metaclass/TresholdsGovernor/Manager/RequestCountsManagerInterface.php
UTF-8
4,183
2.625
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php namespace Metaclass\TresholdsGovernor\Manager; use Metaclass\TresholdsGovernor\Result\Rejection; /** * Instances of classes implementing this interface store and retrieve data and perform counting * about requests. * * @author Henk Verhoeven * @copyright 2014 MetaClass Groningen */ interface RequestC...
true
723a34b96fb651a275684d65950388a39358a7ec
PHP
philcross/deviate_monolith
/services/Activities/Adapters/MysqlAdapter.php
UTF-8
2,160
2.953125
3
[ "MIT" ]
permissive
<?php namespace Deviate\Activities\Adapters; use Illuminate\Database\ConnectionInterface; class MysqlAdapter implements AdapterInterface { /** @var ConnectionInterface */ private $connection; /** * Constructor * * @param ConnectionInterface $connection */ public function __constr...
true
3fa510f0fa51e268da0503c236938e75878be19e
PHP
Syy-syy-syy/custom_shop
/view/item/show.php
UTF-8
1,272
2.578125
3
[]
no_license
<?php ini_set('display_errors', 1); require_once('../../config/db_settings.php'); $db_val = db_config(); $user = $db_val['user']; $pass = $db_val['password']; $dsn = $db_val['dsn']; $options = $db_val['options']; try { $pdo = new PDO($dsn, $user, $pass, $options); $sql = 'SELECT * FROM items WHE...
true
788740d09dea97400912e051316d55e77f218b8d
PHP
unknownArtist/SportsWebsite
/app/database/migrations/2013_09_10_115157_create_group_alerts_table.php
UTF-8
666
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; class CreateGroupAlertsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('group_alert',function($t) { $t->increments('id'); $t->integer('message_id')->foreign('alert_id')->references('...
true
487cf8d9f1628774801a08e13f7adfad62105d82
PHP
425954105/phpGit
/index.php
UTF-8
313
3.609375
4
[]
no_license
<?php echo "<h1>Hello World</h1>"; //输出 $arr = ["key" => "value", "key1" => "value2"]; //键值对数组 $arr2 = ["value", "value1"]; //值对值数组 var_dump($arr); echo '<br>'; var_dump($arr2); echo '<br>'; echo '<br>'; foreach ($arr as $key => $value) { echo $key . '=======>' . $value . '<br>'; }
true
4f7f9ff352572de53d3e487f8c52e77b126adc5f
PHP
thecodingmachine/graphqlite-laravel
/src/Console/Commands/GraphqliteExportSchema.php
UTF-8
1,442
2.859375
3
[]
no_license
<?php namespace TheCodingMachine\GraphQLite\Laravel\Console\Commands; use Illuminate\Console\Command; use TheCodingMachine\GraphQLite\Laravel\Utils\SchemaPrinter; use TheCodingMachine\GraphQLite\Schema; /** * A command to export the GraphQL schema in "Schema Definition Language" (SDL) format. */ class GraphqliteEx...
true
506f6c3f5ed442d83bd0a83327460d10b4481b00
PHP
littleblackman/Denali
/controller/Update.php
UTF-8
601
2.515625
3
[]
no_license
<?php session_start(); // instanciation = creation d'un objet : $article if(!empty($_POST['titre']) OR (!empty($_POST['text']))) { $articleManager = new ArticleManager(); $id_article = $_POST['id_article']; $titre = $_POST['titre']; $text = $_POST['text']; $article= $articleManager->readOne($id_articl...
true
20338e4c19b41dfb9c8cf1f1d885cf3834016322
PHP
kennedias/pd_v01
/skills.php
UTF-8
2,948
2.625
3
[]
no_license
<?php session_start(); include("includes/db_connector.php"); if(!$_SESSION["user"]){ header("location:login.php"); exit(); } else{ $s_userid=$_SESSION["user"]["userid"]; } if($_POST["submit"]=="profile"){ $username = filter_var($_POST["username"],FILTER_SANITIZE_STRING); $email = filter_var($_POST["email"],F...
true
ab6288b6b41e84c2abbc854b1138d6b8362a3a3c
PHP
nvkuznetsova/php_labs
/dateClass.php
UTF-8
735
2.796875
3
[]
no_license
<?php if (isset($_GET['print'])) { header('Content-type: text/plain; charset=utf-8'); echo file_get_contents(basename(__FILE__)); } if (isset($_GET['author'])) { header('Content-type: text/html; charset=utf-8'); echo '<h4 id="author" title="GossJS">Кузнецова Наталья</h4>'; } if (isset($_GET[...
true
a463ff9f2b09df830c79c76419386b9a293a764b
PHP
pcwitz/diy-helpers
/trade_registration.php
UTF-8
20,790
2.8125
3
[]
no_license
<?php session_start(); ?><!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <link rel="stylesheet" type="text/css" href="diyhelpers.css"> <title>Trade Registration</title> </head> <body> <?php if(!isset($_SESSION['homeownerid'])) { die("<h3>Sorry, but you are not logged in. Try <a hr...
true
32401238803b189761cc38804c5d5104ba9f01b2
PHP
SuperHyperInstantFutureTime/SpotifyAPI
/src/Entity/IncludeGroups.php
UTF-8
479
2.953125
3
[]
no_license
<?php namespace SHIFT\Spotify\Entity; use Stringable; readonly class IncludeGroups extends AbstractEntity implements Stringable { /** @var array<Group> */ public array $groupList; public function __construct( Group...$groupList ) { $this->groupList = $groupList; } public function __toString():string { $...
true
25815e9d8026a27a231d6a170a9e5da28dfb5895
PHP
amavis442/gdax-orderbook
/packages/amavis442/trading/src/Indicators/MovingAverageCrossoverDivergenceWithControllableMovingAverageTypeIndicator.php
UTF-8
1,680
2.609375
3
[]
no_license
<?php namespace Amavis442\Trading\Indicators; use Amavis442\Trading\Contracts\Indicator; use Illuminate\Support\Collection; use Amavis442\Trading\Exceptions\NotEnoughDataPointsException; /** * Class MovingAverageCrossoverDivergenceWithControllableMovingAverageTypeIndicator * * MACD indicator with controllable typ...
true
d994bcc7ddd5fc658ae5266307c5e88b5ac3cb20
PHP
johnvandeweghe/DND-CampaignManager-API
/src/Entities/Alignments.php
UTF-8
519
2.578125
3
[ "MIT" ]
permissive
<?php namespace DNDCampaignManagerAPI\Entities; use Doctrine\ORM\Mapping as ORM; /** * Alignments * * @ORM\Table(name="alignments") * @ORM\Entity */ class Alignments { /** * @var string * * @ORM\Column(name="alignment", type="string", length=32) * @ORM\Id * @ORM\GeneratedValue(strat...
true
6fe4a1b5060df8dcd4cf975c3ef1dec7b22e2d54
PHP
vegvari/AliusDatabase
/src/Interfaces/DatabaseInterface.php
UTF-8
707
2.765625
3
[ "MIT" ]
permissive
<?php namespace Alius\Database\Interfaces; interface DatabaseInterface { public function __construct(ServerInterface $server); public function setEngine(string $engine): DatabaseInterface; public function getEngine(): string; public function setCharset(string $charset): DatabaseInterface; public f...
true
02878f0b438cfb5a4f1f17cd51accea0822094e9
PHP
Anilmahaveer/Laravel_Student_management
/application/models/student.php
UTF-8
267
2.671875
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php class Student extends Eloquent { public static $table = 'std_grp_link'; public static $rules = array( 'student_name'=>'select', 'group_name'=>'select' ); public static function validate($data) { return Validator::make($data, static::$rules); } }
true
dc99320f60ce37c6919151401ebc8f3a5325ad78
PHP
minchal/vero
/src/Vero/Vendor/Swift/MailerFactory.php
UTF-8
1,234
2.703125
3
[ "MIT" ]
permissive
<?php /** * @author Michał Pawłowski <michal@pawlowski.be> */ namespace Vero\Vendor\Swift; use Vero\Config\Config; /** * Swift Mailer factory. */ class MailerFactory { /** * Create Swift Mailer instance from config. * * @param Config $config * @return \Swift_Mailer */ public sta...
true
072fcb0c527fe820eafa7ab95db6e0f1b8d861dc
PHP
zendframework/ZendQueue
/tests/ZendQueue/Stomp/ConnectionTest.php
UTF-8
4,120
2.65625
3
[]
no_license
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @package Z...
true
d179a8927aa2c73ae3df7eb965fd0afbb1da4ed3
PHP
JDemonchaux/vrad-ev
/application/libraries/Notation_v1-1/Classement.php
UTF-8
6,946
2.9375
3
[]
no_license
<?php /** * * @version 1.0 * @author Marie.Barbier.work@gmail.com */ class Classement { private $les_groupes; // Array of Group Object public static $AVANCEMENT_ON = TRUE; public static $AVANCEMENT_OFF = FALSE; public static $SCORE_ON = TRUE; public static $SCORE_OFF = FALSE; public static $DETAIL_ON...
true
4c07c1effd5753f22e63d444ab4a634bd17ee3a1
PHP
cosmocode/dokuwiki-plugin-issuelinks
/services/GitLab.service.php
UTF-8
18,781
2.671875
3
[]
no_license
<?php namespace dokuwiki\plugin\issuelinks\services; use dokuwiki\Form\Form; use dokuwiki\plugin\issuelinks\classes\HTTPRequestException; use dokuwiki\plugin\issuelinks\classes\Issue; use dokuwiki\plugin\issuelinks\classes\Repository; use dokuwiki\plugin\issuelinks\classes\RequestResult; class GitLab extends Abstrac...
true
2a02acc8f7ef2cbae4866ed504085a3e34dd8026
PHP
taylanilkyaz/milyoncu
/system-includes/database/UserDatabase.class.php
UTF-8
15,565
2.8125
3
[]
no_license
<?php class UserDatabase extends Database { public static $USER_TABLE_NAME = "kullanıcılar"; public static $USER_ID = "id"; public static $USER_E_MAIL = "e_mail"; public static $USER_TC = "tc"; public static $USER_PASSWORD = "şifre"; public static $USER_FIRST_NAME = "ad"; public static $USE...
true
f7b41300d0e06dbbd865d1958dc42eb6aac80641
PHP
tomholub/coinbaseorders
/www/app/presenters/SignPresenter.php
UTF-8
7,906
2.796875
3
[]
no_license
<?php use Nette\Application\UI; /** * Sign in/out presenters. */ class SignPresenter extends BasePresenter { /** * Sign-in form factory. * @return Nette\Application\UI\Form */ protected function createComponentSignInForm() { $form = new UI\Form; $form->addText('email', 'E-mail:') ->...
true
e88c9b27dcc7ea2810e5b4ef473006c1627d2b93
PHP
RomainKasp/P3_BLOG
/controls/ctlCommentaires.php
ISO-8859-1
3,224
2.734375
3
[]
no_license
<?php namespace controls; class ctlCommentaires { private $com; private $cmt; private $info; function __construct($params){ $this->com = $params['Comment']; $this->cmt = $params['Commentaire']; $this->info = $params['info']; } /************************************************************...
true
30ae3650e795c36babf0a773cf3ff2ad8d74b7a5
PHP
lciolecki/zf-extensions-library
/library/Extlib/Cli/Action.php
UTF-8
1,856
3.125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Extlib\Cli; /** * Abstract, base class of Console line interface * * @category Extlib * @package Extlib\Cli * @author Lukasz Ciolecki <ciolecki.lukasz@gmail.com> * @copyright Copyright (c) 2013 Lukasz Ciolecki (mart) */ class Action extends CliAbstract { /** ...
true
71f1c32b75854230a865a13ac75273c1bb941987
PHP
DavidGoodwin/Propel
/test/testsuite/generator/builder/om/GeneratedObjectArrayColumnTypeTest.php
UTF-8
8,530
2.53125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Propel package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php'; require_o...
true
c7d0ff95b29a7cd50d092d2b5eac45d4b04fbca9
PHP
awesome036/hal_ph19
/ph22_kadai01_pw51a335_02/func.inc
UTF-8
2,451
2.796875
3
[]
no_license
<?php function authorize_user($id,$pass){ $check = FALSE; // FALSE:NG TRUE:OK if(!empty($id) && !empty($pass)){ // データベースへの接続 $con = mysqli_connect("localhost","root",""); // 文字コードの指定 mysqli_set_charset($con,"utf8"); // データベースの指定 mysqli_select_db($con,"ph22_kadai01_pw51a335_02"); // 実行するS...
true
c78d51ba97e3435c0eaceccee315494061238289
PHP
sourabh-agrawal/network-intrusion-detection-and-prevention-system
/uploadfile.php
UTF-8
4,575
2.640625
3
[]
no_license
<?php $con = mysqli_connect("localhost","root",""); if(!$con){ die("can not connect with the server"); }else{ mysqli_select_db($con,"class") or die('database selection problem'); } ?> <?php $message = ''; if(isset($_POST['submit'])){ $targetdire = "upload/"; $fil...
true
ed79e8af1e38e343a50963c067d87e360a49c7bc
PHP
Celeroctos/mis_developing
/protected/modals/admin/templates/RemoveCategory.php
UTF-8
1,056
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dmitry * Date: 2014-11-27 * Time: 12:28 */ class RemoveCategory extends ModalWindow { /** * @return bool - If modal window should have custom width then override * this method and return your value (for example, 1000px or 70%) */ public functio...
true
335646e543808183e44526a329ad48aa22ba0131
PHP
halper/yancy-scrapergui
/database/migrations/2017_01_19_111935_create_producturls_table.php
UTF-8
693
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProducturlsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('producturls', function (Blueprint $table) { ...
true
45ce1730308d1ffed712b04828360bb6877cae07
PHP
eki-nrw/mdl
/src/Processing/Storage/StorageInterface.php
UTF-8
1,384
2.703125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Eki-NRW package. * * (c) Ekipower * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Eki\NRW\Mdl\Processing\Storage; use Eki\NRW\Mdl\Processing\ElementInterface; /** * @author Nguyen Tien Hy <ngtien...
true
bbd2a080e2d8708d52d11a3b9fb787370a86287a
PHP
Bango1999/php-calendar
/members.php
UTF-8
1,776
2.8125
3
[ "MIT" ]
permissive
<?php include_once "includes/init.php"; $result = mysqli_query($db_conx, "SELECT * FROM members WHERE groupid='" . $_GET['g'] . "' and userid='". $_SESSION['userId'] . "';"); $row = mysqli_fetch_array($result); $level = $row['level']; $result = mysqli_query($db_conx, "SELECT * FROM groups WHERE groups.groupid='" . $_G...
true
f0044249b0cae46a8a10dff93a455027b466bdc0
PHP
narokishi/object-validator
/src/AbstractRule.php
UTF-8
691
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Narokishi\ObjectValidator; /** * Class AbstractRule * @package Aggregate\GenericView\RequestValidator */ abstract class AbstractRule { /** * @var mixed */ protected $value; /** * @var string */ protected $error = ''; /** * @ret...
true
7aca8aeed66e3f92002c2c60bf0a1c25c6de5852
PHP
ParsonsTKO/FolgerMirandaServer
/src/DAPBundle/ElasticDocs/DAPAbout.php
UTF-8
552
2.59375
3
[ "MIT" ]
permissive
<?php namespace DAPBundle\ElasticDocs; use ONGR\ElasticsearchBundle\Annotation as ES; /** * Class DAPAbout * @package DAPBundle\ElasticDocs * @ES\Object */ class DAPAbout { /** * @ES\Property(type="text") */ public $uri; /** * @ES\Property(type="text") */ public $description;...
true
5988a6835c909c008d493f93f451084b74f8153e
PHP
rajuiit/PhP-juportal1.5php
/includes/function.php
UTF-8
9,817
2.609375
3
[ "LicenseRef-scancode-other-permissive" ]
permissive
<?php function protect($string) { $protection = htmlspecialchars(trim($string), ENT_QUOTES); return $protection; } function success($text) { return '<div class="alert alert-success"><i class="fa fa-check"></i> '.$text.'</div>'; } function error($text) { return '<div class="alert alert-danger"><i class="fa fa-time...
true
41277d145440052d5233bee800f184484571544a
PHP
Pierre014/todolist-sql
/function.php
UTF-8
1,375
2.75
3
[]
no_license
<?php require 'sqlconnect.php'; function dump($tab){ echo '<pre>'; var_dump($tab); echo '</pre>'; } function readTodo($pdo,$mysqlExpression){ $stmt = $pdo->prepare($mysqlExpression); $stmt -> execute(); return $stmt -> fetchALL(PDO::FETCH_ASSOC); } ...
true
d9491638b28c8a6fb58a4af7f6fd32c4ed41cc4a
PHP
xghell/bestphp
/bestphp/src/library/Foundation/Http/Stream.php
UTF-8
5,284
3.234375
3
[]
no_license
<?php namespace Best\Foundation\Http; class Stream { /** * @var string */ private $file; /** * @var string */ private $mode; /** * @var bool|resource */ private $stream; public function __construct(string $file, string $mode, bool $use_include_path = fal...
true
328fe154a46a2943be9f6e437c3f259b302087d1
PHP
archanashirwant/msgraph-old
/router.php
UTF-8
642
2.6875
3
[]
no_license
<?php class Router { static public function parse($url, $request) { $url = trim($url); if ($url == "/msgraph/") { $request->controller = "Auth"; $request->action = "signin"; $request->params = []; } else { $explod...
true
7e8d32e1abdf00b0f83bccf5e807149cebb6eacf
PHP
chriskonnertz/DeepLy
/src/ChrisKonnertz/DeepLy/HttpClient/CurlHttpClient.php
UTF-8
8,255
3
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
<?php namespace ChrisKonnertz\DeepLy\HttpClient; /** * This class uses cURL to execute API calls. */ class CurlHttpClient implements HttpClientInterface { /** * Default logfile name, will be placed in the dir where this class lives. * You can specify a different path though. */ const DEFAULT_...
true
071cfbf9adbf5a1b6ceb0a3651d6d15fad2d9bdf
PHP
eFrane/SchemaObjects
/src/HealthInsurancePlan.php
UTF-8
3,667
2.671875
3
[]
no_license
<?php /** * This is a generated class based on the schema.org type catalog. * * @license MIT */ declare(strict_types=1); namespace EFrane\SchemaObjects; /** * A US-style health insurance plan, including PPOs, EPOs, and HMOs. */ class HealthInsurancePlan extends Intangible { /** * The 14-character, HI...
true
917309da34ef3da300e60d711cf0e99b8070e261
PHP
blvckshade/script-lacak-lokasi
/hasil.php
UTF-8
199
2.796875
3
[]
no_license
<?php $Segitiga1 = $_POST['segitiga']; $Segitiga2 = $_POST['segitiga2']; for ($a=0; $a < $Segitiga2; $a++) { for ($b=$Segitiga2; $b > $a; $b--) { echo "$Segitiga1"; } echo "</br>"; } ?>
true
7f7e80dbfa8e9b707238753d0304c3b62847f855
PHP
tcc-estacio-douglas/Projeto-TCC
/aula33-mvc-p4/controllers/ControleUsuario.php
UTF-8
776
2.671875
3
[]
no_license
<?php /** * Descrição de ControleUsuario * * @copyright (c) 2018, Douglas Caetano Lima */ class ControleUsuario { public function index() { echo "Controller Usuário - Método LISTAR usuários<br>"; $CarregarView = new ConfigView("usuario/ListarUsuario"); $CarregarView->rende...
true
2c47eb14f8aa2109249f7f76d090b9031873757d
PHP
petermigi/houdun_thinkPHP
/wish2/App/Modules/Admin/Action/RbacAction.class.php
UTF-8
3,906
2.515625
3
[ "MIT" ]
permissive
<?php class RbacAction extends CommonAction{ //用户列表 public function index(){ $this->user = D('UserRelation')->field('password', true)->relation(true)->select(); $this->display(); } //角色列表 public function role(){ $this->role = M('role')->select(); ...
true
e7ad45a4f07866fd31b6f4d784e04533eae254ce
PHP
Prokofe/PHP---BootCamp
/lesson4/ifelse.php
UTF-8
276
3.140625
3
[]
no_license
<?php $a = $_GET['num']; echo ($a == 1) ? 'true' : 'false'; echo '<br>'; echo ifOneOrTwo($a); function ifOneOrTwo($a) { if ($a == 1) { echo 1; } else if ($a == 2) { $a = 2; echo $a; } else { echo 'error'; } } ?>
true
63071af38e2ecf6648540e28d9c1f7354657f285
PHP
orthener/styles.ua
/app/Plugin/Studio/Controller/StudioMoviesController.php
UTF-8
12,082
2.59375
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * StudioMovies Controller * * @property StudioMovie $StudioMovie */ class StudioMoviesController extends AppController { /** * Nazwa layoutu */ public $layout = 'admin'; /** * Tablica helperów doładowywana do kontrolera */ p...
true
600c2857d0547b6e6173a900c0c3516584fd9caf
PHP
Dtrav1030/Tempest-Road-Board-Games
/deletereview.php
UTF-8
2,549
2.609375
3
[ "Apache-2.0" ]
permissive
<?php $page_title="| Delete Review"; session_start(); include("db_connect.php"); if( ($_SESSION['logged_in_user_access'] != ('Privileged'||'Administrator'))) { ?> This page is for administrators and privileged users only, please sign in to view content. <?php }else if($_SESSION['logged_in...
true
225a18d7ba49654a2f679380cb870520c11b41ef
PHP
piiskop/pstk
/kaia_kuunal/files/strings.php
UTF-8
1,647
3.5625
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>PHP sõned</title> <meta charset="UTF-8" /> </head> <body> <?php // strlen: tagastab sõne pikkuse $firstName = 'Kaia'; $lastName = 'Küünal'; echo $firstName . ' eesnimes on ' . strlen(utf8_decode($firstName)) . ' tähemärki, perekonnanimes ' . $lastName ...
true
f4e086842e67ceb2d94ba870b4feff328b691dc2
PHP
vavepl/symfony-4.3
/Voters/CompanyVoter.php
UTF-8
1,960
2.84375
3
[]
no_license
<?php namespace App\Security\Voters; use App\Entity\Company; use App\Entity\Employee; use App\Exception\Messages; use LogicException; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authorization\Voter\Voter; class CompanyVoter extends Voter { public...
true
d0ad6033dd5066a9953810c1420d6d83100eeeb9
PHP
kylekatarnls/phpmd
/src/test/php/PHPMD/Rule/CleanCode/MissingImportTest.php
UTF-8
3,050
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of PHP Mess Detector. * * Copyright (c) Manuel Pichler <mapi@phpmd.org>. * All rights reserved. * * Licensed under BSD License * For full copyright and license information, please see the LICENSE file. * Redistributions of files must retain the above copyright notice. * * @author...
true
35c7303d9bc63940615b1088ded8275aecb656e9
PHP
Britgo/Online-League
/php/matchdate.php
UTF-8
5,439
2.734375
3
[]
no_license
<?php // Copyright 2009-2021 John Collins // ********************************************************************* // Please do not edit the live file directly as it will break the "Git" // mechanism to update the live files automatically when a new version // is pushed. Thanks! // *********************************...
true
e3bc6cf0bb8ef97372e25b429386ae043d1cd7dc
PHP
Heldeenn/VisiterJaponHackathon
/src/Model/HistoryManager.php
UTF-8
957
2.84375
3
[]
no_license
<?php namespace App\Model; class HistoryManager extends AbstractManager { /** * */ const TABLE = 'history'; /** * Initializes this class. */ public function __construct() { parent::__construct(self::TABLE); } public function selectAll(): array { ...
true
70bf817ba0036fc8e5d5eaf248addbb5a12a79ce
PHP
Yoichiro-Shimizu/Challenge
/challenge_2/challenge2_1.php
UTF-8
176
2.90625
3
[]
no_license
<?php $var = 1; switch ($val) { case '1': echo "one"; break; case '2': echo "two"; default: echo "それ以外"; break; } ?>
true
9cebbac5de4768d89b7d0b675e83496dd152dc41
PHP
successmarket/oroinc-platform
/src/Oro/Bundle/TranslationBundle/Layout/DataProvider/TranslatorProvider.php
UTF-8
1,060
2.625
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\TranslationBundle\Layout\DataProvider; use Symfony\Contracts\Translation\TranslatorInterface; /** * Provides layer for layouts to use translator as DataProvider */ class TranslatorProvider { /** @var TranslatorInterface */ private $translator; /** * @param TranslatorInt...
true
385bdb7b89b9c72ab3bc99e78998bebd1b9bc256
PHP
ChrstnMgcn/xflickr
/core/components/xflickr/model/xflickr/request/xflickrphotorequest.class.php
UTF-8
3,706
2.53125
3
[]
no_license
<?php /** * Runs the flickr photo front-end system * * @package xflickr */ require_once MODX_CORE_PATH . 'model/modx/modrequest.class.php'; class XFlickrPhotoRequest extends modRequest { public $xflickr = null; /** * Constructor for the XFlickrPhotoRequest class. * * Calls modRequest::__construct as well....
true
4f4ebe6843f91fc017057a8572db2dbe2c0e0787
PHP
icepoke/swooleyaf
/libs_frame/SyLogistics/ConfigKd100.php
UTF-8
1,396
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: 姜伟 * Date: 2019/6/18 0018 * Time: 21:19 */ namespace SyLogistics; use SyConstant\ErrorCode; use SyException\Logistics\Kd100Exception; class ConfigKd100 { /** * 应用ID * @var string */ private $appId = ''; /** * 应用密钥 * @var string */...
true
e760eddca9cf63fef0748930aa58cf7fb38c6205
PHP
SandraJinnevall/projekt-ramverk1
/src/QandA/Forum/TagsDatabase.php
UTF-8
1,895
2.6875
3
[]
no_license
<?php namespace Anax\QandA\Forum; use Anax\Database\Database; use Anax\TextFilter\TextFilter; use Anax\QandA\Forum\Tags; class TagsDatabase { /** * Database connection * * @var Database */ private $db; public function __construct(Database $db) { $this->db = $db; } ...
true
9eef2297f48371031187cbfcca611789b0b35e16
PHP
shanghaif/lkmotion
/common/models/PassengerHistoryAddress.php
UTF-8
2,285
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; use yii\base\BaseObject; /** * This is the model class for table "{{%passenger_history_address}}". * * @property int $id * @property int $passenger_info_id 乘客id * @property string $passenger_phone 乘客电话 * @property int $type 1上车地点 2下车地点 * @property string $address 详细地址 ...
true
8028d7016c7d199f30e299ef9390f50bc3b70171
PHP
rafgirao/powerhub-backup
/app/Jobs/DashboardStatsJob.php
UTF-8
2,314
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use App\Models\Stat; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; class DashboardStatsJob implements ShouldQueue { use Dispatchable, I...
true
cee0638629529e8129f558ed79a0bd864a4f2ef0
PHP
KudryavtsevSergey/laravel-ipay
/src/Http/ResponseGenerators/ServiceInfoXmlGenerator.php
UTF-8
2,103
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Sun\IPay\Http\ResponseGenerators; use DOMElement; use Sun\IPay\Contracts\IPayOrderInfoContract; class ServiceInfoXmlGenerator extends AbstractIPayXmlGenerator { public function __construct( private IPayOrderInfoContract $orderInfo, ) { parent::__const...
true