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
15f9c169afa4a2af782a9c6fa9751c4d38fdefda
PHP
Mujj/Constellation
/trunk/public/lib/widgets/SolrManager/SolrManager.class.php
UTF-8
35,055
2.703125
3
[]
no_license
<?php include_once(sfConfig::get('sf_lib_dir')."/helper/SolrHelper.php"); include_once(sfConfig::get('sf_lib_dir')."/helper/CryptHelper.php"); include_once(sfConfig::get('sf_lib_dir')."/helper/UserHelper.php"); //Data Abstraction classes as needed from propel //require_once 'crud/SolrManager_crud.php' /...
true
06c02ebacd3a31c0315e51ef57558c1ac929a575
PHP
AndresL99/MoviePass
/DAO/IMovieTheaterDAO.php
UTF-8
220
2.703125
3
[]
no_license
<?php namespace DAO; use Models\MovieTheater as MovieTheater; interface IMovieTheaterDAO { function Add(MovieTheater $movieTheater); function Update(MovieTheater $movieTheater); } ?>
true
b3fc1ee8ad5066cab5718e5ab0b3b2d548c0441d
PHP
Jeferson-Egito/3DAW_AV1
/AV1_cadUsuario.php
UTF-8
1,277
2.890625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <?php $ehPost = true; if ($_SERVER["REQUEST_METHOD"] == "POST") { $nome = $_POST["nome"]; $matricula = $_POST["matricula"]; $funcao = $_POST["funçao"]; $cadastroUsuario = fopen("Usuari...
true
a333daf96818cb659ca532d3cac8bc582ff8085f
PHP
debuger/parsers
/Parser/ParserFactory.php
UTF-8
1,715
2.734375
3
[]
no_license
<?php /** * Copyright (C) 2014 rym <rym.the.great@gmail.com> * * This program 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 Foundation, either version 3 of the License, or * (at your option) any later version. * ...
true
ba4b1f8a9d78db34236c3aa6accb1874a5821e41
PHP
steewsc/css_live_tweaker
/old_one/css_tweek/run_filter.php
UTF-8
659
2.515625
3
[]
no_license
<?php include_once ('tag.php'); $output = ''; $tags = new Tags; if(isset($_GET['tag'])){ $filter = $_GET['tag']; $cssfile = $_GET['css_file']; $tags->readFromCSS($cssfile); //echo '<select id="sel_tags" size="10" style="width: 100%;">'; if ($filter != '__all'){ $output .= $tags->di...
true
60eeb3e4e1037b62c3895d1b94124b1c34694e43
PHP
rahulyhg/happy-giraffe
/site/seo/modules/mailru/components/LadyParser.php
UTF-8
2,548
2.609375
3
[]
no_license
<?php /** * Author: alexk984 * Date: 31.10.12 */ class LadyParser extends LiBaseParser { /** * @var MailruQuery */ private $query; public $page = ''; private $text = '@Mail.Ru'; public static function gatherForums() { for ($i = 20; $i < 100; $i++) { $url = 'http...
true
759a03066fd78e83f48bf3bf9ccfb0beca83b8ee
PHP
dikshaj17/guestbook
/index.php
UTF-8
2,050
2.75
3
[]
no_license
<?php if (isset($_POST['submit'])) { session_start(); include_once('connection.php'); $user =$_POST['username']; $pass =$_POST['password']; $sqlQuery ="SELECT * FROM users WHERE username = '".$user."' AND password = '".$pass."'"; $query = mysqli_query($conn,$sqlQuery); $rows = mysqli_num_rows($query); $data = ...
true
b8b562e77cb5cac0d995337bf68827a223b78d74
PHP
phluid61/tools-toys
/iprange/index.php
UTF-8
14,055
2.59375
3
[ "ISC" ]
permissive
<?php $SUFFIX = ''; if ($FORMAT = @$_REQUEST['format']) { switch ($FORMAT) { case 'range': break; case 'blank': case 'cidr': $USE_SUFFIX = true; break; case 'star': $USE_SUFFIX = true; $SUFFIX = '.*'; break; default: $USE_SUFFIX = true; $FORMAT = 'dot'; } } ######################## ### Regex su...
true
fefd75fc4fcee6b4dfc0bf4d3311296577d35865
PHP
bradcis/flare
/database/migrations/2019_11_26_223837_create_inventory_slots.php
UTF-8
1,036
2.515625
3
[ "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateInventorySlots extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('inventory_slo...
true
3ac73b1171450833a6078fc55e53b6a6031a6e62
PHP
c3lphie/p5-central-hub
/lib/Target.php
UTF-8
1,179
3.5
4
[]
no_license
<?php declare(strict_types=1); require_once __DIR__ . "/Error.php"; require_once __DIR__ . "/MacUtils.php"; class Target { protected $_mac; // 6 bytes, 48-bit protected $_name; // string /** * Device constructor. * @param $mac string * @param $name string */ function __construct(...
true
08dc00bb5b5f9724d59815361d426cc99a3bb64f
PHP
CHOUAKIsalim/Comaparateur-d-Ecole-de-formations
/User/Model/bddConnexion.php
UTF-8
1,371
3
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Salim * Date: 05/12/2018 * Time: 2:46 PM */ class bddConnexion { private static $bdd; private static $isConnected = false; private static $dbAddress = "mysql:host=localhost;dbname=TDW"; private static $dbUser = "root"; private static $dbPassword = "...
true
48abc58e762196176a17a0717041583818cd34fb
PHP
marlon-azevedo/Procedimento-e-Fun-o
/ex3.php
UTF-8
758
3.734375
4
[]
no_license
<?php /*Escreva um programa para ler as notas das duas avaliações de um aluno no semestre. Faça uma função que receba as duas notas por parâmetro e calcule e escreva a média semestral e a mensagem “PARABÉNS! Você foi aprovado!” somente se o aluno foi aprovado (considere 6.0 a média mínima para aprovação).*/ function...
true
78f4a470b46e173d03b9f492c77f65e8e33e4b1e
PHP
pambuk/glowing-octo-potato
/app/Services/OperationItemService.php
UTF-8
2,010
2.671875
3
[]
no_license
<?php namespace App\Services; use App\Items\Volume; use App\Items\Weight; use App\Operation; use App\OperationItem; class OperationItemService { /** @var \Illuminate\Database\Eloquent\Builder $query */ private $query; public function __construct() { $this->query = OperationItem::query(); ...
true
fdf542d9e83e5d22e3ea136ce71ce099490c9390
PHP
Lucas-Ribeiro7/Curso-PDO
/select_pdo.php
UTF-8
903
3.765625
4
[ "MIT" ]
permissive
<?php //CONEXÃO try{ $pdo = new PDO("mysql:dbname=cadastropdo;host=localhost", "root", ""); }catch(\PDOException $e){ echo "Erro com o Banco de Dados " . $e->getMessage(); }catch(\PDOException $e){ echo "Erro generico " . $e->getMessage(); } //Seleção $cmd = $pdo->p...
true
01d771101aa119e5ce782f3b31a13a3e8c4f58f3
PHP
mburtscher/docker-php-client
/src/Model/NodeDescription.php
UTF-8
2,145
2.78125
3
[]
no_license
<?php namespace DockerPhpClient\Model; class NodeDescription { /** * @var string */ protected $hostname; /** * @var NodeDescriptionPlatform */ protected $platform; /** * @var NodeDescriptionResources */ protected $resources; /** * @var NodeDescriptionEngi...
true
bb0877a63b9385857bdffe1944ed0be1ab6e4f4a
PHP
fomaaa/dada
/app/Http/Middleware/CheckCountry.php
UTF-8
1,271
2.75
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; class CheckCountry { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $url = $request->getRe...
true
f5313d10f608401e477adb9d5bef6b26d06a4f38
PHP
johnnymaluls/php-simplepizza-app
/sandbox.php
UTF-8
580
2.78125
3
[]
no_license
<?php if(isset($_POST['submit'])){ //set cookie setcookie('gender',$_POST['gender'],time() + 86400); //session start session_start(); $_SESSION['name'] = $_POST['name']; header('Location: index.php'); } ?> <!DOCTYPE html> <html> <head> <title>Sand Box</title> </head> <body> <form action= "...
true
b464b919dd2a81107c9f310002d1218b8bce25fa
PHP
Manuel-M-M/MetropolixServer
/src/Controller/MoviesController.php
UTF-8
9,874
2.53125
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpClient\HttpC...
true
237371f04c0cf9d0ee5eb3463048e056ff4cab5e
PHP
mahaverick/autolush-api
/tests/Feature/Auth/RegistrationTest.php
UTF-8
1,839
2.515625
3
[ "MIT" ]
permissive
<?php namespace Tests\Feature\Auth; use Tests\TestCase; use App\Models\User; class RegistrationTest extends TestCase { public function test_it_requires_a_name() { $this->json('POST', 'api/v1/users/auth/register') ->assertJsonValidationErrors(['name']); } public function test_it_r...
true
ce46a52c257bf1428fbb75beeeaf2f0966adca5b
PHP
XenosEleatikos/MusicBrainz
/src/Filter/Property/TrackIdTrait.php
UTF-8
648
2.734375
3
[ "MIT" ]
permissive
<?php namespace MusicBrainz\Filter\Property; use AskLucy\Expression\Clause\Term; use MusicBrainz\Value\MBID; trait TrackIdTrait { use AbstractAdderTrait; /** * Returns the field name for the MusicBrainz ID (MBID) of a track. * * @return string */ public static function trackId(): str...
true
0020bb382ca24d5f80a0da607aa9eb0e92bf00b4
PHP
BespalovDE/web-development
/lw3/task4.php
UTF-8
795
2.6875
3
[]
no_license
<?php // Survey Saver header("Content-Type: text/plain"); function getGETParameter(string $name): ?string { return isset($_GET[$name]) ? (string) $_GET[$name] : null; } $firstName = getGETParameter('first_name'); $lastName = getGETParameter('last_name'); $email = getGETParameter('email'); $age ...
true
91b85fe56d800ea33c54715bc7a6e893dd59accc
PHP
humet/scLive
/public/src/App/Command/scLiveLogin.php
UTF-8
7,391
2.640625
3
[]
no_license
<?php namespace App\Command; use Symfony\Component\Console\Command\Command as SymfonyCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\Question; use Symfony\Component\Console\Style\SymfonyStyle; use InstagramAPI\Ins...
true
4048c10217a4972ebfc19d00d53a752f89c0c2f4
PHP
jezzdk/swaggo
/src/Path.php
UTF-8
501
2.59375
3
[]
no_license
<?php namespace Jezzdk\Swaggo; use Jezzdk\Swaggo\Traits\GetOrSet; class Path { use GetOrSet; protected $path; protected $requests = []; public function path($path = null) { return $this->getOrSet('path', $path); } public function addRequest(Request $request) { $thi...
true
117ce5928e29743c190d144c94e2c6a5b6266494
PHP
retroban/mvcphp
/system/classes/functions.php
UTF-8
11,758
2.828125
3
[]
no_license
<?php /** * MVCPHP Framework * * @copyright Copyright (c) 2013, Alexey Novitskiy * @author Alexey Novitskiy * @link http://mvcphp.ru/ * */ /** * Класс функций * */ class Functions { public static function getrealip() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip=$_SERVER['HTTP_CLIENT_IP']; } e...
true
37cb43cf7a5d1af23de6a3147375759e7108d857
PHP
myrna07/hola
/VERSION FINALE/envoyer.php
UTF-8
1,125
2.65625
3
[]
no_license
<?php //VARIABLES DE CONNEXION define ('DB_SERVER','localhost'); define ('DB_USER','root'); define ('DB_PASS',''); $base = 'linkedin4'; $name=$_GET['name']; $password=$_GET['password']; //Récupération des id $user1=isset($_POST["user1"])?$_POST["user1"]:""; $user2=isset($_POST["user2"])?$_POST["user2"]:""; //$...
true
3a7add34173358c207592570835eae09fca7426e
PHP
kevintweber/Groundskeeper
/src/Tokens/Elements/Base.php
UTF-8
1,381
2.890625
3
[ "MIT" ]
permissive
<?php namespace Groundskeeper\Tokens\Elements; use Groundskeeper\Tokens\Attribute; use Groundskeeper\Tokens\ElementTypes\ClosedElement; use Groundskeeper\Tokens\ElementTypes\MetadataContent; use Psr\Log\LoggerInterface; /** * "base" element * * https://html.spec.whatwg.org/multipage/semantics.html#the-base-elemen...
true
9860878e6ef66d643c06d4894b6c4bbfcbbb618c
PHP
chiaowei-weng/FoodTraceManager
/app/Models/Opendata.php
UTF-8
5,603
2.515625
3
[]
no_license
<?php namespace App\Models; use Eloquent as Model; /** * Class Opendata * @package App\Models * @version June 15, 2018, 6:21 am UTC * * @property string categories * @property string company * @property string name * @property string specifications * @property string trace_code * @property string warning_w...
true
6eac664843cec1dec553f5f5a6a2a77f51d922c2
PHP
adoy/php-src
/ext/mbstring/tests/mb_stripos.phpt
UTF-8
4,892
2.828125
3
[ "PHP-3.01", "IJG", "Zlib", "OLDAP-2.8", "BSD-4-Clause-UC", "ISC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-public-domain", "TCL", "BSD-2-Clause", "GD" ]
permissive
--TEST-- mb_stripos() --EXTENSIONS-- mbstring --FILE-- <?php // TODO: Add more encodings ini_set('include_path','.'); include_once('common.inc'); // Test string $euc_jp = "0123\xA4\xB3\xA4\xCE\xCA\xB8\xBB\xFA\xCE\xF3\xA4\xCF\xC6\xFC\xCB\xDC\xB8\xEC\xA4\xC7\xA4\xB9\xA1\xA3EUC-JP\xA4\xF2\xBB\xC8\xA4\xC3\xA4\xC6\xA4\xA4...
true
1b46972cca87e720288893d12f88680941a9c319
PHP
fedeaguilar/Proteccionriesgo
/controllers/LoginController.php
UTF-8
683
2.625
3
[]
no_license
<?php class LoginController extends Controller { public function process($params) { switch ($params[0]) { case 'getlogin': $this->getlogin($_POST);exit(); break; default: // Setting template variables $this->data['title'] = ""; ...
true
74915f0dea951f4213442545ed9edbd0dba79408
PHP
perhenrik90/SimpleChatserver
/chat.php
UTF-8
1,807
2.546875
3
[]
no_license
<!DOCTYPE html> <html> <meta charset='utf8'></meta> <link rel="stylesheet" type="text/css" href="css/main.css"></link> <link rel="stylesheet" type="text/css" href="css/chat.css"></link> <script src="chat.js"></script> <body> <h1 class="mainH1">Simple Chat</h1> <div class="blanket"> <div id="chatArea"> <?php ...
true
ee5aef6a76fd9185b2e2870bdd40a050cd34f1bd
PHP
mamypierre/plugins_wordpress
/waouh_filtre/wh_post_creat/wh_controleur/wh_posteTypes.php
UTF-8
357
3.015625
3
[]
no_license
<?php class wh_PosteTypes { private $posteTyps = array(); function __construct() { } // Ajouter tous les objets 'posteTyps' dans un tableau // 5 Maximum public function addPost( $post ) { if ( count( $this->posteTyps ) < 5 ) { $this->posteTyps[] = $post; } } function getPosteTyps() {...
true
b17913712a3715d2fc753a81efe244c61aef2187
PHP
BayuWidia/staterkid-laravel-8
/app/Services/Management/ManagementMenuService.php
UTF-8
7,021
2.609375
3
[ "MIT" ]
permissive
<?php /** * full-stack-developer * @author https://github.com/BayuWidia * Jakarta 01-Juli-2020 */ namespace App\Services\Management; // =============== start default use service =============== use Auth; use Image; use Hash; use Ramsey\Uuid\Uuid; use App\Repositories\Management\ManagementMenu\Interfaces\Managem...
true
132bcd669fd10b0d4cec6503992d5222d5550e24
PHP
coarsehorse/php-crawler
/test/level-wrapper-json-test.php
UTF-8
385
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: User * Date: 26.10.2018 * Time: 12:18 */ require_once __DIR__ . "/../domain/crawling/Level.php"; require_once __DIR__ . "/../domain/crawling/LevelsWrapper.php"; $l1 = ["qwe", "asd", "zxc"]; $l2 = ["1qwe", "2asd", "3zxc"]; $lw = new LevelsWrapper(); $lw->addNewLevel($l1); ...
true
72e60bd9cf18a38c8ddf63c1e0d0c6e401d7f256
PHP
n4zim/IUT_PHP_AFK
/app/controller/Faction.class.php
UTF-8
1,729
2.640625
3
[]
no_license
<?php class Faction extends Controller { public function __construct() { parent::__construct(); } /** * Main method, lists users * @param args Argument array. Used arguments : **/ public function index($args) { $factionModel = new FactionModel(); $factions = $fac...
true
ceb302d6e65febd68447236c4e44f8105dcd5b27
PHP
Stinger-Soft/PhpCommons
/src/StingerSoft/PhpCommons/Formatter/ByteFormatter.php
UTF-8
1,215
3.328125
3
[ "Apache-2.0" ]
permissive
<?php /* * This file is part of the Stinger PHP-Commons package. * * (c) Oliver Kotte <oliver.kotte@stinger-soft.net> * (c) Florian Meyer <florian.meyer@stinger-soft.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ...
true
00218dbf46be33deb757643f07c40faa9acf6db6
PHP
kaythinks/kayphpframework
/app/Config/Crons/CronInterface.php
UTF-8
131
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Config\Crons; interface CronInterface{ public function run(); public function logic(string $className); }
true
88e715d8f32a6d12834dfebe3e7d68c7bd3e4789
PHP
plarivee/icingaweb2-module-director
/library/Director/CustomVariable/CustomVariableString.php
UTF-8
833
2.609375
3
[]
no_license
<?php namespace Icinga\Module\Director\CustomVariable; use Icinga\Module\Director\IcingaConfig\IcingaConfigHelper as c; class CustomVariableString extends CustomVariable { public function equals(CustomVariable $var) { if (! $var instanceof CustomVariableString) { return false; } ...
true
c86578eaa768d71863ea947b0bdfb1af3e043577
PHP
jeanyoungkim/empire-tri-club-memberships
/index.php
UTF-8
3,082
2.828125
3
[]
no_license
<?php /** * Plugin Name: Empire Tri Club Memberships * Author: Jean Kim * Plugin URI: https://github.com/jeanyoungkim/empire-tri-club-memberships * Description: Allows membership start and end dates with WooCommerce Memberships * Version: 1.1.0 * * License: GNU General Public License v3.0 * License URI: http://...
true
d132cd22d0e17495463fde51da02c5b137bd3b97
PHP
alexintp/itc240-2014
/assignment06/insert_edit.php
UTF-8
761
2.53125
3
[]
no_license
<?php include("includes/passwords.php"); $mysql = new mysqli("localhost", "amasch02", $mysql_password, "amasch02"); $calories = htmlentities($_REQUEST["calories"]); $description = htmlentities($_REQUEST["description"]); $id = htmlentities($_REQUEST["id"]); if ($id) { $update_query = 'UPDATE olympic_log SET ...
true
87977d398002f82dcb21486d99b8c193eb673f5b
PHP
mindbox-travis/php-sdk
/tests/DTO/V2/Responses/PaymentResponseDTOTest.php
UTF-8
1,073
2.59375
3
[]
no_license
<?php namespace Mindbox\Tests\DTO\V2\Responses; use Mindbox\DTO\V2\Responses\PaymentResponseDTO; use Mindbox\Tests\DTO\DTOTest; /** * Class PaymentResponseDTOTest * * @package Mindbox\Tests\DTO\V2\Responses */ class PaymentResponseDTOTest extends DTOTest { /** * @var PaymentResponseDTO $dto */ ...
true
4e6322b5832c6f1a5ebac1f999846081b5f611ca
PHP
seryak/harasug_cms
/app/Services/Index/AboutService.php
UTF-8
542
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Services\Index; use App\Contracts\Index\IAbout; use App\Models\AboutCard; use Illuminate\Database\Eloquent\Collection; class AboutService implements IAbout { public function getAboutItems(bool $forAdmin = false, int $perPage = 15) { if ($forAdmin) { return AboutCard::w...
true
0f034f11c57d529b8bfaf598569a9a7a60fea067
PHP
daviesgeek/interval-field_type
/src/IntervalFieldType.php
UTF-8
998
2.625
3
[ "MIT" ]
permissive
<?php namespace Daviesgeek\IntervalFieldType; use Anomaly\Streams\Platform\Addon\FieldType\FieldType; use Anomaly\SelectFieldType\SelectFieldType; use Carbon\Carbon; class IntervalFieldType extends SelectFieldType { protected $nouns = [ '0' => 'once', '1' => 'day', '2' => 'week', '3' => 'month', ...
true
be1a6bddf0d2db7320cb4681a098d895a60d32df
PHP
SpareParts/Enum
/src/Mapping/Annotations.php
UTF-8
1,071
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SpareParts\Enum\Mapping; use Doctrine\Common\Annotations\AnnotationReader; use Doctrine\Common\Annotations\Reader; class Annotations { /** @var AnnotationsAnalyzer */ static private $analyzer; /** * @return string[] * @throws \InvalidArgumentException ...
true
63f66dbc9975015744bbead9555a4d02b55fc751
PHP
Fllorent0D/Flogram
/include/ajout_membre.php
UTF-8
4,096
2.734375
3
[]
no_license
<?php if (isset($_POST['valider'])) { $prenom = $_POST['prenom']; $nom = $_POST['nom']; $email = $_POST['email']; $nomutili = strtolower($_POST['nomutili']); //On le stocke en minuscule $mdp = $_POST['mdp']; $mdp_confirm = $_POST['mdp_confirm']; $error['prenom'] = ""; $error['nom'] ...
true
1dfec008fa7dca0c28d8d2b60e95435e6ad3569f
PHP
jhgundersen/worklog
/src/WorkLog/Command/Show.php
UTF-8
437
2.5625
3
[]
no_license
<?php namespace WorkLog\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class Show extends Command{ protected function configure(){ $this ->setName('show') ->setDescription('Show all entries...
true
e3357151b5fd97c51f3201c967995fae0e788c4c
PHP
nikita-lazieiev-personal/Arca
/app/ContractStaff.php
UTF-8
423
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class ContractStaff extends Model { protected $table = 'contract_staff'; protected $fillable = [ 'user_id' ]; const WORKER = 'worker'; const ENGINEER = 'engineer'; const PLANNER = 'planner'; public function contract() { return $this->belo...
true
9e6e2630673b5688614ffade2c7e3234c1980ecb
PHP
bob-blake/hackaday_io_feed_dump_api
/test.php
UTF-8
5,620
2.78125
3
[]
no_license
<?php // dump.php // Gets metadata from hackaday.io global feed items and displays on screen. Uses Hackaday.io API. // This file is just used to test functionality of dump.php. // Author: Bob Blake // Date: May 5, 2015 require("../../php/had_feed/vars.php"); class feedItem { public $item_id; public $user_id; p...
true
92c2b8740451da1dd18ae54936a9d8798627154f
PHP
Rae4246/CNMT310
/backInTime.php
UTF-8
3,153
2.515625
3
[]
no_license
<?php SESSION_start(); require_once("page.php"); require_once("formClass.php"); require_once("DB.class.php"); require_once("login.Class.php"); $page = new Page(); $form = new Form(); $login = new LoginForm(); $login->setLoginForm(); if (isset($_SESSION['istrue'])) { $page = new Page(); $form = new ...
true
4d732856928ffc914d63806d6a129ac274d4223a
PHP
CorentinGarnier/SymfonyProject
/src/DataFixtures/SkillsFixtures.php
UTF-8
816
2.59375
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Skills; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; class SkillsFixtures extends Fixture { public function load(ObjectManager $manager) { $skill1 = new Skills(); $skill1->setName('Reactjs' ) -...
true
90d30bee88e8ad5b1de4f2afc0b229bb6ab2f996
PHP
MuhammadAbdullah899/my_symfony_project
/src/Controller/MyTaskController.php
UTF-8
4,612
2.75
3
[]
no_license
<?php namespace App\Controller; use App\Entity\MyTask; use App\Form\MyTaskType1; use DateTime; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class MyTaskCon...
true
6a32a90c1d777d08d2bfb9067cf454c66217c097
PHP
draco607/workspace
/core/ModeloBase.php
UTF-8
881
2.625
3
[]
no_license
<?php class ModeloBase extends EntidadBase{ private $table; public function __construct() { parent::__construct(); } public function LoginUsuario($query,$user,$pass){ $query=$this->db()->prepare($query); $query->bindParam(1,$user); $query->bindParam(2,$pass); ...
true
d920f46ba7242dad0c58f13da6995819fd379a83
PHP
CoolMafia111/LojaVirtual
/admin/vendor/landim32/emagine-produto/src/Model/UsuarioLojaInfo.php
UTF-8
1,670
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: foursys * Date: 30/11/17 * Time: 23:13 */ namespace Emagine\Produto\Model; use Emagine\Login\BLL\UsuarioBLL; use Emagine\Login\Model\UsuarioInfo; use JsonSerializable; use stdClass; class UsuarioLojaInfo implements JsonSerializable { private $id_loja; private $id...
true
399f1a8e7b9963ae0a23a0fbe0ced10b13e8a725
PHP
mz5c/learn_php
/2015c/dir1105before/lp10311342.php
UTF-8
618
3.140625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mz5c * Date: 2015/10/31 * Time: 13:42 */ $x = 'hello world'; var_dump($x); echo '<br>'; $x = null; var_dump($x); echo '<br>'; var_dump(empty($x)); echo '<br>'; $x = 0; var_dump(empty($x)); echo '<br>'; $x = '0'; var_dump(empty($x)); echo '<br>'; $x = false; var_dump(empty($...
true
b9dcc88b8108c9aa905029ec18707430a1ddce39
PHP
VladPotapov/php
/1/32_final/base.php
UTF-8
320
3.390625
3
[]
no_license
<?php class base { public function final_method() { echo "base::final_method() <br>"; } } class derived extends base { public function final_method() { echo "derived::final_method() <br>"; } } $obj_b = new base; $obj_d = new derived; $obj_b->final_method(); $obj_d->final_method(); ?>
true
2cba95ae2aa00d2f3ce08794d85942ab7fa360d3
PHP
sureshprakash/owncloud-collaboration
/lib/projects.php
UTF-8
16,665
2.546875
3
[]
no_license
<?php /** * ownCloud - collaboration plugin * * @authors Dr.J.Akilandeswari, R.Ramki, R.Sasidharan, P.Suresh * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * ve...
true
1a29acc44f6909635320b2c134fac65bc502dba1
PHP
kriscanty/CSE477
/step8/lib/Felis/UserView.php
UTF-8
2,273
2.859375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: joshbenner * Date: 3/22/16 * Time: 2:54 AM */ namespace Felis; class UserView extends View { /** * Constructor * Sets the page title and any other settings. */ public function __construct(Site $site, $get, $session) { parent::__construct($...
true
36fe2f83fee2d481c26b51bf2148c7e024992d91
PHP
adelia6113/EtemuajanjiJPN
/session.php
UTF-8
631
2.609375
3
[]
no_license
<?php // Establishing Connection with Server by passing server_name, user_id and password as a parameter $conn = mysqli_connect("localhost", "root", "","etemujanji"); session_start();// Starting Session // Storing Session $username=$_SESSION['login_user']; // SQL Query To Fetch Complete Information Of User $...
true
c2ececd0a8ddd27a5d35b52755c70abafb671443
PHP
MagnaMonstrum/PHP
/PretPark/lib/Attractie.php
UTF-8
895
2.875
3
[]
no_license
<?php class Attractie { private $idattractie; private $idgebruiker; private $attractienaam; private $attractieomschrijving; private $urlfoto; function __construct() { } function getGebruikerById(){ $db = new Db(); $conn = $db->getConnectie(); $sth = $conn->pre...
true
ef62a6307ea0125e5138ed2977a31cc57355c96c
PHP
mkdf/mkdf-datasets
/src/Service/DatasetPermissionManager.php
UTF-8
3,621
2.703125
3
[]
no_license
<?php namespace MKDF\Datasets\Service; use MKDF\Datasets\Repository\MKDFDatasetRepositoryInterface; class DatasetPermissionManager { private $_repository; public function __construct(MKDFDatasetRepositoryInterface $repository) { $this->_repository = $repository; } public function hasCu...
true
7b376fcc908d0f45007d8ca20a11c4ffe0c8c144
PHP
Natasha913/WT_Final_Sum21
/Online_b_shop/controllers/CategoryController.php
UTF-8
1,182
2.734375
3
[]
no_license
<?php require_once 'models/db_config.php'; $err_db=""; //validation variables if(isset($_POST["add_category"])){ //do validations //if no error $rs = insertCategory($_POST["name"]); if($rs === true){ header("Location: allcategories.php");//sob thik hole thn. } $err_db = $rs; //or err msg } else ...
true
d7de538cdb2ea24b177dd2b83328d8ce5ec95f15
PHP
acmarche/ecommerce
/src/Entity/InterfaceDef/PrixInterface.php
UTF-8
769
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jfsenechal * Date: 14/03/18 * Time: 15:24 */ namespace App\Entity\InterfaceDef; interface PrixInterface { /** * @return mixed */ public function getId(); /** * @return float */ public function getHtva(): ?float; /** * @param...
true
b5d2b58b37f2c5791b909bfa6c57b8a6f7686adb
PHP
jasperroel/programma
/src/session.php
UTF-8
1,697
2.515625
3
[]
no_license
<? include ("inc/top.php"); ?> <? // Cookies! if (isset($_REQUEST["sel_groep"]) && $_REQUEST["sel_groep"] == 'negeer' || isset($_REQUEST["sel_speltak"]) && $_REQUEST["sel_speltak"] == 'negeer') {} else { if (isset($_REQUEST["setting"]) && $_REQUEST["setting"] == 'groep') { $groepsnr = $_POST['sel_groep'];...
true
1499c64cb06965eccbd71f4b3cc2dd6738812072
PHP
romikring/rcalex
/library/Rabotal/View/Helper/Bbcode.php
UTF-8
2,331
2.640625
3
[]
no_license
<?php class Rabotal_View_Helper_Bbcode extends Zend_View_Helper_Abstract { public function bbcode($text) { $text = $this->convertVideos($text); $text = $this->convertImages($text); return $text; } private function convertImages($text) { $m = array(); ...
true
26d968e3000944426520396f5a70cd09eaf13fbc
PHP
freonL/eSurvey
/system/application/models/kuesioner_model.php
UTF-8
25,185
2.625
3
[]
no_license
<?php class Kuesioner_model extends Model{ function __construct(){ parent::__construct(); $this->survey = $this->load->database('survey',TRUE); } /** * [menampilkan daftar kuesioner yang ada] * @param integer $is_active [filter status : 0=non aktif; 1=aktif; 2=all] * @return [type] ...
true
ef1a864fc88c0cf57cfa06f747ee3638397f9e6d
PHP
DeploymentTools/MySQL-to-object-mapper
/tests/Common/Collection/addTest.php
UTF-8
1,489
2.859375
3
[ "MIT" ]
permissive
<?php namespace tests\Common\Collection; class addTest extends \PHPUnit_Framework_TestCase { /** * adding elements will append to the elements list */ public function testWhenNoInputIsSentToTheConstructorThenInitializeUsingAnEmptyArray() { $element1 = new \stdClass(); $element1->N...
true
1cfcb0383e994542e361c98c3a4f993df8b38e0e
PHP
cesarverlini/Magve
/application/libraries/servicios/Reposteria.php
UTF-8
756
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // Debemos incluir la clase API_Domain.php require(APPPATH.'libraries/servicios/API_Domain.php'); class Reposteria { public function __construct(){ } // Funcion inicial que se ejecuta public static function main(){ } const Controller = 'Paquetes/'; public static...
true
34e0554d70b4583dd48fe19ca721a82f1314be4d
PHP
jankx/breadcrumb
/src/Compatibles.php
UTF-8
3,630
2.515625
3
[ "MIT" ]
permissive
<?php namespace Jankx\Breadcrumb; class Compatibles { protected static $dectector; protected static $thirdparties; protected static $default_conditions = array( 'validate' => '', 'type' => '', ); protected $callable; protected $args; public function __constru...
true
58171998fe157e3f810287b1faf79dbf6fb180fd
PHP
phantien94/zend2112
/module/User/src/Service/AuthManager.php
UTF-8
2,101
2.734375
3
[]
no_license
<?php namespace User\Service; use Zend\Authentication\AuthenticationService; use Zend\Authentication\Result; class AuthManager{ public $authenticationService; public $sessionManager; private $config; function __construct($authenticationService, $sessionManager,$config){ $this->authenticationSer...
true
82b33542243dbda26840ce6c1c88e972e52b8e69
PHP
DUKEOFC/PAP
/Feedback/Feed.php
UTF-8
1,422
2.90625
3
[]
no_license
<?php include("../Sql/Sql.php"); class Feed { private $idFeed; private $mensagem; private $idUtilizador; public function getIdFeed() { return $this->idFeed; } public function getMensagem() { return $this->mensagem; } public f...
true
5a0863dd46b7136479b26076d073c7376734f2a0
PHP
maboiteaspam/Foundation
/src/C/Form/FormErrorHelper.php
UTF-8
2,639
2.765625
3
[]
no_license
<?php namespace C\Form; use \Symfony\Component\Form\Form; use Symfony\Component\Form\FormError; /** * Class FormErrorHelper * helps to transform a submitted form object * into a useful serializable array of elements => error messages * * @see https://github.com/symfony/symfony/issues/7205 * @package C\Form */ ...
true
d2fcddb07c9bb6ef9f5403b4b00eccc8053e6641
PHP
jmfontaine/aviso
/src/Aviso/Formater/AbstractFormater.php
UTF-8
1,872
2.90625
3
[]
no_license
<?php /** * This file is part of Aviso. * * Copyright (c) 2012, Jean-Marc Fontaine * * @package Aviso * @author Jean-Marc Fontaine <jm@jmfontaine.net> * @copyright 2012 Jean-Marc Fontaine <jm@jmfontaine.net> * @license http://www.opensource.org/licenses/bsd-license.php BSD License */ namespace Aviso\Formater; ...
true
ff7a6b49523121c963ac14db3c3b89cd118de0d8
PHP
polonair/dialtime-gate
/legacy/inc/classes/SDB.class.php
UTF-8
2,810
2.78125
3
[]
no_license
<?php class SDB extends CDB { # Fields private static $_Instance = null; # Methods public function __construct() { $this->_SqlApi = new mysqli("localhost", "belfry", "belfry", "belfry2"); $this->_SqlApi->set_charset("utf8"); /*$queries = file_get_contents(__dir__ . "/SDB.sq...
true
e2da872479adbe0a91898a43471acfd7c783cf34
PHP
usagi/ajax_sample
/app.php
UTF-8
274
2.578125
3
[]
no_license
<?php // 参考: // $_REQUEST: // http://www.php.net/manual/ja/reserved.variables.request.php // json_encode: // http://www.php.net/manual/ja/function.json-encode.php // echo: // http://www.php.net/manual/ja/function.echo.php echo(json_encode($_REQUEST));
true
ea60bf4240aff1ecf477b2747c4886c33ca86df6
PHP
C17326283/WebDev2Assignment-master
/changeEmailSql.php
UTF-8
1,972
2.859375
3
[]
no_license
<html> <body> <?php session_start(); if(isset($_POST['submit'])) { // Create connection $conn = new mysqli("localhost", "root", "", "project2"); $username = $_SESSION['Username']; $email = mysqli_real_escape_stri...
true
fd465021e3e84909955b6c898740d72418d0af19
PHP
Yugh-t/ChatManager
/src/ChatManager/Yugh/listener/EventListener.php
UTF-8
1,444
2.703125
3
[]
no_license
<?php namespace ChatManager\Yugh\listener; use pocketmine\event\Listener; use pocketmine\event\player\PlayerChatEvent; use pocketmine\event\player\PlayerJoinEvent; class EventListener implements Listener { private $plugin; public function __construct($plugin) { $this->plugin = $plugin; } ...
true
843e6e1eda340ab6dfe4f9bbad595888c05ce940
PHP
agharta83/PHP-Todolist
/delete.php
UTF-8
611
2.84375
3
[]
no_license
<?php // je demarre la session car j'ai changé de page session_start(); //je recupere mon ID $id = intval($_GET['id']); //je vais boucler sur mes taches qui ont été stockées en session dans data.php foreach($_SESSION['tasks'] as $index => $currentTask){ //je cherche l'element qui porte l'id que j'ai passé par le l...
true
157581bd2fffbf99487db8828ec1c41d0581806a
PHP
changemachine/Cars
/car/app/app.php
UTF-8
1,946
2.53125
3
[ "MIT" ]
permissive
<?php require_once __DIR__."/../vendor/autoload.php"; require_once __DIR__."/../src/cartype.php"; session_start(); if (empty($_SESSION['list_of_cars'])){ $_SESSION['list_of_cars'] = array(); } $app = new Silex\Application(); $app->register(new Silex\Provider\TwigServiceProvider()...
true
f0e35354f64f2fd067fe2a26171366c3ad341fa2
PHP
dzsoo/StaminIA
/chpp/chpp_retrievedata.php
UTF-8
4,624
2.546875
3
[]
no_license
<?php header('Content-type: application/json'); include '../lib/PHT/PHT.php'; include 'config.php'; session_start(); $returnArray = array(); $HT = $_SESSION['HT']; $clearCache = isset($_GET['refresh']); if (($HT == null) && ($_COOKIE['permanent'])) { $userToken = $_COOKIE['userToken']; $userTokenSecret = $_COOK...
true
5adea5616bcb3dafc098c1fecc8ed60b540d87ce
PHP
hideyuk1-jp/AtCoder
/php/codefestival_2016_final_b.php
UTF-8
370
3.125
3
[]
no_license
<?php list($n) = ints(); $sum = 0; for ($i = 1; $i <= $n; ++$i) { $sum += $i; $ans[] = $i; if ($sum >= $n) { $diff = $sum - $n; if ($diff) { unset($ans[array_search($diff, $ans)]); } break; } } echo implode(PHP_EOL, $ans); function ints() { return array_m...
true
dc0760655820be66b238dc7b17ffb4f3718b7d40
PHP
yourjhay/simplepagination
/pagination.php
UTF-8
4,262
2.8125
3
[]
no_license
<?php $con = new mysqli('localhost','root','','ezyro_22455960_db'); if($con->connect_error){ die ('failed to load data connection:'.$con->connect_error); } /*---------------------------------------- Below is your desire records per page. ---------------------------------------*/ $perpage = 50; /* --------------...
true
1963434cef387cb67caab6d1a2868c803b61483a
PHP
kogleron/test-12go-asia
/src/Service/Calculator/WorstToAvgDistanceCalculator.php
UTF-8
1,776
3.03125
3
[]
no_license
<?php declare(strict_types=1); namespace Kogleron\Test12GoAsia\App\Service\Calculator; use Kogleron\Test12GoAsia\App\Model\Route; /** * Class WorstToAvgDistanceCalculator * @package Kogleron\Test12GoAsia\App\Service\Calculator */ class WorstToAvgDistanceCalculator { /** * @var AvgDestinationCalculator ...
true
fce5be1112a54371541685bdc3df58fef11a388e
PHP
16110400/PWL_GIT
/Pertemuan 8/berita.php
UTF-8
730
2.625
3
[]
no_license
<?php require_once("koneksi/koneksi.php"); ?> <h2>Tabel Berita</h2> <table border="1"> <tr> <td>id.berita</td> <td>kd.kategori</td> <td>nama</td> <td>judul</td> <td>isi</td> <td>tanggal</td> </tr> <?php //perulangan $query = mysqli_query($con,"SELECT * FROM kategori INNER JOIN berita ON kategori.id_k...
true
2e1a3c9e9f8967faf12e297334b669e23f68828b
PHP
benjaminhansen/workday-wsdl
/src/StructType/Manage_Education_Data_for_RoleType.php
UTF-8
6,957
2.59375
3
[]
no_license
<?php namespace WorkdayWsdl\\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for Manage_Education_Data_for_RoleType StructType * Meta information extracted from the WSDL * - documentation: Wrapper element for Education Data. * @subpackage Structs */ class Manage_Education_Data...
true
5a0941aac956db8d83a3efb132c93786377dd650
PHP
mostofreddy/clitools
/src/cliptools/Shell.php
UTF-8
986
2.796875
3
[ "MIT" ]
permissive
<?php /** * Shell * * PHP version 5.3 * * Copyright (c) 2013 mostofreddy <mostofreddy@gmail.com> * For the full copyright and license information, please view the LICENSE file that was distributed with this source code. * * @category Cliptools * @package Cliptools * @author Federico Lozada Mosto <mostof...
true
4177aca30e81643ae2991e7fad3ac6a34c2ab495
PHP
GenercodeLtd/genercodeorm
/src/Builder/Fields.php
UTF-8
3,514
2.6875
3
[ "MIT" ]
permissive
<?php namespace GenerCodeOrm\Builder; trait Fields { private function addAggregatorStringField($cell) { $sql = "CONCAT_WS('" . $cell->ws . "', "; $sql_fields = []; foreach ($cell->cells as $icell) { if (count($this->entities) > 1) $sql_fields[] = $icell->entity->alias . ...
true
0d58ce22b112cbe59686bea8e9707a1cdd825c27
PHP
mohammed-elattar/Design-Patterns-PHP
/public/FactoryMethod/Practical/LinkedinConnector.php
UTF-8
932
3.1875
3
[]
no_license
<?php declare(strict_types=1); namespace App\FactoryMethod\Practical; class LinkedinConnector implements SocialNetworkConnector { /** * @var string */ private string $email; /** * @var string */ private string $password; public function __construct(string $email, string $pas...
true
0ff1ef8a7676a353ba384a83ce6f0fc4bed68dee
PHP
Spameri/Elastic
/src/Import/Response/SimpleResponse.php
UTF-8
722
2.765625
3
[]
no_license
<?php declare(strict_types = 1); namespace Spameri\Elastic\Import\Response; class SimpleResponse implements \Spameri\Elastic\Import\ResponseInterface { /** * @var mixed */ private $response; /** * @var \Spameri\Elastic\Entity\AbstractImport */ private $entity; public function __construct( $response...
true
dcec9d50750d2c7eabccf066396ebd96d19050c3
PHP
simba77/blog-johncms
/modules/blog/lib/Actions/Search.php
UTF-8
2,159
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Blog\Actions; use Blog\Models\BlogArticle; use Blog\Utils\AbstractAction; class Search extends AbstractAction { /** * The search by tags page */ public function byTags(): void { $this->nav_chain->add(__('Blog'), '/blog/'); $page_title = ...
true
1874245247062fa77522a509ebc41f7022119938
PHP
tighten/tlint
/src/Linters/QualifiedNamesOnlyForClassName.php
UTF-8
2,272
2.625
3
[ "MIT" ]
permissive
<?php namespace Tighten\TLint\Linters; use PhpParser\Node; use PhpParser\NodeTraverser; use PhpParser\NodeVisitor\FindingVisitor; use PhpParser\Parser; use Tighten\TLint\BaseLinter; class QualifiedNamesOnlyForClassName extends BaseLinter { public const DESCRIPTION = 'Fully Qualified Class Names should only be us...
true
c1e568c1367989f980a57d18dec91898bda139ef
PHP
joakimsehlstedt/WGTOTW-sheds
/src/Comment/Comment.php
UTF-8
447
2.8125
3
[ "MIT" ]
permissive
<?php namespace Anax\Comment; /** * Model for Comment. * */ class Comment extends \Anax\MVC\CDatabaseModel { /** * Find and return entry matching user id. * * @param int $id. Comment user id. * * @return this */ public function findByUser($id) { $this->db->select('*') ->from($this...
true
766468e4580c6910103c8db63b9a9c5f7feea020
PHP
Clare-E-Rich/DECO7381_MoneyLink_GroupProject
/app/controllers/ContractController.php
UTF-8
9,013
2.734375
3
[ "MIT" ]
permissive
<?php function debug() { echo "<pre>"; foreach (func_get_args() as $var) { var_dump($var); } echo "</pre>"; } class ContractController extends BaseController { private $errors = array(); public function createContract($loan_id) { // Find the profile of the person who's id matches the id of the person curr...
true
37a03f5a293200b8d2290668cbd514562a40291e
PHP
srigi/nette-acl
/app/presenters/BasePresenter.php
UTF-8
530
2.546875
3
[]
no_license
<?php abstract class BasePresenter extends Nette\Application\UI\Presenter { protected function beforeRender() { $this->template->viewName = $this->view; $this->template->root = dirname(realpath(APP_DIR)); $a = strrpos($this->name, ':'); if ($a === FALSE) { $this->template->moduleName = '';...
true
a34e429e836ff80d98c06095adb4d48adb113751
PHP
ContaoBlackForest/contao-system-notification-twilio
/Controller/SmsMmsController.php
UTF-8
1,498
2.515625
3
[]
no_license
<?php /** * Copyright © ContaoBlackForest * * @package contao-system-notification * @author Sven Baumann <baumann.sv@gmail.com> * @author Dominik Tomasi <dominik.tomasi@gmail.com> * @license GNU/LGPL * @copyright Copyright 2014-2016 ContaoBlackForest */ namespace ContaoBlackForest\SystemNotification...
true
08eab3bb543d167c65f4bfae201dc6e942af3fe4
PHP
FullMetalJesus/Projects_To_Show
/PHP_Stuff/XML_Stuff/display.php
UTF-8
2,453
2.625
3
[]
no_license
<?php session_start(); $isbn10 = $_SESSION["isbn10"]; $title = $_SESSION["title"]; $authorName = $_SESSION["authorName"]; $publication_date = $_SESSION["publication_date"]; $price = $_SESSION["price"]; $statusMessage = $_SESSION['message'];//book registration status ?> <!DOCTYPE html> <html lang="en"> <head> ...
true
bbec4b10df39b4450b5bb7e9c8c37b51cec0e582
PHP
Viktor0995/wetelo_test
/models/UploadForm.php
UTF-8
958
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Viktor * Date: 19.09.2017 * Time: 21:57 */ namespace app\models; use Yii; use yii\base\Model; use yii\web\UploadedFile; class UploadForm extends Model { /** * @var UploadedFile[] */ public $image; public function rules() { return [ ...
true
1b99116e82cb2de66d563b8027f63af8c289a155
PHP
bilal114/Laravel_test
/tests/Unit/CSVTraitTest.php
UTF-8
5,285
2.796875
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit; // use Illuminate\Foundation\Testing\RefreshDatabase; // use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; use App\Traits\CSVTrait; class CSVTraitTest extends TestCase { use CSVTrait; /** * Description - In this method we unit test the isColumnAvailable method...
true
92166e392c1cea357741d450a54db318ff2b418d
PHP
2Sonder/kanboard
/app/Model/SonderDomain.php
UTF-8
1,074
2.53125
3
[ "MIT" ]
permissive
<?php namespace Kanboard\Model; use Kanboard\Core\Security\Token; use Kanboard\Core\Security\Role; use Kanboard\Model\Base; /** * Project model * * @package model * @author Frederic Guillot */ class SonderDomain extends SonderBase { use ModelTrait; const TABLE = 'sonder_domain'; public fun...
true
0a994221534ee395f7b98a6338656f905e931d97
PHP
schuessleriam/LHSD
/public_html/review/review_current.php
UTF-8
8,872
2.828125
3
[]
no_license
<?php ob_start(); session_start(); if(!isset($_SESSION['loggedIn']) || $_SESSION['loggedIn'] ==false){ header("Location:security.php"); } ?> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/> <meta http-equiv="content-type" content="text/html; chars...
true
52d3e6d406d098ed658ab391eff224c119ad6ac7
PHP
biblioonline/nutgram
/src/Cache/GlobalCache.php
UTF-8
1,118
2.765625
3
[ "MIT" ]
permissive
<?php namespace SergiX44\Nutgram\Cache; use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\InvalidArgumentException; class GlobalCache extends BotCache { protected const GLOBAL_TTL = null; protected const GLOBAL_PREFIX = 'GLOBAL'; public function __construct(CacheInterface $cache, ?int $ttl = sel...
true
35f67e78eee8efebc4cc218f4aadbbd2211a25d7
PHP
rizianneveluz/trees
/app/models/Record.php
UTF-8
1,070
2.65625
3
[ "MIT" ]
permissive
<?php class Record extends Eloquent { public $incrementing = false; //public static $key = 'record_id'; // MASS ASSIGNMENT ------------------------------------------------------- // define which attributes are mass assignable (for security) // we only want these 3 attributes able to be filled protected $...
true