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
dba7efee2da0991422886e8578ac91c37555e058
PHP
leinstein/seo
/Lib/Action/Agent2/NewsAction.class.php
UTF-8
12,297
2.640625
3
[]
no_license
<?php /** * 通知新闻文章管理控制类 * * @category 业务控制类 * @copyright Copyright 2017-2017 上海米同网络科技有限公司(www.mitong.com) * @package Action.Home * @version 20141010 * @link http://www.mitong.com */ class NewsAction extends BaseAction { //公共函数,不接受权限检查,写法 array('index'); public $public_functions = ar...
true
7ba75c6d1769f401c8bf73e8bc944a2e5a8ebe37
PHP
michaeljoyner/dymantic
/app/Briefs/Logo/LogoFilesRepo.php
UTF-8
543
2.546875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: user * Date: 12/29/2014 * Time: 11:50 AM */ namespace Dymantic\Briefs\Logo; class LogoFilesRepo { protected $model; function __construct(LogoImageUpload $model) { $this->model = $model; } public function storeFilenames($command) { ...
true
ab3a9eb344e04dde8256c322503caef5641895c6
PHP
khirulnizam/newsystem2
/updateactivity.php
UTF-8
827
2.796875
3
[]
no_license
<?php //updateactivity.php if(isset($_POST['activityname']) && isset($_POST['time']) && isset($_POST['date'])){ //simpan ke database include "dbconnect.php"; //fetch data $id=$_POST['id']; $activityname=$_POST['activityname']; $date=$_POST['date']; $time=$_POST['time']; $speaker=$_POST['speaker']; //sql i...
true
3107dab3ff7af0e9712af8669a2cf7fb10806411
PHP
xinyflove/php-utility-class
/pxesign/PXeSign.php
UTF-8
10,340
2.546875
3
[]
no_license
<?php /** * E签包相关业务接口 * @author peak xin<xinyflove@gmail.com> * @created 2020-01-13 * @referenceDoc https://qianxiaoxia.yuque.com/books/share/8bc54c0d-ebaa-4036-957e-b9a353f86486/shiming */ require_once '../pxcurl/PXcURL.php'; class PXeSign { const TOKEN_CACHED_KEY = 'esign_access';// 缓存key值 public $fac...
true
265745c638478ede3e11303ddf590132bbcd0337
PHP
lcds90/project-course-php
/funcoes/map_filter.php
UTF-8
600
3.703125
4
[]
no_license
<div class="titulo">Map & Filter</div> <?php $notas = [5.0, 7.5, 9.5, 6.7]; foreach($notas as $nota){ $notasFinais1[] = round($nota); } print_r($notasFinais1); echo '<hr>'; $notasFinais2 = array_map(round, $notas); print_r($notasFinais2); $apenasOsAprovados1 = []; foreach($notas as $nota){ if($nota >= 7){...
true
a0090210d8ed154075cc6ad61f25919f84d8dc4b
PHP
maximejanod/php-multiplicate
/calcul.php
UTF-8
2,053
2.84375
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" type="text/css" href="style.css"> <title>PHP - AJAX multiplication</title> </head> <bod...
true
23fa81e2162c7b64a1ef4503ea6f040dd6a04397
PHP
iskdjim/joan
/Trying/Chart-Prototype/api/request_handler.php
UTF-8
982
2.59375
3
[]
no_license
<?php $csvFile = "data/sensor_data_akt.csv"; $handle = fopen($csvFile,"r"); $json_data = array(); $counter = 0; $limit = $_GET['limit']; while($data = fgetcsv($handle, 9999, ";")){ $counter++; $dataset = array("time" => $data[0], "chanels" => array( array("chanel" => "1", "value" => rand(5, 40...
true
32c483dc8507368b0cb90cf65d5a64cfc4613cc1
PHP
shadowdestiny/dockenizacion
/src/apps/web/services/card_payment_providers/eMerchantPaymentStrategy.php
UTF-8
490
2.609375
3
[]
no_license
<?php namespace EuroMillions\web\services\card_payment_providers; use EuroMillions\web\services\card_payment_providers\emerchant\eMerchantConfig; class eMerchantPaymentStrategy implements ICreditCardStrategy { private $config; public function __construct($config = null) { $this->config = $confi...
true
1872084609c986ab732872dc2aa8383b40b39793
PHP
xiaogaidongr/1604phpA-yangjunjie
/zuoye.php
UTF-8
626
3.265625
3
[]
no_license
<?php function chou($num){ for($i = 2;;$i*=1){ if(is_int($num/2)){ $num = $num/2; echo $num; }else if($num == 1){ return '是丑数'; }else{ for($j = 3;;$j*=1){ if(is_int($num/$j)){ $num = $num/$j; }else if($num == 1){ return '是丑数'; }else{ ...
true
b87e73a7a234d5664988f26352f849be6ef7d239
PHP
Noriega402/college
/app/Controllers/Crud.php
UTF-8
3,190
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use App\Models\CrudModel; class Crud extends BaseController { public function index() { return view('welcome_message'); } public function alumnos(){ // llamado de Modelo CrudModel $crud = new CrudModel(); $array = $crud->listarAlumnos(); //trae la consulta del modelo. $...
true
ad2eb0ad5b6fa7ceceeef737009edb9725b8ca09
PHP
djeday/php-mvc
/app/Core/Mapper/PostToRowMapper.php
UTF-8
397
2.703125
3
[]
no_license
<?php namespace App\Core\Mapper; use App\Core\Entity\Post; class PostToRowMapper { public function map(Post $post): array { $row = []; $row['user_id'] = $post->getUserId(); $row['date'] = $post->getDate(); $row['image'] = $post->getImage(); $row['text'] = $post->getTex...
true
ff11065f1cc5df6300a32246bb9e5c5ef73c0dae
PHP
IvonneBarco/PhpPOO
/objetos.php
UTF-8
290
3.875
4
[]
no_license
<?php class miClase{ //mis atributps public $resultado = 0; //mis metodos public function miMetodo($v1,$v2){ $this->$resultado = $v1 + $v2; return $this->$resultado; } } //Instanciar o declarar un objeto $miObjeto = new miClase(); echo $miObjeto-> miMetodo(5, 15); ?>
true
6bba88efa95dbbdcc07f397c456108b42eac3908
PHP
YangchenchenLi/EventScheduler
/application/models/CalendarModel.php
UTF-8
4,254
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class CalendarModel extends CI_Model { public $prefs; public function __construct() { // create calendar template $this->prefs['template'] = ' {table_open}<table cellpadding="1" cellspacing="2">{/table_open} ...
true
53d356d9d58a843dcf50e38a2757d2f3b4a05151
PHP
prakashg-products/relationCheck
/app/Console/Commands/ShowRelations.php
UTF-8
2,691
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Course; use App\Professor; use App\ChangeEvent; use Illuminate\Console\Command; use LucidFrame\Console\ConsoleTable; use Illuminate\Support\Facades\Schema; /** * Class ShowRelations * * @package App\Console\Commands */ class ShowRelations extends Command { /** ...
true
a29290a373e17ffa52b9d8280698740c64cbda8f
PHP
mjphaynes/php-resque
/src/Resque/Helpers/CatchOutput.php
UTF-8
2,141
3.09375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the php-resque package. * * (c) Michael Haynes <mike@mjphaynes.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Resque\Helpers; use Symfony\Component\Console\Formatter\OutputFormatte...
true
f51b37b243bfdf919d23c5fbe5db85107b99ab79
PHP
CJHackerz/MilanCampusAmbass2018
/leaderboard/leaderboard.php
UTF-8
1,642
2.515625
3
[]
no_license
<?php // error_reporting(0); // required headers header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept"); header("Access-Control-Allow-Methods: GET,POST"); header("Content-Type: application/json; charset=UTF-8"); // include database and object fi...
true
172656924ae702cb2093acfd42cea00273d86457
PHP
ShooShoSha/shooshosha.com
/www/src/AppBundle/Controller/DataController.php
UTF-8
2,616
2.59375
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Controller; use AppBundle\Entity\Product; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class DataController extends Controller { ...
true
10ed884cddb8404a5f0b46d6b80fcd3501d43b8b
PHP
Sealkounet/Formation-Projet-Concessionaire
/administration/inscription.php
UTF-8
4,864
2.90625
3
[]
no_license
<?php require_once ('class/Auth.class.php'); require_once('../connexion_BDD.php'); //Connexion à la BDD ob_start(); $erreur=''; if(isset($_POST['register'])){ //Lorsque l'on soumet le formulaire //////////////////////////Récupération des différents champs//////////////////////// $pseudo = trim(htmlentities...
true
8ed2eed80200f2ec8308b26f7670f75881f7d4f0
PHP
fiboknacky/googleads-php-lib
/src/Google/AdsApi/AdManager/v201811/AudienceSegmentPremiumFeature.php
UTF-8
983
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace Google\AdsApi\AdManager\v201811; /** * This file was generated from WSDL. DO NOT EDIT. */ class AudienceSegmentPremiumFeature extends \Google\AdsApi\AdManager\v201811\PremiumFeature { /** * @var int $audienceSegmentId */ protected $audienceSegmentId = null; /** * @param...
true
5014baeb1c36a8a2ba163f4719343713a2961bd9
PHP
Kaylane-Guarino/FastParking-api
/App/Models/Cliente.php
UTF-8
2,970
2.890625
3
[]
no_license
<?php use App\Core\Model; class Cliente { public $id; public $nome; public $placa; public $dataEntrada; public $horaEntrada; public $ativo; public $valorTotal; public function listAll(){ $sql = "SELECT * from tblRegistro"; $stmt = Model::getConn()->prepare($sql); ...
true
826c3ad600056bafe06655cb5df85d84ff8b2db6
PHP
abdulmatinsanni/spreadsheet-icecream
/app/Http/Controllers/ContractController.php
UTF-8
3,087
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Contract; use Illuminate\Http\Request; class ContractController extends Controller { private Contract $contract; /** * Constructs class instance. * * @param Contract $contract * @return \Illuminate\Http\Response */ public func...
true
558482b22cc10118ce8667d8249bbf16749f6d4e
PHP
ederbfonseca/sink
/admin/page/js/dogncat.php
UTF-8
795
2.65625
3
[]
no_license
<?php /** * Thanks to https://forum.agiletoolkit.org/t/why-do-i-have-to-use-a-chain-of-return-after-a-js-reload/188 * for this example idea */ class page_js_dogncat extends Page { public $title='Dog and Cat - javascript element reloading'; /** * Initialize the page * * @return void */ ...
true
682eaf659005196ef9d0b3ce1d6bd78a4a338378
PHP
sukhmeet2729/sukhmeet
/generate.php
UTF-8
2,718
2.921875
3
[]
no_license
<?php require ('config.php'); if(isset($_POST['checkUrl'])){ $url = trim(strtolower($_POST['checkUrl'])); $SQL = "SELECT * FROM links WHERE short = '$url'"; if(mysqli_num_rows(mysqli_query($connection, $SQL)) > 0){ print('<span class="text-danger">This link is not available</span>'); }else{ ...
true
8eb29d58505addd90585dcc36dd3681d54552bab
PHP
AcidHardcore/skeleton-wp
/inc/Comments/Component.php
UTF-8
5,237
2.53125
3
[]
no_license
<?php /** * Skeleton_WP\Skeleton_WP\Comments\Component class * * @package skeleton_wp */ namespace Skeleton_WP\Skeleton_WP\Comments; use Skeleton_WP\Skeleton_WP\Component_Interface; use Skeleton_WP\Skeleton_WP\Templating_Component_Interface; use function Skeleton_WP\Skeleton_WP\skeleton_wp; use function add_actio...
true
3b684e599f48fff891928e83913c4ba0ff4994f4
PHP
pnagaraju25/zf1theme
/src/DefinitionProvider/Filesystem/ThemeYaml.php
UTF-8
1,420
2.921875
3
[ "MIT" ]
permissive
<?php /** * Zend Framework 1 Theme Extension * * @author David Lundgren * @license MIT */ namespace ZfTheme\DefinitionProvider\Filesystem; use Symfony\Component\Yaml\Yaml; /** * AbstractFilesystem DefinitionProvider * * Provides a way to quickly handle multiple filesystem types that allow for differing versi...
true
24046f2e7e8f1b101f3159964219f78c17877a98
PHP
mjgw/smartest-import-test
/Library/Pear/Net/LDAP.php
MacCentralEurope
37,903
2.53125
3
[]
no_license
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +--------------------------------------------------------------------------+ // | Net_LDAP | // +--------------------------------------------------------------------------+ // | Copyright (c) 1997-2...
true
d118bd7ec713c858f5ed869ce02a38986b7fece4
PHP
materials-commons/materialscommons
/app/Actions/Files/ConvertFileAction.php
UTF-8
3,456
2.671875
3
[]
no_license
<?php namespace App\Actions\Files; use App\Models\File; use Illuminate\Support\Facades\Storage; use Symfony\Component\Process\Process; use function chmod; use function shell_exec; class ConvertFileAction { public function execute(File $file) { umask(0); if ($file->isConvertibleImage()) { ...
true
196df4c19754c614925f43f4ebf10dbc6c245521
PHP
markonikolic9/bueno-PHPWebsite
/models/korisnik/obradaLogovanje.php
UTF-8
1,212
2.578125
3
[]
no_license
<?php session_start(); if(isset($_POST['btn'])){ include "../../config/connection.php"; $email = $_POST['email']; $pass = $_POST['pass']; $greske = []; if(!filter_var($email, FILTER_VALIDATE_EMAIL)){ array_push($greske, "Wrong email format!"); } $regPass = "/^(?=.*\d)(?=.*[a-z]...
true
efdf4d764f890a63faaedc94560f2e623211436b
PHP
xp-forge/assert
/src/main/php/unittest/assert/Condition.class.php
UTF-8
812
3.53125
4
[ "BSD-3-Clause" ]
permissive
<?php namespace unittest\assert; use util\Objects; abstract class Condition { /** * Test whether this condition matches a given value * * @param var $value * @return bool */ public abstract function matches($value); /** * Creates a string representation of any given value. * * @param ...
true
30b08839d688d64bd9a608cd67d4c0bf4baf530d
PHP
WibuSOS/indexer
/app/Project.php
UTF-8
673
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Project extends Model { // Table Name // Primary Key // Timestamp /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'project_name', 'project_fee', 'description'...
true
40231990c382d39d78f891b0cb142510b3c78b66
PHP
AndreyLebedenko/dropwizard-php-gate
/php/demo.php
UTF-8
387
2.78125
3
[]
no_license
<?php echo "Session started: " . session_start(); echo "<br/>" echo "SessionID: " . session_id(); echo "<br/>" // get App server context: $ctx = quercus_get_servlet_context(); // get attribute from the context, provided it was added with such a name before. $app = $ctx->getAttribute("application"); ...
true
405e199c8111f02e422c0721129ce21e9b8328fd
PHP
fomarin17/TallerPHP
/Ejercicio5/Main.php
UTF-8
2,281
2.84375
3
[]
no_license
<?php require_once('Seller.php'); require_once('Item.php'); require_once ('Payment.php'); session_start(); if($_GET['pay'] == true){ $main = new Main(); $main->setSeller($_SESSION["Seller"]); echo $main->getPay(); } else{ if (isset($_SESSION["Seller"])) { $nameItem = $_POST['nameItem']; ...
true
a5ebdf20701f4bd2fbfb12541ee706d4cc437c7d
PHP
rafaelflorindo/ColegioLisboa3Informatica2020
/SysLivraria/view/listarAutor.php
UTF-8
660
2.5625
3
[]
no_license
<?php include("../model/Autor.php"); $autor = new Autor(); $retonoAutor = $autor->listarAutor(); ?> <table border="1"> <th>NOME</th> <th>E-MAIL</th> <th>ALTERAR</th> <th>EXCLUIR</th> <?php foreach($retonoAutor as $value){ ?> <tr> <td><?...
true
0f6d81d6e06633defb9dbff78eaf76f5b646510f
PHP
krisxoofoo/XooFoo
/usb/Uniform_Server/releases/UniServer5_7_LabsXooFoo/UniServer/home/admin/www/msd/inc/classes/helper/File.php
UTF-8
1,061
2.984375
3
[]
no_license
<?php /** * This file is part of MySQLDumper released under the GNU/GPL 2 license * http://www.mysqldumper.net * * @package MySQLDumper * @subpackage Helper * @version SVN: $rev: 1207 $ * @author $Author$ * @lastmodified $Date$ */ /** * File-Helper Class * * Class offers so...
true
10cd1a556bfece56b23856abc091fc5783a71071
PHP
PaulBrousses34/movieDB
/src/EventListener/UpdatedAtSetter.php
UTF-8
692
2.6875
3
[]
no_license
<?php namespace App\EventListener; use App\Entity\User; use Doctrine\Persistence\Event\LifecycleEventArgs; class UpdatedAtSetter { // Ce listener se verra exécuté la méthode preUpdate lors d'un événement // C'est pour ça qu'il porte ce nom public function preUpdate(LifecycleEventArgs $args) { ...
true
b5e4d5c161b00c5a4f088112bd0377a9bff06212
PHP
caioalmeidadev/comanda-php
/acme/interfaces/IModel.php
UTF-8
240
2.640625
3
[]
no_license
<?php namespace acme\interfaces; interface IModel { public function create($attributes); public function read(); public function update($id,$attributes); public function delete($name, $value); public function findBy($name, $value); } ?>
true
c11e837df4b4910147905f430dc66f390811c2e9
PHP
ishifoev/invoice-ubl
/src/Financial/PayeeFinancialAccount.php
UTF-8
2,893
2.765625
3
[]
no_license
<?php namespace Ishifoev\Invoice\Financial; use Sabre\Xml\Writer; use Sabre\Xml\XmlSerializable; use Ishifoev\Invoice\Schema; use Sabre\Xml\Reader; use Sabre\Xml\XmlDeserializable; class PayeeFinancialAccount implements XmlSerializable, XmlDeserializable { private $id; private $name; private $financialI...
true
9a31633531ffea0e91518e716b70ded81dbc2644
PHP
DcodeDesign/learn-symfony-api_rest
/src/DataFixtures/AppFixtures.php
UTF-8
795
2.578125
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Article; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; class AppFixtures extends Fixture { public function load(ObjectManager $manager) { // create 20 products! Bam! for ($i = 0; $i < 20; $i++) { ...
true
b3d5a83498024c1021a8e7550504f4f4471072b4
PHP
ShaunSEMO/biztweak_deploy
/includes/function_signin-validation.php
UTF-8
2,795
3.171875
3
[]
no_license
<?php // DATABASE OBJECT $db = new database; //$is_user_known = FALSE; // CHECKS IF THERE ARE POST VARIABLES if(!empty($_POST)){ // POST VARIABLES FROM THE FORM $username = $_POST['username']; $password = $_POST['password']; // VALIDATION ERROR MESSAG...
true
e0f887b424f2546483e601199ea514fd426464de
PHP
Brunocasta/proyectos
/empleados.php
UTF-8
2,297
3.21875
3
[]
no_license
<?php $aEmpleados = array(); $aEmpleados[] = array("dni" => 33300123, "nombre" => "David García", "bruto" => 85000.30); $aEmpleados[] = array("dni" => 40874456, "nombre" => "Ana Del Valle", "bruto" => 90000); $aEmpleados[] = array("dni" => 67567565, "nombre" => "Andres Peréz", "bruto" => 100000); $aEmpleados[] = array(...
true
f66af031ae77898efbc656694a7c282e2528e9a3
PHP
bonrita/drupal_symfony
/src/Infrastructure/Component/Discovery/PermissionHandler.php
UTF-8
4,997
2.71875
3
[]
no_license
<?php namespace App\Infrastructure\Component\Discovery; use App\Infrastructure\Component\Discovery\Files\YmlInterface; use App\Infrastructure\Form\Helper\Permission; use Psr\Container\ContainerInterface; use Symfony\Component\DependencyInjection\ServiceSubscriberInterface; use Symfony\Component\Finder\SplFileInfo; u...
true
4fc9d61a0ad831fc5a93e6536f0cfd3e55d601d0
PHP
andrewroux/stops-saver
/add.php
UTF-8
1,458
2.546875
3
[]
no_license
<?php require_once __DIR__ . '/vendor/autoload.php'; require_once __DIR__ . '/Operations/helpers.php'; require_once __DIR__ . '/Operations/database.php'; (new Dotenv\Dotenv(__DIR__ . '/Operations'))->load(); requireAuth(); ?> <!doctype html> <html lang="en"> <head> <title>Stop Saver</title> </head>...
true
75341fb058684fed6c3669e5d76e51398c45fad9
PHP
myvawedding/dev2
/wp-content/plugins/directories/lib/components/WordPressContent/Query.php
UTF-8
12,313
2.65625
3
[]
no_license
<?php namespace SabaiApps\Directories\Component\WordPressContent; use SabaiApps\Directories\Application; use SabaiApps\Directories\Component\Field; class Query { protected $_application; public function __construct(Application $application) { $this->_application = $application; ...
true
6321a68fa2bfde6157028c3cdc4d3e6ce1f8156d
PHP
denst/imusic
/www/application/classes/Helper/Values.php
UTF-8
2,125
2.71875
3
[]
no_license
<?php defined('SYSPATH') or die('No direct access allowed.'); class Helper_Values { /** * Returns instances of a specific object * * @param string $orm_table Table to which the request * @param int $id Id object * @param string $column Name of column or false * @param string $value Nam...
true
c37008076573486685c8b13eb477bc1d6b906349
PHP
element-lx/Projets---2014-2015
/Stages_en_TI/modeles/Stage.class.php
UTF-8
11,264
3.171875
3
[]
no_license
<?php /** * classe Stage * @version 2015-02-05 */ class Stage { private $idStage; private $sTxtDescripStage; private $iBooreMunerationStage; private $sDateDebStage; private $sDateFinStage; private $sDateLimiteStage; private $iDureeStage; private $idGroupe;...
true
9c37225ee0422a5a1c2bb645c19a99886dc751a4
PHP
gabrielhora/system
/src/System/Web/Mvc/IControllerFactory.php
UTF-8
298
2.640625
3
[]
no_license
<?php namespace System\Web\Mvc; use System\Web\HttpContext; interface IControllerFactory { /** * @param \System\Web\HttpContext $context * @param string $controllerName * @return ControllerBase */ public function CreateController(HttpContext $context, $controllerName); }
true
36d25fec1a0eb9965d9f01cfa9e9efd5a68b3153
PHP
NataliMamedova2/shell-b2b
/src/Admin/Menu/Voter/RequestVoter.php
UTF-8
1,612
2.640625
3
[]
no_license
<?php namespace App\Admin\Menu\Voter; use Knp\Menu\ItemInterface; use Knp\Menu\Matcher\Voter\VoterInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; final class RequestVoter implements VoterInterface { /** * @var Request */ private $request; ...
true
ae42d7e5f820b37f8577d21fa1a955770c0d2d79
PHP
kpacha/trafico
/src/App/Service/XMLReaderService.php
UTF-8
1,857
2.90625
3
[]
no_license
<?php namespace App\Service; class XMLReaderService { private $_name = null; private $_url = null; private $_cacheService = null; private $_xml = null; private $_ttl = null; const DEFAULT_TTL = 1800; public function __construct($name, $url, $cacheService, $ttl = self::DEFAULT_TTL) ...
true
5bdcbcbb57a67db4a58399b0b8a39bb367bc1981
PHP
mgw2007/php_DDD_example_app
/src/Item/Infrastructure/Api/Controller/Controller.php
UTF-8
594
2.609375
3
[]
no_license
<?php namespace Item\Infrastructure\Api\Controller; use Item\Application\CommandHandlerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\DependencyInjection\ContainerBuilder; abstract class Controller implements ControllerInterface { /** * @var ContainerBuilder */ prote...
true
7ce8ae40d6e6f885dfebae433d384cd475ce5840
PHP
SPURB/agendamento
/api/classes/api/APIKey.php
UTF-8
1,506
3.109375
3
[]
no_license
<?php /* * Classe para gerar a chave de autorização */ class APIKey{ private static $KEYS = array(); /* * Ler o arquivo com as palavras chave */ private static function openPropertiesFile(){ $filePath = APP_PATH.'/properties/keys.properties'; if($propFile = fopen($filePath, "r")...
true
2867424323ae489e74c17ee6af524105dcb34a61
PHP
GaryMcHugh/Emerging-Technologies-Project
/templates/sendbooks.php
UTF-8
1,257
2.953125
3
[ "MIT" ]
permissive
<!-- Author: Gary McHugh Date: November 29th, 2016 Adapted from: http://www.tutorialrepublic.com/php-tutorial/php-mysql-insert-query.php --> <?php /* Attempt MySQL server connection. Assuming you are running MySQL server with default setting (user 'root' with no password) */ $link = mysqli_connect("localhost", "root",...
true
b1270a18b47726a0531b78dc1aaaec953ebd2d80
PHP
besnik-org/laravel-filtering
/CRUD/CrudGenerateController.php
UTF-8
2,298
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace Besnik\LaravelInertiaCrud; use App\Http\Controllers\Controller; use Besnik\LaravelInertiaCrud\Actions\CreateActions; use Besnik\LaravelInertiaCrud\Actions\CreateController; use Besnik\LaravelInertiaCrud\Actions\CreateDto; use Besnik\LaravelInertiaCrud\Actions\CreateMigration;...
true
7e5d7fa693835874be6a519a21ffeeb3595c7104
PHP
Hampusholmstrom/D0018E---TheShop
/shop/Order/OrderHelper.php
UTF-8
2,503
2.6875
3
[]
no_license
<?php function InsertOrder($username,$userid,$conn){ //Fetch the product information $totalcost = 0; $resultshoppingcart = GetShoppingCart($userid,$conn); if(mysqli_num_rows($resultshoppingcart)!=0){ while($shoppingcart=mysqli_fetch_array($resultshoppingcart)){ $totalcost += $shoppingcart['price'];...
true
0a0129a8c1d3a30dc97cd517f810e001a0c73f4c
PHP
KhaiZulfa18/eclasse-by-khaiz18
/application/models/Authentication.php
UTF-8
608
2.59375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Authentication extends CI_Model{ // Cek data administrator di database function check_user($username){ $this->db->where('username', $username); return $this->db->get('tbl_user'); } function login($username,$password){ $this->db->w...
true
62a2128a4334136f00b8ea41dc23cc3ff7090a67
PHP
jingqilong/QudaoLaravel
/app/Repositories/OaDepartmentRepository.php
UTF-8
2,546
2.609375
3
[]
no_license
<?php namespace App\Repositories; use App\Models\OaDepartmentModel; use App\Repositories\Traits\RepositoryTrait; class OaDepartmentRepository extends ApiRepository { use RepositoryTrait; /** * AdminUserRepository constructor. * @param $model */ public function __construct(OaDepartmentMo...
true
2d33cc218796b9c4bd534e69719ad09bff16886f
PHP
manachyn/imshop
/modules/tasks/components/TaskHandlerInterface.php
UTF-8
234
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\tasks\components; interface TaskHandlerInterface { /** * Handle task. * * @param TaskInterface $task * @return mixed */ public function handleTask(TaskInterface $task); }
true
0bc77fe788d90b01d2ff11e99f974266e587f2fa
PHP
VictoriousNerd/vn2015
/PersonalWork/WeddingEvite/Wedding/Wedding_Party_Reception.php
UTF-8
1,899
2.546875
3
[]
no_license
<?php $EmailFrom = $_POST['EmailFrom']; $LastName = trim($_POST['LastName']); $Guest = trim($_POST['Guest']); $Phone = trim($_POST['Phone']); $Food = trim($_POST['Food']); $Other = trim($_POST['Other']); /// Validate $message = "<h2>Error!</h2><h4>You need to fill in the following:</h4><ul>"; if($EmailFrom == ""){$me...
true
c2af31d36df01d66de84370abfa21796e2aaa528
PHP
chadiznina/projetweb
/octopus/core/ArtcileC.php
UTF-8
2,584
2.921875
3
[]
no_license
<?php include "../config.php"; class ArticleC { function ajouterarticle($article){ $sql="insert into article (avatar,description,type,date) values (:avatar,:description,:type,CURDATE())"; $db = config::getConnexion(); try{ $req=$db->prepare($sql); $avatar=$article->getavatar(); $...
true
dd1cd963bc9d21f8612d62b5c1b6336edecd061b
PHP
jzb1006/question
/service/application/api/validate/User.php
UTF-8
551
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace app\api\validate; use think\Validate; /** * 生成token参数验证器 */ class User extends Validate { protected $rule = [ 'username' => 'require', 'code'=>'require', 'encryptedData'=>'require', 'iv'=>'require', ]; protected $message = [ 'username.req...
true
892fad99cf682aca869a8362aea05a3ee08d01e7
PHP
mdlulim/eis
/system/storage/modification/system/library/language.php
UTF-8
2,453
2.953125
3
[]
no_license
<?php class Language { private $default = 'en-gb'; private $directory; private $path = DIR_LANGUAGE; private $data = array(); public function __construct($directory = '') { $this->directory = $directory; } public function setPath($path) { if (!is_dir($path)) { trigger_error('Error: check path exists: '.$...
true
01f0dd947f9a03e9d968ebe4155936f58c4625fe
PHP
gmsantos/season-php-avancado
/aula-06/extends_interface.php
UTF-8
468
3.75
4
[]
no_license
<?php interface minhaInterface{ public function test(); } interface minhaNovaInterface extends minhaInterface{ public function test2(); } class myClass implements minhaNovaInterface{ public function test() { return 'meu Teste'; } public function test2() { return...
true
53d057f93d3e44745d56692a1df101a303c6466f
PHP
cjd17002090104/kinfy
/Kinfy/Http/Router.php
UTF-8
6,785
3.09375
3
[]
no_license
<?php /** * 路由处理文件 * * 用于存放路由和匹配并执行路由对应的方法 * Created by PhpStorm. * User: Administrator * Date: 2019/3/26 * Time: 14:59 */ namespace Kinfy\Http; class Router { //分割符 public static $delimiter = '@'; //路由前缀 public static $url_pre = []; //存放当前注册的所有的路由规则 public static $routes = []; ...
true
f9d2df73c199567d0ac72925757b99ff50e47d7a
PHP
IPArabadzhiev/converter
/classes/Curl.php
UTF-8
1,232
2.953125
3
[]
no_license
<?php class Curl { private $userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'; private $referer; public function __construct($referer, $userAgent = null) { $this->referer = $referer; if (! empty($userAgent)...
true
93c2b0bc137fe33e45e5f26e7ee57bd8bcda2cde
PHP
luisgamboa/itc260
/CI/application/controllers/Profile.php
UTF-8
3,505
2.671875
3
[ "Apache-2.0" ]
permissive
<?php /** * controllers/Profile.php * * Profile list page for Gig Central * * @package ITC260 * @subpackage Profile_list * @author Doug Doner * @version 1.0 2015/05/14 * @link * @license http://www.apache.org/licenses/LICENSE-2.0 * @see Profile_model.php * @todo */ class Profile extends CI_Controller {...
true
48a6ee5019f1fcb91a3990f3f27f4ad0574a01f4
PHP
luanoliveira98/Laravel---Eventos-e-Ingressos
/uhuu/app/Http/Controllers/Admin/LotController.php
UTF-8
2,622
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Lot; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class LotController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // ...
true
c3c46db396b4495f20595dc9feb72a197df3908b
PHP
MichalFrankovic/CaseStudies
/application/routes.php
UTF-8
4,179
2.625
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Simply tell Laravel the HTTP verbs and URIs it should respond to. It is a | breeze to setup your application using Laravel's RESTful ...
true
13375c977ee2f16ad2f735bf52ef692b95f56506
PHP
MindyPHP/Legacy
/Locale/GettextFile.php
UTF-8
946
2.953125
3
[]
no_license
<?php namespace Mindy\Locale; use Mindy\Helper\Traits\Accessors; use Mindy\Helper\Traits\Configurator; /** * CGettextFile is the base class for representing a Gettext message file. * * @author Qiang Xue <qiang.xue@gmail.com> * @package Mindy\Locale * @since 1.0 */ abstract class GettextFile { use Accessors...
true
4508c5918f967ebc9bb437ab3bb75cd902407042
PHP
GBozhilov/PHP-Web-Development-Basics
/03. PHP BASICS SYNTAX/BasicSyntax/16.AccessingCharsSubstrings.php
UTF-8
231
3.59375
4
[]
no_license
<?php $str = 'abcdef abcdef'; echo substr($str, 1) . "<br>"; echo substr($str, -2) . "<br>"; echo substr($str, 2, 3) . "<br>"; echo strlen($str) . "<br>"; echo str_word_count($str) . "<br>"; echo ord($str) . "<br>"; echo chr(97);
true
3fc37ea243bb5ae05c11619458006a3e23b9586b
PHP
diegodorado/ahorraseguro
/apps/frontend/modules/contact_us/actions/actions.class.php
UTF-8
1,108
2.59375
3
[]
no_license
<?php /** * contact_us actions. * * @package mendozaoferta * @subpackage contact_us * @author diego@cooperativahormigon.com.ar * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class contact_usActions extends sfActions { /** * Executes index action * * @param...
true
7fb2d886e7842911b29eca2b5616ac96be5d5492
PHP
MuhammadMamadouh/Algorithms
/Sorting/QuickSort.php
UTF-8
1,817
3.84375
4
[]
no_license
<?php /** * Sort Array using Merge sort algorithm * * Best time complexity Ω(nlog(n)) * Worst time complexity O(n2) * Average time complexity Θ(nlog(n)) * Space complexity (worst case) O(log(n)) * * @param array $arr * @return void */ function quickSort(array $arr, int $p, int $r) { if ($p < $r) { ...
true
e62914de08e01184e954d326c9aea7f29b54147e
PHP
thoom/dbm
/lib/Thoom/Provider/DbServiceProvider.php
UTF-8
1,410
2.546875
3
[]
no_license
<?php /** * DbServiceProvider Class * * @author Z.d. Peacock <zdpeacock@thoomtech.com> * @copyright (c) 2011 Thoom Technologies LLC * * @since 4/4/12 5:39 PM */ namespace Thoom\Provider; use Silex\Application; use Silex\Provider\DoctrineServiceProvider; use Silex\ServiceProviderInterface; use Thoom\Db\ManagerF...
true
f8efa858fb7ef944c62e76f30938b62ea35a799d
PHP
rickylimka/newsvine
/testing_ground/class.php
UTF-8
732
2.90625
3
[]
no_license
<?php class Video { public $id = ""; public $title = ""; public $rating = 0; public $location = ""; public $tags = ""; public $comments = []; } $videos = array(); $v = new Video(); $v->id = "nwsv001"; $v->title = "dog"; $v->rating = 5; $v->location = "-27.485614, 152.992901"; $v->tags = "#animal #funny"; $v-...
true
a2fcbef09ae0056709a1342d25699f45ed8062ad
PHP
ZhouLiHai/PHPLearning
/php_unit_reflection/Tests/reflectionTest.php
UTF-8
3,996
2.875
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; trait TestTraitExists { } class TestClassExists { use TestTraitExists; public $testPublicPropertyExists; private $testPrivatePropertyExists; protected $testProtectedPropertyExists; public function testPublicMethodExists() { } private function...
true
ddcdf55d9dcdf23880d0fb2cc3bc66377cf4010a
PHP
shangan/chenshangan521-vakuum-oj
/vakuum-web/library/application/model/MDL_Record/Detail.php
UTF-8
1,554
2.671875
3
[]
no_license
<?php /** * Show a record * * @author BYVoid */ class MDL_Record_Detail { /** * Get User By Name * @param int $user_name User Name * @return array User */ public static function getInfo($record_id) { $rs = self::getRecordBase($record_id); if (empty($rs)) { throw new MDL_Exception_Record('id'); ...
true
7f55517ff12d3b45516d27ddd96bef8ce1a7972c
PHP
sylee79/Os
/application/third_party/Smarty/plugins/function.echo.php
UTF-8
523
2.640625
3
[]
no_license
<?php /* * Smarty plugin * ------------------------------------------------------------- * File: function.echo.php * Type: function * Name: echo * Purpose: echo the variable if it isset * ------------------------------------------------------------- */ function smarty_function_echo($params, &$smart...
true
6c8a681791ac52c142bde12c190ff9d168b7e980
PHP
edysegura/php-survey
/actions/authentication.action.php
WINDOWS-1250
728
2.59375
3
[]
no_license
<?php /** * * Autenticacao do usuario * @author: Edy Segura - edy@segura.eti.br * */ session_start(); require "../includes/contextpath.inc.php"; require $baseDir . "/includes/autoload.inc.php"; $authenticationFail = ""; if(!empty($_POST["usuario"]) && !empty($_POST["senha"])) { $UsuarioDAO = ne...
true
00b27ce83eabbe9e3f1e31ae7115284d6befd706
PHP
ramiresGomes/Jogo-do-Girasol
/database/migrations/2017_06_24_160017_create_member_challenge_table.php
UTF-8
1,058
2.5625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberChallengeTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('members_challenges', function (Blueprint $tabl...
true
cb60c5d5af3de14ade16ea5d3b60eb7de5208eb5
PHP
lutfisirajs/WanTelegram
/cpu.php
UTF-8
1,144
2.96875
3
[]
no_license
<?php /** * Contoh code CPU Bot. * * @author Rizky Praditya <rizky.praditya@telkom.co.id> */ //Memasukan Code default Sensor & Memory include '../default/Sensor.php'; include '../default/Memory.php'; // Atur TOKEN bot disini $bot_token = 'MASUKAN TOKEN BOT TELEGRAM DISINI'; // Aktifkan Sensor Bot $sensor = new S...
true
00500622e3cf1f8fbd1241d9b305337b68eb2855
PHP
destonia/php_module_2
/week3/exercises/string/Validate_email.php
UTF-8
426
2.734375
3
[]
no_license
<?php function validateEmail($email){ $pattern='/^[A-Za-z0-9]+[A-Za-z0-9]*@[A-Za-z0-9]+(\.[A-Za-z0-9]+)$/'; if(preg_match($pattern,$email)){ echo $email. " Email hop le".'<br>'; }else{ echo $email . " Email ko hop le".'<br>'; } } validateEmail('a@gmail.com'); validateEmail('ab@yahoo.com'...
true
40df2daf143f2425412d2ece24d5376c5a33bcfd
PHP
Nyxis/NeverLoot
/apps/neverloot/lib/nlUser.class.php
UTF-8
1,550
2.734375
3
[]
no_license
<?php class nlUser extends sfBasicSecurityUser { /** compte correspondant à la session */ protected $compte; /** * tente de log l'utilisateur avec les données en paramètre * @param string $login * @param string $password * @return bool log ou non */ public function tryLogi...
true
9f9a719ad68de0190a2a0e0298f14d6854dc168a
PHP
MatteoPirovano/laravel-base-crud
/app/Http/Controllers/BeerController.php
UTF-8
2,012
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Beer; class BeerController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $beers = Beer::all(); return view("bee...
true
8fc8bacc32b192dd9bad4634e6f4e2c9a5722fb7
PHP
Sparkal-Dev/cometdev
/app/Http/Controllers/BlogPageController.php
UTF-8
1,808
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Category; use App\Models\Post; use Illuminate\Http\Request; class BlogPageController extends Controller { /** * Blog Page Show */ public function showBlogPage(){ $all_posts = Post::where('status', true) -> where('trash', false) -> lates...
true
59afd5cfb7d5d5468f528b21ce4dcd067aa35856
PHP
amandahrdmn/rework_digital_tech_test
/basic/models/Product.php
UTF-8
2,177
3
3
[]
no_license
<?php namespace app\models; use yii\db\ActiveRecord; class Product extends ActiveRecord { /** * Initialises all Products with a default value of deleted = 0 */ public function init() { parent::init(); $this->deleted = 0; } /** * @return array the validation rules...
true
96efc4e3f02b0ff0570a90417f83bcabd5d459d1
PHP
mAsT3RpEE/BLW
/src/Model/HTTP/Client/CURL/Helper.php
UTF-8
10,840
2.578125
3
[ "MIT" ]
permissive
<?php /** * Helper.php | Apr 12, 2014 * * @filesource * @license MIT * @copyright Copyright (c) 2013-2018, mAsT3RpEE's Zone * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * * @package BLW\HTTP * @version GIT: 0.2.0 * @author Walter O...
true
942b6692bb7c0cda8dca935dbfd27bf0d98d9baa
PHP
sj3kenne/MOBA-Team7
/Old DB Files/table-takes-courses-NOFOREIGNKEYS.php
UTF-8
1,398
2.65625
3
[]
no_license
<?php // Enable error logging: error_reporting(E_ALL ^ E_NOTICE); // mysqli connection via user-defined function include('./my_connect.php'); $mysqli = get_mysqli_conn(); $ID = $_GET['ID']; //sql code (Done by Juana) $sql_TakesCourse = "CREATE TABLE TakesCourse(courseName VARCHAR(40), courseTerm VARCHAR(6), courseY...
true
106226d3b5c272396c419e71e14f85eea2736e13
PHP
adellantado/botman-viber-driver
/src/Extensions/VideoTemplate.php
UTF-8
1,361
2.953125
3
[ "MIT" ]
permissive
<?php namespace TheArdent\Drivers\Viber\Extensions; use JsonSerializable; class VideoTemplate implements JsonSerializable { private $type = 'video'; /** * @var string */ protected $video; /** * @var null|string */ private $thumbnail; /** * @var nuLl|int */ protected $size; /** * @var null|i...
true
a3221cadf7ff38f5b837e9c584674bdbbfeda43f
PHP
YuriScorsolino/escolha-facil
/php/cadastro.php
UTF-8
1,592
2.734375
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>cadastro</title> <?php require_once'Classes/usuarios.php'; $u = new usuario; ?> </head> <body> <div id="corpo-form"> <h1>Cadastrar</h1> <form method="POST"> <input...
true
088f375ac5aef562fa6f9ae55484e354da6f1a74
PHP
Makeyko/galaxysss
/services/investigator/Base.php
UTF-8
3,061
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Дмитрий * Date: 10.09.2015 * Time: 2:52 */ namespace app\services\investigator; use app\models\Investigator; use cs\services\Url; use cs\services\VarDumper; use yii\helpers\ArrayHelper; class Base { public function className() { return get_called_class()...
true
e61d1f4d8f1a83b2be15d69eb00e45e020116f05
PHP
aaronbell1/laravel-csv-bulk-uploader
/src/BulkUploader.php
UTF-8
3,447
2.71875
3
[]
no_license
<?php namespace Aaronbell1\LaravelCsvBulkUploader; use Aaronbell1\LaravelCsvImporter\CsvLoader; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Validator; abstract class BulkUploader { protected const DATE_FORMAT = 'd/m/y'; protected $loader; protected $validator; protected $invali...
true
95b1675af29558ca2fa62ea8c70d87d5419fa130
PHP
code-wizard/faceit
/migrations/m170125_130759_add_topX_column_to_faces_table.php
UTF-8
534
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles adding topX to table `faces`. */ class m170125_130759_add_topX_column_to_faces_table extends Migration { /** * @inheritdoc */ public function up() { $this->addColumn('faces', 'top_left_x', $this->integer()); $this->addColumn('faces', 't...
true
70634eca932d4929385523d59a6185dea998835a
PHP
DianahOnyino/Parking
/database/seeds/SupermarketItemsTableSeeder.php
UTF-8
661
2.546875
3
[]
no_license
<?php use App\Item; use App\Supermarket; use Illuminate\Database\Seeder; /** * Created by PhpStorm. * User: donyino * Date: 2019-05-09 * Time: 16:03 */ class SupermarketItemsTableSeeder extends Seeder { public function run() { $supermarkets = Supermarket::all(); $supermarkets->each(func...
true
fb34c6f71669995403f9d972cdead8862675c543
PHP
oxosolutions/aione-core
/shortcodes/class-widget-area.php
UTF-8
2,422
2.796875
3
[]
no_license
<?php class OxoSC_WidgetArea { public static $args; private $widget_counter = 1; /** * Initiate the shortcode */ public function __construct() { add_filter( 'oxo_attr_widget-shortcode', array( $this, 'attr' ) ); add_shortcode( 'oxo_widget_area', array( $this, 'render' ) ); } /** * Render the ...
true
7fa6fffffaf987c1f485d90b774991abc9d5fd2c
PHP
approots/plotlinesapi
/plotlinesapi/routes/passages.php
UTF-8
3,338
2.734375
3
[]
no_license
<?php $app->get('/passagepage/:id', function ($id) use ($app) { $data = null; $response = $app->response(); $response->header('Content-type','application/json'); try { // TODO authenticate and get accountId and verify that the passed in story $id belongs to the user // get story, pas...
true
2e4895c055b7905ed6452280988ce45a7f39a7da
PHP
bitobmen/hello
/main/app/Models/Dispatch.php
UTF-8
2,510
2.6875
3
[]
no_license
<?php namespace App\Models; use Eloquent; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Support\Carbon; /** * App\Models\Dispatch. * * @property int $id * @property int $seller_id * @property...
true
d8a99a586fce6ccb4d03accdde91cae792ea0bf5
PHP
samirnijenhuis/eyes
/app/Browsers/Dusk/Traits/SupportsPhantom.php
UTF-8
2,059
2.890625
3
[ "MIT" ]
permissive
<?php namespace App\Browsers\Dusk\Traits; use RuntimeException; use Symfony\Component\Process\Process; use Symfony\Component\Process\ProcessBuilder; trait SupportsPhantom { /** * The path to the custom Phantomdriver binary. * * @var string|null */ protected static $phantomDriver; /**...
true
309cd83c35b4ef9c14ab208fbc45d05237c4cdf9
PHP
mlaopane/trailwarehouse
/src/TrailWarehouse/AppBundle/Service/Restocker.php
UTF-8
788
2.8125
3
[]
no_license
<?php namespace TrailWarehouse\AppBundle\Service; use TrailWarehouse\AppBundle\Entity\{WhatDate}; use Doctrine\ORM\EntityManagerInterface; /** * */ class Restocker { /** * Doctrine's entity manager * * @var EntityManagerInterface */ protected $em; public function __construct(Entity...
true
561e0825669e32110454c58c395bb4d1428b0764
PHP
yzl2018/gt
/app/Models/CodeConfigModel.php
UTF-8
1,168
2.546875
3
[]
no_license
<?php namespace App\Models; use App\Http\Toolkit\AutoGenerate; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class CodeConfigModel extends Model { use AutoGenerate; /** * 编码配置信息表 * * @var string */ protected $table = "code_config"; /** * config code names * * @var arra...
true
6d7b0dfc635c803a507120d0c71126adff7a7a7d
PHP
SLNC-DIMP/Cinch
/protected/models/FileInfo.php
UTF-8
3,799
2.609375
3
[ "BSD-3-Clause", "Unlicense" ]
permissive
<?php /** * This is the model class for table "file_info". * * The followings are the available columns in table 'file_info': * @property integer $id * @property string $org_file_path * @property string $temp_file_path * @property integer $file_type_id * @property integer $checksum_created * @property string ...
true
dae24c12b8f77da00e13761784ee156065d669cd
PHP
LukeZek/client
/src/LukeBozek/Authentication/BasicAuthentication.php
UTF-8
588
2.8125
3
[]
no_license
<?php namespace LukeBozek\ApiClient\Authentication; class BasicAuthentication { private $authData; private $authenticator; private $client; public function __construct($client, array $options) { $this->client = $client; $this->authData = $options; $this->authenticator = $...
true
27db4485a0a78e9ede0576a14bcede4ef6ee7429
PHP
wecangonow/websites
/background/admin/includes/lib_common.php
UTF-8
4,089
2.703125
3
[]
no_license
<?php /** * 系统提示信息 * * @access public * @param string msg_detail 消息内容 * @param int msg_type 消息类型, 0消息,1错误,2询问 * @param array links 可选的链接 * @param boolen $auto_redirect 是否需要自动跳转 * @return void */ function sys_msg($msg_d...
true