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
13476af072e6b90d71774c2493d9d881bb7c1892
PHP
chrismiddleton/js2php
/lib/RegexEscapedCharacter.php
UTF-8
188
3.1875
3
[ "MIT" ]
permissive
<?php class RegexEscapedCharacter { public function __construct ($character) { $this->character = $character; } public function __toString () { return "\\" . $this->character; } }
true
c5f521267b060ad914d770063b4680a245dc9bcc
PHP
domin1992/lost-plates
/database/seeders/CountrySeeder.php
UTF-8
902
2.53125
3
[]
no_license
<?php namespace Database\Seeders; use DB; use Illuminate\Database\Seeder; use Ramsey\Uuid\Uuid; class CountrySeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { $countryId = DB::table('countries')->insertGetId([ 'id' => Uuid::uuid4(), ...
true
22024b238e84fbd2dde0576ed2a3738d08573277
PHP
pavarnos/YAContainer
/src/Container.php
UTF-8
9,488
3.140625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace LSS\YAContainer; use Closure; use ReflectionClass; use ReflectionException; use ReflectionFunction; class Container implements ContainerInterface { /** * All classes are shared by default, unless shouldShare() returns false * @var array<class-string,object> cla...
true
c7d8cb25a83975a9d0b22a140f89307adcc0ae5a
PHP
shinjia/201807_HCU_WebApp
/my_book/install_database.php
UTF-8
1,004
2.953125
3
[]
no_license
<?php include "config.php"; // 連接資料庫 // $link = mysqli_connect(DB_SERVERIP, DB_bookname, DB_PASSWORD, DB_DATABASE) or die(ERROR_CONNECT); $link = mysqli_connect(DB_SERVERIP, DB_bookname, DB_PASSWORD, '') or die(ERROR_CONNECT); if(defined('SET_CHARACTER')) mysqli_query($link, SET_CHARACTER) or die(ERROR_CHARACTER); //...
true
4b73722824f7a59beee2a094e2768599f41c9df2
PHP
eddymio/demo
/pdo_mvc/src/Model/Entity/Person.php
UTF-8
464
3.5625
4
[]
no_license
<?php declare(strict_types = 1); namespace App\Model\Entity; class Person { public int $id; private string $name; private int $age; public array $books = []; public function sayHello(): void { echo "Hello ".$this->name . ", I'm ".$this->age; } public function sayHelloToM...
true
cc7516d7ba56fc5b7780820499d8c4f6f9797a1a
PHP
mhmj/mhmj-pms-nilai
/app/Http/Controllers/Packaging/Updates/UpdatePackagingRemark.php
UTF-8
691
2.65625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: user * Date: 4/8/2020 * Time: 11:19 AM */ namespace App\Http\Controllers\Packaging\Updates; use App\Packaging; class UpdatePackagingRemark { /** @var Packaging */ private $repository; /** * UpdatePackagingRemark constructor. * @param Packaging $r...
true
103a519cf859a6ba2e66633155e40c38037cf2bd
PHP
Sovannrath/itservicedesk.com.kh
/app/Department.php
UTF-8
290
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Department { public $department = []; public static function all() { $department = DB::select('EXEC BusinessObject_GetDepartments'); return $department; } }
true
01cfe3fdec30e8d030826f03b253c50ee6bb567b
PHP
shenaok/trialsistema
/API/LoginAPI.php
UTF-8
1,480
2.734375
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); header('Content-Type: text/javascript; charset=utf8'); header('Access-Control-Max-Age: 3628800'); header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE'); ob_start(); //SET CONNECTION $host="localhost"; // Host name $username="root"; // Mysql username $passwo...
true
ca7371e592263f1e2010658a6c408fcf900756d6
PHP
RegisFR69/SkatingRanking
/Skatingranking/lib/class/class_Competitions.php
UTF-8
2,094
3.34375
3
[]
no_license
<?php /** # lib/class_Competitions.php # * Description of Competitions * @requires object Competition * @property array competitions Tableau de la classe Competition * @method int id(string) Retourne l'id d'une compétition * @method string name(int) Retourne le nom d'une compétition * @method int coefficient(int)...
true
c3b4f8690832f395fe8abec7e56585af58c32d3b
PHP
calebporzio/advent-of-code-2018
/tests/Unit/Day2Puzzle1.php
UTF-8
11,482
2.5625
3
[]
no_license
<?php namespace Tests\Unit; use Illuminate\Support\Collection; use Tests\TestCase; class Day2Puzzle1 extends TestCase { public function setUp() { Collection::macro('countValues', function () { return $this->wrap(array_count_values($this->items)); }); } public function tes...
true
213283592734161dfead91ad3dc22264602ca5ee
PHP
FilenkoAI/dewoo-shop-host
/local/modules/czebra.south/lib/Methods.php
UTF-8
10,631
2.640625
3
[]
no_license
<?php namespace Czebra\South; use Bitrix\Main\UserTable; class Methods { const CODE_MIN = 1000; const CODE_MAX = 9999; const SEND_TIMEOUT = 3600; //время через сколько можно отправлять смс снова const SEND_INTERVAL = 3600; const MESSAGES_MAX_COUNT = 3; const MAX_ATTEMPTS_COUNT = 4; publi...
true
bfe49a0d9ffc716e7ea769cb0d7e471ca218d1d9
PHP
cocoast/IntranetSchool
/app/Docente.php
UTF-8
476
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Docente extends Model { protected $table="docente"; protected $fillable=['nombre','apellido','rut','mail','telefono']; public function Curso() { return $this->hasOne('App\Curso'); } public function Asignaturas() { return $this->hasMa...
true
5c95ea913814b741c607b856e6ff90c72d22ccfb
PHP
lkarpik/SnippetsPHP
/SQL/index.php
UTF-8
1,521
2.546875
3
[]
no_license
<?php // //Połączenie do SQL // $conn = mysqli_connect('localhost', 'root', '', 'phpblog'); // //Sprawdź połączenie // if (mysqli_connect_errno()){ // echo 'Brak połączenia z SQL'. mysqli_connect_errno(); // die(); // } require('config/config.php'); require('config/db.php');...
true
8848e124cf0f807e1b805746ae85cc918864d9fa
PHP
Chridox/PHPTesis
/class.usuario.php
UTF-8
1,149
3.109375
3
[]
no_license
<?php class usuario { private $idUsuario; private $logUsuario; private $nombreUsuario; private $conUsuario; private $cargoUsuario; function __construct($idUsuario, $logUsuario, $nombreUsuario, $conUsuario, $cargoUsuario) { $this->idUsuario = $idUsuario; $this->logUsuario = $logUsuario; $this->nombreUsuari...
true
4feef293ef6b0774526298085bf6b24eab348e32
PHP
Obelixvn/QuanXa
/show_expenseTB.php
UTF-8
1,302
2.5625
3
[]
no_license
<?php include "DB_functions_NN.php"; include "global.php"; setlocale(LC_MONETARY, 'en_GB.UTF-8'); if (isset($_GET["orderBy"])){ $orderby = $_GET["orderBy"]; } $sql = " SELECT * FROM tb_expense "; if ($orderby == "Week"){ $sql .= " WHERE '".$Ngay_hom_nay->format('Y-m-d')."' >= tb_expense.From ...
true
b74f52938938375e5c9bcb9dff43cc2e980b1bcd
PHP
TimeToogo/Pinq
/Source/ITraversable.php
UTF-8
8,710
3.109375
3
[ "MIT" ]
permissive
<?php namespace Pinq; use Pinq\Interfaces\IJoiningOnTraversable; use Pinq\Interfaces\IOrderedTraversable; use Pinq\Iterators\IIteratorScheme; /** * The root interface providing a fluent query API for a range of key value pairs. * Query calls must be immutable and return a new instance with every query call. * Que...
true
4ea0d63399419543311dfde0c6731f5712385270
PHP
lammspace/SpaceAPI-WP
/admin/class-spaceapi-wp-admin.php
UTF-8
6,839
2.65625
3
[]
no_license
<?php /** * The admin-specific functionality of the plugin. * * @link https://github.com/gcarreno/spaceapi-wp * @since 0.1 * * @package SpaceAPI_WP * @subpackage SpaceAPI_WP/admin */ /** * The admin-specific functionality of the plugin. * * Defines the plugin name, version, and two examples hooks for ho...
true
2ee504e1692cf669a66748e44e9fb9ae8f26dd37
PHP
laureano59/alphanotarial
/public/assets/images/camino/core/models/class.Acceso.php
UTF-8
3,333
2.953125
3
[ "MIT" ]
permissive
<?php class Acceso { private $usuario; private $pass; private $email; private $session; private function Encrypt($string) { /*--------Código para encriptar pass----------*/ $sizeof = strlen($string) - 1;//se resta 1 debido a que los arreglos inician desde cero $result = ''; for($x = $sizeof; $x>=0; $...
true
3a5c567089b400af81a10666b361eeae0a9f25b7
PHP
axex/kratos
/app/Helper/functions.php
UTF-8
2,779
2.59375
3
[]
no_license
<?php use App\Models\SystemLog; use App\Models\SystemSetting; /* |-------------------------------------------------------------------------- | 自定义公共函数库Helper |-------------------------------------------------------------------------- | | | */ if (! function_exists('currentNav')) { /** * 根据路由 $route 处理当前导航UR...
true
6db6bdaee4d21b9486104f65d4a73df6854cb14b
PHP
itk-dev/serviceplatformen
/generated-classes/ItkDev/Serviceplatformen/SF1600/EnumType/KvitteringsTypeKodeType.php
UTF-8
993
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ItkDev\Serviceplatformen\SF1600\EnumType; use WsdlToPhp\PackageBase\AbstractStructEnumBase; /** * This class stands for KvitteringsTypeKodeType EnumType * @subpackage Enumerations */ class KvitteringsTypeKodeType extends AbstractStructEnumBase { /** * Constant fo...
true
6e583b9f759fc534ac6418d1bc788f3f242d1819
PHP
percyruiz/research_appointment_web
/dashboard_student/insert_research.php
UTF-8
4,554
2.78125
3
[]
no_license
<?php /* Author: Javed Ur Rehman Website: https://htmlcssphptutorial.wordpress.com */ ?> <?php session_start(); include("auth.php"); //include auth.php file on all secure pages ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Registration</title> <link rel="stylesheet" href="../css/bootstrap/css/bootstra...
true
ef1b7b5de5523b89e8e09c8c955405a879e6c0bb
PHP
KiranBendkoli1/blood-bank-management-system
/checkadmin.php
UTF-8
759
2.5625
3
[]
no_license
<?php session_start(); $servername = "localhost"; $username = "root"; $password = ""; $dbname = "bloodbank"; // create connection $mysqli = new mysqli($servername, $username, $password,$dbname); if(!$mysqli){ die("Connection failed: " . mysqli_connect_error()); } $email = $_POST['email']; $password = $_POST['pass...
true
638482fac495c46bdf39709e4922bd12c966cd35
PHP
dav3loper/siesta
/application/movie/usecases/response/ObtainMovieResponse.php
UTF-8
1,053
3
3
[]
no_license
<?php namespace siesta\application\movie\usecases\response; use siesta\domain\movie\Movie; use siesta\domain\user\User; class ObtainMovieResponse { /** @var Movie */ private $_movie; /** @var User[] */ private $_userList; /** * @var int */ private $remaining; /** * @return...
true
911ca22c8e51dc546d14d2c9dd72c02b8dc9181d
PHP
lishu1994/SVH5
/php/Dao/SqlDao.php
UTF-8
2,581
2.96875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 研 * Date: 2016/5/26 * Time: 15:11 */ namespace Dao; use Db\Model as Model; class SqlDao{ private $sql; private $str = ""; function __construct() { $this->sql = new Model(); } public function getById($table="",$id="")...
true
9c9751346164ec8209d1e9751f099293f9c0807e
PHP
Coquevas/PocketPriorityTags
/src/Pocket/PriorityTags.php
UTF-8
8,705
2.734375
3
[ "MIT" ]
permissive
<?php namespace Pocket; use cli\progress\Bar; use Curl\Curl; use Duellsy\Pockpack\Pockpack; use Duellsy\Pockpack\PockpackQueue; use Pocket; use SocialCounters\SocialCounters; use URLResolver; class PriorityTags { private $curl; private $debug = false; private $dryRun = false; private $silent = false;...
true
5bfab857ea8910c6e5082bcde5482dac3b2f0876
PHP
quark-dev/Via
/src/RoutableInterface.php
UTF-8
262
2.578125
3
[]
no_license
<?php namespace Via; /** * Routable * * @author Fabien Sa * @version 0.1.0 * @package Via */ interface RoutableInterface { public function match($method, $path); public function getPath(); public function getVerb(); public function getCallback(); }
true
4e799a821b2094fbef8ada89b26db2e9a483d234
PHP
NezhkinD/sbrf.rca
/src/app/Http/Controllers/captcha_solvers/CaptchaSolver.php
UTF-8
326
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\captcha_solvers; interface CaptchaSolver { public function solveRecaptchaV2(string $url, string $siteKey): CaptchaSolver; public function solveRecaptchaV3(string $url, string $siteKey): CaptchaSolver; public function solveTextCaptcha(string $base64Image): CaptchaSolv...
true
69e203c2b364ececd4c0dff4d7cf3873c8dd8765
PHP
jonelvelez/Vetstore
/createblog.php
UTF-8
2,780
2.578125
3
[]
no_license
<?php include 'header.php'; ?> <?php //Database Connection include_once("connections/connection.php"); $con = connection(); $msg = ""; // If upload button is pressed if(isset($_POST['blogSubmit'])){ // The path to store the uploaded image $target = "upload/".basename($_FILES['featured_img']['name']); ...
true
462e419d04a88ebfa531914ef0a151229b290903
PHP
rahulyhg/moneyzaurus-api
/web/app/src/Service/User/Data.php
UTF-8
556
2.6875
3
[]
no_license
<?php namespace Api\Service\User; use Doctrine\ORM\EntityRepository; use Api\Entities\User; use Api\Service\AccessorTrait; /** * Class Data * * @package Api\Service\User * * @method Data setUser(EntityRepository $user) * @method EntityRepository getUser() */ class Data { use AccessorTrait; ...
true
22f041f36308e322ec79bfed6a21bc853c2cf1ca
PHP
lossendae/Previously-on
/src/repositories/Eloquent/EloquentRepository.php
UTF-8
1,793
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of the Lossendae\PreviouslyOn. * * (c) Stephane Boulard <lossendae@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Lossendae\PreviouslyOn\Repositories\Eloquent; use Illuminate\Container\...
true
bacc5a867ca9917ac094fbd09e9ba3b761334794
PHP
zjhczl/myWork
/past/cd/includes/pdo.php
UTF-8
364
2.796875
3
[ "Apache-2.0" ]
permissive
<!DOCTYPE html> <html lang="zh-hans"> <head> <meta charset="utf-8"> <title>pdo.php</title> </head> <body> <?php try{ $pdo=new PDO('mysql:host=localhost;dbname=zj','root',''); $pdo->query('set names utf8'); } catch(PDOException $e) { $output='连接不到sql服务器'; echo $output; exi...
true
7580e7af3352b9737adf816a526b94df120fdde0
PHP
madkixt/portal-terintegrasi
/protected/models/ExecForm.php
UTF-8
1,545
2.765625
3
[]
no_license
<?php function sortConn($a, $b) { return strcasecmp($a->name, $b->name); } function sortQuery($a, $b) { return strcasecmp($a->title, $b->title); } class ExecForm extends CFormModel { public $queryID; public $database; public $connection; public $queries; /*rules */ public function rules() ...
true
43c73d9f4b0bdcd4b29fd380b89d5215acf3cb7d
PHP
atefBB/KeywordTracker
/Classes/googleScraper.php
UTF-8
2,028
2.640625
3
[ "Apache-2.0" ]
permissive
<?php /* This script is licensed under Apache 2.0. View the license here: http://www.apache.org/licenses/LICENSE-2.0.html Copyright Reserved to g0g0l Contact @ Skype : noc2spam */ class googleScraper { // add google domains for all country public static $domains = array('en' => 'google.com'); static funct...
true
fa35dc9229558e576c25f1a648b53557fbecd14a
PHP
RomanSaulenko/shop
/app/Services/OrderService.php
UTF-8
1,281
2.703125
3
[]
no_license
<?php namespace App\Services; use App\Events\Order\AfterOrderStore; use App\Events\Order\BeforeOrderStore; use App\Models\Order\Order; use App\Repositories\Order\OrderRepository; use Illuminate\Support\Facades\DB; use Exception; class OrderService { /** * @var OrderRepository */ protected $reposi...
true
a5a44ee3e112bb0e42ee44a2735bc709ce1f342b
PHP
Makhendra/training-simulator.site
/app/Models/Family.php
UTF-8
743
2.640625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; /** * App\Models\Report * * @property int $id * @property string $key * @property string $value * @method static Builder|Report newModelQuery() * @method static Builder|Report newQuery() * @method st...
true
d016118410b9fb9ce97877962dd453b0caa21ce8
PHP
adrianoalves/google-geolocation
/src/DistanceMatrix/DistanceMatrix.php
UTF-8
5,237
2.9375
3
[ "MIT" ]
permissive
<?php namespace Geolocation\DistanceMatrix; use Geolocation\Contracts\GeolocationService; use Geolocation\Exceptions; /** * Simple, resource saver vanilla PHP Location Lib * Class DistanceMatrix * @package adrianoalves/google-geolocation */ class DistanceMatrix implements GeolocationService { /** * @var ...
true
c1836375f123f565d52e56b19e34870e5314b1c2
PHP
pillowinacoma/MandoMangi
/functions.php
UTF-8
3,266
2.625
3
[]
no_license
<?php include 'lib/simpl_html_dom/simple_html_dom.php'; function valideForm(&$method, $tabCles) { foreach ($tabCles as $cle) { if (!isset($method[$cle])) return FALSE; if (!$method[$cle]) return FALSE; } return TRUE; } function createBlogTbNl($t...
true
91fe322516ff59a238ef2efd64fb9489882ccdc8
PHP
merk/FOSMessageBundle
/SpamDetection/SpamDetectorInterface.php
UTF-8
477
2.734375
3
[ "MIT" ]
permissive
<?php namespace FOS\MessageBundle\SpamDetection; use FOS\MessageBundle\Form\Model\NewThreadMessage; /** * Tells whether or not a new message looks like spam * * @author Thibault Duplessis <thibault.duplessis@gmail.com> */ interface SpamDetectorInterface { /** * Tells whether or not a new message looks l...
true
99e3bb7b26946f11add3c000be92b2baa8fda922
PHP
xiko/livrariaRus
/helpers/Logger.php
UTF-8
1,659
2.828125
3
[]
no_license
<?php /** * Created by: * User: Francisco Moreira * Date: 17-10-2013 * Time: 16:30 */ class Logger { static function logRequest($method, $url, $ip, $userAgent) { $mysqlConfig=require("config/mysql.php"); $conn = mysql_connect($mysqlConfig["host"], $mysqlConfig["user"], $mysqlConfig["pass...
true
f385246e41c877b3e9f7dd7735bc72b14d7686e5
PHP
rafaelqueiroz/iTunes
/Controller/Component/ITunesComponent.php
UTF-8
1,384
3.015625
3
[ "MIT" ]
permissive
<?php App::uses('HttpSocket', 'Network/Http'); /** * ITunes Component * * @author Rafael F Queiroz <rafaelfqf@gmail.com> */ class ITunesComponent extends Component { /** * Search URL * * @var string */ const SEARCH_URL = 'https://itunes.apple.com/search'; /** * Lookup URL * * @var string */ co...
true
a5c2fc5e83c64595ba060afa4464bcf70ca42b8c
PHP
microsoftgraph/msgraph-beta-sdk-php
/src/Generated/Models/DeviceManagementConfigurationSettingInstance.php
UTF-8
8,447
2.71875
3
[ "MIT" ]
permissive
<?php namespace Microsoft\Graph\Beta\Generated\Models; use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Microso...
true
111db1ff742e8f742498793ef0b88b98eebd5b66
PHP
Focus43/tcap
/web/packages/sequence/blocks/statistic/controller.php
UTF-8
1,639
2.53125
3
[ "MIT" ]
permissive
<?php namespace Concrete\Package\Sequence\Block\Statistic; use Loader; use \Concrete\Core\Editor\LinkAbstractor; class Controller extends \Concrete\Core\Block\BlockController { protected $btTable = 'btStatistic'; protected $btInterfaceWidth = '580'; protected $btInt...
true
da8fbcf13cadc0a2a89523944439495621570862
PHP
sfrizell/pennsouth-reports
/src/Pennsouth/MdsBundle/Entity/AptResidentAttributes.php
UTF-8
8,565
2.5625
3
[]
no_license
<?php namespace Pennsouth\MdsBundle\Entity; /** * AptResidentAttributes */ class AptResidentAttributes { /** * @var string */ private $building; /** * @var integer */ private $floorNumber; /** * @var string */ private $aptLine; /** * @var string ...
true
9f580123326f84fbf4dbf026c8ebc5767aa68c1f
PHP
mneuhaus/GitHub-API-Tests
/Ghost.php
UTF-8
4,469
2.65625
3
[]
no_license
<?php class Ghost { /** * @var string */ protected $votesRequired = 1; public function __construct($username, $password) { $this->client = new Github\Client(); $this->client->authenticate($username, $password, Github\Client::AUTH_HTTP_PASSWORD); $this->go(); } public function go() { $cglUsers = $th...
true
91c27a60a384ab9e7f382b4af5b337bae15dd3bc
PHP
revlenuwe/framework
/app/Session/Session.php
UTF-8
720
2.890625
3
[]
no_license
<?php namespace App\Session; class Session implements SessionStorage { public function set($key,$value = null){ if(is_array($key)){ foreach ($key as $s_key => $s_value){ $_SESSION[$s_key] = $s_value; } return $key; } $_SESSION[$key] = ...
true
6f9c53aca65eca4425d874ec5672e1b4492756b0
PHP
YTLink/ytlinksite
/Chat/BE/newMessage.php
UTF-8
593
2.78125
3
[]
no_license
<?php if(isset($_POST['username']) && isset($_POST['message']) && isset($_POST['time'])) { $fileName = "chatMessages"; if(isset($_POST['code'])) { $fileName = $fileName."_".$_POST['code']; } $message = array("username" => $_POST['username'], "channelId" => $_POST['channelId'], "message" => $_...
true
4c4c12eac4b8a99b262101b5a7a77032367c47ba
PHP
kgeerts/ooOefening
/db/propertyobject.php
UTF-8
5,541
3.375
3
[]
no_license
<?php abstract class PropertyObject { protected $propertyTable = array(); //stores name/value pairs //that hook properties to //database field names //have been modified protected $data; //Actual data from / for //the database protected $errors = array(); ...
true
4c09581836bb76e31aead3958b2bb96225c40071
PHP
rezya16/Internship
/SOLID/I.php
UTF-8
1,701
2.96875
3
[]
no_license
<?php //ПЛОХО //Электронная книга не имеет веса, но класс ElectroBook вынужден реализовывать не нужный метод interface Book { public function getPrice(); public function getWeight(); public function getQtyPages(); } class PaperBook implements Book { public function getPrice(){ // TODO: Imp...
true
a4154fb533d1d7b54c438f791abc48963d6468e1
PHP
clue/reactphp-tar
/src/Decoder.php
UTF-8
8,773
2.671875
3
[ "MIT" ]
permissive
<?php namespace Clue\React\Tar; use Evenement\EventEmitter; use React\Stream\ThroughStream; use React\Stream\WritableStreamInterface; use RuntimeException; /** * Decodes a TAR stream and emits "entry" events for each individual file in the archive. * * At the moment, this class implements the the `UStar` (Uniform...
true
c5894c2ab6e14ed338786b33f32fe9186dc6d9a1
PHP
alborodin85/certbot-yandex-dns
/src/CheckCertNeedUpdate/CertDeadlineChecker.php
UTF-8
1,995
2.75
3
[]
no_license
<?php namespace It5\CheckCertNeedUpdate; use It5\Localization\Trans; class CertDeadlineChecker { public function __construct() { Trans::instance()->addPhrases(__DIR__ . '/localization/ru.php'); } public function isPeriodCritical(string $certPath, int $criticalRemainingDays, bool...
true
783286d82db9f3d825a08f9d4729e3a83e31ad03
PHP
jareddgotte/mcm
/move.php
UTF-8
2,012
2.859375
3
[ "Apache-2.0" ]
permissive
<?php require_once('inc/php-login.php'); //session_start(); $errors = array(); // Kill the script if someone got here improperly $from_list = (isset($_POST['from_list'])) ? $_POST['from_list'] : ((isset($_GET['from_list'])) ? $_GET['from_list'] : ''); $to_list = (isset($_POST['to_list'])) ? $_POST['to_list'] : ((isse...
true
1c1257e0c3afb4785519e52064a75e5f44b788e9
PHP
sirio3mil/imdb-scraper
/tests/Feature/MovieHomeTest.php
UTF-8
4,270
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: sirio * Date: 04/05/2018 * Time: 23:17 */ namespace Tests\Feature; use Exception; use ImdbScraper\Mapper\HomeMapper; use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\TestCase; use SebastianBergmann\RecursionContext\InvalidArgumentException; class M...
true
29e541aad2e6c25e2303315c25a5179174a8c072
PHP
s9e/TextFormatter
/tests/Configurator/Helpers/TemplateInspectorTest.php
UTF-8
15,197
2.734375
3
[ "MIT" ]
permissive
<?php namespace s9e\TextFormatter\Tests\Configurator\Helpers; use s9e\TextFormatter\Configurator\Helpers\TemplateInspector; use s9e\TextFormatter\Tests\Test; /** * @covers s9e\TextFormatter\Configurator\Helpers\TemplateInspector */ class TemplateInspectorTest extends Test { /** * @testdox evaluate() returns the re...
true
f7d46a76db24667779721bd6d3d14c465f57503a
PHP
VaishnaviRati/PHP-Programs
/MVC_User_Admin/Application/Model/User.php
UTF-8
3,219
2.84375
3
[]
no_license
<?php namespace Compassite\Model; class User { public $db; public function __construct() { $this->db = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE); if (mysqli_connect_errno()) { echo "Error: Could not connect to database."; exit; } } ...
true
95e9981d9b3e522cd070420a3eecdd8e09e01891
PHP
PepijnSenders/core
/tests/classes/TestButton.php
UTF-8
487
2.859375
3
[]
no_license
<?php namespace Sledgehammer; /** * TestButton, An class for testing an Observable * * @see ObservableTest * * @package Core */ class TestButton extends Observable { protected $events = array( "click" => array() ); public $clicked = 0; public $lastClickedBy = null; public $title = 'Button1'; public func...
true
9bc4663c11511a9072c66829dd4ead5208dcc6b7
PHP
martin2638/Zoo
/ZooEtudiants/DemenagementAnimaux.php
UTF-8
4,293
2.609375
3
[]
no_license
<?php $titre = 'Déménagement d\'animaux'; include('entete.php'); //print_r($_POST); if( (isset($_POST['noCage']) && !empty($_POST['noCage'])) && (isset($_POST['noCage2']) && !empty($_POST['noCage2']))) { $noCage = $_POST['noCage']; $noCage2 = $_POST['noCage2']; if ($noCage == $noCage2) { echo "Demenager les ...
true
4a7be9260abffba9cea3fa9e6c27da0f45af039e
PHP
pensing/webshop
/shoppingcart.php
UTF-8
3,113
2.625
3
[]
no_license
<?php require_once("header.php"); //require "vendor/autoload.php"; require_once("src/database.php"); use Webshop\{Data}; use function Webshop\{DB}; require_once("src/classes.php"); use Webshop\{product}; require_once("admin/functions.php"); //require_once("database.php"); ?> <?php $id = $_GET["id"]; $pi...
true
76ddb9b1510fa0ab7ff5dbe0091878bf087ba6e7
PHP
aesthenic/Student-Management
/Code/template/register.php
UTF-8
1,753
2.765625
3
[]
no_license
/* This page creates a new student account */ <?php if ($_SERVER['REQUEST_METHOD'] =='POST'){ $name = $_POST['username']; $email = $_POST['email']; $pwd = $_POST['password']; /* echo $name = "Student 1"; echo $email = "std1@gmail.com"; echo $pwd = "std1"; */ //Hash value for the passwo...
true
9694d86aa24ad9b1410e070ac1606cfc9900d588
PHP
nadiahristova/SoftUni
/PHP-Basiscs/02_PHP_Syntax/04_Non-repeatingDigits.php
UTF-8
467
2.96875
3
[]
no_license
<?php $n = 247; $n=(int)$n; $output =[]; for($i=102; $i<=$n && $i<=987; $i++){ $strI = (string)$i; $length = strlen($strI); $numArr=[]; for($j=0; $j<$length; $j++){ $char = $strI{$j}; array_push($numArr, $char); } $numArr=array_unique($numArr); if(count($numArr)...
true
fb5df22f2f7d1eea92c1438a3c44b2e9cfbc749b
PHP
wcSystems/lottery
/database/seeds/Table_Roles_Seeder.php
UTF-8
567
2.53125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Role; class Table_Roles_Seeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $var = [ ['name' => 'Master','created_at'=>now(),'updated_at'=>now()], ['name' => 'Afi...
true
fa59c17e69365557cb0bb438faea10c041923be3
PHP
dvsa/olcs-backend
/module/Api/src/Domain/Command/Fee/ResetFees.php
UTF-8
484
2.640625
3
[ "MIT" ]
permissive
<?php /** * Reset Fees * * @author Dan Eggleston <dan@stolenegg.com> */ namespace Dvsa\Olcs\Api\Domain\Command\Fee; use Dvsa\Olcs\Api\Entity\Fee\Fee; use Dvsa\Olcs\Transfer\Command\AbstractCommand; /** * Reset Fees * * @author Dan Eggleston <dan@stolenegg.com> */ final class ResetFees extends AbstractCommand...
true
acfd9c9ce9dc21a93c91c6f5b7c7bd6cb36fd6da
PHP
Fhielnatic/Hotel-Management-System
/dbclass.php
UTF-8
982
2.90625
3
[]
no_license
<?php class Database{ const DB_HOSTNAME = 'localhost'; const DB_USERNAME = 'root'; const DB_PASSWORD = ''; const DB_NAME = 'enrolment'; protected $_db_connect; protected $_sql; protected $_result; protected $_row; function db_connect(){ $this->_db_connect = mysql_connect(sel...
true
c9ebb9d1458ca8bec5b36ff6ea087c12c15513cb
PHP
jamser/zww-php
/common/models/order/PayLog.php
UTF-8
2,219
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\order; use Yii; use yii\behaviors\TimestampBehavior; /** * This is the model class for table "pay_log". * * @property string $id * @property string $pay_id * @property integer $type * @property string $remark * @property string $created_at */ class PayLog extends \nextrip\helper...
true
60788508864b7ef72493a5927193597811d8d77b
PHP
mikifus/laravel-social-network
/app/Traits/ModelTaggableTrait.php
UTF-8
693
2.625
3
[]
no_license
<?php namespace App\Traits; use Cviebrock\EloquentTaggable\Taggable; use Cviebrock\EloquentTaggable\Models\Tag; /** * Class Taggable * * @package Cviebrock\EloquentTaggable */ trait ModelTaggableTrait { use Taggable; /** * Get a collection of all tags the model has. * * @return \Illuminate...
true
7e276fd98a525cd1ff227c9bd4ba70f370fa585d
PHP
amazing-tomotoshi/freema
/freema_buy.php
UTF-8
1,883
2.640625
3
[]
no_license
<?php session_start(); require_once('dbconnect.php'); if($_SESSION['code']&&$_SESSION['time']+60*60*3>time()){ $_SESSION['time']=time(); if(empty($_REQUEST['code'])){ header('freema_list.php'); exit(); } $sql='SELECT * FROM posts WHERE code=?'; $stmt=$db->prepare($sql); $data[...
true
968d6af3bea700d54fb28b173329e3a29811e622
PHP
jylock/newswebsite
/usersignup.php
UTF-8
4,342
2.65625
3
[]
no_license
<?php include_once 'user_class.php'; include_once '../../secure_files/database_access.php'; session_start(); $failInfo = "0"; if( isset($_POST['signup'])) { if( isset($_POST['user']) && preg_match('/^[\w_\.\-]+$/', $_POST['user'])) { if( isset($_POST['password']) && preg_match('/^[\w_\.\-]+$/', $_POST['password'])...
true
ff0fffa54725328244ca9c0334aebb85a518e567
PHP
NimzyMaina/tots
/application/controllers/AuthController.php
UTF-8
4,039
2.640625
3
[ "MIT" ]
permissive
<?php class AuthController extends CI_Controller { public $data; public function __construct() { parent::__construct(); } //Login the user public function index(){ $validation = filter_var($this->input->post('email'), FILTER_VALIDATE_EMAIL) ? 'required|valid_email' : 'required...
true
5344ac617885f2d8671126141fbb2a0de18a8064
PHP
LeVanTan-58131382/design_pattern_LP
/php_designpattern/32-service-locator/ServiceLocator.php
UTF-8
516
3.015625
3
[]
no_license
<?php namespace ServiceLocatorPattern; class ServiceLocator { private static Cache $cache; static function init() { self::$cache = new Cache(); } public static function getService(string $jndiName):Service{ $service = self::$cache->getService($jndiName); if($service != null){...
true
8962d94dbabd96321956a162d8d9773e4845722c
PHP
Retamero/ModuloCliente
/distribuidora/index.php
UTF-8
1,756
2.640625
3
[]
no_license
<html> <head> </head> <body> <form action="websvc/cliente.php" method="post"> <input type="hidden" name="url" value="https://distribuidora.dnsget.org"> <input type="submit" value="OK"> </form> <b>Status:</b> <? //$url = 'http://server.ddcred.com.br'; $url = 'https://distribui...
true
4efc9082ee3de79b057c01f529caf40f40cd98a0
PHP
diegoahg/titulo
/database/migrations/2015_12_05_195510_create_producto_table.php
UTF-8
1,046
2.609375
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProductoTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('producto', function (Blueprint $table) { ...
true
24d72ee87e4ca7cd5856e0e967c1b2b90ae255c0
PHP
WesselEngels/SerieSite
/inc/characters.php
UTF-8
1,198
2.8125
3
[]
no_license
<div id="characters"> <?php if (isset($_GET['id'])) { $id = $_GET['id']; $sqlhero = "SELECT * FROM hero WHERE teamId = '". $id. "'"; } else { $sqlhero = "SELECT * FROM hero"; } $result1 = $conn->query($sqlhero); //description bij de hero keuze, de gene die...
true
e13f92b8924cc022f45e596425c4de8e483f6607
PHP
BinaryAper/cake-object
/src/Exceptions/PutNotObjectException.php
UTF-8
381
2.59375
3
[ "MIT" ]
permissive
<?php namespace Binaper\CakeObject\Exceptions; use Throwable; /** * Class PutNotObjectException * @package Binaper\CakeObject\Exceptions */ class PutNotObjectException extends \Exception { public function __construct($message = 'Trying put not object value!', $code = 422, Throwable $previous = null) { ...
true
90e7dc7e875f15db9a69395b4ad1fe0fc9be884a
PHP
DiegoSalas7/dwes03-github
/U2P03-PHP/ecf-multiplicacion.php
UTF-8
495
3.046875
3
[]
no_license
<html> <body> <?php if (!isset($_POST['enviar'])){ ?> <form action="" method="post"> Introduce un numero: <br/> Numero: <input type="text" name="numero"> <br/> <input type="submit" name="enviar"> </form> <?php } else { $numero = $_POST['numero']; for( $i=1;$i<=10;$i++){ ...
true
dda099508fe242c9de4e3734d852c332b87ab66c
PHP
euclid1990/laravel
/app/Repositories/AppRepositoryInterface.php
UTF-8
1,672
2.65625
3
[]
no_license
<?php namespace App\Repositories; interface AppRepositoryInterface { public function getModel(); /** * @param array $columns * @param int $offset * * @return \Illuminate\Support\Collection */ public function fetchList(array $columns = ['*'], int $offset = 0); /** * @par...
true
1ddd5b7c7050afa897f2ddb7633f9226f72e77c7
PHP
basicis/core
/src/Http/Server/RequestHandlerInterface.php
UTF-8
1,086
2.59375
3
[ "MIT" ]
permissive
<?php namespace Basicis\Http\Server; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Server\MiddlewareInterface as PsrMiddleware; use Basicis\Http\Message\ResponseFactory; /** * RequestHandlerInterface, all RequestHandler classes implements from this * * @category ...
true
1c925da7f9569007831cf7a0b2eeab51ba5cfdcb
PHP
wooxo/pipedrive-api-php
/src/Benhawker/Pipedrive/Library/ActivityTypes.php
UTF-8
673
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: plampson * Date: 04/11/2016 * Time: 10:17 */ namespace Benhawker\Pipedrive\Library; class ActivityTypes { /** * Hold the pipedrive cURL session * * @var Curl Object */ protected $curl; /** * Initialise the object load master class ...
true
b1af07e3a4cfecac6bd7c905669c78d4ad1a28b9
PHP
viashop/app
/app/Http/Requests/Control/Personal/PersonalRequest.php
UTF-8
974
2.6875
3
[]
no_license
<?php namespace App\Http\Requests\Control\Personal; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Request; class PersonalRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { ...
true
bd47c3ac5dd997f5efbec1939c53b53b3da974a7
PHP
ztenst/dc
/base/grid/GridView.php
UTF-8
1,867
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\base\grid; class GridView extends \yii\grid\GridView { /** * @var array the HTML attributes for the grid table element. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public $tableOptions = ['class' => 'table table-bordere...
true
4380e469214ca9669a9fd084a16e52c7e00f6cd2
PHP
Ekstazi/ReAmp
/src/Logger/MessageLoggedConnection.php
UTF-8
957
2.796875
3
[ "MIT" ]
permissive
<?php namespace Reamp\Logger; use Amp\Promise; use Psr\Log\LoggerInterface; use Reamp\AbstractConnectionDecorator; use Reamp\ConnectionInterface; class MessageLoggedConnection extends AbstractConnectionDecorator { /** * @var LoggerInterface */ protected $logger; public function __construct(Con...
true
b6daac6f06183da57fbba22328f350a85d5629f7
PHP
Amoldreamer/riot-php
/tests/Unit/API/Version4/ThirdPartyCodeTest.php
UTF-8
1,309
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Riot\Tests\Unit\API\Version4; use PHPUnit\Framework\TestCase; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; use Riot\API\Version4\ThirdPartyCode; use Riot\ConnectionInterface; final class ThirdPartyCodeTest extends TestCase { public functi...
true
8d789a8613ef90956a581b0539708b9e11296688
PHP
emilia98/SoftUni-PHPWeb
/PHP Basics/OOP Basics - Exercises/05.SpeedRacing_2/judge.php
UTF-8
2,384
3.59375
4
[]
no_license
<?php class Car { private $model; private $fuelAmount; private $fuelCostPerKm; private $distance = 0; public function getModel() { return $this->model; } public function setModel(string $model) { $this->model = $model; } public function getFuelAmount() ...
true
6beb7b5a00b4e8963c6131f1374dcb26dc797605
PHP
mohitoshpm/PollingSystemGrpDev
/logout.php
UTF-8
430
2.515625
3
[]
no_license
<?php if($_COOKIE["IsLogin"]) { session_destroy(); setcookie("IsLogin",false, time() - (86400 * 30), "/"); // 86400 = 1 day setcookie("Id",0, time() - (86400 * 30), "/"); // 86400 = 1 day setcookie("FullName","", time() - (86400 * 30), "/"); // 86400 = 1 day setcookie("Email","", time() - (86400 * ...
true
52965f5c5f62d46dd501c8d25d0062ffb26dc73b
PHP
skyameny/blw
/extend/authority/traits/Authentication.php
UTF-8
941
2.578125
3
[ "Apache-2.0" ]
permissive
<?php /** * 验证器 * 用于 * User: keepwin100 * Date: 2019-04-23 * Time: 19:48 */ namespace authority\traits; use authority\service\AuthorityService; use core\includes\session\SessionManagement; use core\includes\user\AnonymousUser; use think\Request; trait Authentication { public function verification() { ...
true
20790641a23af8b9f0213ebc57ddff7f4871a146
PHP
luispabon/swagger-validator
/src/Specification/Info.php
UTF-8
1,840
3.046875
3
[]
no_license
<?php namespace WakeOnWeb\Component\Swagger\Specification; /** * @author Quentin Schuler <q.schuler@wakeonweb.com> */ class Info { /** * @var string */ private $title; /** * @var string */ private $description; /** * @var string */ private $termsOfService; ...
true
0a2b6127121f151b9744368925a3b52123dc8c98
PHP
HadenHiles/GeekPower-proficiencyTest
/pages/loop.php
UTF-8
1,365
3.140625
3
[]
no_license
<?php ini_set("display_errors", 1); require_once("../includes.php"); if(!empty($_POST['begin']) && !empty($_POST['end'])) { $begin = new DateTime($_POST['begin']); $end = new DateTime($_POST['end']); $interval = DateInterval::createFromDateString('1 day'); $period = new DatePeriod($begin, $interval, $...
true
cbcda231539bbb7161c4d806a2aa747b39863269
PHP
Iskalpero/PHP-MySQL
/1월 24일자/pass01.php
UTF-8
224
3.015625
3
[]
no_license
<?php $A=69; if($A >= 90) { echo " A 입니다. <br>"; exit();} if($A >= 80) { echo " B 입니다. <br>"; exit();} if($A >= 70) { echo " C 입니다. <br>"; exit();} if($A < 70) { echo " 탈락. <br>";} ?>
true
f9533fbca1279da3e9c3a4119a9ceb473b8977bf
PHP
stephens2424/php
/testdata/fuzzdir/corpus/Zend_tests_bug70012.php
UTF-8
344
2.90625
3
[ "BSD-3-Clause" ]
permissive
<?php try { echo "Outer try\n"; try { echo " Middle try\n"; throw new Exception(); } finally { echo " Middle finally\n"; try { echo " Inner try\n"; } finally { echo " Inner finally\n"; } } echo "Outer shouldnt get here\n"; } catch (Exception $e) { echo "Outer catch\n"; } finally { echo ...
true
1cf4209b70ce1c3720370a0d7b46647dc77bb0c2
PHP
roddom67/Fotografia-de-rod
/includes/galeria.php
UTF-8
1,284
2.59375
3
[]
no_license
<?php $carpeta = $folder[$n]; $cant = count($files[$n]); $images = ''; $images = $files[$n]; echo $images[0]['alt']; ?> <div class="galeria"> <!-- Slide --> <div id="slider" class="flexslider"> <ul class="slides galerie"> <?php $image=''; for($a=0;$a<$cant;$a++){ $image="imgs/".$carpeta."...
true
e98aa4054f2a894d3a86f0e2a47bfdc4a040b44a
PHP
andreybolonin/symfony34_crud
/src/Entity/Product.php
UTF-8
1,758
2.53125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity */ class Product { /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\Column(type="s...
true
267c0381941cc8d261ef15f8d6ea5536f1f97ca1
PHP
eXolnet/laravel-bento
/tests/Unit/Strategy/UserTest.php
UTF-8
2,201
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Exolnet\Bento\Tests\Unit\Strategy; use Exolnet\Bento\Strategy\User; use Exolnet\Bento\Tests\TestCase; use Illuminate\Contracts\Auth\Factory as Auth; use Mockery; class UserTest extends TestCase { /** * @var \Illuminate\Contracts\Auth\Factory|\Mockery\MockInterface */ protected $auth...
true
8472b3ac0d5e3dbbe513c1f4d76ceeedc2078f0e
PHP
bborealis/Hair_Salon
/tests/StylistTest.php
UTF-8
3,329
2.78125
3
[ "MIT" ]
permissive
<?php /** * @backupGlobals disabled * @backupStaticAttributes disabled */ require_once "src/Stylist.php"; $server = 'mysql:host=localhost;dbname=hair_salon_test'; $username = 'root'; $password = 'root'; $DB = new PDO($server, $username, $password); class StylistTest extends P...
true
f4789fbdae5c058475d7d5dedcfb10c578e94f37
PHP
moh3424/PHP
/08-exercice/affiche_capitales.php
UTF-8
1,364
3.578125
4
[]
no_license
<?php /* Sujet : Vous créer un tableau PHP contenant les pays suivants: -France -Italie -Espagne -Inconnu -Allemagne Vous leur assocez les valeurs suivantes : -Paris -Rome -Madrid -'?' -Berlin Vous parcourez ce tableau pour afficher la phrase "La capitale X se situ...
true
d6a422806cdfb87eeeddc97d67dcf4a22e1ee16f
PHP
chigix/sublime-php-connector
/sublime_php_command/Core/Models/File.php
UTF-8
2,704
3.015625
3
[ "MIT" ]
permissive
<?php namespace Chigi\Sublime\Models; use Chigi\Sublime\Settings\Environment; use Chigi\Sublime\Exception\FileNotFoundException; class File extends \SplFileInfo { /** * 程序内部使用的目录字符串,UTF-8 格式,不用于IO级处理 * @var string */ private $path_str = ""; /** * 当前文件所在的文件系统编码 * @var string ...
true
4ab9078efe848d35d6602c8751abc3269a0935a2
PHP
vkamelin/testrepo
/vendor/socialconnect/auth/providers/Steam/Provider.php
UTF-8
2,042
2.578125
3
[ "MIT" ]
permissive
<?php /** * SocialConnect project * @author: Patsura Dmitry https://github.com/ovr <talk@dmtry.me> */ namespace SocialConnect\Steam; use SocialConnect\Auth\Exception\InvalidResponse; use SocialConnect\Auth\Provider\OpenID\AccessToken; use SocialConnect\Common\Entity\User; use SocialConnect\Common\Hydrator\ObjectMa...
true
91d5e5b6b8551cb68bf4c79259ace4f6faa94daa
PHP
jtamames/SqueezeMdb
/application/libraries/SearchQueryBuilder.php
UTF-8
28,839
2.84375
3
[ "MIT" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ini_set("auto_detect_line_endings", true); class SearchQueryBuilder { public static function buildQueryString($oper, $clauses) { $string = ""; foreach ($clauses as $clause) { if (strlen($string) > 0) { ...
true
2438e2269d0111e1d68b1dff4c9ab01134dd68b2
PHP
ujiriukiri/college-portal
/app/Http/Requests/StudentTakesCourseRequest.php
UTF-8
1,690
2.59375
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use App\Models\Student; use App\Models\StaffTeachCourse; use App\Models\Semester; use App\Models\Role; class StudentTakesCourseRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * ...
true
9b353ad9baca8cb3c050822ba5aa6b9d3f590f43
PHP
JustGotLakiSean/signinpage
/controllers/login.php
UTF-8
2,896
2.734375
3
[]
no_license
<?php include('config/db.php'); $connection = new db(); global $username_does_not_exist_err, $empty_username_err, $empty_password_err, $username_password_incorrect_err, $err_count; if(isset($_POST['submit_login'])) { $id = ""; $firstname = ""; $middlename = ""; $lastname = ""; $email = ""; $mobilenumber =...
true
8d959195d3be5806e8aeb539d330e1eeae29db35
PHP
Mamoon97150/SnowTricks
/app/tests/TricksTest.php
UTF-8
913
2.65625
3
[]
no_license
<?php namespace App\Tests; use App\Entity\Tricks; use PHPUnit\Framework\TestCase; class TricksTest extends TestCase { public function testIsTrue(): void { $tricks = new Tricks(); $tricks ->setName('name') ->setDescription('description'); $this->assertTrue($tr...
true
9ce9f1dcf7ee3a885117eeb08bfbee68b6dea7e6
PHP
bronevik-com/hotels-connector
/src/HotelsConnector/Element/SendServiceMessageResponse.php
UTF-8
501
2.515625
3
[]
no_license
<?php namespace Bronevik\HotelsConnector\Element; class SendServiceMessageResponse extends BaseResponse { /** * Идентификатор добавленного комментария. * The identifier of the added comment. * * @var int */ public $id; /** * @param int $id */ public function setId($...
true
6284044d8c741745fba8828a16d76c74cf406b8c
PHP
Doriel26/Piscine_PHP
/j01/ex11/do_op_2.php
UTF-8
704
3.125
3
[]
no_license
#!/usr/bin/php <?php if ($argc != 2) { echo "Incorrect Parameters\n"; } else { $tab = sscanf($argv[1], "%f %c %f %s"); if ($tab[0] && $tab[1] && ($tab[2] != NULL || (($tab[1] == "*" || $tab[1] == "+" || $tab[1] == "-") && $tab[2] == "0")) && !$tab[3]) { if ($tab[1] == '+') { $res = $tab[0] + $tab[2]; ec...
true