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
dff7010486d50dd5804fc51ac8ffc4d57acce7af
PHP
fishhu/PHP
/dependInject.php
UTF-8
1,533
3.15625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lock * Date: 2017/8/2 * Time: 23:59 * 依赖注入模式 * 实现调用者与被调用者的解耦 */ abstract class config { protected $storage; public function __construct($storage) { $this->storage = $storage; } } interface params { public function get($key); public function...
true
a6b7f271f6eb787170e78a5b77f2d5266f4bd971
PHP
londomloto/tanaga
/api/v2/micro/Validation/Validator/Validate_Helper.php
UTF-8
8,885
2.734375
3
[]
no_license
<?php namespace Micro\Validation; use Micro\Validation\Helper\Encoding; use Micro\Validation\Helper\Age, Micro\Validation\Helper\Date, Micro\Validation\Helper\Email, Micro\Validation\Helper\Entities, Micro\Validation\Helper\File, Micro\Validation\Helper\IdentityNumber, Micro\Validation\Helper...
true
733963f715b58692542fb952a20ef24732b7fc1d
PHP
qaz734913414/Typecho-Theme-RAW
/lib/Content.php
UTF-8
7,668
2.515625
3
[ "MIT" ]
permissive
<?php /** * Content.php * * 文章内容解析与输出等 * * @author 熊猫小A | AlanDecode * @version 0.1 * */ ?> <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; global $toc; global $curid; function parseTOC_callback($matchs){ $GLOBALS['curid']=$GLOBALS['curid']+1; $GLOBALS['toc'].='<li><a href="#TOC-'.(string)$G...
true
a036ed15da44587321bd4ee48d73783d8b5c58cb
PHP
YooHannah/algorithm
/php/shoppingcart/shoppingCart.php
UTF-8
525
2.828125
3
[]
no_license
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> </head> <body> <?php session_start(); //将session中的商品信息(即购物车中的商品)和总价显示到页面 $goods = $_SESSION['goods']; echo '您买了:<br />'; foreach ($goods as $value) { echo $value['name'] . ' 价格 ' . $value['price'] . ' 数量 ' . $value['number...
true
6160abf3b7a7f140874fe5ababd5407aecbcb525
PHP
frankzero/eznewlife
/app/Console/Commands/ChangeArticles.php
UTF-8
1,207
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use DB;use App\Article,App\Category,Cache; use Carbon\Carbon; class ChangeArticles extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'articles:change'; ...
true
5489fc720986bb2bb6f32464503e6e76bf9203f5
PHP
uicestone/ls-coupon-wp-plugin
/class.ls-coupon-cli.php
UTF-8
1,963
2.828125
3
[]
no_license
<?php WP_CLI::add_command('ls-coupon', 'LS_Coupon_CLI'); /** * Filter spam comments. */ class LS_Coupon_CLI extends WP_CLI_Command { /** * Download all cpc history reviews. * * ## EXAMPLES * * wp ls-coupon test * */ public function test() { WP_CLI::line('Test.'); } /** * Find latitude an...
true
d1d50818123584e406d0741e6579b06bb3dcacd8
PHP
babeuloula/Elasticsearch
/ElasticSearch.php
UTF-8
1,516
2.6875
3
[]
no_license
<?php namespace BaBeuloula; class ElasticSearch { private $options = array( 'port' => 9200, 'url' => 'http://127.0.0.1:', ); public function __construct (array $options = array()) { $this->options = array_merge($this->options, $options); ...
true
a87266469533dbee48e643934083fb2290cc235a
PHP
google-code/autowebsys
/ autowebsys/library/utils/vault/VaultUpload.php
UTF-8
1,188
2.765625
3
[]
no_license
<?php require_once('utils/vault/Vault.php'); class VaultUpload extends Vault { private $inputName; private $fileName; private $tempLoc; public function VaultUpload($sessionId) { parent::Vault($sessionId); } public function getUpload($path) { $target_path = $pa...
true
1d50aaae458faddc60f5965ea3af054a0d85c7ba
PHP
muchiriben/b.w.k---version1-php-
/addgarage.php
UTF-8
5,466
2.734375
3
[]
no_license
<?php session_start(); require "inc/conn.php"; //check user has logged in if (($_SESSION['login_user']) == null) { header("Location:login"); exit(); } //initialization of important elements $myusername = $_SESSION['login_user']; $_SESSION['from'] = "addgarage"; $error = null; //get the sid of user $sidq = "SEL...
true
557dc8d6a59896df534eabefdb97312ddd66fc29
PHP
miag-ampt/PHP-Study
/sample.112.php
UTF-8
211
2.96875
3
[]
no_license
<?php $a = 10; //$aを整数10で初期化 $b =& $a; //$bに参照代入演算子で$aを代入,$bは$aの領域を指し示している $c = $a; //$cでは代入演算子なので、10そのものが代入。
true
a198f1229c5189b17fb49a5fdd0a55a4920076e5
PHP
vagnercardosoweb/slim4-skeleton
/application/app/Modules/Api/Controllers/ZipCodeController.php
UTF-8
2,659
2.515625
3
[]
no_license
<?php /* * Vagner Cardoso <https://github.com/vagnercardosoweb> * * @author Vagner Cardoso <vagnercardosoweb@gmail.com> * @link https://github.com/vagnercardosoweb * @license http://www.opensource.org/licenses/mit-license.html MIT License * @copyright 28/02/2023 Vagner Cardoso */ namespace App\Modules\Api\Cont...
true
104a1daaeadf622b7c436a91af30305ab7d7d15f
PHP
MinosSpetsiotakis/NewsSite
/GameReviewer/Article.php
UTF-8
4,217
2.671875
3
[ "MIT" ]
permissive
<?php session_start(); function append_string ($str1, $str2) { // Using Concatenation assignment // operator (.=) $str1 .=$str2; // Returning the result return $str1; } $servername = "localhost"; $username = "root"; $password = "1234"; $dbname =...
true
294017d42ce97b3a241608ba21add10515e6ef43
PHP
kanialydia/PemogramanWeb-JasaPengirimanPart2
/pages/class.php
UTF-8
2,125
2.625
3
[ "MIT" ]
permissive
<?php function get_city($query,$type) { //library yang harus anda download require_once 'REST_Ongkir.php'; $rest = new REST_Ongkir(array( 'server' =&amp;gt; 'http://api.ongkir.info/' )); //ganti API-Key dibawah ini sesuai dengan API Key yang anda peroleh setalah mendaftar di ongkir.info $result = $re...
true
1ef17dd90784d5e647bf3f02c9061a19cd355589
PHP
gowork/values
/examples/example/StringValue-trimLeft.php
UTF-8
173
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php use GW\Value\Wrap; $text = Wrap::string(' :.: I ♡ SPACE :.: '); echo $text->trimLeft()->toString() . PHP_EOL; echo $text->trimLeft(' .:')->toString() . PHP_EOL;
true
49add4f627b869836986d5ec1e1b69c2bae368c3
PHP
sercinci/Politikly
/src/Entity/Question.php
UTF-8
259
2.53125
3
[]
no_license
<?php namespace Entity; use Illuminate\Database\Eloquent\Model; /** * Database questions */ class Question extends Model { /** * Get the linked answer */ public function answer() { return $this->hasOne('Entity\Answer'); } }
true
4a4a98ba1e114171c10db26c56225bb06e5381d5
PHP
nmt2203/shop-oline
/mvc/model/User.php
UTF-8
12,274
2.734375
3
[]
no_license
<?php class User { var $user_id; var $name; var $username; var $password; var $authority; var $address; var $number; var $status; var $ward_id; var $district_id; var $province_id; public function __construct($user_id, $name, $username, $password, $authority, $address, $n...
true
902beeebb04b9421f800b43bf4762cc443ea2f57
PHP
Sywooch/buzzr_github
/traits/Likeable.php
UTF-8
1,184
2.515625
3
[ "BSD-3-Clause" ]
permissive
<? namespace app\traits; use yii\db\Query; trait Likeable { public function toggleLike($user_id){ $table = $this->likeTableName(); $field = $this->likeEntityName(); $thisid = $this->id; if($liked = $this->isLikedBy($user_id)){ // delete like $query = \Yii::$app->db->createCommand("DELETE FROM $table...
true
da0fdbf510c681b259b551d7fab1d6c4584cfbc8
PHP
sengkimlong/flow-login
/Packages/Framework/TYPO3.Eel/Classes/TYPO3/Eel/Utility.php
UTF-8
3,105
2.96875
3
[]
no_license
<?php namespace TYPO3\Eel; /* * * This script belongs to the TYPO3 Flow package "TYPO3.Eel". * * * * It is free software; you can redistribute it and/or modify it...
true
84d9d1ae8b123890a3cd9459b523e00d5ec97da9
PHP
mishikoc/casgame
/fuel/app/classes/core/html.php
UTF-8
3,476
3.203125
3
[ "MIT" ]
permissive
<?php use \Fuel\Core\Html as OriginalHTML; class Html extends OriginalHTML { /** * Overriden anchor. Accepts both string and array $href arg. * array version should have next format: array('route_name', 'arg1' => 'val1', 'arg2' => 'val2') * * @param mixed the url * @param string the text value * @param ...
true
3767490df2696be9fdde6c86f37a3f4d755ee1a4
PHP
htorres6/beerrunners
/classes/user.php
UTF-8
620
2.984375
3
[]
no_license
<?php class User extends Object { protected static $table_columns= array("first_name", "last_name", "email", "user_name", "password", "address"); protected static $table= "users"; protected static $where_clause= "id"; public $first_name; public $last_name; public $email; public $user_name; public $password; public $...
true
02afde374e5b84348ebc9a8cd2845e5d84835219
PHP
cptechinc/alumacraft-model
/src/Model/SoHeader.php
UTF-8
428
2.515625
3
[]
no_license
<?php use Base\SoHeader as BaseSoHeader; /** * Skeleton subclass for representing a row from the 'SO_HEADER' table. * * * * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * long as it does not already exist in the output directory. ...
true
954b530f5dfb4414d8ea02f554b71bbdf57a1b60
PHP
suzuyan/BEAR.Sunday
/src/BEAR/Package/Provide/ConsoleOutput/ConsoleOutput.php
UTF-8
2,739
2.71875
3
[]
no_license
<?php /** * This file is part of the BEAR.Package package * * @package BEAR.Package * @license http://opensource.org/licenses/bsd-license.php BSD */ namespace BEAR\Package\Provide\ConsoleOutput; use BEAR\Sunday\Extension\ConsoleOutput\ConsoleOutputInterface; use BEAR\Resource\AbstractObject as ResourceObject; use...
true
a869c783c16cf9e669a0a48938b10e2fc9b93045
PHP
papalapa/yiistart
/modules/elements/models/ElementCategory.php
UTF-8
2,550
2.53125
3
[ "MIT" ]
permissive
<?php namespace papalapa\yiistart\modules\elements\models; use yii\behaviors\BlameableBehavior; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; use yii\db\Expression; /** * This is the model class for table "element_category". * @property integer $id * @propert...
true
a94664d94c4aea21427609173bfbb8caabfe7ee6
PHP
phproad/phpr-framework
/modules/db/classes/model_sortable.php
UTF-8
1,705
2.875
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Db; use Phpr\Extension; use Phpr\ApplicationException; use Db\Helper as Db_Helper; /* * Sortable model extension */ /* * Usage: * * Model table must have sort_order table column. * In the model class definition: * * public $implement = 'Db\Model_Sortable'; * * To set orders: * * $ob...
true
cd2b81b0b27fb92f624d9674636ca77bfd51266a
PHP
IsisTR/FormularioITTR3
/modulo/recibir_formulario.php
UTF-8
1,012
2.671875
3
[]
no_license
<?php include('clasedb.php'); extract($_REQUEST); $db=new clasedb(); $con=$db->conectar(); $sql="INSERT INTO celulares VALUES(NULL,'".$nombre."','".$modelo."','".$marca."','".$caracteristicas."','".$precio."')"; $resultado= mysqli_query($con,$sql); ?> <!DOCTYPE html> <html> <head> <title></title> <link rel="style...
true
6f555353768c149b709e2248f8f1090905377b1b
PHP
pavarnos/threema-msgapi-sdk-php
/src/Threema/MsgApi/Message/FileMessage.php
UTF-8
2,290
2.984375
3
[ "MIT" ]
permissive
<?php /** * @author Threema GmbH * @copyright Copyright (c) 2015-2016 Threema GmbH */ declare(strict_types=1); namespace Threema\MsgApi\Message; class FileMessage extends AbstractMessage { const TYPE_CODE = 0x17; /** * @var string */ private $blobId; /** * @var string */ ...
true
ddccefd75019778b1eeb4d48ade5870e24974049
PHP
blackmesasl/silex-chromephp
/src/Blackmesa/SilexChromePhp/ChromePhp.php
UTF-8
2,869
2.859375
3
[ "MIT" ]
permissive
<?php namespace Blackmesa\SilexChromePhp; use ChromePhp as ChromePhpBase; /** * ChromePhp * * @author Blackmesa <info@blackmesa.es> */ class ChromePhp { protected $debug; protected $logger; /** * Constructor */ public function __construct($debug,$logger=null) { $this->debug ...
true
a4c8bf6431108c9620f1f2800142a13826009655
PHP
WilliePart2/training_area
/console/migrations/m180311_135622_create_user_table.php
UTF-8
886
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `user`. */ class m180311_135622_create_user_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $db = \Yii::$app->db; $this->createTable('users', [ 'id' => $this->primaryKey(), ...
true
2ba08c34eea0e96380cc1998acd198ae1897e992
PHP
ergestnako/Webiny
/Php/Lib/AppNotifications/AbstractAppNotification.php
UTF-8
1,147
3.046875
3
[]
no_license
<?php namespace Apps\Webiny\Php\Lib\AppNotifications; use Apps\Webiny\Php\Entities\User; use Webiny\Component\StdLib\StdLibTrait; /** * Class used to create app notification classes */ abstract class AbstractAppNotification { use StdLibTrait; /** * @var User */ protected $user = null; /...
true
b73a2ce2968a20df64f68fff1106de21630ae4e3
PHP
tepy-pr/kenshu-backend
/web/db/migrations/20210430091402_init_d_b.php
UTF-8
2,182
2.765625
3
[]
no_license
<?php declare(strict_types=1); // require_once __DIR__ . "/../../core/Application.php"; // use core\Application; use Phinx\Migration\AbstractMigration; final class InitDB extends AbstractMigration { public function up() { $user_table_sql = 'CREATE TABLE Users ( user_id INT UNSIGNED AUTO_INCREMENT PR...
true
c9cfaf8e60a8f6cce4a3e1061d3a9a51035bbefe
PHP
timjinx/Sample-Repo
/php/inc/class.Coin.inc.php
UTF-8
601
3.65625
4
[ "Apache-2.0" ]
permissive
<?php /** * @author Tim Jinkerson */ class Coin { private $side; function __construct() { $this->flip(); } public function setValue ( $value ) { if ( $value == 0 or $value == 1 ) { $this->side = $value; } } publi...
true
baf835be6c5e8c32e703cb59510ad55c9f74a291
PHP
MrTQJ/Case-Study-3
/sales1.php
UTF-8
3,084
2.703125
3
[]
no_license
<?php @ $db = new mysqli('localhost', 'f32ee', 'f32ee', 'f32ee'); if (mysqli_connect_errno()) { echo 'Error: Could not connect to database. Please try again later.'; exit; } $query = "SELECT * FROM `javajam_sales` INNER JOIN javajam_prices ON javajam_prices.id = javajam_sales.product_id"; $result = $db->query($que...
true
a1b74563fc8e58b207534b13cd9c4a13e0d77085
PHP
allebb/git-version-number
/tests/GitVersionTestSuite.php
UTF-8
1,654
2.921875
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; /** * Git Version Number * * A library for extracting and utilising your project's Git version information. * * @author Bobby Allen <ballen@bobbyallen.me> * @license https://raw.githubusercontent.com/allebb/git-version-number/master/LICENSE * @link https://github.com/alleb...
true
c24b18bc48b826cbd6527ab1ab508a927085ff50
PHP
EneaWeb/enea
/app/Profile.php
UTF-8
730
2.703125
3
[]
no_license
<?php /* ================== GENERAL DB ================== */ namespace App; use Illuminate\Database\Eloquent\Model; class Profile extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'user_id', 'name', 'surn...
true
5f346e4c40ddda21246b4086f03503bb4152123c
PHP
Sywooch/other
/taozon.ru [PHP]/otapilib2/types/EditableOtapiCategory.php
UTF-8
611
2.71875
3
[]
no_license
<?php class EditableOtapiCategory extends OtapiCategory{ /** * @return OtapiSearchItemsParameters */ public function GetSearchParameters(){ $value = isset($this->xmlData->SearchParameters) ? $this->xmlData->SearchParameters : false; return new OtapiSearchItemsParameters($value); }...
true
4a71015673123d90378a8a52003667fe969624ae
PHP
markuplab-tech/basic-php-framework
/private/functions/validation.php
UTF-8
3,598
2.859375
3
[ "Apache-2.0" ]
permissive
<?php function validate_data($requestdata, $fields, &$error) { $validated_data = []; foreach($fields as $field => $field_info) { $field_required = false; if(isset($field_info["req"])) { $field_required = $field_info["req"]; } $field_type = "string"; if(isset($field_info["type"])) { $field_type =...
true
953a58997dd4c18d8690e91878aee0a53170edae
PHP
ouma1224/2019techc
/home/edit_execute_SNS.php
UTF-8
2,444
2.625
3
[]
no_license
<?php // 必須である投稿本文がない場合は何もせずに閲覧画面に飛ばす if( empty($_POST['user_name']) ) { header("HTTP/1.1 302 Found"); header("Location: ./edit_user_SNS.php?error=0"); return; } $user_name = $_POST['user_name']; $error_flag = null; #名前を変更する場合同じ名前がないか検索 require_once 'DB_Connection_SNS.php'; $dbh = getDB(); $select_sth = $dbh->p...
true
362ab93f6b9a486de489a029551908cf432f3976
PHP
psdevelop/modules-store
/planfix_and_oth_sync/modules/tickets/repositories/ARSyncCabinetMessageRepository.php
UTF-8
3,349
2.609375
3
[]
no_license
<?php namespace app\modules\tickets\repositories; use app\modules\tickets\models\sync\SyncCabinetTicketMessage; use app\modules\tickets\models\sync\SyncCabinetTickets; use app\modules\tickets\repositories\contracts\SyncCabinetMessageRepositoryInterface; use app\modules\tickets\repositories\exceptions\EntityNotFoundEx...
true
a437707d1ca821e52987ef5773b97044aebcdc9e
PHP
amochohan/query-mailer
/app/ClientDatabase.php
UTF-8
4,528
2.921875
3
[]
no_license
<?php namespace App; use App\Exceptions\InvalidQueryException; use Illuminate\Database\DatabaseManager; use Illuminate\Config\Repository as ConfigRepository; class ClientDatabase { /** * @var DatabaseManager */ public $db; /** * @var ConfigRepository */ private $configRepository; ...
true
f14c02b7826537ff289d1074f20bdca96431b578
PHP
tetsu/JiraWorkLogSaver
/application/models/security_data_model.php
UTF-8
952
2.828125
3
[]
no_license
<?php /* This model represents SECURITY data entry. Inheriting variables and methods from Data_model.php */ require_once( APPPATH . 'models/data_model' . EXT); class Security_data_model extends Data_model { public function __construct() { parent::__construct(); $this->table_name = "SECURITIES"; } public fu...
true
73d9f35af2e54410be38288265b77e83252289bc
PHP
aptomobi/cmpt275group12
/scripts/table.php
UTF-8
1,007
2.640625
3
[]
no_license
<?php require 'connect.php'; //recieve JSON object here //parse POST method here to get these variables: /* TEST VALUES $email = "evgeny@sfu.ca"; $password = "evgeny"; */ //Access SQL and check for an already existing row with Email == $Email $sql = "SELECT * FROM Accounts WHERE 1 LIMIT 0, 500 "; $result = $conn-...
true
5d8531a9e3cc5cd9264876c95ab46fddd9c85083
PHP
MarkovaDA/ReteDES
/gas2/function_engine/fun_graphics.php
UTF-8
7,311
2.703125
3
[]
no_license
<?php function crea_grafico_google_1($id){ $query = "SELECT retegas_messaggi.id_ordine, retegas_messaggi.timbro, retegas_messaggi.valore, retegas_messaggi.tipo2 FROM retegas_messaggi WHERE retegas_messaggi.id_ordine = '$id' AND retegas_messaggi.tipo2 = 'ART' ORDER BY retegas_messaggi.timbro ASC"; $ret = mys...
true
80808b7ddfeba4eaa9ad48c0824a5d07eec80a65
PHP
proshanto22/Attendance-Management-System
/report.php
UTF-8
8,072
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Attendance Management System</title> <style> table { border-collapse: collapse; width: 100%; color: #588c7e; font-family: monospace; font-size: 16px; text-align: center; } th { background-color: #588c7e; color: white; } tr:nth-child(even...
true
e9f2710d9f27ab7a289c4dc01f5cc04fa32bb2e3
PHP
yllanvfgurgel/php-pdo
/remove-aluno.php
UTF-8
536
2.75
3
[]
no_license
<?php use Alura\Pdo\Domain\Model\Student; require_once 'vendor/autoload.php'; $pdo = \Alura\Pdo\Infrastructure\Persistence\ConnectionCreator::createConnection(); $sqlDelete = 'delete from students where id = ?;'; $preparedStatement = $pdo->prepare($sqlDelete); $preparedStatement->bindValue(1, 2, PDO::PARAM_INT); //...
true
f605bbec8df76e680aefed6ed3ec3723bee6d9c1
PHP
leit040/crm-hr
/src/Form/UploadFile.php
UTF-8
500
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Forms; use App\Model\BaseModel; use yii\web\UploadedFile; /** * @OA\Schema( * required={"file"}, * title="Upload file form" * * ) */ final class UploadFile extends BaseModel { /** * @OA\Property(property="file", type="string", format="binary") ...
true
775e8507a38486ce4ec3af5fe5cd68a6063d4a84
PHP
sameplace/front_end
/classes/DbBroker.php
UTF-8
629
2.859375
3
[]
no_license
<?php class DbBroker { public static $conn; public static function Open($server="localhost",$user="root",$pass="",$db="sameplace") { $dbh = new PDO('mysql:host=localhost;dbname='.$db, $user, $pass); } public function Execute($q) { $count = $dbh->exec($q); return $count; } public static function Ge...
true
9406f5fb658cdb526613be1f292d7406a4c72f58
PHP
eziitis/MB-Projekts
/classes/emailscontr.class.php
UTF-8
1,136
2.78125
3
[]
no_license
<?php class EmailsContr extends Emails { public function addEmail($email, $terms) { $this->setEmail($email,$terms); } public function deleteEmail($list) { $this->deleteEmailEntries($list); } public function returnDataByID($id) { $results = $this->emailByID ($id); return $r...
true
41682a24af92977600bc4607bb44999313b1d124
PHP
shalomacacio/intrasocial
/app/Repositories/UserRepositoryEloquent.php
UTF-8
2,020
2.625
3
[ "MIT" ]
permissive
<?php namespace Intrasocial\Repositories; use Prettus\Repository\Eloquent\BaseRepository; use Prettus\Repository\Criteria\RequestCriteria; use Intrasocial\Repositories\UserRepository; use Intrasocial\Entities\User; use Intrasocial\Validators\UserValidator; //bibliotecas de imagem use Illuminate\Support\Facades\Storag...
true
962af53c6ea2a862aa52871ff3c63d5aa46f2c81
PHP
Dramorian/newmotockloc
/wp-content/themes/Impreza/framework/templates/widgets/logo.php
UTF-8
1,745
2.546875
3
[]
no_license
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Header logo * * (!) Important: this file is not intended to be overloaded, so use the below hooks for customizing instead * * @action Before the template: 'us_before_template:templates/widgets/contacts' * @action After the tem...
true
5951df61d817dce5a70242dd8dfe9a95e93d023f
PHP
massmediagroup-5/sirius
/src/AppBundle/Services/ClearDb.php
UTF-8
2,633
2.53125
3
[]
no_license
<?php namespace AppBundle\Services; use Doctrine\ORM\EntityManager; /** * Class: ClearDb * */ class ClearDb { /** * em * * @var mixed */ private $em; /** * entities * * @var mixed */ private $entities; /** * tables * * @var mixed *...
true
9df6aec0c0198aad208ee3592f1f44223c61c100
PHP
andreibelov/php
/web/ajaxSample/xml/xml.php
UTF-8
2,150
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: john * Date: 5/3/2016 * Time: 11:39 AM */ //if(count(get_included_files()) ==1) exit("Direct access not permitted."); error_reporting(E_ALL); ini_set('display_errors', 'on'); $XML = new GetXml(); if ( $_SERVER['REQUEST_METHOD'] === 'POST' ){$XML->dbWright();} $XML->doPrint(...
true
1bf3b98ffddf674f4ec6b7f067bcf012187f4a3e
PHP
Arihaan/school-php
/Winter-Practice/problem7.php
UTF-8
935
4.125
4
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <h2> PRACTICE PROBLEM #7 </h2> <title> Problem 7 </title> <body> <?php $nums = array(11, 24, 19, 99, 109); $nums2 = array(11, 22, 21, 95, 223); function average($nums){ $amt = count($nums); for($x = ...
true
b34f3b6f0fba08a12f26f6cd26a31cd0731f87cf
PHP
Hostname47/E-COMMERCE
/login-entities/login-forgot-password-confirm-change-pass.php
UTF-8
4,251
2.578125
3
[]
no_license
<?php session_start(); require "check-credentials.php"; $submitted_password = $sibmitted_repass = ""; $error = $updated = ""; if(isset($_POST["change-pass"])) { $submitted_password = cleanData($_POST["change-password"]); $submitted_repass = cleanData($_POST["change-repass"]);...
true
98df6bcc46bfca70113a44aba3bf1925b8cdc0a8
PHP
ahmedmohamedshawky/labsny_backEnd
/app/Models/ClothesSizeCategory.php
UTF-8
879
2.6875
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ClothesSizeCategory extends Model { public $table = 'clothes_size_categories'; public $fillable = [ 'clothes_id', 'size_id', ]; /** * The attributes that should be casted to native types. * ...
true
e449370b2fae89b9d4d4c3e7b214d0e1730bdc29
PHP
taylorcharles/HospitalManagementSystem
/addpatient.php
UTF-8
808
2.53125
3
[]
no_license
<?php session_start(); $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $conn = mysql_connect($dbhost, $dbuser, $dbpass); $id=$_POST['id']; $name=$_POST['name']; $age=$_POST['age']; $gender=$_POST['gender']; $occupation=$_POST['occupation']; $mobile=$_POST['mobile']; $address=$_POST['address']; $p_type=$_POST['p_...
true
ccaed817aa3e8e05259c5d5179bb7868fb9887c8
PHP
sylus-code/home-budget-rest
/src/Controller/Receiver/EditController.php
UTF-8
1,487
2.640625
3
[]
no_license
<?php namespace App\Controller\Receiver; use App\Repository\ReceiverRepository; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; class EditController { private $receiverReposit...
true
4e33fdf216e53b674bcc05c03be6dd3bb143a48e
PHP
marsh826/PHP-Library-Book-
/bookprojectdb/Controller/processLogin.php
UTF-8
1,063
2.578125
3
[]
no_license
<?php session_start(); require("../Model/connection.php"); require("inputSanitation.php"); if(!empty($_POST)) { $username = testInput($_POST['uname']); $password = testInput($_POST['upass']); $stmt = $conn->prepare("SELECT LoginID, Password, AccessRights From login WHERE Username=:user"); $stmt->bindParam(...
true
fc6a76a9fa63748ba315ee87a8766143340a3b1e
PHP
AlleSoke1/simple-router-php
/router.php
UTF-8
1,872
2.828125
3
[]
no_license
<?php /* copyright - Catalin Alin 2015 (catalin@live.jp) */ class router { const NOAUTH = 0; const NEEDAUTH = 1; private $routerList = array(); private $scriptPath = "_System/_Modules/news.php"; //Default private $authRequired = self::NOAUTH; //Default private $pageTitle = "News"; //Default public function ...
true
86680a0083e121c479e331d493708ac161257f3b
PHP
UnionOfRAD/li3_lab
/views/extensions/view.html.php
UTF-8
2,440
2.515625
3
[]
no_license
<?php $version = 1; if (isset($extension->_revisions)) { $version = $extension->_revisions->start; } ?> <div id="extension"> <div class="details"> <h2><?=$this->title($extension->namespace . ' \\ ' . $extension->name);?></h2> <h3 class="summary"><?=$extension->summary;?></h3> <div class="actions"> <a hr...
true
475a27fa5b7ab6fc35173f2cbfd873982621efac
PHP
badcoderspaik/cmsClone
/classes/php/AddContentForm.php
UTF-8
4,642
3.171875
3
[]
no_license
<?php /** * Class AddContentForm * Класс вывода html-формы добавления контента в базу данных в админ-панели сайта */ class AddContentForm extends Article { /** * AddContentForm constructor. * @param string $template Путь к файлу шаблона */ function __construct($template) { /** ...
true
f93839845a896ace3220c9c36171c1eb15747af5
PHP
roslairy/nofetch
/app/Novel/AbstractComponent.php
UTF-8
248
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Novel; use Carbon\Carbon; abstract class AbstractComponent { protected $now; public function __construct() { $this->now = Carbon::now (); $this->init(); } protected function init(){} abstract public function run(); }
true
c8ceef35c51fe1b0be8cd73b3b4dd6fa78c83433
PHP
bankiru/qtelecom-php
/QtSmsTransport.php
UTF-8
1,064
2.578125
3
[ "MIT" ]
permissive
<?php namespace Bankiru\Sms\QtSms; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use ScayTrase\SmsDeliveryBundle\Exception\DeliveryFailedException; use ScayTrase\SmsDeliveryBundle\Service\ShortMessageInterface; use ScayTrase\SmsDeliveryBundle\Transport\TransportInterface; final class QtSmsTransport implements...
true
a904bf657266ddfe775f9282f5bbc92ebaa1159e
PHP
prodeveloper/bootstrap_laravel
/assets/CommandTranslator.php
UTF-8
1,241
2.875
3
[ "MIT" ]
permissive
<?php namespace {main_class}\Core; use Laracasts\Commander\CommandTranslator as Translator; use Laracasts\Commander\HandlerNotRegisteredException; /** * Description of * * @author jacob */ class CommandTranslator implements Translator { /** * Translate a command to its handler counterpart * ...
true
381c142ea77a7904ce6f17319417fc6256119b57
PHP
faidluqman/EmpireHotelSystem
/admin_bank_add_edit.php
UTF-8
2,767
2.703125
3
[]
no_license
<?php include('conn/header.php'); include('conn/nav.php'); $error = NULL; if (isset($_GET['add_bank'])){ // get the form data $bank_name=$_GET['bank_name']; // check bank has been used $sql_query="SELECT * FROM bank WHERE bank_name = '$bank_name'"; $result=mysqli_query($mysqli,$sql_query); $row=mysq...
true
a0465eff20eac8e776e7df73add6c9bd20c1e887
PHP
diegocortez/sakila-app
/7-sakila-app/usuarios/actualizar/ejecutar-actualizar.php
UTF-8
1,385
2.578125
3
[]
no_license
<?php ini_set("display_errors",0); if($_POST[btn_enviar]){ require_once('../../operaciones/usuarios.class.php'); $obj_usuario = new usuario(); $id_usuario = $_POST['hdn_id_usuario']; $nuevo_nombre = $_POST['txt_nombre']; $nuevo_apellido = $_POST['txt_apellido']; $nuevo_email = $_POST['txt_email']; try{ $...
true
51de81ae87fe61bddc302d03a28c16cba1171c7c
PHP
sachinkapalidigi/Practice
/1.php
UTF-8
440
3.5625
4
[]
no_license
<?php $family = array("Sachin","Suranjan","Bond","Don"); foreach($family as $key => $value ){ $value = $value. " cv"; echo $key." element of array is ".$value."<br>"; } $i = 1; while($i < 10){ echo 5*$i."<br>"; $i++; } $i = 5; while($i < 50){ echo $i."<br>"; $i = $i + 5; } $family = arr...
true
7e3f681a7b2644580ff5842358ad1987e744274f
PHP
estherbrunner/tg-agenda
/app/event.php
UTF-8
22,898
3.015625
3
[]
no_license
<?php class EBEvents extends EBArray { const FILE = 'events.txt'; public function sort(){ uasort($this->array, array($this, 'compare')); $this->changed = true; } public function changed(){ $this->changed = true; } protected function load(){ $file = EB_DATA.self::FI...
true
49e8f13fc049f8db70c493845523558ed210d3b5
PHP
onurdegerli/quiz
/app/app/repositories/UserAnswerRepository.php
UTF-8
1,090
2.859375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Repositories; use App\Models\UserAnswer; use PDO; class UserAnswerRepository extends BaseRepository { public function __construct(PDO $db) { $this->table = UserAnswer::TABLE_NAME; parent::__construct($db); } public function getUserCorrect...
true
55f803dad8eee5511a83caace55ed38242efd812
PHP
diegonella/multicrm
/vendor/letsdrink/ouzo-goodies/Utilities/Iterator/GeneratingIterator.php
UTF-8
1,103
2.9375
3
[ "MIT" ]
permissive
<?php /* * Copyright (c) Ouzo contributors, http://ouzoframework.org * This file is made available under the MIT License (view the LICENSE file for more information). */ namespace Ouzo\Utilities\Iterator; use Iterator; class GeneratingIterator implements Iterator { private $index; private $current; pri...
true
92a483c6e7446af527dbcb9eb288759b7ce7b7b5
PHP
Edools/edools-php
/lib/Edools/School.php
UTF-8
569
2.78125
3
[ "MIT" ]
permissive
<?php namespace Edools; class School extends APIResource { public static function fetch($key) { return self::fetchAPI($key); } public static function wizard($attributes=Array()) { try { $response = self::API()->request( "POST", static::url($attributes) . "/wizard", $attribute...
true
215db7fa918c0accf836c76111b29bcf1fbabfda
PHP
JoseVallejoMorey/github-api-prueba
/controllers/controller.php
UTF-8
1,809
2.6875
3
[]
no_license
<?php use Http\Adapter\Guzzle6\Client as GuzzleClient; class Controller{ private $client; public function __construct(){ $this->client = new \Github\Client(); } public function getByOrganization($organization, $number = null){ try{ $repos = $this->client->api('organizat...
true
02f38205f1e980d1a67339d8bd30eb7071d9b8a6
PHP
deligoez/laravel-model-hashid
/src/Mixins/WhereHashIdMixin.php
UTF-8
675
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Deligoez\LaravelModelHashId\Mixins; use Closure; /** @mixin \Illuminate\Database\Eloquent\Builder */ class WhereHashIdMixin { /** * Add a where clause on the Hash Id to the query. */ public function whereHashId(): Closure { /* * Add a w...
true
8f43b780d278d4c4365808b06328056a9cc1a471
PHP
kumamidori/Sample.Specification
/src/Common/Specification/AndSpecification.php
UTF-8
648
2.828125
3
[ "LicenseRef-scancode-public-domain" ]
permissive
<?php namespace Sample\Specification\Common\Specification; use PHPMentors\DomainKata\Entity\EntityInterface; use PHPMentors\DomainKata\Specification\SpecificationInterface; final class AndSpecification extends AbstractCompositeSpecification implements SpecificationInterface { private $spec1; private $spec2; ...
true
8894984e9702f53dad26b87cb5417fb28353b83b
PHP
gabrielcabral/docker-php
/zend/var/libraries/ZFNDE/1.4.9/library/Fnde/Model/Oeic.php
ISO-8859-1
2,066
2.625
3
[]
no_license
<?php /** * Arquivo de classe OEIC MEC. * * @package Fnde * @category Fnde_Model * @name Orgo Emissor de Identificao Civil (OEIC) * @author Daniel Wilson de Alvarenga <daniel.alvarenga@fnde.gov.br> */ /** * Classe que consome o Orgo Emissor de Identificao Civil (OEIC) * * @version $Id$ */ class Fnde_Model_...
true
8f29ec9baad49b27c3c0b96cb505ef1c796d7e15
PHP
hopehp/di
/dist/Definition/Mixin/Properties.php
UTF-8
2,857
2.5625
3
[]
no_license
<?php /** * Hope - PHP 5.6 framework * * @author Shvorak Alexey <dr.emerido@gmail.com> * @copyright 2011 Shvorak Alexey * @version 0.1.0 * @package Hope * * MIT LICENSE * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentat...
true
f8166dee6e0a1775033b44da8c61cc5eb4faf045
PHP
abimanyudwpt/Tugas-Perancangan-Antarmuka-Web
/uas/models/m_dosen.php
UTF-8
1,187
2.84375
3
[]
no_license
<?php class dosen { private $mysqli; function __construct($conn) { $this->mysqli = $conn; } public function tampil($id_dsn = null) { $db = $this->mysqli->conn; $sql = "SELECT * FROM dosen"; if ($id_dsn != null) { ...
true
6bb9b8e2ef0b77e596ff0becee477e3a6e304e5f
PHP
Murukan-GitHub/TalentSagaRepo
/app/Suitcore/Notification/Adapters/EmailAdapter/GcmNotifierAdapter.php
UTF-8
2,450
2.59375
3
[ "MIT" ]
permissive
<?php namespace Suitcore\Notification\Adapters\EmailAdapter; use Suitcore\Notification\Contracts\NotifierAdapterInterface as Adapter; use Suitcore\Notification\Adapters\EmailAdapter\EmailRecipients as Recipients; use Suitcore\Notification\Contracts\NotifierMessageInterface as Message; use Illuminate\Foundation\Bus\D...
true
5819600ddea95f66b827205cc6d659efd43833e2
PHP
Klaus330/claudiup.ro
/app/Http/Controllers/YoutubeProjectController.php
UTF-8
1,641
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Project; use Illuminate\Http\Request; use Illuminate\Support\Facades\File; class YoutubeProjectController extends Controller { public function __construct() { return $this->middleware("auth"); } /** * Store a newly created resource in stora...
true
9f305903b423409dfca7bee133066f3bbbce3775
PHP
ieb7645429/newwuliu
/frontend/modules/hlj/models/BankInfo.php
UTF-8
2,464
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\modules\hlj\models; use Yii; /** * This is the model class for table "bank_info". * * @property int $bank_info_id * @property int $user_id user表关联id * @property string $bank_info_card_no 银行卡号 * @property string $bank_info_account_name 开户名 * @property string $bank_info_bank_name 开户行 ...
true
7566a094474898190640986567002147ea4a8488
PHP
levisudak/php-backup
/tests/Jobs/FileTest.php
UTF-8
2,982
2.53125
3
[ "MIT" ]
permissive
<?php namespace SSDTest\Jobs; use InvalidArgumentException; use PHPUnit_Framework_Error; use SSDTest\BaseCase; use SSD\Backup\Jobs\File; class FileTest extends BaseCase { /** * @test * * @expectedException PHPUnit_Framework_Error */ public function throws_error_for_constructor_without_ar...
true
ad368cef68c473efb67bc1de23a08579f62b81f2
PHP
tristiyadi/Crawler
/src/Fragment/Parser/XPathParser.php
UTF-8
522
2.5625
3
[ "MIT" ]
permissive
<?php namespace LastCall\Crawler\Fragment\Parser; use Psr\Http\Message\ResponseInterface; use Symfony\Component\DomCrawler\Crawler as DomCrawler; class XPathParser implements FragmentParserInterface { public function getId() { return 'xpath'; } public function prepareResponse(ResponseInterfa...
true
624fd2639f6c4dbef283535a0c45b3bb00255f14
PHP
jakubkulhan/chrome-devtools-protocol
/gen-src/ChromeDevtoolsProtocol/Model/Audits/AttributionReportingIssueDetails.php
UTF-8
1,584
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace ChromeDevtoolsProtocol\Model\Audits; /** * Details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/attribution-reporting-api * * @generated This file has been auto-generated, do not edit. * * @author Jakub Kulhan <jakub.kulhan@gmail.com> */ final class Att...
true
d525490b7ff7f4126057b27ccacefc899a22114a
PHP
Intervention/validation
/src/Rules/Ean.php
UTF-8
2,215
3.296875
3
[ "MIT" ]
permissive
<?php namespace Intervention\Validation\Rules; use Illuminate\Contracts\Validation\Rule; use Intervention\Validation\AbstractRule; class Ean extends AbstractRule implements Rule { /** * Valid lengths * * @var array */ protected $lengths = [ 8, 13, ]; /** * Cr...
true
c133727ab7d5fabdbcf191caa1d86fb6a6dd6d8f
PHP
pendenga/phonespell
/demo/phone_spell.php
UTF-8
802
2.734375
3
[]
no_license
<?php use Pendenga\PhoneSpell\Dictionary; use Pendenga\PhoneSpell\PhoneSpell; use Pendenga\PhoneSpell\Test\CountLogger; use Pendenga\PhoneSpell\WordListFactory; require_once __DIR__ . '/../vendor/autoload.php'; $input_phone_number = $argv[1] ?? '593563'; $input_result_count = $argv[2] ?? 10; $logger = new CountLogg...
true
7516101835c9c1ff504302d6383a00161bfe5200
PHP
AxelleClarisse/LPCanvas
/src/Entity/User.php
UTF-8
1,054
3.359375
3
[]
no_license
<?php namespace App\Entity; class User { private int $id; private string $firstname, $lastname; private \DateTime $birthDate, $updatedAt; public function __construct($id, $firstname, $lastname, $birthDate, $updatedAt) { $this->id = $id; $this->firstname = $firstname; $this->...
true
6d57b4accb08373b1b4e09fceac1a002df6ae8a9
PHP
jucapar/Tema3
/Ejercicios/Ejercicio1.php
UTF-8
833
3.6875
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>Ejercicio 1</title> </head> <body> <?php /* Juan Carlos Pastor Regueras Inicializar variables de los distintos tipos de datos básicos y mostrar los datos por pantalla. Fecha revision: 19-10-2017 */ $cadena = "Soy una cadena"; $...
true
0fee75a402c6084bfcda6fa899d7c6e7b765ef4c
PHP
sulthan1098/tugas
/sultan/tugas3.php
UTF-8
1,447
2.609375
3
[]
no_license
<?php $data = [ ['nama' => 'sulthan','kelas' => "11",'Hoby' => 'makan','NISN' => 17181401, 'jurusan' => 'TKJ', 'sekolah' => 'smk nasional'], ['nama' => "wahyu",'kelas' => "11","Hoby" => 'badminton',"NISN" => 17181402,"jurusan" => 'TKJ', 'sekolah' => 'smk nasional'], ['nama' => "riyo",'kelas' => "11","Hoby" ...
true
c8a4c39e8fe6fd5982125580baebb465a956bf28
PHP
antriver/cloud-scaler
/src/Commands/ScaleDown.php
UTF-8
3,233
2.671875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the CloudScaler package. * * (c) Anthony Kuske <www.anthonykuske.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tmd\CloudScaler\Commands; use Exception; use Symfony\Component\Conso...
true
02169bd2e72289ce475c8b54fbec28e17a2a7f28
PHP
Pythagory/psysh
/test/Psy/Test/Readline/ReadlineTest.php
UTF-8
1,303
2.5625
3
[ "MIT" ]
permissive
<?php /* * This file is part of Psy Shell * * (c) 2013 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Psy\Test\Readline; use Psy\Readline\Readline; class ReadlineTest extends \PHPUnit_Framework_TestCas...
true
98dd42819e656a3ee9bfe3650ee595c43793dec0
PHP
KrishnaChaurasia/netmin
/useradd.php
UTF-8
917
2.59375
3
[]
no_license
<html> <head><title>UserAdd</title></head> <body> <center><a href="/index.php">Home</a><br> <form name="form" action="" method="POST"> Username : <input type="text" name="un"> <br>Password : <input type="password" name="pwd"> <br><input type="submit" name="sub" value="Submit"> </form> </center> ...
true
30458bbe52b79cf40717c131169c91a9a433671e
PHP
thebrubaker/laravel-api-request
/Query/With.php
UTF-8
763
2.796875
3
[]
no_license
<?php namespace App\Http\Api\Query; use Illuminate\Support\Collection; class With { /** * The name of the relationship to include. * @var string */ public $name; /** * The fields to select in the relationship. * @var Collection */ public $fields; /** * The fil...
true
184c44417a3c38eb5557b401d75d6854ffb2250a
PHP
jesseweed/aulph
/redirect.php
UTF-8
1,734
2.703125
3
[]
no_license
<?php $token = $_GET['access_token']; $expire = $_GET['expires_in']; $scope = $_GET['scope']; $state = $_GET['state']; $url = 'http://www/lab/oauth2-php/server/examples/mongo/protected_resource.php'; $url2 = 'http://www/lab/oauth2-php/server/examples/mongo/protected_resource.php?oauth_token='.$token; //$header = array...
true
14e78f110433fc9762e2e8518e21bbc808cfd49f
PHP
xiebruce/PicUploader
/vendor/aliyuncs/oss-sdk-php/samples/BucketCname.php
UTF-8
2,373
2.84375
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/Common.php'; use OSS\OssClient; use OSS\Core\OssException; $bucket = Common::getBucketName(); $ossClient = Common::getOssClient(); if (is_null($ossClient)) exit(1); //*******************************Simple Usage *************************************************************** // Add Can...
true
8df45d2950617878af2e34b88d55f1aa9b052159
PHP
g7sim/CMSimpleXH-Template-bootstrap_Acme
/bootstrap_Acme_CMSimpleXH/plugins/tinymce4/classes/Uploader.php
UTF-8
7,041
2.71875
3
[]
no_license
<?php /** * The image uploader. * * PHP version 5 * * @category CMSimple_XH * @package Tinymce4 * @author manu <info@pixolution.ch> * @author The CMSimple_XH developers <devs@cmsimple-xh.org> * @copyright 2009-2015 The CMSimple_XH developers <http://cmsimple-xh.org/?The_Team> * @license http://www...
true
90281a6f608fa033ef24ed6280feea27d29b9287
PHP
klapuch/Dataset
/Core/FakeSelection.php
UTF-8
333
2.734375
3
[]
no_license
<?php declare(strict_types = 1); namespace Klapuch\Dataset; /** * Fake */ final class FakeSelection implements Selection { /** @var mixed[]|null */ private $criteria; public function __construct(?array $criteria = null) { $this->criteria = $criteria; } public function criteria(): array { return $this->cr...
true
b75550aab51213422e341b96a2ea3b39421b588d
PHP
Delperie-yann/Nesti_CLIENT
/app/Controllers/UserController.php
UTF-8
10,528
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use App\Models\UsersModel; use App\Entities\Users; use App\Config\Services; use App\Models\ConnectionLogModel; class UserController extends BaseController { protected static $loggedInUser; protected static $dataCart; /** * index * * @return void */ ...
true
7550051713cc98a05df19cf51eccba85c88cfec5
PHP
miguel-rte-digital/mojofest
/event-framework/lib/eventbrite/EventBriteEntity.php
UTF-8
2,666
2.953125
3
[]
no_license
<?php /** * EventBriteConnector. * Version: 1.0 * Author: bmeme */ /** * Class EventBriteEntity */ abstract class EventBriteEntity { private $entity_id; private $connector; private $data; /** * @param $entity_id */ public function __construct($entity_id) { $this->setEntityId($entity_id); ...
true
3fdfca3f55bfcf2136a307d17ebcb7cbf4d72aef
PHP
DeividyH/OpenLineEditor
/local/database/migrations/2016_04_22_214046_create_shapes_table.php
UTF-8
834
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateShapesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('shapes', function (Blueprint $table) { $tab...
true
c3bb611afba5b4dc2fd8c936ff731e8b3c79f5ac
PHP
jingosgit/winkcms
/app/Repositories/PostsTags.php
UTF-8
939
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use Illuminate\Http\Request; use Wink\WinkPost; use Wink\WinkTag; trait PostsTags { /** Pull posts based on Tag or Category Tag or Category is passed as a variable property */ protected function tags($name){ $postsWithTag= WinkTag::with('posts') ->where('nam...
true
ec4d7bd4d38a14b1fe8a2f665b504ea7c6c852b4
PHP
jbrtrnd/starter-silex
/src/module/Starter/src/Generator/File/Test/Controller.php
UTF-8
3,596
2.859375
3
[]
no_license
<?php namespace Starter\Generator\File\Test; use Starter\Generator\File; /** * Generate a controller test class file. * * @package Starter\Generator\File\Test * @author Jules Bertrand <jules.brtrnd@gmail.com> */ class Controller extends File { /** * @var string The entity name. */ protected $...
true