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
30378e9846118e0cc35e99b6fed79f436baf955c
PHP
HubQin/design-patterns-in-php
/Facade/ILetterProcess.php
UTF-8
441
2.90625
3
[]
no_license
<?php namespace hubqin\DesignPatterns\Facade; /** * Interface ILetterProcess * 使用《设计模式之禅》中的例子 * @package hubqinj\DesignPatterns\Facade */ interface ILetterProcess { //写信的内容 public function writeContext($string); //写信封 public function fillEnvelope($address); //把信放到信封里 public function letterI...
true
b4dfd6f1137f9765fddee2d2bf82eff09a2c4ba3
PHP
DavidPolo96/sigma
/sigma/application/models/user/User.php
UTF-8
1,150
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * */ class User extends CI_Model { private $sNombre; private $sCorreo; private $sDepartamento; private $sCiudad; function __construct() { parent::__construct(); $this->load->database(); } public function set...
true
ac586d07ef3209cab7507eb1b93f23333b845c38
PHP
sgargili/dzhinn
/PAVTree/service/tools/XmlConvertor.class.php
WINDOWS-1251
1,814
3.171875
3
[]
no_license
<?php /** * XmlConvertor. * XML. * * @author APopov * @date: 2010-05-27 */ class XmlConvertor { private $writer; private $version = '1.0'; private $encoding = 'UTF-8'; private $rootName = 'root'; function __construct() { $this->writer = new XMLWriter(); } public fun...
true
5e1951d1d0272c24b2fa8cfeb65629a41bbb28f5
PHP
AlexDateDev/Factory-PHP
/File/Open.php
ISO-8859-2
1,717
2.796875
3
[]
no_license
<?php // ---------------------------------------------------------------------------- // Open // // // // Date : 26/06/2013 // By : Type here your name or nickname. // ---------------------------------------------------------------------------- ?> <?php /* * * r * Noms permet llegir. No es pot esc...
true
bc2647b8bcd6721ff73ffae3637b146832530d60
PHP
pengyaxiong/gather
/public/vendor/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Command/RenameFolder.php
UTF-8
771
2.578125
3
[ "LicenseRef-scancode-commercial-license", "LGPL-2.0-or-later", "BSD-3-Clause", "LGPL-3.0-only", "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace CKSource\CKFinder\Command; use CKSource\CKFinder\Acl\Permission; use CKSource\CKFinder\Exception\InvalidRequestException; use CKSource\CKFinder\Filesystem\Folder\WorkingFolder; use Symfony\Component\HttpFoundation\Request; class RenameFolder extends CommandAbstract { protected $requires = array(P...
true
cc5678ea0b2b3101a4f8bdf22aa4d3aa1b9e8903
PHP
JCTubio/ProyectoDH
/legacy/sitio_root/clases/usuario.php
UTF-8
1,591
2.984375
3
[]
no_license
<?php // comentario de Nico // if ($_POST) { // $errores = Validador::validarInformacion($_POST, $db); // // if (!count($errores) > 0) { // // } // } class Usuario { private $nombre; private $correo; private $contrasenia; private $avatar; public function __construct($datos) { $this->nombre = $d...
true
983b1e79ac4d27bd690ccdbd27404c2b172755d4
PHP
comapi/dotmailer-magento2-extension
/Observer/Cpaas/CartChanged.php
UTF-8
1,811
2.59375
3
[ "MIT" ]
permissive
<?php namespace Dotdigitalgroup\Email\Observer\Cpaas; /** * Process changes to the current cart. */ class CartChanged implements \Magento\Framework\Event\ObserverInterface { /** * @var \Dotdigitalgroup\Email\Helper\Cpaas */ private $_cpaas_helper; /** * @var \Psr\Log\LoggerInterface ...
true
483231d50207fecc8b9c467b2f1309ccf1081918
PHP
danielribeirobr/karinakorn
/index.php
UTF-8
1,230
2.53125
3
[]
no_license
<?php /** * Arquivo controlador de requisicoes. Todas as requisicoes passam por este arquivo aquivo * Criado em: 22/11/2006 * Autor: Daniel Ribeiro <daniel@danielribeiro.com> * * Esta aplicacao usa a metodologia de MVC criada por mim. A estrutura da aplicacao eh dividida por modulos e acoes * Um modulo eh carreg...
true
7fd2815aac052f2285327bce3f7196c5a8249fca
PHP
indrajithbandara/EasySHU-backend
/class/CurlNetwork.php
UTF-8
5,871
3.109375
3
[ "Apache-2.0" ]
permissive
<?php //////////////// 自动加载库 /////////////// spl_autoload_register(function($class){ include $class.".php"; //echo "include $class.php!"."<br>"; }); ////////////////////////////////////////// /** * Curl网络请求类 * 通过导出$sessionId可以在多个Curl请求中使用同一个会话 */ class CurlNetwork...
true
3144b47f95e47b049b3722d7097e6d21ee034b90
PHP
iamalfonse/Popboard2
/submitgroupsetup.php
UTF-8
1,788
2.546875
3
[]
no_license
<? include("config.php"); if (isset( $_COOKIE['login_cookie'] )) { //if user is logged in $username = mysqli_real_escape_string($dblink, strtolower($_COOKIE['login_cookie'])); $session_hash = mysqli_real_escape_string($dblink, $_COOKIE['hsh']); iu_check_user_setup(); //make sure user has finished setup of avatar ...
true
32236ce37fe0d533391e54094b78a40aa923350a
PHP
shaohan/movie-trip-web
/test3.php
UTF-8
3,139
2.546875
3
[]
no_license
<!DOCTYPE html> <html class="full" lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <title>Movie Trip - Search Result</title> <!-- CSS sheets --> <link href="css/style.css" ...
true
8ec4c4cee38a72259d943c6a807f96fc0a4ded5e
PHP
weew/http-blueprint
/src/Weew/HttpBlueprint/IResponseBuilder.php
UTF-8
342
2.546875
3
[ "MIT" ]
permissive
<?php namespace Weew\HttpBlueprint; use Weew\Http\IHttpResponse; use Weew\Router\IRoute; interface IResponseBuilder { /** * @return IHttpResponse */ function buildDefaultErrorResponse(); /** * @param IRoute $route * * @return IHttpResponse */ function buildResponseForRo...
true
e96384098ca5aa98e611cd3875d636642665438e
PHP
xjhnear/message.api.com
/vendor/rcrowe/twigbridge/src/TwigBridge/Extensions/HelperLoader.php
UTF-8
2,850
2.921875
3
[ "MIT" ]
permissive
<?php /** * Brings Twig to Laravel. * * @author Rob Crowe <hello@vivalacrowe.com> * @license MIT */ namespace TwigBridge\Extensions; use Illuminate\Foundation\Application; use TwigBridge\Extension; use Twig_Environment; use Twig_SimpleFunction; use Twig_SimpleFilter; use InvalidArgumentException; /** * Lets T...
true
6518ed2b5a578fec86c290daff79a7af251c3639
PHP
soz3w/eCommerce
/application/classes/Model/User.php
UTF-8
760
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php //require_once("Model.php"); class Model_User { private $db; public function __construct() { $this->db = new Helper_database(); } public function authenf($email) { $sql = "select *"; $sql.= " from users "; $sql.= " where UserEmail = ?"; return $this->db->queryOne($sql, array($email)); } publi...
true
2da62873056deecb8fb6c4269b2a860c785bfbe0
PHP
GaganSuneja/simple_blog
/inc/functions.inc.php
UTF-8
3,628
2.921875
3
[]
no_license
<?php function retrieveEntries($db,$page,$url=NULL) { if(isset($url)) { $e=NULL; $sql = "SELECT id,image,page,title,entry,created FROM entries WHERE url=? LIMIT 1"; $stmt = $db->prepare($sql); $stmt->execute(array($url)); // Save the returned entry array $e = $stmt->fetch(); // Set the fulldisp flag...
true
16d68290e8912d275124d05d738b83023671d970
PHP
TITAN-UZ/krafti
/core/src/Controllers/Web/Feedback.php
UTF-8
1,523
2.59375
3
[]
no_license
<?php namespace App\Controllers\Web; use App\Service\Fenom; use App\Service\Mail; use Psr\Http\Message\ResponseInterface; use Vesp\Controllers\Controller; class Feedback extends Controller { public function post(): ResponseInterface { if (!$name = trim($this->getProperty('name'))) { retur...
true
92f10eb5a0a5eb918fb499691954fba7d8966805
PHP
robynitp/commlabweb
/week5/youtube_api.php
UTF-8
2,211
2.75
3
[ "Unlicense" ]
permissive
<!DOCTYPE HTML> <html> <head> <title>YouTube API</title> <style type="text/css"> li{ list-style-type:none; margin-bottom: 30px; } </style> </head> <body> <?php /* Connecting to the YouTube API This code uses a PHP library to make the API connections to Google services Download the library here: https://c...
true
98297dd011a74e513e9c3c5bc4094863f097a6c2
PHP
CelsoDeCarvalho/amizade
/model/dao/UserDAO.php
UTF-8
1,280
3.25
3
[]
no_license
<?php require_once "../connection/ConnectionFactory.php"; class UserDAO{ public function add(User $user){ $querry="INSERT INTO user(nickname,email,pass,state,genre,birth_date,status,image) VALUES (:nickname,:email,:pass,:state,:genre,:birth_date,:statu,:image)"; try{ $connec...
true
d5f6c76c95a20a454d985ad0eb20649541f9f241
PHP
RainXC/DentalClinic
/app/Article/Http/Controllers/ArticleController.php
UTF-8
364
2.546875
3
[]
no_license
<?php namespace App\Article\Http\Controllers; use App\Article\Models\Article; use Illuminate\Routing\Controller as BaseController; use View; class ArticleController extends BaseController { public function show($slug) { $articles = new Article(); $article = $articles->find($slug); return View::make('artic...
true
f706218f500b35955d0a9ea79e3c5e22ac8a7bf7
PHP
camburley/Trackloop
/stage/server/controllers/user.php
UTF-8
12,639
2.53125
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
<?php require_once("classes/class.db.php"); class User extends DB { private $_params; public function __construct($params) { $this->_params = $params; } public function validate($field) { switch($field) { case 'username': if(trim($this->_params['username'])!="") { return true; } else...
true
fdd1a352909b3eeba1320bdef5ea1b2f6ca46c66
PHP
ArielEspinoza07/nurse-service-api
/database/migrations/2021_06_05_174357_create_medical_note_types_table.php
UTF-8
1,057
2.65625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; /** * Class CreateMedicalNoteTypesTable. */ class CreateMedicalNoteTypesTable extends Migration { /** * Run the migrations. * * @return void */ public fun...
true
3bedf6f875d8bf73638fbc69d184958c633c36d9
PHP
Gazuka/SymHome0
/src/Entity/Recette.php
UTF-8
3,010
2.578125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\RecetteRepository") */ class Recette { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column...
true
526fab688d7ee1468f00be8d60e82e38481e7f73
PHP
javanile/human-mink-extension
/src/Traits/WaitTrait.php
UTF-8
324
2.578125
3
[ "MIT" ]
permissive
<?php namespace Javanile\HumanMinkExtension\Traits; trait WaitTrait { /** * @Given I wait until the page loads */ public function iWaitUntilThePageLoads() { sleep(4); } /** * @Then I look for results */ public function iLookForResults() { sleep(5); ...
true
aee73a0bf5ea6bc2b906d7f7ed8041a365f8eea0
PHP
Anujkaushish/laravel_boiler
/app/Http/Controllers/API/homesAPIController.php
UTF-8
3,069
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers\API; use App\Http\Requests\API\CreatehomesAPIRequest; use App\Http\Requests\API\UpdatehomesAPIRequest; use App\Models\homes; use App\Repositories\homesRepository; use Illuminate\Http\Request; use App\Http\Controllers\AppBaseController; use Response; /** * Class homesController ...
true
1562e027e34187598b72cdca277c75a85fc20494
PHP
adminproconty/SGI-ANGULAR
/api/personas/getByTipoDocumento.php
UTF-8
2,074
2.78125
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-...
true
544814204f074bf133ad00f82f20a49f82a250c3
PHP
daavka1127/eda
/database/migrations/2020_06_16_065356_create_norms_table.php
UTF-8
759
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateNormsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tb_norms', functi...
true
88876fc277aa010bf54edd2c2e169d121fedfff0
PHP
CLERC-Thomas/Neptune
/php/verification.php
UTF-8
3,177
2.90625
3
[]
no_license
<?php $bdd = new PDO('mysql:host=localhost;dbname=hotel;charset=utf8','root', '', array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); if(isset($_POST['forminscription'])) { $login = htmlspecialchars($_POST['pseudo']); $mail = htmlspecialchars($_POST['mail']); $mail2 = htmlspecialchars($_POST['mail2']);...
true
411b09beac2ccc24f3b7a00d32868c473d54507d
PHP
nittics1991/Concerto
/_mvc/Concerto/standard/modeldbs/ModelDbTreeQueryTrait.php
UTF-8
15,400
2.859375
3
[]
no_license
<?php /** * ModelDbTreeQueryTrait * * @version 220613 */ declare(strict_types=1); namespace Concerto\standard\modeldbs; use InvalidArgumentException; use PDOStatement ; use Concerto\standard\ModelData; trait ModelDbTreeQueryTrait { /** * 詳細(深度・パス)取得 * * @param ModelData $where ID * @r...
true
ca89b74518f0782bcd50b7038cd28a884e886040
PHP
anunay/stentors
/lib/Cible/View/Helper/LocateFile.php
UTF-8
3,274
2.734375
3
[]
no_license
<?php /** * Cible * * * @category Cible * @package Cible_View * @subpackage Cible_View_Helper * @copyright Copyright (c) 2009 Cible Solutions d'affaires * (http://www.ciblesolutions.com) * @version $Id: */ /** * Allow to retrieve the path for files such as *.css, *.js * * @category ...
true
61b84e7c3456a654bd60b87fedc09b349a7e3541
PHP
NickSnellock/Censornet
/app/Views/BaseView.php
UTF-8
333
2.9375
3
[ "MIT" ]
permissive
<?php namespace NickSnellock\Views; abstract class BaseView { /** * @var array */ protected $data; protected $booleans = []; public function __construct(array $data, array $booleans = []) { $this->data = $data; $this->booleans = $booleans; } abstract function __...
true
96f085a873d9191b2cdb6d245e1616e65a6e3b6e
PHP
Edestus789/FirstProject
/controllers/SiteController.php
UTF-8
1,725
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php // Site Controller namespace app\controllers; use Yii; use yii\web\Controller; use app\models\Robot; use app\models\RobotSearch; use app\models\Discipline; use yii\web\NotFoundHttpException; class SiteController extends GeneralSiteController { /** * Finds the Robot model based on its primary key v...
true
51960d953dd314365e64d51be5962d36015e2fb8
PHP
alejobit/placetopay-pse-php
/src/Struct/Authentication.php
UTF-8
1,387
2.984375
3
[ "MIT" ]
permissive
<?php namespace PlacetoPay\PSE\Struct; use PlacetoPay\PSE\Helper\Validator; class Authentication { /** * @var string */ private $login; /** * @var string */ private $tranKey; /** * @var string */ private $seed; /** * @var ArrayOfAttribute */ ...
true
21baa971541b0470acfb0f200ad1a47cffd33a23
PHP
kevinmel2000/apps_omspan
/libs/MysqlSelect.php
UTF-8
5,792
3.046875
3
[]
no_license
<?php /** * Class for SQL SELECT generation and results. * clausa FROM, JOIN, WHERE, GROUP, ORDER, USING , LIMIT */ class MysqlSelect { protected $_adapter; const FROM = 'FROM'; const COLUMNS = 'COLUMNS'; const JOIN = 'JOIN'; const WHERE = 'WHERE'; const GROUP = 'GROUP'; const ORDER = ...
true
f50068c40759d4a627330a6b3c566b638adbae97
PHP
recorehosting/whmcs
/WHMCS Mollie/modules/gateways/Mollie/API/CompatibilityChecker.php
UTF-8
2,662
2.9375
3
[]
no_license
<?php class Mollie_API_CompatibilityChecker { public static $MIN_PHP_VERSION = "5.2.0"; public static $REQUIRED_CURL_FUNCTIONS = array( "curl_init", "curl_setopt", "curl_exec", "curl_error", "curl_errno", "curl_close", "curl_version" ); public function checkCompatibility() { if( !$this->satis...
true
ae417213592b73dc228449274ab9af27e6ceebfe
PHP
ronak16/rest-api-slim-php
/src/Repository/UserRepository.php
UTF-8
4,388
3.234375
3
[]
no_license
<?php namespace App\Repository; use App\Exception\UserException; /** * Users Repository. */ class UserRepository extends BaseRepository { /** * @param \PDO $database */ public function __construct(\PDO $database) { $this->database = $database; } /** * Check if the user e...
true
70c45d760d6208aa7b5809b198ec148e3081b024
PHP
kaaboaye/mieszkowaw.cba.pl
/php/calc/calc.php
UTF-8
1,591
2.953125
3
[]
no_license
<form method="post"> <?php $a=$_POST['a']; $b=$_POST['b']; $dz=$_POST['dz']; if (isset($_POST['dz'])) { if($dz == "do") $defdo = "selected=selected"; elseif($dz == "od") $defod = "selected=selected"; elseif($dz == "dz") $defdz = "selected=selected"; elseif($dz == "mn") $defmn = "selected=selecte...
true
941673c01231334897ff8e16d7a558449891cc4f
PHP
ant-hill/queue-test
/src/QueueTests/QueueDriver/RabbitMQPeclDriver.php
UTF-8
2,474
2.859375
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: unit * Date: 17.03.15 * Time: 12:16 */ namespace QueueTests\QueueDriver; class RabbitMQPeclDriver implements DriverInterface { /** * @var \AMQPConnection */ private $conn; /** * @var \AMQPExchange[] */ private $exchanges = []; ...
true
b9cf6b6118fb8927d7919631facf0f3705536c33
PHP
Kubinashi/BattlenetApiClient
/src/WorldOfWarcraft/CharacterProfileApi/Pvp/Service/PvpService.php
UTF-8
1,333
2.6875
3
[ "MIT" ]
permissive
<?php namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Pvp\Service; use Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Pvp\Model\BracketValueObject; use Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Pvp\Model\PvpValueObject; /** * @author Willy Reiche * @since 2017-0...
true
20c64f9f5cb07bc1371c105747b2d88be7db1f0e
PHP
pekkis/directory-calculator
/tests/Pekkis/DirectoryCalculator/Tests/Strategy/TimeStrategyTest.php
UTF-8
1,818
2.65625
3
[]
no_license
<?php /** * This file is part of the pekkis-directory-calculator package. * * For copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Pekkis\Tests\DirectoryCalculator; use Pekkis\DirectoryCalculator\Strategy\TimeStrategy; use Pekkis\Director...
true
278b0660e9960a0b5fb433430b11d67f695ed96c
PHP
tashbalrai/codeigniter-layout-js-css-meta
/core/VB_Loader.php
UTF-8
4,129
2.515625
3
[ "MIT" ]
permissive
<?php /** The MIT License (MIT) Copyright (c) 2016 Vipan Balrai Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
true
1a0354f6ecf172d65a59a3fc4b4bc6ef78a3feda
PHP
garodaj24/mvcframework
/System/Db.php
UTF-8
2,301
3.109375
3
[]
no_license
<?php namespace System; class Db{ private $connection = null; public function __construct( $dbhost = "localhost:3306", $dbname = "mvc_framework", $username = "root", $password = "Garod@248") { $this->connection = new \mysqli($dbhost, $username, $password, $dbname); ...
true
7000f951d10a8a08c8997d920e98d78ff91ec660
PHP
slickframework/slick
/tests/unit/Database/Sql/Ddl/Constraint/ForeignKeyTest.php
UTF-8
1,584
2.53125
3
[ "MIT" ]
permissive
<?php /** * Foreign Key constraint test case * * @package Test\Database\Sql\Ddl\Constraint * @author Filipe Silva <silvam.filipe@gmail.com> * @copyright 2014 Filipe Silva * @license http://www.opensource.org/licenses/mit-license.php MIT License * @since Version 1.1.0 */ namespace Database\Sql\Ddl\C...
true
9797c310ff342193b6102d5e2de842ce37c9d28e
PHP
vetal06/logTableAction
/src/components/tableDependency/Dependency.php
UTF-8
2,398
2.671875
3
[]
no_license
<?php namespace dvlp\logTableAction\components\tableDependency; use dvlp\logTableAction\components\tableDependency\drivers\DepDriver; use dvlp\logTableAction\components\tableDependency\drivers\MysqlDriver; use yii\db\Exception; use yii\helpers\ArrayHelper; /** * Class Dependency * @package backend\modules\logTableAc...
true
1abfda71b078c157b7d7decb446e5340081a3781
PHP
Peeppers/Projet-BDD
/user.php
UTF-8
5,344
2.765625
3
[]
no_license
<?php //Schwing Lucas //Porcu Baptiste session_start(); class TableRows extends RecursiveIteratorIterator { function __construct($it) { parent::__construct($it, self::LEAVES_ONLY); } function current() { return "<td style='width:150px;border:1px solid black;'>" . parent::curren...
true
368b33b44b351a20b59753433f4a62c891350c37
PHP
RyanAquino/m0rbi-aliquam
/Admin Backups/login/admin.php
UTF-8
841
2.546875
3
[]
no_license
<?php include('session.php'); if($_SESSION['login_user']=='admin'){ ?> <!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <title>Document</title> </head> <body> <?php echo "hi"; ?> <h1>Welcome ADMIN! </h1> <a href='logout.php'>Logout</a> <div class="content"> <?php $s...
true
7f45a794a3990fdd2f3d96c530cc8b1c073f2f82
PHP
XTishka/crm_usiz_zf3
/module/Document/src/Document/Service/FinanceManager.php
UTF-8
13,118
2.53125
3
[]
no_license
<?php namespace Document\Service; use Application\Service; use ArrayObject; use Contractor\Entity\ContractorCompany; use Contractor\Service\Repository\DatabaseContractorAbstract; use Contractor\Service\Repository\DatabaseContractorCarrier; use DateTime; use Document\Domain\TransactionEntity; use Document\Exception; u...
true
2ec4563a56a9d3085cb255ad6f1c19e9e322f133
PHP
repo-storage/october-local
/plugins/autumn/pages/components/PageView.php
UTF-8
1,379
2.578125
3
[ "MIT" ]
permissive
<?php namespace Autumn\Pages\Components; use Autumn\Pages\Models\Page; use Cms\Classes\ComponentBase; use Cms\Classes\Layout; use Cms\Classes\Theme; use Response; use View; class PageView extends ComponentBase { public $data; public $layout; public function componentDetails() { return [ ...
true
f7036c4ddd569d4d3c2914e933b33858beccfc8c
PHP
tuanlvse294/CHome
/app/Http/Controllers/HomeController.php
UTF-8
4,485
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Offer; use Carbon\Carbon; use Doctrine\DBAL\Query\QueryBuilder; use Illuminate\Http\Request; use Illuminate\Support\Facades\Input; class HomeController extends Controller { //those consts are used for searching const AREAS = ['all' => 'Diện tích', '-30' => "< 30...
true
88a77449946388a5a0f93e146b4f8f053c64fa92
PHP
luoxq77123/BS
/app/models/task_audit_step-20130523.php
UTF-8
3,297
2.65625
3
[]
no_license
<?php App::import('Vendor', 'ChangeEncode', array('file' => 'someoperation' . DS . 'class.change_encode.php')); class TaskAuditStep extends AppModel { public $name = 'TaskAuditStep'; public $useTable = 'et_nmpgmauditliststep'; //public $primaryKey = 'workflowid'; /** * The sets of the primary keys field for th...
true
d88bc6ffc680e8c0f8510f254230ee15cdb667c4
PHP
OnTheGoSystems/wpml-config
/bin/validate
UTF-8
600
2.515625
3
[]
no_license
#!/usr/bin/env php <?php if ( $argc !== 2 || ! isset( $argv[1] ) || ! file_exists( $argv[1] ) ) { echo 'File does not exist.' . PHP_EOL; exit( 1 ); } $file = $argv[1]; $content = file_get_contents( $file ); libxml_use_internal_errors( true ); $xml = new DOMDocument(); $xml->loadXML( $content ); $xml->schemaValid...
true
e98464d4c9f9a9edec944021c3e551ffeaeb3b37
PHP
semteacher/pregnacy_cdss
/Model/Symptoms_Model.class.php
UTF-8
3,086
2.90625
3
[]
no_license
<?php require_once (dirname(__FILE__) ."/../../../../library/sql.inc"); class Symptoms_Model { // we define attributes // they are public so that we can access them using $symptoms->cat_name directly var $id; var $symp_name; var $symp_notes; var $id_order; var $id_category; var $is_multi;...
true
6a7d94a0a89d87cf594a7e1211f042fbea65cfc0
PHP
alchubirka/Booker_22-07-19
/server/api/application/controllers/User.php
UTF-8
6,269
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lotus * Date: 6/23/19 * Time: 1:47 PM */ namespace application\controllers; use application\core\Controller; use \Firebase\JWT\JWT; class User extends Controller { public $loginUserName; /** * Get all users, method - POST * @return $var| array | succ...
true
20463f3c3c0911a6bfe679028cbd0b6d89baea27
PHP
ishajoglekar/Blog-Management
/classes/helper_classes/DependencyInjector.php
UTF-8
477
3.25
3
[ "MIT" ]
permissive
<?php class DependencyInjector { private $dependencies = []; public function set(string $key,$value) { $this->dependencies[$key] = $value; } public function get(string $key) { if(isset($this->dependencies[$key])) { return $this->dependencies[$key]; ...
true
1c7676f0ac1839710536d60b94c5a1ec96d2cf71
PHP
benanamen/perfect-validation
/tests/Unit/Validation/ValidatorTest.php
UTF-8
1,818
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace Unit\Validation; use PerfectApp\Validation\ValidationStrategy; use PerfectApp\Validation\Validator; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(Validator::class)] class ValidatorTest extends TestCase { public function testVa...
true
1802f44bf4020ff87d0e9c4c329ab8d716b8cbde
PHP
shwrm/sheepla-sdk-php
/src/Request/CreateShipment.php
UTF-8
1,322
2.671875
3
[ "MIT" ]
permissive
<?php namespace Sheepla\Request; use JMS\Serializer\Annotation as JMS; /** * @JMS\XmlRoot("createShipmentRequest") */ class CreateShipment extends AbstractRequest { /** * @JMS\Type("array<Sheepla\Request\Shipment\Shipment>") * @JMS\XmlList(entry="shipment") */ private $shipments; /** ...
true
259f95c7604a7e378e78cfd0dae6ab5ef94672c4
PHP
mduk/StrategyPattern
/tests/lib/Mock/Delivery/AddressTest.php
UTF-8
881
2.53125
3
[]
no_license
<?php namespace Mock\Delivery; require_once dirname(__FILE__) . '/../../../../lib/Mock/Delivery/Address.php'; /** * Test class for Address. * Generated by PHPUnit on 2012-03-22 at 15:41:06. */ class AddressTest extends \PHPUnit_Framework_TestCase { /** * @var Address */ protected $object; /** * Sets up...
true
b5bb87cbfdae6f00b11e60219a1b3ca7ffe0e47a
PHP
oscarotero/Embed
/src/Http/FactoryDiscovery.php
UTF-8
1,933
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Embed\Http; use Psr\Http\Message\RequestFactoryInterface; use Psr\Http\Message\ResponseFactoryInterface; use Psr\Http\Message\UriFactoryInterface; use RuntimeException; abstract class FactoryDiscovery { private const REQUEST = [ 'Laminas\Diactoros\RequestFactory...
true
f251e60562ffb48346b8741b24e70c743d7bac3a
PHP
man0551hk/yellow-box
/helpers/email_helper.php
UTF-8
1,242
2.609375
3
[ "MIT" ]
permissive
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; class Email { public static function SendEmail($content, $toEmail, $subject) { // $target_dir = Url::getPath('config'); // $fileName = "emailSetting.json"; // $emailSett...
true
56e9d7b175a441d180822d54def322efa916a7c9
PHP
janiskelemen/laravel-setting
/src/Contracts/SettingStorageContract.php
UTF-8
898
2.9375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace JanisKelemen\Setting\Contracts; interface SettingStorageContract { /** * Return all data. * * @return array */ public static function all(); /** * Return setting value or default value by key. * * @param string $key * @param string $value * ...
true
9549ddee2d5f1b7fd40e48f4962df5e9f654e908
PHP
RobinRadic/radic-php-cli
/src/Console/ConfigCommand.php
UTF-8
3,519
2.71875
3
[ "MIT" ]
permissive
<?php /** * Part of the Sebwite PHP packages. * * License and copyright information bundled with this package in the LICENSE file */ namespace Radic\Console; use Symfony\Component\Console\Output\OutputInterface; class ConfigCommand extends Command { protected $signature = 'config ...
true
afc5b1209d0e3b2fff93032ad32ed32a0ec15cf9
PHP
xiayiyongphper/pintuan
/api/service/callService/order/OrderStatisticsProxy.php
UTF-8
592
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace service\callService\order; use message\order\OrderNumberRequest; use message\order\OrderNumberResponse; use service\callService\CallServiceBase; /** * Class Home */ class OrderStatisticsProxy extends CallServiceBase { /** * 返回请求协议对象 * @return \framework\protocolbuffers\Message *...
true
2b972fcf806630ea270fa6ff0a1fe3b300d45c41
PHP
AhmedHdeawy/orcas
/src/app/Services/UserFactory/UserProvider.php
UTF-8
555
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Services\UserFactory; class UserProvider { private AbstractProviderFactory $factory; /** * When we want to Use another Provider * @param AbstractProviderFactory $factory * * @return void */ public function setFactory(AbstractProviderFactory $factory) : void ...
true
b7973416840c08f517379888b6402c3377ac9739
PHP
abrek-teber/HospitalAutomation-PHP-Android
/androidapi/veritabani/ayarlar.php
UTF-8
274
2.59375
3
[]
no_license
<?php try { $db = new PDO("mysql:host=localhost;dbname=myyhospital_1", "myyhospital_user", "qgR-@1xk8RGm"); if (!$db){ die("Veritabanına bağlanırken biraz problem yaşıyoruz PDO Hatası! "); } } catch ( PDOException $e ){ print $e->getMessage(); } ?>
true
13b0f6f78ed5f8d855f144c1b394dcb9cff370e1
PHP
Bort86/dawbio2_class
/m07/examen php/Examen/util/CategoryFormValidation.class.php
UTF-8
2,572
2.953125
3
[]
no_license
<?php class CategoryFormValidation { const ADD_FIELDS = array('id','name'); const MODIFY_FIELDS = array('id','name'); const DELETE_FIELDS = array('id'); const SEARCH_FIELDS = array('id'); const NUMERIC = "/[^0-9]/"; const ALPHABETIC = "/[^a-z A-Z]/"; public static function checkD...
true
e32a79f734544ae08a9038fa38e8425bb0d66bd7
PHP
ngant5/zoo
/admin/login.php
UTF-8
3,441
2.5625
3
[ "MIT" ]
permissive
<?php session_start(); require "../connection.php"; $user = $pass = $msg = ""; if ($_SERVER['REQUEST_METHOD'] == "POST") { $user = $_POST['user']; $pass = $_POST['pass']; $conn = conn_db(); $sql = "SELECT * FROM users WHERE username = '{$user}' "; $result = mysqli_query($conn, $sql); if (mysql...
true
e59b47fa4c1015aeb477ee9dbc9cacdc601b9ecc
PHP
mvlabs/prooph-skeleton
/src/Infrastructure/EventListener/Projection/AnEventProjector.php
UTF-8
584
2.515625
3
[]
no_license
<?php declare(strict_types = 1); namespace MVLabs\ProophSkeleton\Infrastructure\EventListener\Projection; use Doctrine\DBAL\Connection; use MVLabs\ProophSkeleton\Domain\DomainEvent\AnEvent; final class AnEventProjector { /** * @var Connection */ private $connection; public function __constru...
true
b5dfbf99e556b8fb426ebcd08284854fa8e92e5e
PHP
hoaitn/bmw-site
/application/modules/admin/controllers/VideoController.php
UTF-8
2,852
2.515625
3
[ "MIT" ]
permissive
<?php class Admin_VideoController extends Zend_Controller_Action{ function init() { $Member = new My_Plugin_Auth ( $this->getRequest () ); $this->Member = $_SESSION ['Member']; } private function _checkForm($form) { $error = array (); if (empty ( $form ['name'] )) $error [] = 'Bạn chưa nhập tiêu đề vi...
true
5505a05cc643406c009d7f445c5b31065c8d3918
PHP
ITAAcademy/IntITA
/protected/models/Project.php
UTF-8
4,520
2.765625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This is the model class for table "project". * * The followings are the available columns in table 'project': * @property integer $id * @property integer $id_leader * @property integer $is_completed * @property string $title * @property string $start_date * @property integer $mark * @property str...
true
9e411a52bccf2205f6ede4d8e7c265571f47ee55
PHP
fromz/camunda-php
/gen/vendor/thefrozenfire/swagger/src/Swagger/Exception/UndefinedPropertySchemaException.php
UTF-8
600
2.625
3
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Swagger\Exception; class UndefinedPropertySchemaException extends \UnexpectedValueException { use AdditionalExceptionContextTrait; protected $message = 'Schema is not defined for property of schema'; public function setPropertyName($propertyName) { $this->addAdditional...
true
341ce48f421f74f6100aaeb9e1eaa2115f578322
PHP
Reinis/matchmaker
/app/Entities/Collections/Images.php
UTF-8
775
3.34375
3
[]
no_license
<?php declare(strict_types=1); namespace Matchmaker\Entities\Collections; use ArrayIterator; use Countable; use IteratorAggregate; use Matchmaker\Entities\Image; class Images implements IteratorAggregate, Countable { /** * @var Image[] */ private array $images = []; public function __const...
true
d047e3d2d63220944ac9c7a095e6bf16e6106137
PHP
dedelita/BooksProjectApi
/src/Repository/CommentRepository.php
UTF-8
2,038
2.515625
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Comment; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\ORM\EntityManager; use Doctrine\Persistence\ManagerRegistry; use Doctrine\ORM\EntityManagerInterface; /** * @method Comment|null find($id, $lockMode = null, $lockVersion = null...
true
c21d8e57eae6e43412e739fc36b97c99547341d3
PHP
Drane8/DWES
/UT3/Formularios03_AL/ejemplo02.php
UTF-8
693
2.875
3
[]
no_license
<?php $nombre = $_POST['nombre']; if (empty($nombre)) { $nombre .= "No introducido"; } $resultado = "Nombre: $nombre<br>"; $aficiones = ""; if (isset($_POST['cine'])) { $aficiones .= "<li>" . $_POST['cine'] . "</li>"; } if (isset($_POST['lectura'])) { $aficiones .= "<li>" . $_POST['lectura'] . "</li>"; } ...
true
9beba15476b6ac5a1eff207dd70baaa2c7c097bd
PHP
kub4n/Webprz
/Modules/Blog/Events/PostContentIsRendering.php
UTF-8
757
2.875
3
[ "MIT" ]
permissive
<?php namespace Modules\Blog\Events; class PostContentIsRendering { /** * @var string The body of the page to render */ private $content; private $original; public function __construct($content) { $this->content = $content; $this->original = $content; } /** ...
true
105268c0e785b2f978391c68f3721b6eaf440b62
PHP
ganyariya/ImageSNS
/database/create/drop_users.php
UTF-8
244
2.625
3
[]
no_license
<?php include_once "./../Database.php"; $sql = "DROP TABLE Users"; try { $db = new Database(); $pdo = $db->pdo(); $pdo->query($sql); } catch (PDOException $e) { echo $e; exit(); }
true
dfa12233902319353e8a666aabc24964436cba83
PHP
anilkobakoglu/framework
/system/database/crud.php
UTF-8
3,344
2.84375
3
[]
no_license
<?php namespace system\database; use system\database\config; class crud extends config{ private $db,$table,$select,$where,$arrayexecute,$asc,$desc,$limit,$delete,$neyi,$eski,$yeni,$update,$insert,$insertname,$insertvalue; public function __toString(){ return "veritabanı bağlantılarının yapıldığı sayfa";...
true
c9430a5c66aa5ee52d38c97fad947765e70ed291
PHP
ngrdanjski/ViewCounterBundle
/Statistics/HourTrait.php
UTF-8
8,839
2.734375
3
[ "MIT" ]
permissive
<?php /** * This file is part of the TchoulomViewCounterBundle package. * * @package TchoulomViewCounterBundle * @author Original Author <tchoulomernest@yahoo.fr> * * (c) Ernest TCHOULOM <https://www.tchoulom.com/> * * For the full copyright and license information, please view the LICENSE * file that ...
true
1771a9be20ad7b4eda3724e24e1e6804a7bf8b87
PHP
monthly-basis/question
/src/Model/Service/Answers/User.php
UTF-8
895
2.546875
3
[]
no_license
<?php namespace MonthlyBasis\Question\Model\Service\Answers; use Generator; use MonthlyBasis\Question\Model\Factory as QuestionFactory; use MonthlyBasis\Question\Model\Table as QuestionTable; use MonthlyBasis\User\Model\Entity as UserEntity; class User { public function __construct( protected QuestionFact...
true
003e132720bf04521c7fa0e57d21234db0f7ebf7
PHP
griffc/BehatCommonContext
/src/Context/Select2Context.php
UTF-8
4,463
2.546875
3
[ "MIT" ]
permissive
<?php namespace Novaway\CommonContexts\Context; use Behat\Mink\Element\DocumentElement; class Select2Context extends BaseContext { /** * Fills in Select2 field with specified * * @When /^(?:|I )fill in select2 "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)"$/ * @When /^(?:|I )fill ...
true
fe03c7ea3e5728b672ef7d147055be5b73661821
PHP
AgapovaTatiana/homework
/ex1.php
UTF-8
933
3.171875
3
[]
no_license
<?php header('Content-Type: text/html; charset=utf-8'); //Создайте переменную $name и присвойте ей строковое значение содержащее Ваше имя. $name = "Татьяна"; //Создайте переменную $age и присвойте ей строковое значение содержащее Ваш возраст. $age = "33"; //Выведите с помощью echo (или print) фразу “Меня зовут: ​...
true
1cba8e630a836e70498938e9cc94c7cfd53f9750
PHP
bmwsauber/Ff
/lib/Config.php
UTF-8
6,196
2.734375
3
[]
no_license
<?php class lib_Config { const XML_NAMESPACE = 'http://framework.zend.com/xml/zend-config-xml/1.0/'; public static function getConfig($section = false) { $path = PATH_ROOT.DS.'etc'; $directory = new RecursiveDirectoryIterator($path); $files = new RecursiveIteratorIterator($directory...
true
d0f4f4d1f72c75a767080fccc2d03562dd5e5488
PHP
peace472670810/x-admin-
/DR/application/forwarding/service/forwarding.php
UTF-8
795
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Jim FAN * Date: 2017/11/28 * Time: 14:20 * 提供一个基本的转发层标准 */ namespace app\forwarding\service; abstract class forwarding { protected $MODELNAME = null; protected $METHOD = null; protected $MODEL = null; protected $INPUTDATA = null; protected $OUTPUTDAT...
true
9ea13d8ecc1584feaec54e28f15c3e386c0b82d9
PHP
krivokora-vlad/167185-yeticave
/add.php
UTF-8
3,771
2.515625
3
[]
no_license
<?php require_once('init.php'); $errors = []; if ($user) { if ($_SERVER['REQUEST_METHOD'] == 'POST') { $lot = $_POST; $required = [ 'lot-name', 'category', 'message', 'lot-rate', 'lot-step', 'lot-date' ]; $dict = [ 'lo...
true
d5ff3f36e6947c48afb69b91f54a0123d3077f33
PHP
cunnan/phpnote1611
/php文件/php培训资料/02_PHPCORE/day03/02_operator.php
UTF-8
890
3.3125
3
[]
no_license
<?php header('Content-Type:text/html;charset=utf-8'); echo -12; echo '<br/>'; echo +12; echo '<br/>'; echo 8 + 3; echo '<br/>'; echo 8 -3; echo '<br/>'; echo 8 * '3ab'; echo '<br/>'; echo 8 /3; echo '<hr/>'; // % 求余数 被除数%除数 = 余数 echo 11 % 3; // 2 echo '<br/>'; echo 33 % 50; // 33 echo '<br/>'; // (a)求余数,求的是整数余数,...
true
6e24104edbf7e76166af98f83747391046df3920
PHP
nishigori/tddbc_tokyo_1.7_for_PHP_testCode
/shopping_cart/Test/ItemTest.php
UTF-8
1,411
2.9375
3
[]
no_license
<?php require_once '../Item.php'; class ItemTest extends PHPUnit_Framework_TestCase { protected $item; public function setUp() { $this->item = new Item('Perfect PHP', '3600', '2010-11', '2'); } public function testGetItemName() { $expected = 'Perfect PHP'; $this->asser...
true
a80a2f4625512f7524e02998b3ce544abd73f058
PHP
TopazStudio/TimeSpace-Web
/app/Util/CRUD/DelegatingCRUDService.php
UTF-8
526
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: erikn * Date: 9/25/2017 * Time: 9:48 AM */ namespace App\Util\CRUD; use Illuminate\Http\Request; interface DelegatingCRUDService { /** * Persist the items that where in the temporary storage on the * client side. * * @param Request $request ...
true
73b39e9ba4e2951dd811e517f1f7bbe5f59fff5a
PHP
dead142/AsthmaCare
/modules/api/controllers/DefaultController.php
UTF-8
4,493
2.875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\api\controllers; use app\models\Profile; use dektrium\user\models\User; use yii\web\Controller; /** * Default controller for the `api` module */ class DefaultController extends Controller { /** * Renders the index view for the module * @return string */ public fun...
true
f261f83b2a2f4ec97278c3ac0b11724ca8ed3001
PHP
mson0129/xFacility2013
/classes/XFAPI/XFRanges.class.php
UTF-8
2,857
3.09375
3
[]
no_license
<?php //XFRanges Class //Michael Son(michaelson@nate.com) //May.17.2013. - Adopt a new xFArray specification. //Require_once //Class class XFRanges extends XFObject { var $ranges; var $array; var $exception; function XFRanges($ranges) { $this->ranges = trim($ranges); $this->ranges = str_replace(" ...
true
848a22eba51f1312541c903a5a031d64c08e182d
PHP
mcordingley/Breadcrumbs
/src/Provider.php
UTF-8
2,093
2.5625
3
[ "MIT" ]
permissive
<?php namespace MCordingley\Breadcrumbs; use Exception; use Illuminate\Contracts\Container\Container; use Illuminate\Support\ServiceProvider; use MCordingley\Breadcrumbs\Formatters\View; use MCordingley\Breadcrumbs\Loaders\JsonLoader; final class Provider extends ServiceProvider { public function boot() { ...
true
d326d77ce525d5cc4aeb9f87060945f9b07aea81
PHP
drslump/PokaYoke
/PokaYoke.php
UTF-8
1,625
2.609375
3
[]
no_license
<?php /** * @category DrSlump * @package Zend_View * @copyright Copyright (c) 2010 Iván -DrSlump- Montes <drslump@pollinimini.net> * @license New BSD License * @version $Id$ */ /** * Abstract master class for extension. */ require_once 'Zend/View.php'; /** * Utility class to escape template data ...
true
0de1e14ea45197693fde913bd21293ab8bd38f66
PHP
CRLbazin/cup_mvc
/library/baseFormBuilder.class.php
UTF-8
660
3.09375
3
[]
no_license
<?php /** * file for the base form builder class * @package cu.core * @copyright GNU GPL * @filesource */ namespace library; /** * base form builder * @version 1.1 * @author cyril bazin <crlbazin@gmail.com> */ abstract class baseFormBuilder { protected $form; /** * constructor of the base form builder class. * i...
true
98e176923af88edb431a8ee5660363c1cb4bf005
PHP
KKP-Database/Superhero-database
/server/Superhero.php
UTF-8
3,606
3.109375
3
[]
no_license
<?php class Superhero { private $superhero_id = null; private $name = ''; private $real_name = ''; private $nickname = ''; private $image_url = ''; private $alignment_id = null; private $power_id = ''; private static $dbConn = null; public function __construct () { self:...
true
bed88dc84b2b5fd838f8d9e2e0c2226d783c3a85
PHP
rfloriano/rfloriano-treichel-bookstore
/views/admin.php
UTF-8
5,431
2.875
3
[]
no_license
<?php require_once("model/user.php"); require_once("model/cart.php"); require_once("model/item.php"); require_once("model/author.php"); require_once("model/categorie.php"); require_once("model/book.php"); require_once("model/book_author.php"); require_once("model/book_categorie.php"); function login_required(){ i...
true
b467e1875a23375880f3636c2b98c5880ea51389
PHP
htl3r-ALFONS/laravel
/laravel/app/Http/Controllers/Auth/TeacherProvider.php
UTF-8
907
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Teacher; use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Contracts\Auth\UserProvider; class TeacherProvider implements UserProvider { public function retrieveById($id) { return Teacher::find($id); } public function retrieveByTok...
true
bea0f2cdc3b86265f755779f97513c1d0fdf3db0
PHP
Stolz/php-stubs
/res/php/outcontrol/functions/ob-get-status.php
UTF-8
303
2.734375
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Get status of output buffers * * @phpstub * * @param bool $full_status * * @return array If called without the parameter * or with = false a simple array * with the following elements is returned: */ function ob_get_status($full_status = 'FALSE') { }
true
499838cde0c3bbb928c40083f85b0737ad1e6678
PHP
superirale/usmantheme-wp
/index.php
UTF-8
857
2.515625
3
[]
no_license
<?php //Template Name: Blog ?> <?php get_header(); ?> <div class="posts"> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('showposts=50' . '&paged='.$paged); ?> <?php if($wp_query->have_posts()):?> <?php while($wp_query->have_posts()): ...
true
62ff2df9df9b54326beda54d54f329ad8d30ccbe
PHP
VictoriaRamirezCharles/GestionTransacciones
/transacciones/log.php
UTF-8
757
3.203125
3
[]
no_license
<?php class Log { private $utilities = null; public function __construct($fileName, $directory){ $this->fileName = $fileName; $this->directory = $directory; $this->utilities = new Utilities(); } public function addLog($text){ ...
true
7b5fe0c552d7ffcaec0a424d032b1f555708dc72
PHP
LegendRiver/FBAW_Project
/src/server/service/common/ServiceCallUtil.php
UTF-8
1,689
2.65625
3
[]
no_license
<?php class ServiceCallUtil { public static function callService($requestParameters) { try { $result = new CResult(); $checkResult = self::checkBaseParameters($requestParameters, $result); if (!$checkResult) { return json_encode($...
true
117405cd483f8a289dea40be54d115e69ed3acdb
PHP
antonioribeiro/sdk
/src/Services/Telegram/Listeners/DownloadTelegramVideo.php
UTF-8
1,063
2.59375
3
[ "MIT" ]
permissive
<?php namespace PragmaRX\Sdk\Services\Telegram\Listeners; use Illuminate\Contracts\Queue\ShouldQueue; use PragmaRX\Sdk\Services\Chat\Events\EventPublisher; use PragmaRX\Sdk\Services\Telegram\Data\Repositories\Telegram; use PragmaRX\Sdk\Services\Telegram\Events\TelegramAudioWasCreated; use PragmaRX\Sdk\Services\Telegr...
true
51a789cf5251017c648d9b58d4895985191bf877
PHP
shantwo/projetTOTO
/inc/Definitions.php
UTF-8
1,351
2.59375
3
[]
no_license
<?php //ARRAY DE TOKENS -------------------------------------------------------------// /* Modele type $modele = array( array( nom => "nom_du_token", variable => "variable_associee_au_token", token => ":token", isINT => "true or false" ), ); */ //VALEUR INITIALE $tokensArray=array(); //TABLEAU DE LA...
true
671e7205b17624b4c46b2698ad9d2cd08f003120
PHP
cikupamart/kontrol-anggaran
/protected/extensions/misc/rating/VRating.php
UTF-8
1,067
2.546875
3
[]
no_license
<?php class VRating extends CWidget { public $url; public $selector; public function init() { $this->publishAssets(); } public function run() { $this->render('run', array( 'url'=>$this->url, 'selector'=>$this...
true