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
191993961dd513edf18fe326c4326fd21993a17a
PHP
suman313/First
/sms/admin/insert.php
UTF-8
2,214
2.59375
3
[]
no_license
<?php session_start(); include("../dbcon.php"); if(isset($_POST['submit'])){ $Roll = mysql_real_escape_string($_POST['rollno']); $name = mysql_real_escape_string($_POST['name']); $City = mysql_real_escape_string($_POST['city']); $Pcon = mysql_real_escape_string($_POST['parent_contact']); ...
true
d7c92096d38e375170ec7c80edc10e666dd8c7bf
PHP
chabs101/mtscsys
/controller/DBConn.php
UTF-8
5,245
2.734375
3
[]
no_license
<?php include 'autoload.php'; require 'Bcrypt.php'; require 'Helper.php'; date_default_timezone_set('Asia/Manila'); class DBConn { private $type = ''; private $user = ''; private $pass = ''; private $dbname = ''; public $conn = ''; private $result = ''; public function __construct() { $this->type = $_EN...
true
994868f92b07c2d7977649d257c31c8c1569a616
PHP
hiilite/hiiwp
/addons/custom-field-types/address-field-type/address-field-type.php
UTF-8
2,261
2.59375
3
[]
no_license
<?php /* * Plugin Name: CMB2 Custom Field Type - Address * Description: Makes available an 'address' CMB2 Custom Field Type. Based on https://github.com/WebDevStudios/CMB2/wiki/Adding-your-own-field-types#example-4-multiple-inputs-one-field-lets-create-an-address-field * Author: jtsternberg * Author URI: http://dsg...
true
6e0a87acb44c0b3ad221a83f62e2124944ca891e
PHP
asm89/yac
/lib/Yac/Yac.php
UTF-8
1,579
3.109375
3
[ "MIT" ]
permissive
<?php namespace Yac; use ArrayAccess; use InvalidArgumentException; /** * Yet another container */ class Yac implements ArrayAccess { /** * @var array */ private $__yac = array(); /** * @param string|int $id * @return mixed */ public function & __get($id) { if...
true
1ed236c1eabf54dfdbf712d87a8e71f64c6100c4
PHP
coderninja1/PHP-Laravel-project
/Dates.php
UTF-8
1,088
2.5625
3
[]
no_license
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use DB; class Dates extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ ...
true
018029e1503155e49b7b0900c5cc784b78d8b3d1
PHP
GiangBeo/aspire-test
/app/Domain/User/UserFactory.php
UTF-8
1,001
3.03125
3
[ "MIT" ]
permissive
<?php namespace App\Domain\User; class UserFactory { /** * @param string $email * @param string $password * @param string $name * @param int | null $id * @return User */ public function make( $email, $password, $name, $id = null ): User ...
true
a395f5a805be7343f6bc564084ced3fe970e8f6c
PHP
DoubleStackedMind/SmartReminders-WebServices
/src/EntitiesBundle/Controller/EventController.php
UTF-8
6,316
2.53125
3
[]
no_license
<?php namespace EntitiesBundle\Controller; use EntitiesBundle\Entity\Event; use EntitiesBundle\Entity\User; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\JsonResponse; /** * ...
true
a476872596467fad92ce9fd44ff228f964ebba2a
PHP
AswaUmino/assign5
/functions.php
UTF-8
3,540
3.078125
3
[]
no_license
<?php /* Create users table */ $sql = "CREATE TABLE IF NOT EXISTS users ( id INT(5) UNSIGNED AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) NOT NULL, password VARCHAR(50) NOT NULL, user_type INT(2) )"; $conn->query($sql); // if($conn->query($sql) == TRUE){ // echo "'users' table created successf...
true
e6cac7be4815360d017c9955473ca6f4ea31f4af
PHP
vsfdqfpdpg/php-patten
/Src/Database/PDO.php
UTF-8
536
3.046875
3
[]
no_license
<?php namespace Src\Database; use Src\BaseInterface\DatabaseInterface; class PDO implements DatabaseInterface { protected $conn; public function connect($host, $user, $password, $dbname) { echo 'mysql:host='.$host.';dbname='.$dbname.';'; $conn = new \PDO('mysql:host='.$host.';dbname='.$dbn...
true
114ae4542afade23895bbc2b5edea7a12dddf0e4
PHP
JordiMesas/Math_notebook
/controllers/game.php
UTF-8
1,116
2.859375
3
[]
no_license
<?php declare(strict_types=1); include_once '../db/adapters/DBConnectionFactory.php'; include_once '../db/controlDb.php'; include_once '../models/User.php'; class gameController { protected $dbinformation; protected $level; protected $points; protected $credits; private function __construct()...
true
f953289132d5475bb59ca6f9dda8a505ad651523
PHP
Chiff/app-stu-sports
/app/sp-api/app/Dto/EventTeam/EventTeamDTO.php
UTF-8
284
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Dto\EventTeam; use App\Models\AppSerializable; /** @typescript */ class EventTeamDTO extends AppSerializable { public ?string $team_id; public ?string $team_name; public ?string $event_id; public ?int $points; public ?bool $is_winner; }
true
511f730c1b8b4010744dd67f4555ceb521c26aec
PHP
Scar107/demo
/Section 4/function_parameters.php
UTF-8
388
3.59375
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php /* function greeting($message){ echo $message; } greeting("Hello Figjam"); */ function addNum($num1, $num2){ $sum = $num1 + $num2; echo $sum; ...
true
d6b08ef512c30c873205d59c5dc790256f62d535
PHP
ntentan/honam
/src/engines/php/Helper.php
UTF-8
2,386
2.796875
3
[ "MIT" ]
permissive
<?php /* * Ntentan Framework * Copyright (c) 2010-2012 James Ekow Abaka Ainooson * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation ...
true
73791e8fb02514338e219af604d961bab442eeaa
PHP
DarkTornados/1014PHP
/input/index.php
UTF-8
1,156
2.546875
3
[]
no_license
<?php $articles = [ 1 => [ 'title' => 'Article one', 'subtitle' => 'Some sub', 'author' => 'Petar', 'text' => 'Text of article one....' ], 2 => [ 'title' => 'Article two', 'subtitle' => 'Some sub two', 'author' => 'Rudi', 'text' => 'Text of article two.... Lorem ipsum dolor sit amet, ...
true
509e54a8a2ab543efc75ab4a9de7d97db75b1595
PHP
edmichs/camer-am
/Backup/generated/Exercice.php
UTF-8
1,775
2.546875
3
[ "MIT" ]
permissive
<?php /** * Created by Reliese Model. * Date: Sat, 01 Dec 2018 04:57:50 +0000. */ namespace App\Models; use Reliese\Database\Eloquent\Model as Eloquent; /** * Class Exercice * * @property int $ID * @property \Carbon\Carbon $Date_debut * @property \Carbon\Carbon $Date_fin * @property bool $Cloture * @prop...
true
902efb3cf358d0072ce40097a1b04bf44bdc6e7f
PHP
Tatani-Herman/MVC-PHP-POO
/Controleur/ControleurEleve.php
UTF-8
1,049
2.75
3
[]
no_license
<?php require_once 'Modele/Eleve.php'; require_once 'Modele/Absence.php'; require_once 'Vue/Vue.php'; class ControleurEleve { private $eleve; private $absence; private $Tabsences; private $Tabsencess; public function __construct() { $this->eleve = new Eleve(); $this->absence = new Absence(); } // Affiche...
true
a10ac2d0d2ae3091e169b58d5957e5b95bbe9e21
PHP
PizChy-WachidA/Build-your-Advance-Point-Of-Sale
/app/Http/Controllers/PurchaseReportController.php
UTF-8
8,718
2.71875
3
[]
no_license
<?php /** * This file implements Purchase Report Controller. * PHP version 7.2 * * @category Class * @package PurchaseReportController * @author Rose-Finch <info.codehas@gmail.com> * @license https://codecanyon.net/licenses/standard Standard Licenses * @link https://codecanyon.net/user/rose-finch */ ...
true
1747df32d2aac76d8ad71221a8e49ac2e3690426
PHP
tkonopka/SimpleTemplateEmailer
/src/SimpleTemplateFiller.php
UTF-8
3,149
3.453125
3
[ "MIT" ]
permissive
<?php namespace tkonopka\SimpleTemplateFiller; /* * Simple utility to fill templates with values * * @author Tomasz Konopka * @license MIT */ class SimpleTemplateFiller { // directory holding email templates private $_templatesdir; // extension of files in templates directory private $_extensi...
true
ca9b518a148a2845b3e590373f0fc50eb6753f5c
PHP
sumonst21/acronis-cyber-cloud-whmcs
/src/includes/acroniscloud/lib/CloudApi/CloudApiTrait.php
UTF-8
5,111
2.75
3
[ "MIT" ]
permissive
<?php /** * @Copyright © 2003-2019 Acronis International GmbH. This source code is distributed under MIT software license. */ namespace AcronisCloud\CloudApi; use AcronisCloud\Model\WHMCS\Server; use AcronisCloud\Util\Str; use BadMethodCallException; trait CloudApiTrait { /** @var ApiInterface[] */ private...
true
aea7c8101ee953bf8125eb47b1f43a6c532c9e8b
PHP
Codeception/base
/src/Codeception/Lib/Connector/Yii2/ConnectionWatcher.php
UTF-8
1,741
2.859375
3
[ "MIT" ]
permissive
<?php namespace Codeception\Lib\Connector\Yii2; use yii\base\Event; use yii\db\Connection; /** * Class ConnectionWatcher * This class will watch for new database connection and store a reference to the connection object. * @package Codeception\Lib\Connector\Yii2 */ class ConnectionWatcher { private $handler...
true
572c0c0758d622b930932fa3b27bfa1bbbbcb80b
PHP
yegor256/fazend-framework
/FaZend/View/Helper/HtmlTable.php
UTF-8
23,035
2.765625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * FaZend Framework * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. It is also available * through the world-wide-web at this URL: http://www.fazend.com/license * If you did not receive a copy of the license and are unable to * obtain i...
true
d6e3e4df11fe3da15cd61d6ad1d58c446281c57a
PHP
gulcanertopp/Blog_Project
/src/AppBundle/Data/Repository/UserRepository.php
UTF-8
1,446
2.75
3
[]
no_license
<?php namespace AppBundle\Data\Repository; use AppBundle\Data\Model\User; class UserRepository extends BaseRepository { public function GetUser() { try{ $query='Select * From users'; $result = $this->getConnection()->prepare($query); $result->execute();...
true
4d82ef8fe76e99f1763ab362b4727b86cad2375b
PHP
fabiyudzaky/pwl-1
/minggu-2/latihan/menampilkan_bilangan_forLoop.php
UTF-8
598
3.296875
3
[]
no_license
<?php //perulangan for// /*sumber : https://w3codeworld.com/article/330/write-a-program-to-draw-the-half-pyramid-pattern-in-php-language-of-stars-using-the-for-loop */ // $angka=1; for ($angka=1; $angka<=5; ++$angka){ for ($angka2=1; $angka2<=$angka ; ++$angka2) echo "$angka"; ec...
true
7c2b98fc7eaafef80c318e3d31cd6082a5c9bff1
PHP
fajarartbekasi/koperasiBMT
/app/User.php
UTF-8
1,830
2.640625
3
[ "MIT" ]
permissive
<?php namespace App; use App\Loan; use App\Tabungan; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Spatie\Permission\Traits\HasRoles; class User extends Authenticatable implements MustVerifyEmail { use Notifiabl...
true
7cd17c1937d15f4b2f6ffb445eb4eddd208aa146
PHP
lutersergei/gallery
/frontend/models/ImageUploadForm.php
UTF-8
1,161
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use common\models\Pictures; use yii\base\Model; use yii\web\UploadedFile; use Yii; /** * Image Upload Form */ class ImageUploadForm extends Model { public $imageFile; public $description; public $category_id; /** * @inheritdoc */ public function rules...
true
72e04181be81f795c3f0b12d7f4535a0e58e04d9
PHP
13222204208/sl
/app/Http/Controllers/UploadController.php
UTF-8
962
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class UploadController extends Controller { public $filename; public $imgpath; public function uploadImg($filename, $imgpath) { $file = $filename; $url_path = $imgpath; $rule = ['jpg', 'png', 'gif', 'jpeg'...
true
b2296a0ce8e65c7f2512bd1bd2722567445387f5
PHP
TianyunWang0421/CIM453
/CIMX53/final/profile_update.php
UTF-8
2,234
2.921875
3
[]
no_license
<?php include('include/login_check.php'); $user_id = $_SESSION['user_id']; // GET server variable in PHP $_GET // POST server variable in PHP $_POST //var_dump($_POST); //Set default values up here $hasErrors = false; $errorMsg = ""; $password = ""; $password2 = ""; // Test if the user submited a first name if ( is...
true
d11746778ca3597f014e6ce003001d4715649c6b
PHP
X-3mal/Core
/DBDriver/Cached.php
UTF-8
2,736
2.71875
3
[]
no_license
<?php /** * popunder.su * Author: X-3mal * Date: 13.02.14 * Time: 15:05 */ namespace DBDriver; class Cached extends \DBDriver { const DEFAULT_TIME = 1; protected $time = 1; public function _escape_callback ( $matches ) { if ( is_array ( $this->args[ $this->i ] ) ) { sort ( $this->args[ $...
true
59dc6bba33f667958ad90643739a334442b8818a
PHP
CompBioUIC/Kinalyzer
/Front_end/html/data.php
UTF-8
7,963
2.859375
3
[]
no_license
<?php include("inc/global.php"); ?> <?php $pagetitle = "Data Upload"; if (isset($_POST['user'])) $user = htmlspecialchars($_POST['user']); if (isset($_POST['email'])) $email = htmlspecialchars($_POST['email']); if (isset($_POST['algo'])) $algo = htmlspecialchars($_POST['algo']); if (isset($_FILES['...
true
122dc447155b9f704129fe20d812c22afa992c4d
PHP
chrispynegar/cms-old-version
/components/content/article/system-output.php
UTF-8
3,705
2.65625
3
[]
no_license
<?php /** * Develop21 * * @package Article View - Develop21 CMS * @version 1.0 * @since Develop21 CMS version 1.0 * @author Chris Pynegar - Develop21 * @copyright © 2012 * @license http://develop21.com/cms/license.txt * */ global $session; if($session->is_logged_in()) { $user = User::find_by_id($session->...
true
d36fc0add0ea13f802c6a5f5bd498e9d80b896f8
PHP
vendi-advertising/log-file-parser
/src/worker.php
UTF-8
2,533
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace Vendi\LogParser; use League\Csv\Writer; use Webmozart\PathUtil\Path; class worker { public function do_work(string $input_file_path, string $output_file_path) { $handle = fopen($input_file_path, 'r'); if (!$handle) { throw new \Exception('...
true
73b3dbdbcff28d625df9c7cfac1e5b0f4cb05472
PHP
aadityajs/jumblr
/m/class/Thumimage.php
UTF-8
3,371
2.65625
3
[]
no_license
<?php function creat($thname,$thumbnailwidth,$thumbnailheight,$image,$type){ if($type == '.gif'){ $mainimage=imagecreatefromgif($image); } if($type == '.jpg'){ $mainimage=imagecreatefromjpeg($image); } if($type == '.JPG'){ $mainimage=imagecreatefromjpeg($image); } if($type == '.jpeg'){ ...
true
2e9af139d60915827fdd9a21d4a10f3d085a94ed
PHP
narkane/awkward-styles
/vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Common/Manager/Lists/Iface.php
UTF-8
7,497
2.8125
3
[ "LGPL-3.0-only", "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
<?php /** * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0 * @copyright Metaways Infosystems GmbH, 2011 * @copyright Aimeos (aimeos.org), 2015-2018 * @package MShop * @subpackage Common * @version $Id $ */ namespace Aimeos\MShop\Common\Manager\Lists; /** * Default list manager implementation * @...
true
95355969f003f43e3b447fec3e4917bdeb1d8ff1
PHP
a-alex2000/23
/test.php
UTF-8
3,464
3.234375
3
[]
no_license
<?php if ( isset($_GET['username']) && $_GET['username'] == "" ) { $str = "Location:formname.php?test=".$_GET['test']."&&question=".$_GET['question']; header( $str ); die(); } if ( isset( $_GET['go'] ) ) { $question = urlencode($_GET['question']); $username = urlencode($_GET['username']); } if ( iss...
true
00eb65682cb15eabc5fe768513c39d598d77a4dd
PHP
hepeng1986/Roc
/Library/Util/Crypt.php
UTF-8
3,210
2.921875
3
[]
no_license
<?php class Util_Crypt { /** * 简单对称加密算法之加密 * @param String $string 需要加密的字串 * @param String $skey 加密EKY * @return String */ public static function encode($string, $skey = '') { $strArr = str_split(base64_encode($string)); $strCount = count($strArr); foreach ...
true
98fc9bba5d15f53ae86ad1ee8ecbae5f86c122a7
PHP
AnthoGH/TP-Absences
/absences.php
UTF-8
1,891
2.59375
3
[]
no_license
<?php try { $bdd = new PDO('mysql:host=localhost;dbname=TPAbsence', 'root', 'adminal'); } catch(Exception $e) { die('Erreur : '.$e->getMessage()); } $yesterdayabs = $bdd->query('SELECT idVisiteur, nomVisiteur, dateDebut, nbJours, refmotif FROM Visiteurs, Absences WHERE idVisiteur = refVisiteur ...
true
efc23e4bd1fb99a7a70ec44bf29213c212695fe0
PHP
DiegoGalvan/btdbtest
/routes/web.php
UTF-8
9,614
2.609375
3
[ "MIT" ]
permissive
<?php use App\models\Business; use App\models\Category; use App\models\FinCap; use App\models\Issue; use App\models\IssueStory; use App\models\Newsletter; use App\models\Role; use App\models\Status; use App\models\Story; use App\models\Subscription; use App\models\User; use Illuminate\Support\Facades\Route; /* |-----...
true
36967c9fc3800f56b400ef7486435c02e2fdd248
PHP
power3812/my_php_framework
/lib/functions.php
UTF-8
2,267
2.9375
3
[]
no_license
<?php function h($string, $flags = ENT_QUOTES, $encoding = 'UTF-8') { return htmlspecialchars($string, $flags, $encoding); } function hash_password($password) { return password_hash($password, PASSWORD_DEFAULT); } function get_uri($uri) { if (defined('BASE_URI_PATH')) { $uri = 'http://' . DOMAIN ...
true
abf9c112ca7e4e521f23292782121ef7c9163609
PHP
chatbox-inc/coldbucks
/src/Illuminate/SchemaBuilder.php
UTF-8
739
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mkkn * Date: 2016/01/20 * Time: 11:53 */ namespace Chatbox\ColdBucks\Illuminate; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class SchemaBuilder { public function create($table) { if(!Schema::hasTable($table)){ ...
true
f724e1d19a4326aa59cf719f26da563661cef5a3
PHP
jjrb3/ejercicio_arquitectura
/app/UseCases/GetMoviesUsecase.php
UTF-8
1,339
2.671875
3
[]
no_license
<?php namespace App\UseCases; use App\Repositories\Interfaces\EloquentMovieRepositoryInterface; use App\UseCases\Interfaces\GetMoviesUsecaseInterface; use http\Encoding\Stream\Inflate; /** * Class GetMoviesUsecase * @package App\UseCases */ class GetMoviesUsecase implements GetMoviesUsecaseInterface { /** ...
true
6aa19edff81f138f57c5e80c13d6f0e0b174dd33
PHP
Esperozzz/tasks_for_beginner
/lesson7/task39.php
UTF-8
270
2.859375
3
[]
no_license
<?php include_once '../header.php'; $characterSet = 'abcdefghijklmnopqrstuvwxyz'; $shuffleCharacterSet = str_shuffle($characterSet); $uniqueStringLength = 6; $offset = 0; $uniqueString = substr($shuffleCharacterSet, $offset, $uniqueStringLength); echo $uniqueString;
true
689b14695575f576b6f5e607e9181bfe2f19aa8f
PHP
CrusadeDev/repository-criteria-PoC
/symfony/src/User/Repository/Save/Doctrine/SaveHandler.php
UTF-8
683
2.703125
3
[]
no_license
<?php declare(strict_types=1); namespace App\User\Repository\Save\Doctrine; use App\Repository\Exception\ConnectionException; use App\User\Repository\Save\SaveCommand; use Doctrine\ORM\EntityManagerInterface; class SaveHandler { private EntityManagerInterface $entityManager; public function __construct(Ent...
true
1ad43fd6d10ebecf841cb15d37fc97cc6b7b2bf7
PHP
Ocramius/php-analyzer
/tests/Scrutinizer/Tests/PhpAnalyzer/ControlFlow/Fixture/Integration/exit_die.php
UTF-8
150
2.53125
3
[ "Apache-2.0" ]
permissive
<?php switch (true) { case 'a': exit(); case 'b': die(); case 'c': echo 'foo'; break; }
true
12c28263fd33868c4078660932d8ca63ffe3447c
PHP
huyencao/dongphim
/app/Repositories/ActorRepository.php
UTF-8
555
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Repositories\EloquentRepository; use App\Models\Actor; class ActorRepository extends EloquentRepository { public function model() { return \App\Models\Actor::class; } public function listActorAll() { $data = Actor::orderBy('updated_at', 'D...
true
7c0a19515fb085a8870023dcd98f5679f2cf2347
PHP
sudarshanstark/POS-Inventory-Management-System
/PointOfSale/delivery/fetch_all.php
UTF-8
2,692
2.515625
3
[ "MIT" ]
permissive
<?php include("../server/connection.php"); $column = array('transaction_no','username','company_name','TotalPrice','TotalQuantity','date'); $query = "SELECT delivery.transaction_no,supplier.company_name,username,sum(buy_price * total_qty) AS TotalPrice,sum(total_qty) AS TotalQuantity,date FROM delivery JOIN prod...
true
6e1bea761da93ec6544f5c474b253eced52d3a44
PHP
ericboehs/sportscake
/app/controllers/baseball_defensive_players_controller.php
UTF-8
2,591
2.59375
3
[]
no_license
<?php class BaseballDefensivePlayersController extends AppController { var $name = 'BaseballDefensivePlayers'; var $helpers = array('Html', 'Form'); function index() { $this->BaseballDefensivePlayer->recursive = 0; $this->set('baseballDefensivePlayers', $this->paginate()); } function view($id = null) { if...
true
4b37b9f8a28cff87de6e222fcb8d5dfd2c542b73
PHP
mapb1990/example-api
/app/Models/User.php
UTF-8
1,762
2.71875
3
[]
no_license
<?php namespace App\Models; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Foundation\Auth\Access\Authorizable; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use ...
true
19ac1cffe99552688a3e3ca2125ea3369264f32c
PHP
JhonatanNobrega/categoria_multi_nivel
/index.php
UTF-8
5,155
3.9375
4
[]
no_license
<?php // Criando uma categorai multi nivel /* | Não é interesante fazer multiplas consultas para montar, até porque poderá dar problema no sistema | | ESTRUTURA BANCO | id (INT) sub (INT) name (VACHAR) */ try { // Definindo conexão ao banco de dados MySQL $...
true
e9862c532005f92a05ab4a921d42ae7480dd2bed
PHP
kirill533/POData
/tests/UnitTests/POData/TestCase.php
UTF-8
939
2.546875
3
[ "MIT", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php declare(strict_types=1); namespace UnitTests\POData; use Carbon\Carbon; use POData\ObjectModel\ModelDeserialiser; use POData\Providers\Metadata\SimpleMetadataProvider; use POData\Providers\Metadata\Type\DateTime; /** * Class TestCase. * @package UnitTests\POData */ class TestCase extends \PHPUnit\Framework...
true
6b4635cff55cbbfbdb167ee41c4c86113fc2b4dd
PHP
mmgjr/busca-ordenacao-JSePHP
/PHP/intercalandoDoisArraysOrdenados/Notas.php
UTF-8
264
3.375
3
[]
no_license
<?php class Notas{ private $nome; private $nota; public function __construct($nome,$nota){ $this->nome = $nome; $this->nota = $nota; } public function getNome(){ return $this->nome; } public function getNota(){ return $this->nota; } } ?>
true
a4ef5f52d0c14d00f1b60ea2c30ee5070ede7374
PHP
juarezfdo/TAW
/imc/index.php
UTF-8
933
2.671875
3
[]
no_license
<?php //Incluir la clase include "persona.php"; //Instanciar la clase $persona = new persona(); ?> <!DOCTYPE html> <html> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link...
true
bc96f59f5dad25dac169f9c20be7688d185c9867
PHP
l2radamanthys/PHPForms
/forms.php
UTF-8
14,362
3.046875
3
[]
no_license
<?php /* * PHPForms * -------- * * PHPForms esta basado en Django.Forms aunque con algunos cambios y agregados, * para permitir que el usuario personalise sus formularios ademas de ayudarlo * a crearlo y validar datos. * * Autor: Ricardo Daniel Quiroga - l2Radamanthys * Email: l2radamanthys@gmail.com / ricard...
true
5c75cc31aed511c1f05d9306796c9e859c59445c
PHP
vitormattos/oasis-mson-parser
/src/Oasis/Parser.php
UTF-8
1,292
3.109375
3
[ "MIT" ]
permissive
<?php namespace Oasis; use Exception; /** * Parses MSON data. * * Example usage: * * $results = Parser::parse('# API Blueprint Title', 'json'); * */ class Parser { /** * List of decoders available to process input * @var array */ public static $decoders = [ 'json' => JSONDecoder...
true
05335131971f8db8f5691507e3f286c616b6a6ce
PHP
Anshika-G/Register-login
/Register-login/pages/resetPassword.php
UTF-8
1,326
2.8125
3
[]
no_license
<?php require 'db.php'; session_start(); if(!isset($_GET['email']) && empty($_GET['email'])) { $_SESSION['message'] = "no email"; header("location: error.php"); } $password1=''; if ($_SERVER['REQUEST_METHOD'] == 'POST') { // Make sure the two passwords match if ( $_POST['password1'] == $_POST['passwor...
true
2d85054f19af136729f557dcdbcae61089574f1b
PHP
FelixOnline/FelixOnline
/controllers/RSSController.php
UTF-8
3,859
2.5625
3
[ "MIT" ]
permissive
<?php use FelixOnline\Exceptions; class RSSController extends BaseController { function GET($matches) { $app = \FelixOnline\Core\App::getInstance(); $currentuser = $app['currentuser']; $articleManager = new \FelixOnline\Core\ArticleManager(); // RSS feed for category if (array_key_exists('cat', $matches...
true
188e4326ab0c752fabfda0f782b2f47f7b9eb450
PHP
Eldar212/yii2_basic
/modules/api/v1/book/forms/AuthorAddForm.php
UTF-8
877
2.640625
3
[]
no_license
<?php namespace app\modules\api\v1\book\forms; use app\modules\api\v1\book\models\Book; use app\modules\core\forms\validate_helpers\MultipleExistBookIdsValidator; use yii\base\Model; class AuthorAddForm extends Model { /** * @var string */ public $first_name; /** * @var string */ ...
true
1cb558dc9069c3f20b88cbc178228c8903674e01
PHP
babicaja/jwt-4laravel
/src/Exceptions/JWTPayloadNotValid.php
UTF-8
262
2.625
3
[ "MIT" ]
permissive
<?php namespace JWT4L\Exceptions; use Exception; use Throwable; class JWTPayloadNotValid extends Exception { public function __construct(Throwable $previous = null) { parent::__construct("The JWT Payload is not valid", 300, $previous); } }
true
2cc66c53a3c5409cef7e5e43d3d7a8c9e80a7adc
PHP
Hlacos/lara-mvcms
/src/Models/AdminUser.php
UTF-8
2,521
2.578125
3
[ "MIT" ]
permissive
<?php namespace Hlacos\LaraMvcms\Models; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Hash; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; //use Illuminate\Auth\Passwords\CanResetPassword; //use Illuminate\Contracts\Auth\CanRese...
true
2c40e97fb3038b7227cc00e38c13ed48b2344f47
PHP
dimitrizarkua/SaaS-Backend-Laravel
/misc/CodeStandard/Sniffs/Commenting/ClassCommentSniff.php
UTF-8
13,097
2.71875
3
[]
no_license
<?php namespace CodeStandard\Sniffs\Commenting; use PHP_CodeSniffer\Sniffs\Sniff; use PHP_CodeSniffer\Files\File; use PHP_CodeSniffer\Util\Tokens; /** * Class ClassCommentSniff * @package CodeStandard\Sniffs\Commenting */ class ClassCommentSniff implements Sniff { public $requiredTags = [ '@package', ...
true
9c8ae5c99fd4706779df5c915ce1483b257a5159
PHP
tascord/ComputingFolio
/modules/5/operators.php
UTF-8
956
3.25
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../../extra/main.css"> <title>Operators!</title> </head> <body> <a href=...
true
1036082fdf566a61e90510a7ce2b1f1dbbc97aa9
PHP
cedaro/wp-plugin
/src/AbstractPlugin.php
UTF-8
3,366
2.859375
3
[ "MIT" ]
permissive
<?php /** * Common plugin functionality. * * @package Cedaro\WP\Plugin * @author John P. Bloch * @author Brady Vercher * @link https://github.com/johnpbloch/wordpress-dev * @copyright Copyright (c) 2015 Cedaro, LLC * @license MIT */ namespace Cedaro\WP\Plugin; /** * Base plugin class. * * @...
true
e5fc2fd65b0f837e527c84880fe9948c488726b3
PHP
waelabohamza/adminweb
/login.php
UTF-8
2,034
2.59375
3
[]
no_license
<?php session_start() ; $login = "yes" ; include "ini.php" ; if ($_SERVER['REQUEST_METHOD'] == "POST") { $email = superFilter($_POST['email']) ; $password = sha1($_POST['password']) ; $count = signInWithEmailAndPassword("users", "users_email", "users_password", $email , $password)['count']; ...
true
43dfb279d2a7ad79d1593c568a8d34163eadeeae
PHP
rasmusir/php-mvc-feedback-ini
/controller.php
UTF-8
765
2.65625
3
[]
no_license
<?php require_once("view.php"); require_once("model.php"); class Controller { public function DoStuff() { if (isset($_GET["lang"])) $lang = $_GET["lang"]; else $lang = "en"; if (file_exists("$lang.ini")) Strings::LoadLanguageFile("$lang.ini"...
true
8197defb8b8f96235c797f6688a64d9f075f3fb1
PHP
Strenget/SpaceAu
/app/presenters/RegistrationPresenter.php
UTF-8
2,780
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: d * Date: 30.12.2018 * Time: 21:37 */ namespace App\Presenters; use Nette\Application\ApplicationException; use Nette\Application\UI\Form; use TextManager; /** * Class RegistrationPresenter * Registration page * @package App\Presenters */ class RegistrationPresenter ...
true
6d4416b72b5eb760dc035c0294b03e29e5c62afc
PHP
Skrivmaskinen/webbu-chan
/LegoMy/set_search.php
UTF-8
897
2.578125
3
[]
no_license
<?php $search = $_GET['search_key']; $limit = 50; // Koppla upp mot databasen $connection = mysqli_connect("mysql.itn.liu.se","lego","", "lego"); // Sök efter ungefärligt setnamn $result = mysqli_query($connection, " SELECT Setname, SetID FROM sets WHERE Setname LIKE '%$search%' O...
true
7e150185365f717b3d32c9116f28657b125e7c93
PHP
meisterk/php-mysql-t4a
/index.php
UTF-8
1,977
3
3
[]
no_license
<!DOCTYPE html> <html lang="de"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Schülerverwaltung</title> <link rel="stylesheet" href="style.css"> </head> <body> <h1>Schülerverwaltung</h1> <h2>Liste</h2> <table> ...
true
03b0671cefb4680fb21dbc263c6c5672a26173dc
PHP
google-code/asar-web-framework
/tests/Asar/Tests/TempFilesManagerTest.php
UTF-8
3,791
2.703125
3
[]
no_license
<?php namespace Asar\Tests; require_once realpath(dirname(__FILE__). '/../../config.php'); use \Asar\Tests\TempFilesManager; class TempFilesManagerTest extends \PHPUnit_Framework_TestCase { function setUp() { $this->tempdir_parent = realpath(__DIR__ . '/../../') . '/data'; $this->tempdir = $this->tempd...
true
d102bfc7db010fbc2bfca2a1ac37d0e1a00e1140
PHP
Filpet96/Cyberlink
/backend/account/profile-img.php
UTF-8
2,161
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); if (!isset($_SESSION)) { session_start(); } include $_SERVER["DOCUMENT_ROOT"] . "/system/connection.php"; // Variables $email = $_SESSION['loggedin']; $user_id = $_SESSION['user_id']; $stmt_edit = $pdo->prepare('SELECT userPic FROM users WHERE userid=:userid'); $stmt_e...
true
dc2882d8e945b747c19e1793ef27aec5bb9fb8eb
PHP
anggadarkprince/learn-jwt-php-cookie
/src/user.php
UTF-8
687
2.546875
3
[]
no_license
<?php require_once __DIR__ . '/../vendor/autoload.php'; require_once __DIR__ . '/session.php'; header('Content-Type: application/json'); try { $session = SessionManager::getCurrentSession(); $username = $session->username; foreach ($userCollections as $user) { if ($user->username == $session->use...
true
d185cf38398953265dd4e6d6fd55641396f9b433
PHP
countlang/countlang
/src/Entity/Entity/Language.php
UTF-8
8,818
2.546875
3
[ "MIT" ]
permissive
<?php /** * This file is part of countlang package. * * Copyright 2017 Andrii Bibena <countlang@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace CountLang\Entity\Entity; use CountLang\Collection\CollectionDeco...
true
bc5f71ad66cf32e45e105de99336a6123aaa830b
PHP
rvmehta745/haynes_repo
/src/StructType/ExtStatus.php
UTF-8
2,341
2.9375
3
[]
no_license
<?php namespace StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for ExtStatus StructType * @subpackage Structs */ class ExtStatus extends AbstractStructBase { /** * The confirmationLink * Meta information extracted from the WSDL * - nillable: true * @var ...
true
c5c30e72ed87d413664141d209979fc1bcff4e62
PHP
reoverduguez/RVA
/src/form_process.php
UTF-8
2,827
2.890625
3
[]
no_license
<?php if ($_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_POST['action'])): if (isset($_POST['firstname'])) { $first_name = filter_var($_POST['firstname'], FILTER_SANITIZE_STRING); } if (isset($_POST['lastname'])) { $last_name = filter_var($_POST['lastname'], FILTER_SANITIZE_STRING); } ...
true
c29f4da8b4ca2360a50556f4ccf2006d8301e1eb
PHP
garyvv/test-stock
/app/Http/Controllers/Stock/BaseController.php
UTF-8
891
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017/8/16 * Time: 23:04 */ namespace App\Http\Controllers\Stock; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Redis; use Symfony\Component\HttpFoundation\Request; class BaseController extends Controller { public $userInfo; ...
true
331c5b023a600529d4efcad7317cd4f9442ee670
PHP
charuwts/UCRM-plugins
/plugins/ucrm-gocardless-payments/src/ugpp/Generator.php
UTF-8
3,641
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Ugpp; chdir(__DIR__); define("GENERATOR_PATH", __DIR__); class Generator { private $UscpCustomAttributes = [ 'Ucsp Gateway Customer' => 'ucspGatewayCustomer', 'Ucsp Gateway Token' => 'ucspGatewayToken', ]; public function customAttributes() { return $this-...
true
f134648580bcc91538436cc47e13eed521ea209e
PHP
bsamas/bsams_fyproject
/app/Http/Controllers/AuthController.php
UTF-8
2,619
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\Controller; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; class AuthController extends Controller { public function getAllUsers() { ...
true
ddcf88d441e36dc540efb407d83cd17ed7806a59
PHP
manishsahani999/Mailedit
/app/Helpers/Common.php
UTF-8
8,200
2.78125
3
[]
no_license
<?php if (!function_exists('generate_otp')) { /** * Generates a truly random 4 digit number to be used for Sms based OTPs. * * @return integer */ function generate_otp() { return substr(hexdec(bin2hex(openssl_random_pseudo_bytes(3))), 0, 4); } } if (!function_exists('arra...
true
823661a50a8e6c98cb1586f60722be816e00f7ed
PHP
efureev/php-support
/src/Enums/WithEnhances.php
UTF-8
780
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Php\Support\Enums; /** * @mixin \UnitEnum */ trait WithEnhances { public static function casesToString(callable $decorator, string $delimiter = ', '): string { return implode( $delimiter, array_map($decorator, self::cases()) )...
true
87419f49682c634476bc1dd6d29a3c3204e8a22c
PHP
CatherineAbd/POO
/Exo-PDO/Exo5.php
UTF-8
1,072
2.796875
3
[]
no_license
<?php require "controllers/controller.php"; $bdd = bddConnect(); ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="assets/css/style.css"...
true
386384ef28d54ab70003a02a9aded6d408677b35
PHP
kgnu/comrad-dev
/lib/classes/HeadTemplateSection.php
UTF-8
4,240
2.671875
3
[]
no_license
<?php ################################################################################ # OBJECT: HeadTemplateSection # # AUTHOR: Bryan C. Callahan (12/01/2008) # # DESCRIPTION: Represents the opening of the template head. Data appe...
true
dbbed6b37c78619d4d757014139e3932f9df9e22
PHP
abdulloh1995/crud
/update.php
UTF-8
1,069
2.6875
3
[]
no_license
<?php require_once 'config/db.php'; $product_id = $_GET['id']; $product = mysqli_query($connect, "SELECT * FROM `products` WHERE `id` = '$product_id'"); $product = mysqli_fetch_assoc($product); // print_r($product); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <met...
true
e88a3dfd42c5648d0cd0fbf0524caf1021fd8ec6
PHP
chuangying2017/yantang
/app/Services/Order/Refund/Generator/RefundGenerateHandlerAbstract.php
UTF-8
631
2.6875
3
[]
no_license
<?php namespace App\Services\Order\Refund\Generator; abstract class RefundGenerateHandlerAbstract { /* * @var GenerateHandlerAbstract $handler */ protected $handler = null; public abstract function handle(TempRefundOrder $temp_order); /** * @param RefundGenerateHandlerAbstract $handler ...
true
ee8818fb65e4d24abc42c0c7ddbb36a6ff58c500
PHP
arafeh94/usp
/models/UserQuery.php
UTF-8
782
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; /** * This is the ActiveQuery class for [[User]]. * * @see User */ class UserQuery extends \yii\db\ActiveQuery { public function active() { return $this->andWhere('[[user.IsDeleted]]=0'); } public function filter() { return $this->select(['UserId', ...
true
1daae931f09b8224668c57b9653fe55b4dae0094
PHP
wisdomcraft/brickphp
/brickphp/mo/mo.class.php
UTF-8
726
2.703125
3
[]
no_license
<?php namespace brick; class mo{ public $language = null; public $domain = null; public function main($string){ $language = $this->language; putenv('LANG={$language}'); if(!setlocale(LC_ALL, "{$language}.UTF-8")){ echo $string; die('error, set...
true
c6d538bb0a21e21c1bbaefae58888d8c12d0cd72
PHP
matthiasmullie/curator.io
/default_www/modules/users/actions/detail.php
UTF-8
1,420
2.71875
3
[]
no_license
<?php /** * Show the detail for an user * * @author Dieter Vanden Eynde <dieter@dieterve.be> */ class UsersDetail extends SiteBaseAction { /** * @var User */ private $user; /** * Execute the action */ public function execute() { $this->loadData(); $this->parse(); $this->display(); } /** * ...
true
d802b2c1e8c2d01d3f5f2f2c0b90f78347c057fe
PHP
deeprahman/Decimal-to-roman
/convert.php
UTF-8
3,367
3.8125
4
[]
no_license
<?php // This program is the direct translation of a c program for decimal integer to Roman Numeral mapping // PHP transletion is done by composed by Deep Rahman // Create an array for storing mapped Roman Digits $romanval = []; //Global Scope // Create a index variable for remembering the non-empty cells of the $ro...
true
e6a33e7be459d38cca495606c56c0423f50aaf51
PHP
Nyxis/Rhea
/src/Extia/Bundle/UserBundle/Form/DataTransformer/InternalCredentialsDataTransformer.php
UTF-8
2,965
2.546875
3
[ "MIT" ]
permissive
<?php namespace Extia\Bundle\UserBundle\Form\DataTransformer; use Extia\Bundle\UserBundle\Model\PersonCredential; use Extia\Bundle\UserBundle\Model\PersonCredentialQuery; use Extia\Bundle\GroupBundle\Model\CredentialQuery; use Symfony\Component\Form\DataTransformerInterface; use Symfony\Component\Form\Exception\Tra...
true
82f77dfc7ab7f788b8bb2ec49e274663dbd77a1f
PHP
littleblackman/api.appli-v-2019
/src/Entity/HistoricSms.php
UTF-8
3,670
2.703125
3
[]
no_license
<?php namespace App\Entity; use App\Entity\Traits\CreationTrait; use App\Entity\Traits\SuppressionTrait; use App\Entity\Traits\UpdateTrait; use Doctrine\ORM\Mapping as ORM; use Nelmio\ApiDocBundle\Annotation\Model; use Swagger\Annotations as SWG; use DateTime; use DateTimeInterface; /** * Blog * * @ORM\Table(name...
true
08e7ae71664e74218eb80430dd88b6298e218492
PHP
51seven/Customer-Key-Chain
/app/View/User/index.ctp
UTF-8
112
2.515625
3
[]
no_license
<h1>All Users:</h1> <?php foreach ($users as $key => $value) { echo $value['User']['prename']."<br>"; } ?>
true
c8bdad68bcafd6a078f7439a3e0f5e03f5d4b5d1
PHP
ColiseumSoft786/Portfolio
/add_project.php
UTF-8
2,904
2.609375
3
[]
no_license
<?php include_once 'controller/category.php'; include_once 'controller/project.php'; $obj = new category(); $getcat = $obj->GetCat(); if ($_SERVER['REQUEST_METHOD'] == "POST"){ $name = $_POST['name']; $key = $_POST['keyword']; $web = $_POST['website']; $detail = $_P...
true
80c669e9ff3f0616cf3ad1400d6381dca24f45d2
PHP
Pilou4/tv_show
/src/Controller/TvShowApiController.php
UTF-8
3,207
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use App\Entity\TvShow; use App\Repository\TvShowRepository; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Compone...
true
01d033b66b041b66fa615fa33fab014586dc31c2
PHP
LaraPackage/API
/src/Resource/LaravelCollection.php
UTF-8
2,112
2.640625
3
[]
no_license
<?php namespace LaraPackage\Api\Resource; use Illuminate\Pagination\Paginator; class LaravelCollection implements \LaraPackage\Api\Contracts\Resource\Collection { /** * @var Paginator */ protected $paginator; /** * @var \LaraPackage\Api\Contracts\Config\Api */ protected $config; ...
true
a23998ddcec93c89524a1a8082ba3cf5f1c83f6c
PHP
SorrowOfMind/e-bookstore
/src/Repository/ProductsRepository.php
UTF-8
3,348
2.640625
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Products; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Products|null find($id, $lockMode = null, $lockVersion = null) * @method Products|null findOneBy(array $criteria, array $orderBy = ...
true
ebb1a80c2e9115c6717fb641243a909298b00de6
PHP
JX49/2015fallWebP
/CRUD/index.php
UTF-8
6,291
2.71875
3
[]
no_license
<?php session_start(); $name = 'User'; $message = "Welcome $name"; $person = array( 'Name' => $name, 'Age' => 20, CalorieGoal => 2000, CalorieBurnGoal => 3000); $food = $_SESSION['food']; if(!$food){ $_SESSION['food'] = $food = array(); } $total = 0; foreach (...
true
6342fdd8c1575aae0f496556bf78bce0f1f0aff3
PHP
pcnay/Ecommerce
/frontend/modelos/productos.modelo.php
UTF-8
1,388
2.875
3
[]
no_license
<?php require_once ("conexion.php"); class ModeloProductos { // Se declara estatico porque se le envian parámetros. static public function mdlMostrarCategorias($tabla,$item,$valor) { if ($item != null) { // Se realiza para que sea generico el campoa buscar. $stmt = Conexion::conectar()->prepare(...
true
b1ddb07cb4015e0d8fc1ff7a439d56638397c8e2
PHP
ZhengHaoWeiPP/Laravel-Passport-Facebook-Login
/src/FacebookLoginTrait.php
UTF-8
2,060
2.765625
3
[]
no_license
<?php namespace Mirk\PassportFacebookLogin; use Facebook\Facebook; use Illuminate\Http\Request; use League\OAuth2\Server\Exception\OAuthServerException; trait FacebookLoginTrait { /** * Logs a App\User in using a Facebook token via Passport * * @param \Illuminate\Http\Request $request * *...
true
4f5762a0fde6a588b5c547ceb6a7eeee142b8346
PHP
phpactor/worse-reflection
/lib/DocblockParser/Ast/Tag/ReturnTag.php
UTF-8
857
2.71875
3
[ "MIT" ]
permissive
<?php namespace Phpactor\WorseReflection\DocblockParser\Ast\Tag; use Phpactor\WorseReflection\DocblockParser\Ast\TagNode; use Phpactor\WorseReflection\DocblockParser\Ast\TextNode; use Phpactor\WorseReflection\DocblockParser\Ast\Token; use Phpactor\WorseReflection\DocblockParser\Ast\TypeNode; class ReturnTag extends ...
true
3d92e82f0548469774f5987114fff7eb732ad960
PHP
PichTic/Ue219-Groupe1
/lib/utils.php
UTF-8
3,475
3.09375
3
[]
no_license
<?php /** * La page est-elle celle affichée ? * Si oui, renvoie la classe CSS active * pour le montrer dans la nav. * * @param string $page Nom de la page sans ".php" * * @return string */ function is_page_active($page) { // récupère le nom de la page depuis $_SERVER // et ôte l'extension ".php" du nom...
true
21b2a9026cc4de1edf1a58100a7f5bfa90ca2eda
PHP
BowlOfSoup/NormalizerBundle
/src/Service/Extractor/PropertyExtractor.php
UTF-8
3,150
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace BowlOfSoup\NormalizerBundle\Service\Extractor; use BowlOfSoup\NormalizerBundle\Exception\BosNormalizerException; use Doctrine\Persistence\Proxy; class PropertyExtractor { /** @var bool */ public const GET_ONLY_PRIVATES = true; /** @var string */ public const...
true
12bf3076a7a413a20358bdca59e5701c0d79f447
PHP
fsclaro/blackbird
/app/Activity.php
UTF-8
4,171
2.6875
3
[ "MIT" ]
permissive
<?php namespace App; use Auth; use Session; use App\Helpers\Helpers; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Activity extends Model { use SoftDeletes; protected $fillable = [ 'ipaddress', 'externalip', 'useragent', 'url', ...
true
56b50d6109fb56086482fe494b0ef5838c08485b
PHP
ruellm/popcakelegend
/source/web/PopcakeLegend/PopcakeLegend/admin/employee-grid-data.php
UTF-8
3,542
2.59375
3
[]
no_license
<?php include 'common_mysql.php'; $conn = MYSQLI_GetConnection(); // storing request (ie, get/post) global array to a variable $requestData= $_REQUEST; $columns = array( // datatable column index => database column name 0 =>'fbid', 1 => 'name', 2 => 'max_level', 3 => 'life', 4 => 'coins', 5 => 'last_l...
true