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
2de0291164bae83a55eba17658a565f69dc11713
PHP
mloveday/plough-books
/code/src/Service/PersistenceService.php
UTF-8
852
2.765625
3
[]
no_license
<?php namespace App\Service; use Doctrine\ORM\EntityManagerInterface; class PersistenceService { private $entityManager; public function __construct(EntityManagerInterface $entityManager) { $this->entityManager = $entityManager; } public function persistAll(array $entities) { ...
true
831b8da1cf4c1ff6c9dd7392c58c9d668e0a1aab
PHP
rarriazad/darkrises-web
/Symfony2/src/DarkRises/WebBundle/Entity/Fanart.php
UTF-8
3,599
2.59375
3
[ "MIT" ]
permissive
<?php // src/DarkRises/WebBundle/Entity/Fanart.php namespace DarkRises\WebBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\HttpFoundation\File\UploadedFile; /** * @ORM\Entity * @ORM\Table(name="fanart") * @ORM\Entity(repositoryClass="DarkR...
true
53ecf46d7b06d540889aaca21f620a815de2d4f9
PHP
thienth/pt14314-php2
/lesson3/index.php
UTF-8
407
3.0625
3
[]
no_license
<?php // require_once './Category.php'; // require_once './User.php'; // $cates = Category::all(); // echo "<pre>"; // var_dump($cates);die; class A{ private $salary = 4800; protected $isMarried = "Đã có bồ"; function getSalary(){ return $this->salary; } } class B extends A{ function getRelation(){ re...
true
06cea3785006a18cd1df3f836090831c4c04bf91
PHP
rupertjeff/ascension-card-db
/tests/behat/bootstrap/ApiContext.php
UTF-8
6,607
2.640625
3
[]
no_license
<?php use App\Database\Model\Card; use Behat\Behat\Tester\Exception\PendingException; use Behat\Behat\Context\Context; use Behat\Behat\Context\SnippetAcceptingContext; use Behat\Gherkin\Node\PyStringNode; use Behat\Gherkin\Node\TableNode; use Behat\MinkExtension\Context\MinkContext; use GuzzleHttp\Client; use Laracast...
true
3c1f3333e1ab8ab162443ffa7bc4ea9ae341bd43
PHP
tpazera/slider-generator-pai
/src/controllers/AppController.php
UTF-8
865
2.8125
3
[]
no_license
<?php class AppController { const UPLOAD_DIRECTORY = '/resources/upload/'; private $request = null; public function __construct() { $this->request = strtolower($_SERVER['REQUEST_METHOD']); session_start(); } public function isGet() { return $this->request === 'get...
true
962f5fc94279a3eb733dd5f52b8f8c963a7ecf6d
PHP
mctekk/zohocrm
/src/Zoho/CRM/Entities/Users.php
UTF-8
974
2.515625
3
[ "MIT" ]
permissive
<?php /* * This file is part of mctekk/zohocrm library. * * (c) MCTekK S.R.L. https://mctekk.com/ * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Zoho\CRM\Entities; use Zoho\CRM\Wrapper\Element; /** * Entity for user...
true
cc3ac7fc055d17a7b152bc6e400fa4c5c75bcedb
PHP
mmaheen/WT_FINAL_SUM21
/Customer/controllers/orderController.php
UTF-8
2,923
2.5625
3
[]
no_license
<?php require_once 'Models/db_config.php'; $name=""; $err_name=""; $qty=""; $err_qty=""; $price=""; $err_price=""; $err_db=""; $hasError=false; if(isset($_POST["place_order"])){ if(empty($_POST["name"])){ $err_name="name Required"; $hasError = true; } else{ $name...
true
725c5da538b371238598bc5fd19f2bec360e88ad
PHP
teorikraften/codelane-cms
/app/database/seeds/AddPmTableSeeder.php
UTF-8
1,047
2.59375
3
[]
no_license
<?php class AddPmTableSeeder extends Seeder { public function run() { Eloquent::unguard(); // Allow mass assignment foreach(range(1, 10) as $index) { Pm::create(['title' => 'TestPM' . $index, 'content' => 'Jag är ett test. PM Nummer: ' . $index, 'created_by' => User::find(($index - 1) % 3 + 1)->i...
true
d6fad1837b57b128702c2e007eceaa0d8307a376
PHP
alexander2396/yii
/backend/modules/settings/models/Companies.php
UTF-8
1,574
2.796875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\modules\settings\models; use Yii; /** * This is the model class for table "companies". * * @property integer $id * @property string $title * @property string $start_date * @property string $created_at * @property string $status * * @property Branches[] $branches */ class Companies e...
true
5bd3e0776d20f2096bbcfbadb9441186e0673d62
PHP
zhan3333/note
/leetcode/树/112_路径总和.php
UTF-8
2,612
3.84375
4
[ "MIT" ]
permissive
<?php // 给定一个二叉树和一个目标和,判断该树中是否存在根节点到叶子节点的路径,这条路径上所有节点值相加等于目标和。 // //说明: 叶子节点是指没有子节点的节点。 // //示例:  //给定如下二叉树,以及目标和 sum = 22, // // 5 // / \ // 4 8 // / / \ // 11 13 4 // / \ \ // 7 2 1 //返回 true, 因为存在目标和为 22 的根节点到叶子节点的路径 5->4->11-...
true
980dc5b04c1875a99b724fa623b9462f4b1b4104
PHP
feifeio0/PHP-Hypertext-Preprocessor
/php&mysql加强/php加强/3.控制结构/20-求最大值.php
UTF-8
107
3.03125
3
[]
no_license
<?php /*判断条件?值1:值2;*/ $x = 10; $y = 9; $z = 88; echo ($x>$y?$x:$y)>$z?($x>$y?$x:$y):$z; ?>
true
9396ff12bbf6fe9d314cd528be3f02e5ddcaa36b
PHP
samircaica/zabboard
/application/controllers/PostgController.php
UTF-8
1,283
2.8125
3
[]
no_license
<?php class PostgController extends Controller { function index() { $this->set('title','Página de prueba de Postgresql'); $this->render("prueba"); $postg = new Postg(); echo "Find First</BR>"; $postg->findFirst(); echo $postg->id." ".$postg->name." ".$postg->lastname." ".$postg->age."<BR>"; echo "</B...
true
36c407dece19ef887dd4c0ef91b3f0320b0f0a5b
PHP
w01f/VolgaTeam.SalesLibrary
/WebSalesLibraries/protected/models/shortcuts/models/landing_page/mobile_items/MobileSettings.php
UTF-8
803
2.890625
3
[]
no_license
<? namespace application\models\shortcuts\models\landing_page\mobile_items; /** Class MobileSettings */ class MobileSettings { /** @var BaseMobileItem[] */ public $items; public function __construct() { $this->items = array(); } /** * @param $parentShortcut \LandingPageShortcut * @param $x...
true
00d73421e39f4bcb694c0ebc4343c5cc80ba4d7f
PHP
ashunasar/nee_swarth
/classes/admin.class.php
UTF-8
9,082
2.53125
3
[]
no_license
<?php class Admin extends Db{ protected function insertHeaderProduct($productName,$productImage,$category){ $image = "product_image".rand(10,1000).rand(10,1000).rand(10,1000). str_replace(' ', '', $productImage['name']); $tempImg = $productImage['tmp_name']; move_uploaded_fil...
true
f056d79cfb66efb3680c0d82d3dbc320dbfe0d4b
PHP
zalogithub/PROYECTO_CHIMBORAZO
/general.php
UTF-8
5,743
2.734375
3
[]
no_license
<?php // ponemos el tag completo de pronto el short tag de php.ini este deshabilitado class conexion { // enlace var $link; //Variables para consulta var $consulta; var $resultado; var $cuantos; var $cantidad; //variables para insercion var $inserto; var $insercion; //variables para insercion var $elimino=fal...
true
a855872857d7661a8857f6be961afd99efefd9b3
PHP
rolwi/koala
/extensions/.todo/extensions/extensions/units_elearning/classes/directaccess.class.php
UTF-8
3,753
2.671875
3
[]
no_license
<?php require_once( PATH_EXTENSIONS . "units_elearning/classes/elearning_user.class.php"); require_once( PATH_EXTENSIONS . "units_elearning/classes/elearning_mediathek.class.php"); class directaccess { private $courseid; private $unit; function __construct($courseid, $unit) { $this->courseid = $courseid; ...
true
5605bc90ce8afeb95c5f927da4a94b7d9cc29522
PHP
GuillaumeRslt/BetisierIUT
/include/pages/ajouterSalarie.inc.php
UTF-8
2,456
2.703125
3
[]
no_license
<h1>Ajouter un salarié</h1> <?php if ( !isset($_POST["telPro"]) && !isset($_POST["fonction"]) ) { ?> <form name="ajSalarie" action ="#" method = "post" id = "ajSalarie"> Téléphone professionnel : <input size = 30 maxlength = 50 name="telPro"><br /><br /> <label>Fonction : </label> <select class="...
true
eecdb968b495c49507f5c44cac8a60380dc13f36
PHP
makeadiff/Phoenix
/app/Http/Controllers/DonationController.php
UTF-8
1,464
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Donation; use App\Models\Online_Donation; use Illuminate\Http\Request; use JSend; class DonationController extends Controller { // This will merge both Donut Donations and Online Donations into one result. public function search($search) { // $s...
true
6a366e6d4e132bbc29dc7520e47f519a550fb34a
PHP
pluckannfeel/worktext
/exercises/delete_exercise.php
UTF-8
495
2.5625
3
[]
no_license
<?php require_once '../classes/connection.php'; require_once '../classes/Redirect.php'; session_start(); if(isset($_GET['exercise_id'])){ $exer_id = $_GET['exercise_id']; $title = $_GET['title']; $delete = $db->prepare(" DELETE FROM exercises WHERE id = :id "); $delete->execute([ 'id' => $e...
true
bad6fe49549b131ff66cc51a502bc7616a731784
PHP
wearecolossal/nestlecafe
/app/MenuItem.php
UTF-8
828
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\File; class MenuItem extends Model { protected $table = 'menu_items'; protected $fillable = ['name', 'order', 'on_white', 'description', 'image', 'category', 'archive', 'draft']; public static $rules = [ 'na...
true
f884646fc517ad2d77f464593a7b6fdfdcc95635
PHP
m304so/medikolous
/inc/journal.model.inc
UTF-8
593
2.625
3
[]
no_license
<?php require_once 'model.class.inc'; class Journal extends Model { public function __construct() { parent::__construct(); } public function getVisitorsAll() { $query = ' SELECT u.id, u.name as doctorName, u.surname as doctorSurname, u.patronymic as doctorPatronymic, u.link,...
true
6efb3d16530766a54b02e68ca592d8172da002b7
PHP
Alelo/aDKP
/list.php
UTF-8
2,420
2.53125
3
[]
no_license
<table class="dkp" id="dkplisting"> <tr> <td align="center" colspan="10" class="bold"> Raid DKP Listing </td> </tr> <tr id="dkplist"> <?php get_function(array('dev','class_de','race_de')); $mysqli = new mysqli(DB_HOST, DB_USER,DB_PW, DB_DB); ...
true
0884d69bb9ca8b55c1c9fd6a3c5fead957fe9ebe
PHP
adrianobnu/parvus-framework
/src/Mail.php
UTF-8
7,302
2.859375
3
[]
no_license
<?php namespace Parvus; use PHPMailer\PHPMailer\PHPMailer; class Mail { private $mailer, $aConfig, $html; private $withLog = false; /** * Mail constructor. * @param null $prAConfig */ public final function __construct($prAConfig = NULL) ...
true
a22e093739ce9d2d355475d05ddec5a1f3b4154e
PHP
jonathanborthwick/spinningmonkey
/theme/bprog/Archived/TestDom2.php
UTF-8
1,492
3.34375
3
[]
no_license
<?php header('Content-Type: text/plain'); echo("TESTING LOADING DOM \n\r"); //Send a GET request to the URL of the web page using file_get_contents. //This will return the HTML source of the page as a string. $htmlString = file_get_contents('https://www.boredpanda.com/feed/'); //Create a new DOMDocument object. $htm...
true
9eeae7786137d9457d475bd35573c1df865e5e2f
PHP
AnjanishKumar/EmojiCodeSheet
/php/oop php/codepoint/Flags.php
UTF-8
29,929
2.609375
3
[ "MIT" ]
permissive
<?php /** * Asim Zubair * created on 8/5/2016 */ class Flags{ //Row#: 1 public static $AFGHANISTAN = ["0x1f1e6", "0x1f1eb"]; //https://www.emojibase.com/emoji/1f1e6-1f1eb/flagforafghanistan public static $LAND_ISLAND = ["0x1f1e6", "0x1f1fd"]; //https://www.emojibase.com/emoji/1f1e6-1f1fd/flagforlandis...
true
cb772e3002f4323d009ddae2db795298c779e7b6
PHP
denilson157/HueHueCine
/controller/MovieAPI.php
UTF-8
976
3.09375
3
[]
no_license
<?php require_once(dirname(__FILE__) . "/../model/Movie.php"); require_once(dirname(__FILE__) . "./Tmdb-API.php"); class MOVIEApi extends TMDB { public function getMovieDetail($movieId) { $result = $this->get("/movie/$movieId?"); if (count($result) > 0) return (object) n...
true
35fa4e9ffa814f8f415a0f6a6c9dfde1f81790f3
PHP
judimator/simple-search-bundle
/Exception/EngineNotFoundException.php
UTF-8
289
2.515625
3
[]
no_license
<?php namespace Ju\SimpleSearchBundle\Exception; class EngineNotFoundException extends \InvalidArgumentException { /** * @inheritdoc */ public function __construct($type) { parent::__construct(sprintf('Engine %s with same type no found.', $type)); } }
true
1a14587efa8a9c456e8b81531555d5eddd622fea
PHP
sergo-8ck/laracom
/app/Blog/Sections/Repositories/SectionRepository.php
UTF-8
6,479
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Blog\Sections\Repositories; use App\Blog\Sections\Repositories\Interfaces\SectionRepositoryInterface; use Jsdecena\Baserepo\BaseRepository; use App\Blog\Sections\Section; use App\Blog\Sections\Exceptions\SectionInvalidArgumentException; use App\Blog\Sections\Exceptions\SectionNotFoundException; us...
true
af442b064b6bb191ca3065d35039d297f05b294c
PHP
bganglia/blog-database
/blogs/create_blog.php
UTF-8
1,190
2.609375
3
[]
no_license
<head> <?php $PAGE_TITLE = "Create Post"; include("../common/head-tags.php"); ?> </head> <body> <?php include("../common/string_utils.php"); include("../common/header.php"); include("../common/sql.php"); ?> <div class="w-50 mr-auto ml-auto"> <?php ...
true
17e6100ac1b10b633492b791b1bc695b36e9e7e1
PHP
ningxiaren/basic
/models/SelectClass.php
UTF-8
1,361
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "{{%select_class}}". * * @property integer $id * @property string $class_name * @property string $user_name * @property string $school_rank */ class SelectClass extends \yii\db\ActiveRecord { /** * @inheritdoc */ pu...
true
6e4edb05641ce38e61b445721fa7343193504b4f
PHP
GemsTracker/gemstracker-library
/classes/Gems/Translate/GenderTranslation.php
UTF-8
4,952
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Gems\Translate; use Gems\Event\EventDispatcher; trait GenderTranslation { /** * @var EventDispatcher */ protected $event; /** * @var \Zend_Translate[] */ protected $genderTranslates; /** * * @var \Zend_Translate */ protected $translate; ...
true
7676cc1a5da0606cd432409a4ce8c23ab1365524
PHP
jon1267/biz54
/app/Http/Controllers/Admin/ArticlesController.php
UTF-8
6,474
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Category; use Illuminate\Http\Request; use App\Http\Controllers\Admin\AdminController; use App\Article; use App\Repositories\ArticlesRepository; class ArticlesController extends AdminController { protected $a_rep; //typo article repository public function ...
true
b861062594a51e655b6c39e3ee0c8a201521c0f0
PHP
stratus-meridian/apigee-kickstart-drupal8-drops
/vendor/consolidation/robo/src/Common/OutputAdapter.php
UTF-8
1,395
2.703125
3
[ "MIT" ]
permissive
<?php namespace Robo\Common; use Robo\Contract\OutputAdapterInterface; use Robo\Contract\OutputAwareInterface; use Robo\Contract\VerbosityThresholdInterface; use Symfony\Component\Console\Output\OutputInterface; /** * Adapt OutputInterface or other output function to the VerbosityThresholdInterface. */ class Outpu...
true
604e6732c75e3e2718c7c67e652fbb50d2e5eddf
PHP
XoopsX/tpMailForm
/html/modules/mailform/Controller/FormCreate.php
UTF-8
1,768
2.546875
3
[]
no_license
<?php class Mailform_Controller_FormCreate extends Pengin_Controller_AbstractThreeStepSimpleForm { protected $useModels = array('Form'); // 使用するモデルを定義 public function main() { $this->_checkPermission(); $this->_checkAdminTaskBar(); $this->_setUpPageTitle(); parent::main(); } protected function _checkAdm...
true
a5716b6754ded8d8c159775ed89e943cd5459bcb
PHP
ricomonster/mark24
/app/database/migrations/2014_01_03_165248_create_posts_table.php
UTF-8
1,051
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('posts', function(Blueprint $table) { $table->increments('post_id'); $table...
true
d48e0dcabb655f2efe6b5995a7c78cf55f179952
PHP
appserver-io/doppelgaenger
/tests/Tests/Data/Annotations/MixedTestClass.php
UTF-8
1,607
2.546875
3
[]
no_license
<?php /** * \AppserverIo\Doppelgaenger\Tests\Data\Annotations\MixedTestClass * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * * PHP version 5 * * @author ...
true
0c0117db0e078c6f8b769453f38fe6d587204b38
PHP
kbond/schedule-bundle
/src/Command/ScheduleRunCommand.php
UTF-8
2,016
2.640625
3
[ "MIT" ]
permissive
<?php namespace Zenstruck\ScheduleBundle\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Co...
true
279bc17d6469806f2c20cfa1bbad34a37c08404d
PHP
smasimore/Baseball
/Models/Utils/ArrayUtilsTest.php
UTF-8
6,790
2.703125
3
[]
no_license
<?php // Copyright 2013-Present, Saber Tooth Ventures, LLC include_once 'ArrayUtils.php'; class ArrayUtilsTest extends PHPUnit_Framework_TestCase { public function providerRemoveColumns() { $array = array( array( 'one' => 1, 'two' => 2, 'three' ...
true
da943379393354aa83db72d18ea342b33785c213
PHP
ng-web/crudapp
/update.php
UTF-8
2,882
3
3
[]
no_license
<?php $title = 'Update'; require_once 'config/dbconnection.php'; //include 'models/functions.php'; $pdo = pdo_connect_mysql(); $msg = ''; // Check if the product id exists, for example update.php?id=1 will get the product with the id of 1 if (isset($_GET['id'])) { if (!empty($_POST)) { // This part is sim...
true
65195b6fd49f1bedef2dd4f27e1954ff9fedb98f
PHP
johnBeGoode/titre_pro_instic
/models/EntityManager/CommentManager.php
UTF-8
2,040
2.828125
3
[]
no_license
<?php namespace App\EntityManager; use App\DBFactory; use App\Entity\Comment; class CommentManager { protected $db; public function __construct() { $this->db = DBFactory::getConnexion(); } public function add($comment, $movieId, $userId) { $sql = "INSERT INTO comments (co...
true
0e43c0fb28e568f21c8225f346fd85a86847f603
PHP
3slab/VdmHealthcheckBundle
/Healthcheck/CheckerConfig.php
UTF-8
945
2.78125
3
[ "MIT" ]
permissive
<?php namespace Vdm\Bundle\HealthcheckBundle\Healthcheck; class CheckerConfig { /** * @var string */ protected $name; /** * @var string */ protected $type; /** * @var array */ protected $arguments; /** * CheckerConfig constructor. * @param string ...
true
b544d29caaa917da621478f1863e43b33668e923
PHP
kfirba/factor
/src/helpers.php
UTF-8
620
2.515625
3
[ "MIT" ]
permissive
<?php use Kfirba\Factor\PendingModel; /** * Create a collection of models and persist them to the database. * * @param $model * @param array $overrides * @param int $times * * @return PendingModel|mixed */ function create($model, $overrides = [], $times = 1) { return new PendingModel('create', $mo...
true
94864db3ddc41053cd0ad17c43010c7198b59a41
PHP
bykike/POO
/NuevasLecciones/lesson22/public/time.php
UTF-8
698
3.96875
4
[]
no_license
<?php class Time { protected $time = null; public function __construct($time = null) { $this->time = $time ?: time(); } public function __toString() { return date('d/m/Y H:i:s', $this->time); } public function tomorrow() { return new Time($this->time + 24...
true
0216d711e466fa34a874d1b2356b541c52f38772
PHP
lpboucher/Slawek.com
/builds/development/index.php
UTF-8
1,418
2.546875
3
[]
no_license
<?php require_once("session.php"); ?> <?php require_once("functions.php"); ?> <?php include("layouts.php"); ?> <?php if(isset($_POST['submit'])) { // EDIT THE 2 LINES BELOW AS REQUIRED $email_to = "contact@viewfinder.photo"; $email_subject = "Website Contact Request"; $full_name = $_POST['full_name']; ...
true
74e732bc505845ed5cabe7ff585186ebcbd3404a
PHP
google-code/ag-archgroup-web
/app/libraries/Breadcrumb.php
UTF-8
2,747
3.1875
3
[]
no_license
<?php /** * @author Anh Nguyen <duyanhnguyen@vccorp.vn> * @copyright 2012 */ class Breadcrumb { private $_bread = ''; private $_crumbs = array(); private $_href_param; private $_seperator; private $_home_text; private $_home_link; function Breadcrumb($config = array()) { $t...
true
6181333a30691475081a446600429e29d0d5cefe
PHP
barkayal/hero-adventure-php
/src/Mob/MobType.php
UTF-8
730
3.171875
3
[]
no_license
<?php namespace HeroAdventure\Mob; abstract class MobType { public const HERO = 'hero'; public const WILD_BEAST = 'wild beast'; /** * @param string $type * @return bool */ public static function isKnownType(string $type = '') { return self::isKnownHeroType($type) || self...
true
36955009daffc64e86a4314863ca38acc8c4fd89
PHP
austinfromboston/phamily
/test/nested_content_parser_test.php
UTF-8
1,757
2.875
3
[]
no_license
<?php require_once( 'test_helper.php'); class TestOfNestedContentParser extends UnitTestCase { function setUp( ){ $this->parser = new PhamilyParser; } function test_parse_inline_content( ) { $result = $this->parser->render( "%html blah" ); $this->assertEqual( $result, '<html>blah...
true
ccd2902a56b289b14750f5cedebad100e291b38c
PHP
k-hasan-19/serverless-php
/php-serverless/src/buzz.php
UTF-8
269
2.59375
3
[]
no_license
<?php function buzz($event){ $feed = buzzFeed(); return $feed; } function buzzFeed(){ $client = new GuzzleHttp\Client(); $res = $client->request('GET', 'http://www.buzzfeed.com/api/v2/feeds/news'); $body = (string) $res->getBody() ; return $body ; }
true
fab4dfadf3780a580c90fe0f433d200cc0988437
PHP
brundlet/cs008-FinalProject
/savedIDs.php
UTF-8
996
2.796875
3
[]
no_license
<?php include('top.php'); $filename = 'data/registration.csv'; $file = fopen($filename, 'r'); $dataOK = false; if($file){ $dataOK = true; $headers = fgetcsv($file); while(!eof($file)){ $element = fgetcsv($file); if($element != "") { $ids[] = $element; } } fclose($file); } ?> <a...
true
ab7a4bed9796dc97d2c531f10633a2af324f1b3f
PHP
giggsey/libphonenumber-for-php
/src/PhoneNumberToTimeZonesMapper.php
UTF-8
5,132
2.90625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: giggsey * Date: 14/10/13 * Time: 16:00 */ namespace libphonenumber; use libphonenumber\prefixmapper\PrefixTimeZonesMap; class PhoneNumberToTimeZonesMapper { const UNKNOWN_TIMEZONE = 'Etc/Unknown'; const MAPPING_DATA_DIRECTORY = '/timezone/data/'; const MAPPIN...
true
615ae24627c45e9328f7bd30de690655d2203282
PHP
jkiss/Chuanbang
/protected/models/Category.php
UTF-8
2,037
2.71875
3
[]
no_license
<?php class Category extends CActiveRecord { /** * Returns the static model of the specified AR class. * @param string $className active record class name. * @return User the static model class */ public static function model($className=__CLASS__) { return parent::model($className); } /** * @return s...
true
3c5c4af3aa9e21aefc5a8352693bc190766897ff
PHP
Kevin-Jimenez/ProyectoGranero
/model/reportes/pdf_detalle_venta.php
UTF-8
1,569
2.609375
3
[]
no_license
<?php require"fpdf.php"; require "../database.php"; class pdf_detalle_venta extends FPDF{ public function header(){ //tipo de letra $this -> setfont('Arial','B',20); //agregar imagen $this -> Image("detalle_v.png",35,9,150); //diseño de titulo $this -> cell(200,5,"Detalle Venta",0,...
true
8c2b133c6136446cfccba4e81ec12ae0e94c485f
PHP
chocoai/35hui
/35hui/trunk/35huimanage/protected/models/User.php
UTF-8
11,991
2.515625
3
[]
no_license
<?php /** * This is the model class for table "{{user}}". * * The followings are the available columns in table '{{user}}': * @property integer $user_id * @property string $user_name * @property string $user_salt * @property string $user_pwd * @property integer $user_role * @property integer $user_regtime * ...
true
95d432eb5db50d96a2e99a8feacdf5f3da58c8ed
PHP
tlenss/zabbix-sms-client
/lib/Zabbix/Sms/Factory.php
UTF-8
698
2.796875
3
[ "MIT" ]
permissive
<?php /** * Zabbix Sms Client builder * * @author Thijs Lensselink <tl@lenss.nl> Dec 19, 2013 * @package Zabbix * @subpackage Sms */ namespace Zabbix\Sms; class Factory { /** * Construct an Sms client * * @param string $clientType * @param array $params * @param boolean $debug ...
true
ffc7ee13a7a042c7e7479181a39652ec42797bfa
PHP
VioletHill/TacWebsite2
/Works/WorksBean.php
UTF-8
2,318
2.828125
3
[]
no_license
<?php class WorksBean { private $workID; private $name; private $icon; private $iconHover; private $launchImage; private $Description; private $screenShoot; private $author; private $itunsLink; public function _construct() { } /** * @return the $author */ public function getAuthor() { return $th...
true
63b79e5d5f03635e1f5d364e17e3052798f7cf53
PHP
ChiaHsein/4th_grade_medicine
/login_check.php
UTF-8
2,239
2.578125
3
[]
no_license
<?php $hostname="120.105.161.205"; $username="U029"; $password="U029"; $database="4thgradedrugs"; $connect = mysqli_connect($hostname,$username,$password,$database); mysqli_query($connect,"SET NAMES 'UTF8'"); //各種設定 $datetime = date("Ymd",mktime(date('H')+8, date('i'), date('s'), date('m'), date('d'), date('Y'))); sess...
true
a27b039a3e8b6fdc05ed605ca50943058a715dc7
PHP
IdeasWise/Languagenut-oldcode
/lnut/application/controllers/admin.articleitemtype.php
UTF-8
4,267
2.546875
3
[]
no_license
<?php class admin_articleitemtype extends Controller { private $token = 'list'; private $arrTokens = array( 'list', 'edit', 'add', 'delete' ); private $parts = array(); private $objarticleitemtype = null; public function __construct() { parent::__construct(); $this->parts = config::g...
true
ec741b8d7eb7b406a5a07b6aa4df13ebb383957d
PHP
Zehnerle/website
/task5/wiki/classes/parser.php
UTF-8
1,896
3.234375
3
[]
no_license
<?php class Parser { private $links; private $linkCount; //Constructor for the class parser public function __construct() { $this->links = array(); } public function parseToHtml($content) { $this->links = array(); $this->linkCount = 0; $html = $this->parse($content); return nl2br($h...
true
1f044e716c6d6ddfbd0fe46af485ead806e9f2a5
PHP
boluijten3/BASALT_PAMsoftware
/htdocs/gino-pam/php_library/gino/MysqlUtils.class.php
UTF-8
4,780
3.21875
3
[]
no_license
<?php /** * Hulpfuncties om met MySQL (query-resultaten) om te gaan, project overstijgend (?) */ require_once('BaseQueries.class.php'); class MysqlUtils { function getData($sql, $return = true) { $query = BaseQueries::performQuery($sql); if (@mysql_num_rows($query) != 0) { $keys_ro...
true
205c161a499cba994a2d0bd50cdec083aeab71c4
PHP
rachmatfauzan/pzn-oop
/GetterAndSetter.php
UTF-8
312
3.125
3
[]
no_license
<?php require_once "data/Category.php"; $category = new Category(); $category->setname("apple"); $category->setexpensive(true); echo "No Model : {$category->getname()}" . PHP_EOL; echo "Expensive : {$category->isexpensive()}" . PHP_EOL; $category->setname(" "); echo "Name : " . $category->getname();
true
46e796419e07481d68c20fc63c878ddc51e1e557
PHP
christian-graf/laravel-application-version
/tests/Unit/VersionTest.php
UTF-8
3,485
2.921875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Fox\Application\Version\Tests\Unit; use PHPUnit\Framework\TestCase; use Fox\Application\Version\Version; class VersionTest extends TestCase { /** * @return array */ public function getTestData(): array { $major = rand(1, 100); $minor = r...
true
3f6ad13921293088caca4cae9d78875691d1f292
PHP
July-c/hundred
/vendor/qcloud/cos-sdk-v5/src/Guzzle/Service/Exception/InconsistentClientTransferException.php
UTF-8
994
2.59375
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Guzzle\Service\Exception; use Guzzle\Common\Exception\RuntimeException; /** * Command transfer exception when commands do not all use the same client */ class InconsistentClientTransferException extends RuntimeException { /** * @var array Commands with an invalid cl...
true
345a64a23bc1c67bcc17ee158368d02eb531560a
PHP
ryan-moll/DatabasesFinal
/contractEval.php
UTF-8
3,456
2.96875
3
[]
no_license
<?php include('nbaConData.txt'); $conn = mysqli_connect($server, $user, $pass, $dbname, $port) or die('Error connecting to MySQL server.'); ?> <html> <head> <title>NBA Data</title> </head> <body bgcolor="white"> <hr> <?php $player = $_POST['playerName']; $player = mysqli_real_escape_strin...
true
3808e6c516a216d3bb1f06c5d903af6229285719
PHP
AshleyCheema/Binary
/Assets/Jamie/Website/binary/functions.php
UTF-8
3,773
2.9375
3
[]
no_license
<?php function leaderBoard(){ include "gameconfig.php"; //default value if (strpos($_SERVER['REQUEST_URI'], "Most") !== false){ $task = "wins"; } else if (strpos($_SERVER['REQUEST_URI'], "Played") !== false) { $task = "gamesPlayed"; } else if (strpos($_SERVER['REQUEST_URI'], "Hacker") !== false) { $task ...
true
fcceeabff1eebdea9464872717e1a95617a9c792
PHP
Fallatas/DEVTESTING
/my-librarys/florence-library/schleifen/index.php
UTF-8
1,895
3.734375
4
[]
no_license
<?php /** * Created by PhpStorm. * User: t0m * Date: 05.08.2016 * Time: 19:06 */ echo "<strong style='color: red'>While Schleifen</strong>"; echo "<br>"; echo "<strong style='color: red'>Uebung 1:</strong>"; echo "<br>"; $i = 1; while($i <= 6){ echo $i; echo "<br>"; $i++; } echo "<hr style='color: re...
true
1c9dd7623005cc37866a9008fe3fb393c4dfac8e
PHP
pixelpeter/laravel5-genderize-api-client
/src/Models/GenderizeResponse.php
UTF-8
863
2.734375
3
[ "MIT" ]
permissive
<?php namespace Pixelpeter\Genderize\Models; use Illuminate\Support\Collection; class GenderizeResponse extends BaseModel { protected $meta; protected $result; public function __construct($response) { $this->result = $this->setResult($response); $this->meta = $this->setMeta($response...
true
a2c829a9178d96a3d1b9b8c6538a0b23e7bfc691
PHP
mdshahedkhan/ECOMMERCE_DEMO
/database/seeders/subscribersSeeder.php
UTF-8
456
2.640625
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Subscribers; use Faker\Factory; use Illuminate\Database\Seeder; class subscribersSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Factory::create(); foreach (rang...
true
5357c48b556527aad8c1e27d8cf573f8c676ca0a
PHP
Michael4d45/cubes
/app/Models/Role.php
UTF-8
696
2.765625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Role extends Model { use HasFactory; const ADMIN_ID = 1; const ROLES = [ ROLE::ADMIN_ID => 'admin', ]; /** * The attributes that are mass assignable. ...
true
3bc2f133dd5edefd01a4b5c9c4d5cf7be5da269d
PHP
avalanche-development/approach
/src/Builder/Parameter.php
UTF-8
4,965
2.8125
3
[ "MIT" ]
permissive
<?php namespace AvalancheDevelopment\Approach\Builder; use AvalancheDevelopment\Approach\Schema\Schema as SchemaObject; use AvalancheDevelopment\Approach\Schema\Items as ItemsObject; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; class Parameter extends AbstractBuilder impleme...
true
2f994d9b512a536bb1fb23b59739873f6a9283ff
PHP
kaiogoncarvalho/teste-php
/app/Http/Requests/ProductRequest.php
UTF-8
1,712
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; /** * Classe responsável pela validação de Produto * * Class ProductRequest * @package App\Http\Requests * * @author Kaio Gonçalves Carvalho <kaio.carvalho@pravaler.com.br> * @since 01/10/2018 * */ class ProductRequest extends ...
true
64c0c9d711446d7a4bfbed8abefa484bfbca8338
PHP
zhangjiquan1/phpsourcecode
/wapai/jingling/application/admin/validate/Action.php
UTF-8
480
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\validate; use think\Validate; /** * 模型验证模型 */ class Action extends Validate{ protected $rule = [ ['name', 'require|/^[a-zA-Z]\w{0,39}$/|unique:Action', '行为标识必须|标识不合法|标识已经存在'], ['title', 'require|length:1,80', '标题不能为空|标题长度不能超过80个字符'], ['remark', ...
true
0c1919e76673a3f3893aa55a96aeaa52458affc2
PHP
CedricNocenti/Fnac
/Fnac like/model/T_e_avis_avi.php
UTF-8
2,911
2.734375
3
[]
no_license
<?php class T_e_avis_avi{ protected $_avi_id; protected $_adh_id; protected $_liv_id; protected $_avi_date; protected $_avi_titre; protected $_avi_detail; protected $_avi_note; function __construct($idavis) { $this->_avi_id = $idavis; $this->_adh_id = null; $this->_liv_id = null; $th...
true
f4a873d5f0b49acf048f8a1675f8b27ec6429656
PHP
noopable/np-page
/src/NpPage/Builder/BlockBuilder.php
UTF-8
4,088
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * * @copyright Copyright (c) 2013-2014 KipsProduction (http://www.kips.gr.jp) * @license http://www.kips.gr.jp/newbsd/LICENSE.txt New BSD License */ namespace NpPage\Builder; use NpPage\Block\BlockInterface; use NpPage\ResourceInterface; use Zend\ServiceManager\ServiceLocatorAwareInterface; use Zend\S...
true
67019fd8b09fec434e21d800abe0ea464157bb39
PHP
Astoundify/donkey
/src/inc/class-helpscout.php
UTF-8
3,255
2.640625
3
[]
no_license
<?php class Donkey_Helpscout { private $input = false; public function __construct() { add_action( 'init', array( $this, 'add_rewrite_endpoints' ) ); add_action( 'template_redirect', array( $this, 'template_redirect' ) ); } public function add_rewrite_endpoints() { add_rewrit...
true
336eaa750318e972c738e90627056c95f0874dd5
PHP
maltehuebner/adventskalender
/classes/Calendar.php
UTF-8
419
2.9375
3
[]
no_license
<?php namespace Caldera\Adventskalender; class Calendar { protected $days; public function __construct() { } public function addDay(Day $day) { $dayNumber = $day->getDate()->format('d'); $this->days[$dayNumber] = $day; } public function shuffleDays() { s...
true
cba7e41186c519cd0db43c1e8081c7af57ce5b1f
PHP
FrancisVarga/processus-schreibmaschine
/src/Monolog/Handler/CouchbaseHandler.php
UTF-8
1,702
2.5625
3
[ "MIT" ]
permissive
<?php /** * Created by JetBrains PhpStorm. * User: hissterkiller * Date: 11/26/12 * Time: 1:00 PM * To change this template use File | Settings | File Templates. */ namespace Monolog\Handler; use Monolog\Formatter\JsonFormatter; use Processus\Ruhebett\Interfaces\NoSQLInterface; use Processus\Ruhebett\Memcached\C...
true
67fded90241388c6e6d91feda356c498e5225084
PHP
morawiecm/serwis_nowy
/funkcje/funkcje_ewidencja.php
UTF-8
22,776
2.78125
3
[ "MIT" ]
permissive
<?php /** Funkcja tworzaca liste rozwijaną (tabela slownik_zlodlo_finanosowania) * z możliością przeciążenia wartości * - wartośc podana jako parametr będzie na 1 miescu listy rozwijanej **/ function PobierzZrodloFinasowania($wartosc) { //deklaracja zmiennych i ich wartosci $polaczenie = polaczenie_z_ba...
true
7ef6e381f54265ade69b2d3e1a938f3c508bf68e
PHP
VolleyballScheduling/core-bundle
/Manager/WidgetManager.php
UTF-8
1,712
2.53125
3
[]
no_license
<?php namespace Volleyball\Bundle\CoreBundle\Manager; use \Symfony\Component\DependencyInjection\ContainerInterface; use \Doctrine\Common\Collections\ArrayCollection; class WidgetManager { /** * Widgets * @var ArrayCollection */ protected $widgets; /** * Container * @var Cont...
true
1c642cc3752eb4f1b9e4f05a83d6fe86d8ed272b
PHP
nikocevicstefan/ampcms
/app/Http/Requests/UserStoreRequest.php
UTF-8
906
2.5625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UserStoreRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get ...
true
999757bf023f1f94cb486d222ed114d7f1ab8e59
PHP
MykeArtDesign/Blog_basic
/src/config/Database.class.php
UTF-8
700
3.09375
3
[ "MIT" ]
permissive
<?php class Database { private $host = "mickaelszmfolio.mysql.db"; private $db_name = "mickaelszmfolio"; private $username = "mickaelszmfolio"; private $password = "Kurzweil972"; public $bdd; /** Connexion à la base de données * @return string */ public function dbConnection() { $this->bdd ...
true
626077dddb0aeb27c1470b62b5282fa8ef418b8f
PHP
zunnu/eBot-stats
/includes/database.php
UTF-8
1,032
2.953125
3
[ "MIT" ]
permissive
<?php require_once("config.php"); class Database { public $connection; function __construct() { $this->open_db_connection(); } public function open_db_connection() { $this->connection = new mysqli(DB_HOST,DB_USER,DB_PASS,DB_NAME); $set_char = $this->connection->set_charset("utf...
true
94510f301185dd6e386a9022f11dae1ce790304e
PHP
snowket/reservation
/classes/basket/basket_services.php
UTF-8
3,408
2.609375
3
[]
no_license
<? if(!defined('LANG')) define('LANG',"eng"); class basket_services { private $user; private $conn; private $tbl_basket; private $tbl_item; private $tbl_item_info; private static $instance; private function __construct(&$conn,$prefix,$user) { $this->conn = &$conn; $this->user = $user; $this->tbl_b...
true
81015c8ac56064bf7e71f493a9569b78a726051a
PHP
avanzu/tidy
/src/UseCases/User/DTO/CollectionResponseTransformer.php
UTF-8
1,800
2.71875
3
[]
no_license
<?php /** * CollectionResponseTransformer.php * tidy * Date: 07.04.18 */ namespace Tidy\UseCases\User\DTO; use Tidy\Components\Collection\IPagedCollection; use Tidy\Domain\Responders\User\ICollectionResponseTransformer; use Tidy\Domain\Responders\User\IResponseTransformer; use Tidy\UseCases\User\DTO\ResponseTrans...
true
723251e1604373fcede2cef10b9dc599d5f5bb6c
PHP
takatost/php-trello-api
/lib/Trello/Model/Member.php
UTF-8
8,546
2.59375
3
[ "MIT" ]
permissive
<?php namespace Trello\Model; use Trello\Exception\InvalidArgumentException; /** * @codeCoverageIgnore */ class Member extends AbstractObject implements MemberInterface { protected $apiName = 'member'; protected $loadParams = array( 'fields' => 'all', ); /** * {@inheritdoc} */ ...
true
0b678b4a22b08379a7ba1d895b93fdf21eef4fff
PHP
Lambolez/DAE_PIDR
/branches/DAS 2010/algorithms/algorithms.admin.inc
UTF-8
1,871
2.5625
3
[]
no_license
<?php // $Id:$ /** * @file * Provides the administration page for algorithms. */ /** * Administration settings page */ function algorithms_admin() { /** * \todo These values should be global variables */ $processUser = posix_getpwuid(posix_geteuid()); $processUsername = $processUser['name']; $for...
true
7713b54a32f32569694038a7ec882f111e205ad1
PHP
CSEASET/ForYouApp
/papers-fanart-php/pdf/vendor/atoum/atoum/classes/asserters/boolean.php
UTF-8
1,344
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace mageekguy\atoum\asserters; use mageekguy\atoum\asserters, mageekguy\atoum\exceptions ; class boolean extends asserters\variable { public function __get($property) { switch (true) { case strtolower($property) == 'isfalse': return $this->isFalse(); case strtolower($property) == 'istr...
true
140e087d64cd61644e84b0917bb0054af4b42fdf
PHP
winzerhof-wurst/core
/app/Listeners/OrderEventListener.php
UTF-8
829
2.640625
3
[]
no_license
<?php namespace App\Listeners; use App\Events\OrderEvent; use Illuminate\Contracts\Mail\Mailer; use Illuminate\Mail\Message; class OrderEventListener { /** @var Mailer */ private $mailer; /** * @param Mailer $mailer */ public function __construct(Mailer $mailer) { $this->mailer = $mailer; } /** * Ha...
true
9f457117c286692b146eb0d79fe00bdc7f8443a7
PHP
AnasOmarObaid/php
/Conditional.php
UTF-8
1,060
3.546875
4
[]
no_license
<?php // ================== Conditional ==================================== # The Conditional Is simillar java # if(Conditional) _> just Conditional The result should be [ true or false ] $ticketPrice = 200; if($ticketPrice >= 400 && $ticketPrice < 500){ echo " Your Ticit Price Is " . $t...
true
0e2c0eb4f26a0b240f9ef4705ba710b616674281
PHP
joykumarbera/csv
/src/Helpers/Util.php
UTF-8
373
2.875
3
[ "MIT" ]
permissive
<?php namespace Bera\Csv\Helpers; class Util { /** * check if file type is csv or not * * @param string $file_name * @return bool */ public static function checkIfCsvFile($file_name) { $file_ext = \pathinfo($file_name,PATHINFO_EXTENSION); if($file_ext != 'csv') ...
true
2fd87297bf1c3f5a0707e40781ca8db29be77cf7
PHP
Odienne/testUnitaire
/src/LigneFacturation.php
UTF-8
892
3.015625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Odien * Date: 11/01/2019 * Time: 10:35 */ namespace LicenseDev; class LigneFacturation { private $description; private $valeur; public function __construct($description, $valeur) { $this->description = $description; $this->valeur = $vale...
true
521f052abe375956de5ec0a5fd4deb8200d06ef7
PHP
estefaniadlff/introProgra
/BDconect.php
UTF-8
607
2.53125
3
[]
no_license
<?php //mostramos la conexion para realizar la actualizacion //usaremos PDO para conectar PHP con MySQL /*$CONNECT= new PDO ("mysql:host=localhost;dbname=php_conusltapdo", "root",""); //DB CREDENCIALES DE USUARIO.;*/ DEFINE('DB_HOST','localhost'); DEFINE('DB_USER','root'); DEFINE('DB_PASS','root'); DEFINE('DB_N...
true
0eb0878e718de12fdb9d757bd618e1f51a787ffc
PHP
nishanth66/message
/app/Models/messages.php
UTF-8
946
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class packages * @package App\Models * @version September 17, 2018, 5:55 am UTC * * @property string subscrption_name * @property string amount * @property string setup_charges * @property string qty_of_ala...
true
b1ebe04ffeeeee04012120611da15c7db5e3c7f1
PHP
luigif/WsdlToPhp
/samples/xignite-currencies/Get/Response/XiCurrenciesTypeGetRealTimeCrossRatesResponse.php
UTF-8
1,438
2.53125
3
[]
no_license
<?php /** * Class file for XiCurrenciesTypeGetRealTimeCrossRatesResponse * @date 08/07/2012 */ /** * Class XiCurrenciesTypeGetRealTimeCrossRatesResponse * @date 08/07/2012 */ class XiCurrenciesTypeGetRealTimeCrossRatesResponse extends XiCurrenciesWsdlClass { /** * The GetRealTimeCrossRatesResult * Meta infor...
true
2baa0d90fc0c646f5de3f4e8fd5a8afa761de5cd
PHP
drpcwmt/csms
/modules/lms/chapters.class.php
UTF-8
2,091
2.78125
3
[]
no_license
<?php /** Chapters * */ class Chapters { public function __construct($id){ if($id != ''){ $book = do_query_obj("SELECT * FROM chapters WHERE id=$id", LMS_Database); if(isset($book->id)){ foreach($book as $key =>$value){ $this->$key = $value; } return $this; } else { return false; ...
true
aff8d34948be47fb14ca5b6172d8257101cd597d
PHP
by-robots/writedown-core
/tests/Http/Middleware/Authenticated/ValidatesToken.php
UTF-8
1,991
2.546875
3
[ "MIT" ]
permissive
<?php namespace Tests\Http\Middleware\Authenticated; use Tests\Stubs\SessionStub; use Tests\TestCase; use ByRobots\WriteDown\HTTP\Middleware\AuthenticatedMiddleware; class ValidatesToken extends TestCase { /** * When an invalid token is presented an exception should be thrown. */ public function te...
true
7880678af54056cfb70a5bcd7abb3faffc703a17
PHP
kitesoft/System-to-Manage-your-Inventory
/app/Http/ViewComposers/ShoppingCart.php
UTF-8
1,028
2.765625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: ubuntu * Date: 1/15/18 * Time: 7:15 PM */ namespace App\Http\ViewComposers; use app\Util\Modules\Composers\ViewComposer; use app\Util\Modules\ShoppingCart\Base\Main\Basket as ShoppingCartEntity; use Illuminate\View\View; class ShoppingCart extends ViewComposer { /*...
true
083cbb70707c4b5dc913086c12847244b3818d4b
PHP
lekoala/silverstripe-chosenfield
/code/ChosenField.php
UTF-8
6,072
2.703125
3
[ "MIT" ]
permissive
<?php /** * A dropdown field using Chosen * * @author LeKoala */ class ChosenField extends ListboxField { protected $no_results_text; protected $allow_single_deselect = true; protected $allow_max_selected; protected $use_order = false; protected $disable_search = null; private static $thro...
true
e22cfb166cc99add018da68cbd34abcd9b78de0f
PHP
blag001/Vlyon_Reparation_Mobile
/src/controller/Velo.ctr.php
UTF-8
8,166
2.953125
3
[]
no_license
<?php /** * fichier de declaration de la class controller des Velo */ /** * class controller Velo * * controleur pour les Velo * Charger d'appeller les methodes suivant les demandes */ class Velo { /** @var OdbVelo model de gestion Velo en Bdd */ private $odbVelo; /** @var OdbStation model de gestion...
true
dff82c4bc986007a236ff635f3e3cd80d343e522
PHP
FrenetGatewaydeFretes/frenet-magento
/lib/Frenet/Shipping/vendor/php-di/php-di/src/DI/Debug.php
UTF-8
484
2.796875
3
[ "MIT" ]
permissive
<?php namespace DI; use DI\Definition\Definition; /** * Debug utilities. * * @author Matthieu Napoli <matthieu@mnapoli.fr> */ class Debug { /** * Dump the definition to a string. * * @return string * * @deprecated You should cast the definition to string instead. * This feature ...
true
dc913e536a9479e18150f90cbc5c1153aa8a5f6d
PHP
guoyu07/app_alipay
/src/AppAliPay.php
UTF-8
2,934
2.75
3
[]
no_license
<?php /** * Class AppAliPay */ class AppAliPay { public static function checkParamEmpty($filed, $param) { if (empty($param)) { throw new Exception($filed. '字段不能为空', 500); } return $param; } public static function createAliPayCode($aliPrivateKey, $aliPayId, $aliP...
true