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
0a63edb2e2bd235ece620cbd89f1a1c552daa51c
PHP
iotenti/capstone
/assets/SavedCars.php
UTF-8
598
2.609375
3
[]
no_license
<?php session_start(); include_once ("header.php"); include_once("functions.php"); include_once("dbconnect.php"); ?> <h1>Saved Cars</h1> <?php $db = dbconnect(); if(!isset($_SESSION['lsc'])) { echo "<h4>There are no saved cars in your local inventory</h4>"; } else { $save = "<table>"; foreach ($_SESSI...
true
dba0b2d50b61f628d491e2e2292e672e38e0c9d9
PHP
tangping624/ql-laravel
/app/Models/Product.php
UTF-8
2,944
2.578125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use App\Extensions\Coverable; use App\Extensions\BeTagged; use Cache; class Product extends Model { use SoftDeletes, Coverable, BeTagged; const IMAGE_TYPE_COVER_1 = 1; const IMAGE_TYPE_COV...
true
e205e8f04e5b662180144908fe885e9ec2d7eec9
PHP
tachuelota/EDocente
/models/reporte.model.php
UTF-8
2,148
2.53125
3
[ "MIT" ]
permissive
<?php //Models go here if(!isset($nivel_dir)){ $nivel_dir="../"; } include_once($nivel_dir."models/persona.model.php"); class Reporte{//Clase var $html; function Reporte(){//Constructor } function getDatosMaestro($id){ global $database; return $database->toarray($database->query("SELECT * FROM ...
true
43c11832d926deaed989daaed2c056a06d92fd26
PHP
denkinua/Meeting
/Meetingroom/Entity/User/UserEntity.php
UTF-8
2,836
2.84375
3
[]
no_license
<?php namespace Meetingroom\Entity\User; use \Meetingroom\Service\LDAP\LDAP; /** * Description of UserEntity * * @author Alexandr Gureev <barif@syneforge.com> */ class UserEntity { protected $username; protected $userId; protected $ldap; protected $userManager; protected $userFactory; pro...
true
4c3c6e3a231eade0cc4e948c9d70f1e9a3edca0c
PHP
ikevi1547/guvi
/Set_9_Assignment_90.php
UTF-8
378
3.09375
3
[]
no_license
<?php error_reporting(0); $stdin = fopen('php://stdin', 'r'); $in = fgets($stdin); $alphabetics = array('a','e','i','o','u','b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z'); for($i=0;$i<strlen($in);$i++) { if(!in_array(strtolower($in[$i]),$alphabetics)) ...
true
f90bfb79c0af527c89f2165fa95d1f6342076884
PHP
comcduarte/com-ponents
/src/View/Helper/Subtable.php
UTF-8
967
2.546875
3
[]
no_license
<?php namespace Components\View\Helper; use Laminas\View\Helper\AbstractHelper; class Subtable extends AbstractHelper { public $title; public $data; public $form; public $primary_key; public $params; public $help; public function __invoke(array $values) { f...
true
f0bd75e24ca01d37bcac589a44bcbabea1bf7f87
PHP
moona4/Ecommerce
/database/seeds/UserSeeder.php
UTF-8
1,388
2.5625
3
[ "MIT" ]
permissive
<?php use App\User; use App\UserPassword; use Illuminate\Database\Seeder; class UserSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $superAdministratorUser = User::create([ 'first_name' => 'Super', 'last_...
true
2dc99433850e2eb45ae7833c91b3b6427f764bc1
PHP
mobilozophy/MZCAPILaravel
/src/Services/ServiceBase.php
UTF-8
8,148
2.78125
3
[]
no_license
<?php namespace Mobilozophy\MZCAPILaravel\Services; use Mobilozophy\MZCAPILaravel\Services\Api\Credentials; /** * Class ServiceBase * @author Jeffrey Wray <jwray@mobilozophy.com> * @package Mobilozophy\MZCAPILaravel\Services */ class ServiceBase { use UsesCredentialsTrait; protected $apiService; /** ...
true
a5a4217b2510a97dcf756d194ec4f102a1ec818e
PHP
ericbenwa/arduino-trials
/Pull_Up_Old_Stuff/web_app/show2.php
UTF-8
774
2.65625
3
[]
no_license
<?php $username="ebenoitc_fitness"; $password="silly1"; $database="ebenoitc_pullups"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM tablename"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); echo "<b><c...
true
888c8dfb40cceeb72b225cdf69b9ca9667656f67
PHP
dang1999/tutor
/check_signup.php
UTF-8
1,166
2.53125
3
[]
no_license
<?php require ('DB_user.php'); // Lớp đăng kí class Signup extends DB_user { function __construct() { // Khai báo tên bảng $this->_table_name = 'user'; // Khai báo tên field id $this->_key = 'post_id'; // Gọi hàm khởi tạo cha ...
true
1dc5385ab3c39440fb9e8ab12da3faf4e399ed5a
PHP
filipefigueiredo0812/redes
/teste/ex2.php
UTF-8
902
3.765625
4
[]
no_license
<?php $num = rand(1, 7); echo "<h3>Ex2</h3>"; echo $num. '<br><br>'; switch($num){ case (1): echo "Domingo"; break; case (2): echo "Segunda-feira"; break; case (3): ...
true
be8e16d550ddc365ed0f00b7dc3252a9a1998d91
PHP
NicoMilk/cfscc_api
/app/User.php
UTF-8
1,542
2.6875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Sanctum\HasApiTokens; class User extends Authenticatable { use Notifiable, HasApiTokens; /** * The attributes that are mass as...
true
933926fb829a5f86194d2f78e00034973becc672
PHP
saavedraphp/botica
/database/seeds/TaskesTableSeeder.php
UTF-8
685
2.609375
3
[ "MIT" ]
permissive
<?php use App\Task; use Illuminate\Database\Seeder; class TaskesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(Task::class,5)->create(); /* $date = \Carbon\Carbon::now()->toDateString()...
true
792aa525a861dd022965e8309ebae6a71342403e
PHP
gajahab90/am2Apartments
/app/Observers/ApartmentObserver.php
UTF-8
2,042
2.578125
3
[]
no_license
<?php namespace App\Observers; use App\Apartment; use Illuminate\Support\Str; class ApartmentObserver { /** * Handle the apartment "saving" event. * * @param \App\Apartment $apartment * @return void * @throws \Exception */ public function saving(Apartment $apartment) { i...
true
2710e4f1b40ad7d570c4c3d50d4d1d18ce5f6862
PHP
usernane/webfiori-examples
/simple-blog/app/ArticleController.php
UTF-8
2,780
2.9375
3
[]
no_license
<?php namespace webfiori\simpleBlog; use webfiori\logic\Controller; use webfiori\simpleBlog\ArticleQuery; use webfiori\simpleBlog\Article; /** * An auto-generated controller. */ class ArticleController extends Controller { /** * An instance of the class. * @var ArticleController */ private s...
true
a9b51bc1bcf630b4b5a2589474aad083618ecb21
PHP
planetenkiller/PHPCDI
/PHPCDI/API/Instance.php
UTF-8
470
2.734375
3
[]
no_license
<?php namespace PHPCDI\API; interface Instance extends \IteratorAggregate { public function get(); /** * @return Instance */ public function select(array $qualifiers); /** * @return Instance */ public function selectInstance($subType, array $qualifiers); /** ...
true
acd314db72765432ea9fef62f3c3be9d5f1b1a25
PHP
unl-creq/UNL_UndergraduateBulletin
/src/UNL/UndergraduateBulletin/Major/FourYearPlan/Semester.php
UTF-8
1,135
3.234375
3
[]
no_license
<?php class UNL_UndergraduateBulletin_Major_FourYearPlan_Semester extends ArrayIterator { /** * Integer of the semester number * Typically this will be 1-8 * 11 = Summer after first year * 12 = Summer after second year * 13 = Summer after third year * * @var int */ publi...
true
02a90793f9312df92369203837acf5d3fb6971c9
PHP
denebdesign/backend-0.2
/core/library.php
UTF-8
594
3
3
[]
no_license
<?php /** * * * @param $code - is one of the responses * 1. HTTP call * 2. Fake Http call * 3. error number. * * * * @return bool */ function is_error ( $code ) { if ( is_numeric( $code ) && $code < 0 ) return true; else if ( is_array( $code ) && isset( $code['code'] ) && $code['code...
true
2af12cd1c75722748faf86706fbf02e4a7aa9661
PHP
raysichic/wallscript
/apps/components/wallscript/Time/TimeStamp.php
UTF-8
1,646
3.171875
3
[ "MIT" ]
permissive
<?php namespace Apps\Components\Wallscript\Time; class TimeStamp { public static function convert($sessionTime) { $timeDifference = time() - $sessionTime; $seconds = $timeDifference; $minutes = round($timeDifference / 60); $hours = round($timeDifference / 3600); $days = ...
true
5293635c0072c6e9bc7cd2d101d6231687764838
PHP
vincentvandy/bibliotheque_gestion
/3TID2_update.php
UTF-8
1,598
2.8125
3
[]
no_license
<!-- Fichier qui permet de mettre lemprunt a jour surtout utilisé pour editer la duree donc je nai pas pris la peine dafficher le nom du livre et de lemprunteur comme fait sur les autres pages --> <html> <head> <meta charset="utf-8"> <title>Dwm Gestion de la bibliothèque</title> </head> <body> <?php error_report...
true
02ae54690a4c9c8d0bf0b5ff984dc155f26c6afa
PHP
The-Problem/The-Problem
/server/core/packages/packages.php
UTF-8
2,045
2.828125
3
[ "MIT" ]
permissive
<?php /** * Allows packages and resources to be easily loaded * * @author Tom Barham <me@mrfishie.com> * @version 1.0 * @copyright Copyright (c) 2014, Tom Barham * @package LimePHP.Packages */ class Packages { /** * Get a list of packages in the folder specified * * @author Tom Barham <me@mrfi...
true
f2dc4e1410477f5bf606d0dc4569fc217baa301d
PHP
junniepat/phpmotors
/vehicles/index.php
UTF-8
8,736
2.734375
3
[]
no_license
<?php // Vehicles controller // Create or access a Session session_start(); // Get the database connection file require_once '../library/connections.php'; // Get the PHP Motors model for use as needed require_once '../model/main-model.php'; // Get the accounts model require_once '../model/vehicles-model.php'; // Get ...
true
2d32cd070582632ebae8431b3def8e817ef31141
PHP
svoeth/yourDashboard
/core/yourDashboard/dashboard/dashlets/DashletOpenNMSAlarms.php
UTF-8
8,413
2.515625
3
[]
no_license
<?php /******************************************************************** * This file is part of yourDashboard. * * Copyright 2014-2015 Michael Batz * * * yourDashboard is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Fo...
true
f326f61eb0d6ea871dd97ce8cb2a1cc309eb0079
PHP
andres-conforti/web2-2020
/app/Controller/Controller.php
UTF-8
5,259
2.65625
3
[]
no_license
<?php require_once 'app/View/ServiciosView.php'; require_once 'app/Model/ServiciosModel.php'; require_once 'app/Model/CategoriasModel.php'; require_once 'helpers/authHelper.php'; class Controller{ private $view; private $Smodel; private $Cmodel; private $authHelper; function __construct(){ ...
true
6f61bae3a33a53d15688bb2d572c50bf9307d536
PHP
pojok-projects/tutorialsystem-database-interface-layer
/app/Http/Controllers/ContentMetadataController.php
UTF-8
5,749
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Str; use App\Models\ContentMetadataModel; use App\Traits\DndbQuery; class ContentMetadataController extends Controller { // Include Trait inside Controller use DndbQuery; /** * @param ContentMetadataModel $mo...
true
2b5bde6c3b584eaabba29e811cbd613822b2bc37
PHP
Akhadjon-Bokijanov/ondoc-api-v1
/app/Models/User.php
UTF-8
1,654
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Tymon\JWTAuth\Contracts\JWTSubject; class User extends Authenticatable implements JWTS...
true
f7c1ae313ffbf06590e29901366f640ddff5a5ba
PHP
montanaflynn/koi
/test/apps/routes.php
UTF-8
1,229
2.875
3
[ "MIT" ]
permissive
<?php class Application extends Koi\Application { public function index() { return "index method"; } public function sub_route() { return "sub method"; } public function alphabetic() { return "alphabetic method"; } public function numeric() { return "numeric method"; } public function alph...
true
8aaaff5bc76e6e265ff9f77d495e22a92159d1e7
PHP
joseacevedo9698/NuvolaProyect
/app/Http/Controllers/VueloController.php
UTF-8
5,952
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Vuelo; use App\Persona; use Illuminate\Http\Request; use Mtownsend\XmlToArray\XmlToArray; use Validator; class VueloController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public functi...
true
739a1b3b2637139fe46d7d6b3cd0518320969792
PHP
mateomaturana/BCTM
/Model/UsuarioRutaDeseada.php
UTF-8
2,181
2.53125
3
[]
no_license
<?php class UsuarioRutaDeseada extends EntidadBase{ private $Cod_ruta; private $Dni_usuario; private $fecha_registro; private $Recomendacion; private $tags; public function __construct() { $table="UsuarioRutaDeseada"; parent::__construct($table); ...
true
ca43e0ce88eb79e05f0533baaff905e3f38fc073
PHP
waldson/web-code-sample
/tests/src/TodosRepositoryTest.php
UTF-8
2,739
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace W5n\Tests; use W5n\Repositories\TodosRepository; use Doctrine\DBAL\Connection; class TodosRepositoryTest extends BaseTest { private function createRepository(): TodosRepository { return new TodosRepository( $this->getConnection() ); } ...
true
787fd57c9b201f01fa8c333078fabea39691ed0a
PHP
nicolaspi01/PTUTS3
/MVC/modele/PaypalManager.php
UTF-8
1,722
3.03125
3
[]
no_license
<?php require_once("Model.php"); class PaypalManager extends Model { //Definit tout les parametre statique de l'URL public function construitUrl() { //Site de l'API Paypal $urlPaypal = "https://api-3t.sandbox.paypal.com/nvp?"; //Version de l'API d...
true
07845664f48fcd5d57c0aa06b4bfc2363c0abfc5
PHP
tifenn-guillas/AniRace
/tests/CloseToElephantTest.php
UTF-8
4,102
2.765625
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use \AniRace\Animal\Horse; use \AniRace\Animal\Elephant; use \AniRace\Animal\Leopard; use \AniRace\Rules\CloseToElephant; /** * @covers CloseToElephant */ final class CloseToElephantTest extends TestCase { public function testApplyRule() { $history = []; ...
true
672393621b9108f2d43e562bb51503dbb39090c4
PHP
tirmizee/wutdd
/fizzbuzz.php
UTF-8
447
3.875
4
[]
no_license
<?php /** * */ class Fizz { private $number; function __construct($num) { $this->number=$num; } public function getNumber(){ return $this->number; } public function calculateNumber(){ $result=""; if($this->number%3==0) $result="Fizz"; else if($this->number%5==0) $result="...
true
2a51fd8f5db99fdafb9db59ad70fe6393898850b
PHP
PHPappus/PapusClub
/app/Http/Controllers/SedesController.php
UTF-8
4,071
2.640625
3
[ "MIT" ]
permissive
<?php namespace papusclub\Http\Controllers; use Illuminate\Http\Request; use papusclub\Http\Requests; use papusclub\Models\Sede; use papusclub\Http\Requests\StoreSedeRequest; use papusclub\Http\Requests\EditSedeRequest; class SedesController extends Controller { //Muestra la lista de sedes que se encuentran en...
true
5e8d498554183b914ddda3bcbea15831039f8625
PHP
sravi7/AWS-Post
/main.php
UTF-8
7,287
3.09375
3
[]
no_license
<?php # This is a PHP Script written for Testing the Kelvin Engines by posting it to the cloud. # Author: Santosh Ravi # Created on 10/27/2014 # Update on 11.11.2014: Changed the "Submit2" case where the if condition will be looking for "engine_mac", which was previously "mac". # # Update on 11.11.2014: Changed the "S...
true
fc2fa1d34b6fa4681b083d9e169bc0201d621f32
PHP
esudalaimadan/wp-custom-schedule
/wp-custom-schedule.php
UTF-8
5,642
2.71875
3
[]
no_license
<?php /* Plugin Name: Adds Custom Schedules Description: Enables you to add your own custom schedules */ if (!class_exists('WP_List_Table')) { require_once(ABSPATH . 'wp-admin/includes/class-wp-screen.php'); require_once(ABSPATH . 'wp-admin/includes/screen.php'); require_once(ABSPATH . 'wp-admin/includ...
true
b3394e51f8ee0a17880604bcd75ea33c554d677b
PHP
WSUCSClub/WSUCSClub
/projectlist.php
UTF-8
2,456
2.84375
3
[]
no_license
<?php $articlepaths = glob("articles/article*.txt"); $articles = array(); $projects = array(); foreach ($articlepaths as $articlepath) { list($id, $title, $author, $date, $articletype, $category, $imagepath, $text, $thumbnailpath, $shorttext) = file($articlepath); // Split articl...
true
68a7dba59f378a3f6039e2686377a682e917166c
PHP
rahulyhg/happy-giraffe
/site/seo/modules/promotion/models/Query.php
UTF-8
4,039
2.84375
3
[]
no_license
<?php /** * This is the model class for table "queries". * * The followings are the available columns in table 'queries': * @property string $id * @property string $keyword_id * @property string $visits * @property string $page_views * @property double $denial * @property double $depth * @property integer $v...
true
ad115d987eccf1d92ea748a134f6cfb548f775e8
PHP
Arielt99/ArielsList
/database/seeders/SubCategoriesTableSeeder.php
UTF-8
748
2.59375
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\SubCategories; use Illuminate\Database\Seeder; use Illuminate\Support\Str; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; class SubCategoriesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */...
true
71275d9b559ee796e408541004c13652683605c6
PHP
1638824607/jquery_sign
/shenruxiang.com/ruxiangge/app/Console/Commands/bookUpdateCollect.php
UTF-8
1,462
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Admin\Book; use App\Admin\BookRank; use App\Admin\Chapter; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class bookUpdateCollect extends Command { /** * The name and signature of the console command. * * @var string */ pro...
true
5c76772fd4b7b38e153f741765d8b11318cc61b6
PHP
fossabot/GraphQL-Utils
/src/ObjectBuilder.php
UTF-8
803
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SimPod\GraphQL\Utils; use function assert; use function is_array; use function is_callable; final class ObjectBuilder extends TypeBuilder { /** @var callable|mixed[][] */ private $fields = []; public static function createFromName(string $name) : self { ...
true
7b9466d3e857ec1c0a9c20387eb3d25790e560e5
PHP
Team-Tea-Time/thaliak
/code/app/Models/PasswordReset.php
UTF-8
911
2.65625
3
[ "MIT" ]
permissive
<?php namespace Thaliak\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class PasswordReset extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['token', 'email']; /** * The ...
true
15a76c84a75a02549bcf7a6fc53cf0f4cf17fb4d
PHP
The-Sequence-Ontology/OBOB
/MODPERL_OBOB/htdocs/PHP/change-password.php
UTF-8
1,271
2.5625
3
[]
no_license
<?php //Start session session_start(); //Include database connection details require_once('config.php'); //Connect to mysql server $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if(!$link) { die('Failed to connect to server: ' . mysql_error())...
true
60af645ccecf46db8b9e206312758b60f351c8cc
PHP
sanjoydesk/cygniteframework
/vendor/cygnite/framework/src/Cygnite/Container/Container.php
UTF-8
10,700
2.828125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Cygnite package. * * (c) Sanjoy Dey <dey.sanjoy0@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cygnite\Container; use Closure; use ArrayAccess; use Cygnite\Reflection; us...
true
fc599700d302704ad5a60e2a03a2bde4cc275f60
PHP
ReCodEx/api
/app/helpers/ExerciseConfig/Pipeline/Box/Boxes/FileNameBox.php
UTF-8
3,116
2.921875
3
[ "BSD-3-Clause", "GPL-2.0-only", "MIT", "Apache-2.0" ]
permissive
<?php namespace App\Helpers\ExerciseConfig\Pipeline\Box; use App\Exceptions\ExerciseConfigException; use App\Helpers\ExerciseConfig\Pipeline\Box\Params\ConfigParams; use App\Helpers\ExerciseConfig\Compilation\CompilationParams; use App\Helpers\ExerciseConfig\Pipeline\Box\Params\BoxCategories; use App\Helpers\Exercise...
true
d3175b2c129c307ca4ca9cd23fd600c5423c9ceb
PHP
desarrollo-bexandy-rodriguez/personal-framework-mvc
/controllers/holaController.php
UTF-8
524
2.59375
3
[]
no_license
<?php class holaController extends Controller { public function __construct() { parent::__construct(); } public function index() { //echo "Hola desde el indexController..."; $post = $this->loadModel('post'); $this->_view->posts = $post->getPosts(); // de esta forma...
true
bae73201d4f2747f7af593202b245b29ae3d2a50
PHP
LeoGonzaga/Banco-de-dados
/Aula04.php
UTF-8
672
2.8125
3
[]
no_license
<!-- SELECT --> <!-- Puxa direto do banco os valores --> <?php $pdo = new PDO('mysql:host=localhost;dbname=modulo_8','root',''); $sql = $pdo->prepare("SELECT * FROM `post` INNER JOIN `categorias` ON `post`.`categoria_id` = `categorias`. `id` "); $sql->execute(); $info = $sql->fetchAll(PDO::FETCH_ASS...
true
278297459c9a076a0e83702be5afd5359b4d72ff
PHP
sullivantobias/POO-LG
/Php/Healer.php
UTF-8
348
2.90625
3
[]
no_license
<?php require_once ("loadingClass.php"); class Healer extends Caracter{ public function __construct ($pseudo, $age) { parent::__construct($pseudo, $age); $this -> setRace ("Healer"); } public function heal () { if ($this -> heal = 1) { echo '</br> I can use this medik...
true
d6bd6a5d095b45a74b16eab60c6a5989abbd79cc
PHP
AlexxSantana/Servidor-Web-PHP
/basen.php
UTF-8
910
3.375
3
[]
no_license
<style> table {border-collapse: collapse;} th, td {border: 1px solid #dddddd; width:46px;} </style> <?php /* Esta forma de recuperar valores es independiente de que el método usuado sea GET o POST */ echo "El method que ha usado es: ",$_SERVER['REQUEST_METHOD'],"<br>"; echo "<h1>CAMBIO DE BASE</h1>"; ...
true
c1fd872ab1af04d570d6127e0958fc9d42457487
PHP
lavalava/gamepub
/api/apifavoritecreate.php
UTF-8
3,788
2.640625
3
[]
no_license
<?php /** * ShaiShai, the distributed microblogging tool * * Add a notice to a user's list of favorite notices via the API * * @category API * @package Shaishai * @author Guofu Xie <guofu85@gmail.com> * @copyright 2009-2010 Shaier, Inc. * @link http://www.shaishai.com/ */ if (!defined('SHAISHAI'))...
true
60b17fcd8d22b613d27191e92b40cf39516502a4
PHP
kareem-torky/php-validator
/src/Request.php
UTF-8
806
2.84375
3
[]
no_license
<?php namespace PhpValidator\Src; class Request { private $method, $data; public function __construct() { $this->method = $_SERVER['REQUEST_METHOD']; $this->fillData(); } public function fillData() { if ($this->method == 'GET') { $this->data = $_GET; ...
true
b129431db74b31969a406a935c5f9bc0b264e983
PHP
kurraz-soft/timeder
/app/Http/Controllers/TasksController.php
UTF-8
3,067
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Repositories\FileRepository; use App\Repositories\TaskRepository; use Illuminate\Http\Request; class TasksController extends Controller { /** * Display a listing of the resource. * * @param Request $request * @param TaskRepository $repo * ...
true
8932f37ba3c865d217bc0ae8c896cbab88705fca
PHP
Mumbai2017/team-5
/include/user.php
UTF-8
1,649
2.890625
3
[]
no_license
<?php include_once 'db.php'; class User{ private $db; private $db_table = "users"; public function __construct(){ $this->db = new DbConnect(); } public function isLoginExist($username, $password,$role){ $query=""; if($role=='teacher') $query = "select * from " . $this->db_table . " where ...
true
f5fe2ed5eef433fd38bcb248e8e36460b76c7123
PHP
kazak1377/ar-helpers
/src/index.php
UTF-8
1,854
2.734375
3
[]
no_license
<?php /** * User: kazak * Email: mk@altrecipe.com * Date: 2019-05-08 * Time: 13:47 */ use Illuminate\Container\Container; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Routing\ResponseFactory; use Illuminate\Http\Response; ...
true
a43bb29d952925176c983b8c64f4099100fea2d9
PHP
spbGeg/otchet
/admin/db.php
UTF-8
1,115
2.75
3
[]
no_license
<?php //$mysqli = new mysqli("127.0.0.1", "root", "","report"); // //$mysqli->query("SET NAMES 'utf-8' "); //$employees = $mysqli->query("SELECT * FROM 'employees' ORDER BY id"); // //$mysqli->close(); $host = "127.0.0.1"; $user = 'root'; $pass = ''; $db_name = "report"; $link = mysqli_connect($host, $user, $pass, $d...
true
816f698de847b14b9dc612c46f9929b3f01ecb61
PHP
ygae0118/Prog-WEB
/praktik_php/sessionCreate.php
UTF-8
240
2.546875
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php $_SESSION["favcolor"] = "Black"; $_SESSION["favanimal"] = "Panda"; echo "Session variables are SET."; ?> </body> </html>
true
cc8ce4c5ca7111a32a6a9d759c55e74c2050c65f
PHP
ibrahima-bah/camping
/classes/reservation-form.php
UTF-8
5,960
3.140625
3
[]
no_license
<?php class reservation { public $db; public function __construct($db) { $this->db = $db; } public function checkReservation($lieu, $date_debut, $date_fin, $emplacements) { if (strtotime($date_fin) <= strtotime($date_debut)) { $errors[] = "La date de fin doit être...
true
744adbcf9d5b90e1f028ad8201af37552f844de2
PHP
naoto0714/easy-twitter-sample
/php_libs/class/UserModel.php
UTF-8
6,846
2.96875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of UserModel * * @author naoto */ class UserModel extends BaseModel{ //------------------------------...
true
91da05c72e9eba4e4b3ca2aa73c0803b345842f7
PHP
roman1970/lis
/basic/models/DiaryDoneDeal.php
UTF-8
1,902
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "done_deal". * * @property integer $id * @property integer $deal_id * @property integer $act_id * @property integer $user_id * * @property MarkUser $user * @property Deals $deal * @property ControllActs $act */ class DiaryDoneDea...
true
f851648e87f608030c5fd395637c3b021f1168f5
PHP
acerus/WordPressify
/www/wp-content/plugins/wp-pipes/includes/view.php
UTF-8
2,296
2.71875
3
[ "MIT", "GPL-1.0-or-later", "GPL-2.0-or-later", "GPL-2.0-only" ]
permissive
<?php /** * @package WP Pipes plugin - PIPES * @version $Id: view.php 170 2014-01-26 06:34:40Z thongta $ * @author thimpress.com * @copyright 2014 thimpress.com. All rights reserved. * @license GNU/GPL v3, see LICENSE */ defined( 'PIPES_CORE' ) or die( 'Restrict...
true
9a331ff82ec1c438288bfbcb975421aa62121bc2
PHP
nbgspl-github/AmVirgin-Backend
/app/Resources/News/Item/Customer/ListResource.php
UTF-8
856
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Resources\News\Item\Customer; use Illuminate\Http\Resources\Json\JsonResource; class ListResource extends JsonResource { public function toArray ($request) : array { return $this->type->is(\App\Library\Enums\News\Article\Types::Article) ? $this->article() : $this->video(); } protecte...
true
9b84d68f6c45028f71aa8a403edea600632cf71a
PHP
JesusGarciaValadez/kidzania-coupon
/snippets/db/connection.php
UTF-8
347
2.65625
3
[]
no_license
<?php try { $dbh = new PDO( 'mysql:host=' . $config[ 'database' ][ 'db_host' ] . ';dbname=' . $config[ 'database' ][ 'db_name' ], $config[ 'database' ][ 'db_user' ], $config[ 'database' ][ 'db_password' ] ); $dbh->exec("SET CHARACTER SET utf8"); } catch ( PDOException $e ) { print "Error!: " . $e->getMessag...
true
a9a6245a497f13c3a6175025d561dc0634ffe9ae
PHP
sandstorm/mailer-daemon
/router/blacklistGenerator.php
UTF-8
460
2.765625
3
[ "MIT" ]
permissive
<?php $blacklist = array( "foo@example.net", "BAR@example.net" ); foreach($blacklist as $email) { echo "$email \n"; } echo "\n"; echo " \t some other stuff but no email address at front\n"; echo "\t some other stuff but no email address at front\n"; $delimiters = array( ";", "\t", ",", ...
true
16eab05289afb63f87017bd1905701057eac4721
PHP
adearta/api-support
/app/Console/Commands/ReminderCommand.php
UTF-8
2,675
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Models\NotificationWebinarModel; use App\Models\StudentParticipantAkbarModel; use App\Models\StudentModel; use App\Models\WebinarAkbarModel; use App\Jobs\SendMailReminderJob; use App\Models\SchoolParticipantAkbarModel; use Illuminate\Suppor...
true
64bcebb447fa7a743d33aff4e8883f1b87169db6
PHP
voidnerd/book-api
/app/Http/Controllers/BookController.php
UTF-8
2,248
2.765625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Book; class BookController extends Controller { public function __construct() { } public function showAll() { return response()->json(['data' => Book::all()], 200); } public function show($id) { ...
true
70fe197eb56117ea9f6d0bb610b75ce3f4d6075f
PHP
condector/hotcrp
/src/capability.php
UTF-8
7,376
2.609375
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "BSD-3-Clause" ]
permissive
<?php // capability.php -- HotCRP capability management // Copyright (c) 2006-2020 Eddie Kohler; see LICENSE. class CapabilityManager { private $conf; private $cdb; private $dblink; function __construct(Conf $conf, $cdb) { $this->conf = $conf; $this->cdb = $cdb && $conf->contactdb(); ...
true
afa97419eb8f0a641cee2b7f428ed5f60782fc32
PHP
bbathel12/HeadFirstDesignPatterns
/duckSimulatorTest.php
UTF-8
471
2.765625
3
[]
no_license
<?php namespace DuckSimulator; spl_autoload_register(function ($class_name) { $file_name = str_replace("\\", DIRECTORY_SEPARATOR, $class_name); require_once $file_name . '.php'; }); echo "mini duck simulator\n"; $sim = new MiniDuckSimulator(); $sim->main(); echo "Model Duck\n"; $model = new ModelDuck(); $mod...
true
0dd443938995a7016215332339639032d2138b75
PHP
yuyik/EasyShop
/service/profile.php
UTF-8
3,297
2.546875
3
[ "MIT" ]
permissive
<main> <div class = "imageContainer"> <?php if (!isset($_GET['user'])){ if ( isset($_SESSION[$host]['id'])) $userid = $_SESSION[$host]['id']; else $userid = 1; }else $userid = $_GET['user']; $query = "SELECT * FROM `users` WHERE id=".$userid; $rez = $mysqli->q...
true
deb37bc35289095443f66206946dae08bcb37e62
PHP
SwetaSadhya/WebPromotool
/Admin/Library/app.class.php
UTF-8
13,361
2.8125
3
[]
no_license
<?php require_once("class.phpmailer.php"); // app.class.php // application object, provides global routines needed across application class App { var $error_template = 'error.php'; var $initialized = false; var $updatemode=false; var $errors = array(); var $error_display_type =1; // strip slashes recursiv...
true
09c2eebee66ee5df64b8b29d1ddc47d054f0a7bf
PHP
benoit-deuffic/wemovies-demo
/app/src/Service/TmdbApiService.php
UTF-8
3,190
2.75
3
[]
no_license
<?php namespace App\Service; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Component\DependencyInjection\ParameterBag\ContainerBagInterface; class TmdbApiService implements TmdbApiServiceInterface { private $client; private $apiKey; private $apiEndPoint; private $parameters; ...
true
f45fcb5475230222dfe081085c9480c601422faf
PHP
Stolz/laravel-schema-spy
/src/Command.php
UTF-8
2,657
2.8125
3
[ "MIT" ]
permissive
<?php namespace Stolz\SchemaSpy; use Config; use Illuminate\Console\Command as ConsoleCommand; use Symfony\Component\Console\Input\InputArgument; class Command extends ConsoleCommand { /** * The console command name. * * @var string */ protected $name = 'db:spy'; /** * The console command description. ...
true
94a53559c05306d6c2a6e16bd189da7aded55954
PHP
SIU-Toba/framework
/php/nucleo/lib/toba_mensajes.php
ISO-8859-1
4,217
3.1875
3
[]
no_license
<?php /** * Obtiene los mensajes del proyecto definidos en el editor, tiles para evitar fijar los mensajes del usuario en el cdigo * Consumir como: toba::mensajes()->metodo * @package Fuentes */ class toba_mensajes { protected $mensajes; /** * Los mensajes al usuario saldrn del archivo .ini indica...
true
44fddddca36ee0902f6a7085eab54ece5017bf97
PHP
Arkos13/auth-service-symfony
/application/src/Infrastructure/User/Repository/ConfirmPasswordTokenRepository.php
UTF-8
1,303
2.6875
3
[]
no_license
<?php namespace App\Infrastructure\User\Repository; use App\Model\User\Entity\ConfirmPasswordToken; use App\Model\User\Entity\User; use App\Model\User\Repository\ConfirmPasswordTokenRepositoryInterface; use Doctrine\ORM\EntityManagerInterface; class ConfirmPasswordTokenRepository implements ConfirmPasswordTokenRepos...
true
11021bb2e02d8424276d790624248fdee2019398
PHP
mjacobsz/Scriptie
/01/in/echo.php
UTF-8
191
2.828125
3
[]
no_license
<?php $begin = microtime(true); /* Logic goes here... */ echo "Bonjour, Monde!"; $end = microtime(true); $elapsed_time = $end - $begin; print("Elapsed time: $elapsed_time\n"); ?>
true
6a66d7e673dffd55988aa9024960c2b7073ec7aa
PHP
PHPixie/CLI
/src/PHPixie/CLI/Context/Container/Implementation.php
UTF-8
636
2.703125
3
[]
no_license
<?php namespace PHPixie\CLI\Context\Container; class Implementation implements \PHPixie\CLI\Context\Container { /** * * @var \PHPixie\CLI\Context\SAPI */ protected $cliContext; /** * * @param \PHPixie\CLI\Context\SAPI $cliContext */ public function __construct($cliC...
true
f24011479a4baa57af4057ff4a7f387141d766ce
PHP
zonday/ycms2
/common/components/YContentUrlRule.php
UTF-8
2,788
2.65625
3
[]
no_license
<?php /** * YContentUrlRule class file * * @author Yang <css3@qq.com> */ /** * YContentUrlRule * * @author Yang <css3@qq.com> * @package common.components */ class YContentUrlRule extends CBaseUrlRule { /** * @var 排除的路径 */ public $exclude = array(); /** * @var boolean */ public $combinedPath = tr...
true
f26c5a87eef6cb5086c42092590b72d267aeb56a
PHP
rpsofts/xsphp-lampbrother-code
/c02/18.php
UTF-8
93
2.609375
3
[]
no_license
<?php $one=10; $two=&$one; $two="hello"; echo $one."<br>"; echo $two."<br>";
true
1897a5777961706f7276232f2e38c5c463700925
PHP
SotoLtd/easl
/themes/Total-Child/inc/shortcodes-v2/generic-button/generic-button.php
UTF-8
1,317
2.75
3
[]
no_license
<?php // Prevent direct access if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } class EASL_VC_Generic_Button extends EASL_ShortCode { public static function get_color_class( $color ) { $colors = array( 'blue', 'lightblue', 'red', 'teal', 'orange...
true
cd441c266eb2bab2788967e289d6674c2ad098ff
PHP
jihene7/Projet-Web
/nalika/entities/type_evenement.php
UTF-8
656
2.8125
3
[]
no_license
<?PHP class type_evenement{ private $id_type; private $competition; private $giveaway; function __construct($id_type,$competition,$giveaway){ $this->id_type=$id_type; $this->competition=$competition; $this->giveaway=$giveaway; } function getid_type(){ return $this->id_type; } function ...
true
aaa9fc6e9f6d3a2b45d7976937a164264755c243
PHP
cash2one/myzd.com
/protected/controllers/FeedbackController.php
UTF-8
1,553
2.5625
3
[]
no_license
<?php class FeedbackController extends WebsiteController { private $model = null; // Feedback /** * Specifies the access control rules. * This method is used by the 'accessControl' filter. * @return array access control rules */ public function accessRules() { return array( ...
true
8e5209e80049c331d568323321977c5951483332
PHP
eduoda/cracha
/lib.php
UTF-8
885
2.515625
3
[ "MIT" ]
permissive
<?php //Xvfb :5 -screen 0 800x600x24 & //xhost + local:www-data function format_params($params){ $ret=""; foreach($params as $k => $v){ if($k=='nome') $ret.='-D \''.escapeshellcmd($k).'="'.escapeshellcmd($v).'"\' '; else $ret.='-D \''.escapeshellcmd($k).'='.escapeshellcmd($v).'\' '; } retur...
true
2f0ff075d2c24996986c09f14175c0fb136e294f
PHP
BonnetCorentin/bdw1
/adm/utilisateur.php
UTF-8
4,978
2.8125
3
[]
no_license
<?php if (!isset ($_SESSION)) // si une session n'est pas en cours en démarrer une session_start (); if (isset ($_POST["liste_utilisateur"])){ // si l'utilisateur veut voir la liste des utilisateurs $requete='SELECT pseudo,mot_de_passe FROM Utilisateur WHERE role!="Administrateur"'; // requête qui permet...
true
6df460032626e2569f03f6465c5b91052d6a7c5d
PHP
mexcaptain93/mexcaptain93.github.io
/voice/payment.php
UTF-8
1,536
2.609375
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'libs/phpmailer/Exception.php'; require 'libs/phpmailer/PHPMailer.php'; require 'libs/phpmailer/SMTP.php'; $c = true; $email = $_POST['os5']; $project = 'Voice Tag Manager'; $to = 'prodbylazybonesbeats@gmail.com'; ...
true
edd6e91045a4ba91ff65b13f7a5551be784c3e30
PHP
Marcin-ImageDesign/targipracyposlkopia
/application/modules/briefcase/services/Storage/Interface.php
UTF-8
645
2.53125
3
[]
no_license
<?php interface Briefcase_Service_Storage_Interface { /** * @param int $id_briefcase_type * @param Doctrine_Record $element * @param int $id_namespace * @param null|mixed $value * * @throws Exception * * @return Briefcase */ public funct...
true
dd134a74ac19a0ec1b3e24807ff71512cd62c4f2
PHP
cynmob/JVoter-Joomla
/plugins/otbpayment/stripe/stripe/lib/Stripe/Util/Set.php
UTF-8
1,180
2.75
3
[]
no_license
<?php /** * @version v1.0.0 * @package jdonate * @author Jdonate Team <support@jdonate.com> * @link http://www.jdonate.com * @copyright Copyright (C) 2018 Jdonate. All rights reserved. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ namespace Stripe\Util; use Iter...
true
611a85e973e4584b5cfd4a098b9f67b87aa618a7
PHP
MeetKodi/web
/api/models/auth/SignIn.php
UTF-8
2,401
2.65625
3
[]
no_license
<?php namespace kodi\api\models\auth; use kodi\common\enums\DeviceType; use kodi\common\enums\user\Status; use kodi\common\models\user\User; use Yii; use yii\base\Model; use yii\validators\EmailValidator; use yii\validators\RangeValidator; use yii\validators\RequiredValidator; use yii\validators\StringValidator; use ...
true
539240b7755319a8fbd8d930b096ad62a572eaa0
PHP
Pierstoval/Sn4k3
/backend/src/Sn4k3/Tests/Model/FoodTest.php
UTF-8
622
2.703125
3
[ "MIT" ]
permissive
<?php namespace Sn4k3\Tests\Model; use PHPUnit\Framework\TestCase; use Sn4k3\Model\Player; use Sn4k3\Geometry\Circle; use Sn4k3\Geometry\Point; use Sn4k3\Model\Food; use Sn4k3\Model\Map; use Sn4k3\Model\Snake; class FoodTest extends TestCase { public function test picking food() { $map = new Map(); ...
true
3c8a13e75994d55acbf0be66f7bc9755e29ae2ae
PHP
Zooba21/restaurant3wa101
/application/models/UpdateUserModel.class.php
UTF-8
2,452
2.875
3
[]
no_license
<?php class UpdateUserModel extends AbstractModel { const SQL_VERIF_PASSWORD = "SELECT `password` FROM `password` WHERE `userId`=? AND `password`=?"; const SQL_UPDATE_PASSWORD = "UPDATE `password` SET `password`=? WHERE `userId`=?"; /** * Méthode permettant la mise à jour des informations utilisateurs....
true
ff9af95d23e2c1635f6d61dc856793a6a1583078
PHP
leonardobader/code-financeiro
/database/migrations/2017_02_14_194421_create_banks_data.php
UTF-8
2,487
2.6875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; /** * Class CreateBanksData */ class CreateBanksData extends Migration { /** * Run the migrations. * * @return void */ public function up() { /...
true
aa64ee2f1cac50551d1c7808904f8735689ef3e3
PHP
knowsarzehmeh/ziroute-api
/app/User.php
UTF-8
796
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'na...
true
77c94ae8658adc70a91770634dd9a3d49df28f2b
PHP
Tharos/ORM-Challenge
/app/Curious/Fragments.php
UTF-8
547
3.140625
3
[]
no_license
<?php namespace Curious; use Curious\Exception\InvalidArgumentException; /** * @author Vojtěch Kohout */ class Fragments { /** @var Fragment[] */ private $index; /** * @param Fragment[] $index */ public function __construct($index) { $this->index = $index; } /** * @param string $name * @return...
true
fef0f153f26af18bee5aaa96ddcb0ee91e243c7f
PHP
furaoing/edusoho
/src/Biz/Task/Strategy/StrategyContext.php
UTF-8
1,149
2.671875
3
[]
no_license
<?php namespace Biz\Task\Strategy; use Codeages\Biz\Framework\Service\Exception\NotFoundException; class StrategyContext { private static $instance = null; private $biz = null; private function __construct($biz) { $this->biz = $biz; } public static function getInstance($biz) { ...
true
0f81cfb4cb6bb264cdfc4d0fe4a7b4b7d7a107a2
PHP
BlockHorizons/KillCounter
/src/BlockHorizons/KillCounter/handlers/KillingSpreeHandler.php
UTF-8
5,990
2.765625
3
[]
no_license
<?php namespace BlockHorizons\KillCounter\handlers; use BlockHorizons\KillCounter\events\player\killingspree\PlayerKillingSpreeEndEvent; use BlockHorizons\KillCounter\events\player\killingspree\PlayerKillingSpreeStartEvent; use BlockHorizons\KillCounter\KillingSpree; use BlockHorizons\KillCounter\Loader; use pocketmi...
true
dc4fc73e5603ad1644e55bead25ebd9df497ec39
PHP
yin-hang/ofs
/lib/Encode.php
UTF-8
1,468
2.671875
3
[]
no_license
<?php /** * Author: jiangzhibin * Date: 13-10-28 * Desc: */ class Lib_Encode { public static function convert($mixData,$strToEncode='utf-8',$strFromEncode='utf-8'){ $arrResult = array(); if(is_array($mixData)){ if (empty($mixData)) return array(); foreach($mixData as $...
true
5fc45832e3c5d6d248ec7ff0addb53a297e5b284
PHP
sarkian/eq
/src/eq/misc/InputDataFilter.php
UTF-8
6,526
3.015625
3
[ "MIT" ]
permissive
<?php namespace eq\misc; use eq\base\DataTypeException; /** * Базовый класс для фильтрации пользовательского ввода (`$_POST`, `$_GET`, `$argv`, etc.). * * @author Sarkian <root@dustus.org> * @doc docs/eq/misc/InputDataFilter.md * @test tests/eq/misc/InputDataFilterTest.php * @uses eq\base\DataTypeException ...
true
a42b8fe245a8892b177cf20bd5a0a2bd0fd6f3ca
PHP
adicandra1/backend
/app/Libraries/View/BaseView.php
UTF-8
276
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Libraries\View; abstract class BaseView implements ViewInterface { protected static function startHtmlParsing() : void { ob_start(); } protected static function endParsingAndGetHtml() : string { return ob_get_clean(); } }
true
93f62eaad3e9e6f0c9d887bb7691c4677fd6dab0
PHP
ppelgrims/belgian-holidays
/tests/BelgianHolidays/SchoolHolidays/EasterHolidaysTest.php
UTF-8
1,025
2.734375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Tests\BelgianHolidays\SchoolHolidays; use Carbon\CarbonPeriod; use Tests\BaseTest; final class EasterHolidaysTest extends BaseTest { /** * @test * @dataProvider dates * @param CarbonPeriod $period */ public function isEasterHolidays($period) { $year = $period->...
true
6c6748aea0908898d700e79d9de250b8f4adac92
PHP
jauharibill/JNE-kode-lokasi
/app/Models/City.php
UTF-8
639
2.546875
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class City extends Model { /** * @var string */ protected $table = "jne_city"; /** * @var array */ protected $fillable = [ 'name', 'administrative', 'jne_province_id' ]; /** ...
true
cb3f9d80fa8aff25772324586f00569181b39b4a
PHP
M4t1ss/TwitEdiens
/includes/erdf/examples/zend_framework.php
UTF-8
2,013
2.984375
3
[ "MIT", "LicenseRef-scancode-public-domain", "Unlicense", "BSD-3-Clause" ]
permissive
<?php /** * Example of using Zend_Http_Client and Zend_Loader_Autoloader with EasyRdf * * This example creates a simple graph in memory, saves it to a local * graphstore and then fetches the data back using a SPARQL SELECT query. * Zend's curl HTTP client adaptor is used to perform the HTTP...
true
d13b5d258cb08ef33a8237810073fa98c3de076d
PHP
EmmanuelBlanchard/OpenClassroomsProject4
/templates/backoffice/readepisodes.html.php
UTF-8
3,945
2.578125
3
[]
no_license
<?php if ($data['allepisodespagination'] === null): ?> <section> <p class="pError"> Erreur : l'affichage de la liste des épisodes n'est pas possible </p> </section> <?php elseif ($data['allepisodespagination'] !== null): ?> <div> <h2 class="h2inline">Liste des épisodes</h2> <a class...
true