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
80931cb51ee710b470312530bdb4537fbdfbd2bb
PHP
Bolid1/php-api-client-amocrm
/tests/amoCRM/Entity/CustomFieldNumberTest.php
UTF-8
934
2.640625
3
[ "MIT" ]
permissive
<?php namespace Tests\amoCRM\Entity; use amoCRM\Entity\BaseCustomField; use amoCRM\Entity\CustomFieldNumber; use PHPUnit\Framework\TestCase; /** * Class CustomFieldNumberTest * @package Tests\amoCRM\Entity * @covers \amoCRM\Entity\CustomFieldNumber */ final class CustomFieldNumberTest extends TestCase { /** ...
true
886d024930369306d48a80d301493dcd37bad1dd
PHP
stof/gatekeeper
/src/Psecio/Gatekeeper/SecurityQuestionCollection.php
UTF-8
606
2.703125
3
[]
no_license
<?php namespace Psecio\Gatekeeper; class SecurityQuestionCollection extends \Psecio\Gatekeeper\Collection\Mysql { /** * Find the security questions for the given user ID * * @param integer $userId User ID */ public function findByUserId($userId) { $data = array('userId' => $userId); $sql = 'select * fr...
true
8330a986e73c7474f4f6f67d82358ddb894d981a
PHP
sonvq/angular-laravel-receipt
/php-rest-api/scripts/autoload/MerchantSynch.php
UTF-8
4,233
2.6875
3
[]
no_license
<?php use Aws\Common\Aws; class MerchantSynch { /** * Function to trigger OCR synchronizations * */ public static function updateOCR ($merchantIDs) { if (!isset($merchantIDs)) return; $idList = (!is_array($merchantIDs)) ? $merchantIDs : implode(',', $merchantIDs); $...
true
d18c9e5a7849e0f171ef8370700d48f47cdd3d29
PHP
bernierocks/NAFP
/header.php
UTF-8
777
2.59375
3
[]
no_license
<?include('header_top.php');?> <!-- Google Fonts --> <!-- When adding a google font, be sure to remove the HTTP: from the URL. This will allow us to switch between HTTP and HTTPS --> <link href='//fonts.googleapis.com/css?family=Marcellus|Open+Sans:400,700' rel='stylesheet' type='text/css'> <? /* The next section...
true
d80ba0eb3d9b16f880341862abe77ae59aad2e17
PHP
alan19031216/final_project
/php/forgot_password.php
UTF-8
5,109
2.578125
3
[ "MIT" ]
permissive
<?php include 'config.php'; $email = $_POST['email']; try { $sql = $conn->query("SELECT * FROM user WHERE email = '$email'"); foreach ($sql as $row) { $data_update = $row['update_date']; $username = $row['username']; } $count_row = $sql->rowCount(); if($count_row == 0){ echo "User not exist"; }...
true
0f7c7428e9397fe427c0517ca75b614ab97388a2
PHP
brucewu16899/meatings
/app/Http/Controllers/UserController.php
UTF-8
1,327
2.703125
3
[ "MIT" ]
permissive
<?php namespace Meatings\Http\Controllers; use Meatings\Http\Requests; use Meatings\User; use Input; class UserController extends Controller { protected $user; function __construct(User $user ) { $this->user = $user; } /** * Display a listing of the resource. * * @return Response *...
true
15996e90739ba23c0ab5e74a51d6617b28106174
PHP
bapplistudio/SAF
/tests/Test.php
UTF-8
6,699
3.015625
3
[ "MIT" ]
permissive
<?php namespace SAF\Framework\Tests; use SAF\Framework\Controller\Response; /** * All unit test classes must extend this, to access its begin(), end() and assume() methods */ class Test { //------------------------------------------------------------------------------------------- ALL const ALL = 'all'; //----...
true
a21e7ac030ef99780087fafb1382f77ed2a955da
PHP
nandymandy1/nuxt-wp-mysql-docker
/wordpress/plugins/wordpress-seo/src/conditionals/migrations-conditional.php
UTF-8
819
2.734375
3
[ "GPL-1.0-or-later", "GPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-copyleft", "MIT" ]
permissive
<?php namespace Yoast\WP\SEO\Conditionals; use Yoast\WP\SEO\Config\Migration_Status; /** * Class for integrations that depend on having all migrations run. */ class Migrations_Conditional implements Conditional { /** * The migration status. * * @var Migration_Status */ protected $migration_status; /**...
true
3ce264a8ef0495f5aa4da43b59a65e644b87150c
PHP
Colocust/leetcode
/php/872.php
UTF-8
829
3.609375
4
[]
no_license
<?php /** * Definition for a binary tree node. * class TreeNode { * public $val = null; * public $left = null; * public $right = null; * function __construct($value) { $this->val = $value; } * } */ class Solution { /** * @param TreeNode $root1 * @param TreeNode $root2 * @ret...
true
250cb69529002512f3df26804b87555649e03fe0
PHP
netgen/query-translator
/lib/Languages/Galach/Generators/ExtendedDisMax.php
UTF-8
994
2.953125
3
[ "MIT" ]
permissive
<?php namespace QueryTranslator\Languages\Galach\Generators; use QueryTranslator\Languages\Galach\Generators\Common\Visitor; use QueryTranslator\Values\SyntaxTree; /** * ExtendedDisMax generator generates query string in Solr Extended DisMax query parser format. * * @link https://cwiki.apache.org/confluence/displ...
true
45ab4f0b768a2ab0cb225e4c189cb43b052cfb73
PHP
Solvik/w3c
/site/v2/models/Members.class.php
ISO-8859-1
771
3.046875
3
[]
no_license
<?php /** * OxyCast * @desc Classe permettant la gestion complte de TOUS les comptes * @author alfo * @version 1.0 */ class Members { /** * @desc Retourne le nomrbe total de comptes. * @type static * @return int */ public static function getCount () { return (int) SPDO::getInstance()...
true
0ace1bccdae555b14350bb84a596dd5c42ed382f
PHP
juliemh/tatui
/application/views/pages/admin/edit_user.php
UTF-8
1,997
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<h2>Edit Users</h2> <?php $this->load->model('get_user'); $this->load->helper(array('form', 'url')); // // diplays a table of user details from the database // $userdetails = $this->get_user->get_user($user); // $access_type = $this->get_user->user_level( $user ); // echo "<table border='1'>"; echo ...
true
6786f935b4bd2219a4c557bf5db75cfeb0451ea8
PHP
creative2020/f4u
/libraries/rokcommon/RokCommon/ClassLoader/MapFinder.php
UTF-8
2,527
2.6875
3
[ "MIT" ]
permissive
<?php /** * @version $Id: MapFinder.php 53647 2012-06-12 21:41:03Z btowles $ * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - ${copyright_year} RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ class RokCommon_ClassLoader_MapFinder impl...
true
c2d540aaa47c02cbdd19afc2180162872e05db6c
PHP
dlundgren/zf1assetic
/src/View/Helper/HeadLink.php
UTF-8
853
2.546875
3
[ "MIT" ]
permissive
<?php /** * Zend Framework 1 Assetic Extension * * @author David Lundgren * @license MIT */ namespace ZfAssetic\View\Helper; use ZfAssetic\Manager; /** * Assetic usage from Zend Framework view helpers * * @author David Lundgren */ class HeadLink extends \Zend_View_Helper_HeadLink { /** * Check if value ...
true
b43db744c1e99ae798b3ce3ae77588b8a6de1f57
PHP
htmlacademy-yii/1261731-task-force-1
/src/abstractAction.php
UTF-8
340
2.71875
3
[]
permissive
<?php namespace App; abstract class AbstractAction { protected $idCurrentUser; protected $idCustomer; protected $idExecute; abstract public function getNameAction(); abstract public function getInnerNameAction(); abstract public function validateAccessUser(int $idCurrentUser, int $idCustomer,...
true
6f3bc02a9b79f0a15c2e150178aeebea8e8dc029
PHP
ren0d1/figurama
/mailer.php
UTF-8
2,166
3
3
[]
no_license
<?php class mailer { private static $mailer = null; private $mail; private function __construct() { //PHP Mailer function require_once('PHPMailer/PHPMailerAutoload.php'); $this->mail = new PHPMailer(); //$mail->SMTPDebug = 3; // Enable ve...
true
7a48f11df256cbd465c614db54407abacac554f8
PHP
woojae9488/Tt_HTML
/PHP/array.php
UTF-8
404
3.296875
3
[]
no_license
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>Array</title> </head> <body> <h1>Array</h1> <?php $coworkers = array('egoing', 'leezche', 'duru', 'taeho'); echo $coworkers[1] . '<br>'; echo $coworkers[3] . '<br>'; var_dump(count($coworkers)); array_push($cowor...
true
a867e2dd007c409889544d30bbfed1ac2093ac85
PHP
antonsmolko/calipari.laravel
/app/Services/Pickup/Repositories/CmsPickupRepository.php
UTF-8
645
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Services\Pickup\Repositories; use App\Models\Pickup; use App\Services\Base\Resource\Repositories\CmsBaseResourceRepository; use App\Services\Pickup\Resources\PickupDetails as PickupResource; class CmsPickupRepository extends CmsBaseResourceRepository { /** * CmsPickupRepository constru...
true
96a34a79366f6429fa5187bcea2b7d92e125b9aa
PHP
u0251081/1f1fd77663848b9c
/lib/Administrator.php
UTF-8
6,887
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: andychen * Date: 8/20/18 * Time: 2:08 AM */ namespace Base17Mai; class Administrator extends Base17mai { private $adminData; public function __construct() { parent::__construct(); if (session_status() !== PHP_SESSION_ACTIVE) session_start(); ...
true
6ef2484293fb2e4da0893649dc429216225b325c
PHP
Gdymora/-DesignPatternsPHP
/patterns/Adapter/CryptcomAdapter.php
UTF-8
326
2.90625
3
[]
no_license
<?php namespace Patterns\Adapter; class CryptcomAdapter implements PaymentAdapterInterface { private $cryptcom; public function __construct(Cryptcom $cryptcom) { $this->cryptcom = $cryptcom; } public function pay($amount) { $this->cryptcom->sendPaymentCryptcom($amount); }...
true
167804bc9472cb7f9f124fb0590f15ea3244eee1
PHP
Battletoad21/jord
/src/Entity/HikeSearch.php
UTF-8
656
3.078125
3
[]
no_license
<?php namespace App\Entity; class HikeSearch { /** * @var string|null */ private $difficulty; /** * @var string|null */ private $postalCode; public function getDifficulty(): ?string { return $this->difficulty; } public function setDifficulty(?string $di...
true
bee345d55db4a6d2e1c7cf8e0163ccc6686dfda7
PHP
lextel/evolution
/fuel/app/classes/model/friend.php
UTF-8
1,734
2.59375
3
[ "MIT" ]
permissive
<?php class Model_Friend extends \Orm\Model { protected static $_properties = array( 'id', 'mid', 'fid', 'created_at', 'updated_at', ); protected static $_observers = array( 'Orm\Observer_CreatedAt' => array( 'events' => array('befo...
true
58f5a9b30f498dcdf2ff4d7e61b68d8d303acbdd
PHP
christ974/blog
/src/Connection.php
UTF-8
257
2.65625
3
[]
no_license
<?php namespace App; use PDO; class Connection { public static function getPDO():PDO { return new PDO('mysql:dbname=blog;host=127.0.0.1', 'root', 'christ974', [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ]); } }
true
374ed041ac6712c14774c72f571ef57905368edb
PHP
Aeruia/projettds
/src/Entity/User.php
UTF-8
6,158
2.640625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Security\Core\Authentication\Provider\UserAuthenticationProvider; use Symfony\Component\Security\Core\User\UserInterface; use Serializable; use Doctrine\Common\Collections...
true
331f791f943a69626ef334c3d8d5258908e90dba
PHP
Amadewe/partie4php
/p4e7/index.php
UTF-8
1,289
3.359375
3
[]
no_license
<!DOCTYPE html> <html lang="fr" dir="ltr"> <head> <meta charset="utf-8" /> <title>Exercice 7 partie 4 php</title> </head> <body> <p>Faire une fonction qui prend deux paramètres : l'âge et le genre d'une personne. Le genre peut être :</p> <ul> <li>Homme</li> <li>Femme</li> </ul> <p>La fonction doit r...
true
bec28c6e3dd820634c1c2cd01bced454a2144992
PHP
warkol66/lausi_update
/branches/update/WEB-INF/classes/modules/users/actions/UsersDoEditAction.php
UTF-8
2,650
2.515625
3
[]
no_license
<?php /** * UsersListAction * * @package users */ class UsersDoEditAction extends BaseAction { function UsersDoEditAction() { ; } function execute($mapping, $form, &$request, &$response) { BaseAction::execute($mapping, $form, $request, $response); ////////// // Access the Smarty Pl...
true
b14fc9756fdb7c7cf6e5cfb764f7a30082c16ee6
PHP
InCasa/backend
/model/Luminosidade.php
UTF-8
636
2.921875
3
[]
no_license
<?php class Luminosidade { private $idLuminosidade; private $nome; private $descricao; public function __construct() { } public function getIdLuminosidade() { return $this->idLuminosidade; } public function getNome() { return $this->nome; } public fu...
true
79f30831ae9bd16f943b48a85e2ce3d4c1daf827
PHP
iamevans/php_basic
/book1/1-15/trait-05.php
UTF-8
313
3.5
4
[]
no_license
<?php trait a { public function foo() { echo "Trait Method foo!<br>"; } } trait b { // 트레이트 a 를 조합 use a; public function bar() { echo "Trait Method bar!<br>"; } } class myClass { use b; } $obj = new myClass; $obj->foo(); $obj->bar(); ?>
true
2cc7cb5b7162d5306926ea7b98a440a7d7f0076f
PHP
cosmeg5/agenda
/perfil_action.php
UTF-8
1,413
2.5625
3
[]
no_license
<?php require_once 'config.php'; require_once 'models/Auth.php'; require_once 'dao/UserDaoDb.php'; $auth = new Auth($pdo, $base); $userInfo = $auth->checkToken(); $userDao = new UserDaoDb($pdo); $nome = filter_input(INPUT_POST, 'perfilNome'); $email = filter_input(INPUT_POST, 'perfilEmail', FILTER_VALIDATE_EMAIL); ...
true
3b2944262d0ede6f5510e43d802fe3b253bdc848
PHP
planetnest/roksh-encryption-algorithm
/tmp.php
UTF-8
235
2.984375
3
[ "MIT" ]
permissive
<?php require_once('roksh.crypto.php'); $str = 'Hello World!'; for ($i=0; $i < 5; $i++) { $str = encrypt($str); echo "Encrypted: " . $str . "\n"; $str = decrypt($str); echo "Decrypted: " . $str . "\n\n"; }
true
fda52b31ec6c6cb050e7ebb5bdb496596b593d1d
PHP
djrene81/API-Client
/tests/Unit/VersionTest.php
UTF-8
1,800
2.59375
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit; use Carbon\Carbon; use Tests\TestCase; use TruckersMP\APIClient\Models\Checksum; use TruckersMP\APIClient\Models\Version; class VersionTest extends TestCase { /** @test */ public function it_can_get_the_version() { $version = $this->version(); $this->assertIns...
true
1abff298a40c1b24f935021faefc95e25c7b04ee
PHP
swoole/ide-helper
/src/swoole/Swoole/Coroutine/Context.php
UTF-8
952
2.71875
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Swoole\Coroutine; /** * The Context object of a coroutine is a key-value storage. It is used to store custom data for the coroutine. * * Each coroutine has a unique Context object automatically associated with it. The Context object of a coroutine can be * accessed by cal...
true
b494a56acae2c7efefad272098861700ec2864ae
PHP
LittleDrogon/PHP-multi-process-programming-under-Linux
/demo45.php
UTF-8
1,578
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2020/10/13 0013 * Time: 下午 7:35 */ $key = ftok("demo42.php","x"); $msqid = msg_get_queue($key); // 当前消息队列的状态 print_r(msg_stat_queue($msqid));//msgctl IPC_STAT 来获取消息队列当前的状态信息【权限,当前队列中消息个数】 $pid = pcntl_fork(); if ($pid==0){ $i=1; ...
true
3a15ea361e659bfc42844bd79450199f6d083a12
PHP
evantbyrne/burner
/burner/library/doccomment.php
UTF-8
1,217
3.15625
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php namespace Library; /** * Doc Comment Library * @author Evan Byrne */ class DocComment { /** * array Cached class options */ protected static $cache = array(); /** * Options * @param mixed Anything with a getDocComment() method, such as ReflectionClass * @return array */ public static funct...
true
a3f494198009485309f469678dbeac0e07efa112
PHP
Hartrik/ZCU-FAV
/KIV-WEB/SP/controller/publications-administration.php
UTF-8
898
2.59375
3
[]
no_license
<?php require_once '/pages.php'; require_once '/model/users.php'; require_once '/model/publications.php'; class PublicationsAdministrationPage extends TwigPage { public function getTemplateName() { return "publications-administration.twig"; } public function hasAccess(User $user = null) { ...
true
b34c9e2edb8c116004487e0a937dd415a91513c5
PHP
ciknowles/mqtt-cogs
/google-visualization/Query/ColumnValueFilter.php
UTF-8
1,850
2.703125
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace Google\Visualization\DataSource\Query; use Google\Visualization\DataSource\DataTable\DataTable; use Google\Visualization\DataSource\DataTable\TableRow; use Google\Visualization\DataSource\DataTable\Value\Value; class ColumnValueFilter extends ComparisonFilter { protected $column; p...
true
c2fc53be97aac61fdd8eade4c5d4fd3cb436648e
PHP
wsbf/new.wsbf.net-old
/schedule_addshow_json.php
UTF-8
959
2.84375
3
[]
no_license
<?php require_once('conn.php'); /** David Cohen - Fall 2011 * Searches for a user in the database * This script is called in schedule_addshow.js for the autocomplete. **/ if($_GET){ $term = "%" . mysql_real_escape_string($_GET['term']) . "%"; $final_result = array(); $q = sprintf("SELECT username, first_name, l...
true
88dbd38d6d69d81a847256c61e940964c2aaae93
PHP
bsj824/english
/app/Services/Navigation.php
UTF-8
2,024
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Models\Category; use Cache; class Navigation { protected $allNav = null; /** * @var Category */ protected $activeNav; /** * @var Category */ protected $activeTopNav; public function getAllNavWithoutCache() { return Catego...
true
050df9f63909cbb3af6645049dc083974e0ead66
PHP
codeblanche/Depend
/fixtures/ClassOne.php
UTF-8
333
2.984375
3
[ "BSD-3-Clause" ]
permissive
<?php class ClassOne implements InterfaceOne { /** * @var ClassStub */ protected $stub; /** * */ function __construct() { } /** * @param ClassStub $stub * * @return $this */ public function setStub(ClassStub $stub) { $this->stub = $s...
true
4529fbc69658763f101bc1cb090bf6feaae8cb94
PHP
rafaeldemeirateixeira/phinx
/db/seeds/ProductsSeeder.php
UTF-8
1,060
2.5625
3
[]
no_license
<?php use Cake\Chronos\Chronos; use Phinx\Seed\AbstractSeed; class ProductsSeeder extends AbstractSeed { public function getDependencies() { return [ 'UserSeeder', 'CategoriesSeeder' ]; } /** * Run Method. * * Write your database seeder using thi...
true
d54ff1588e6a1b2bcbe9720a2301f756c7bf8a1c
PHP
HannahLuna98/collegeHFU
/src/AppBundle/Validator/Constraints/HireConstraint.php
UTF-8
535
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: haa * Date: 16/04/18 * Time: 16:33 */ namespace AppBundle\Validator\Constraints; use Symfony\Component\Validator\Constraint; class HireConstraint extends Constraint { /** * Displays an error message if a user tries to double book */ public function val...
true
094beabe3d08481c55fda77438f3ec9a5ab65140
PHP
Pavlan/news
/app/exceptions/AppException.php
UTF-8
172
2.734375
3
[]
no_license
<?php namespace app\exceptions; use Exception; class AppException extends Exception { public function displayPage() { echo $this->getMessage(); } }
true
29aa053a848e395427d1a747c25a38cd9de3a38b
PHP
html2k/moneta-sdk-lib
/src/Moneta/MonetaSdkPayanywayKassa.php
UTF-8
2,427
2.734375
3
[ "MIT" ]
permissive
<?php namespace Moneta; use Moneta; class MonetaSdkPayanywayKassa implements MonetaSdkKassa { const PAW_KASSA_URL = 'https://kassa.payanyway.ru/api/api.php'; public $kassaStorageSettings; public $kassaAccountId; public function __construct($storageSettings) { $this->kassaStorageSettings...
true
d9b9ea60cf2d1be3dfa8e763c60895e375f9392e
PHP
mrxavierucn/webdisc
/app/Http/Requests/StorePregrado.php
UTF-8
3,540
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StorePregrado extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the...
true
f9b3a08e25ece123c77ac6ba0b6f7cf03efb3fec
PHP
jonnyalexbh/php-mvc
/application/core/application.php
UTF-8
2,470
3.0625
3
[]
no_license
<?php /* * Jonnyalexbh * @Descripcion: aplicación */ class Application { /* @variable controlador null */ private $url_controller = null; /* @variable action null */ private $url_action = null; /* @variable params array */ private $url_params = array(); /* * Inicio de la aplica...
true
920b96884f899e6054dc764a506fdf795955c952
PHP
Kento75/complete-php-from-scratch-for-beginners
/static_method/static3.php
UTF-8
130
2.8125
3
[]
no_license
<?php require_once 'Area3.php'; print '円周率:' . Area::PI . PHP_EOL; print '円の面積:' . Area::circle(10) . PHP_EOL;
true
81c1696b922201bda755b54c5a7eeb675ee43508
PHP
m-mrzl/grafikart-tuto-masuperagence
/src/Notification/ContactNotification.php
UTF-8
1,306
2.75
3
[]
no_license
<?php namespace App\Notification; use Symfony\Component\Mime\Address; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Mailer\MailerInterface; use Symfony\Component\Mime\Email; class ContactNotification { /** * @param MailerInterface $mail...
true
d588e197ee95a6532c540226b59e05e6299495be
PHP
pwFoo/iPinga
/src/route.class.php
UTF-8
3,916
2.75
3
[ "MIT" ]
permissive
<?php namespace ipinga; class route { /** * @var bool */ public $fired = false; /** * @var string */ public $urlToMatch = ''; /** * @var string */ public $controller = ''; /** * @var string */ public $method = ''; /** * @var string ...
true
1f406c556ebad17b552bc8f0d5f0ec3b4f8b7530
PHP
cjango/chain33-php
/src/Chain33/Balance/Client.php
UTF-8
2,325
2.578125
3
[ "MIT" ]
permissive
<?php namespace Jason\Chain33\Balance; use Jason\Chain33\Kernel\BaseClient; /** * Class Client * @package Jason\Chain33\Balance */ class Client extends BaseClient { /** * Notes: 查询地址余额 * @Author: <C.Jason> * @Date : 2020/4/30 22:48 * @param array $addresses 要查询的地址列表 * @param str...
true
4d59f679b2716f8d4a18020ce4bc066c70989843
PHP
jbetanzos/commandchain
/src/ChainCommandBundle/Command/BarCommand.php
UTF-8
1,441
2.984375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: betanzos * Date: 8/8/16 * Time: 19:20 */ namespace ChainCommandBundle\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class BarCommand extends ChainCommandAbstract { public function __construct($paren...
true
cbf4d10f022b407e0fc2930e7640fe98801931be
PHP
jamelsalah/paginacao
/index.php
UTF-8
1,850
2.71875
3
[]
no_license
<?php include "functions.php"; $NumReg=obterNumeroReg(); if(isset($_GET['pag'])){ $inicio=$_GET['pag']; }else{ $inicio=1; } $limite=1; $Total_reg=TotalReg(); $Total_pag=$Total_reg/$NumReg; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-wid...
true
189c13f460834cbd6947ea24670a60e289a048bd
PHP
marscore/hhvm
/hphp/test/zend/good/ext/standard/tests/network/udgloop.php
UTF-8
654
2.8125
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php <<__EntryPoint>> function main() { $uniqid = uniqid(); if (file_exists("/tmp/$uniqid.sock")) die('Temporary socket /tmp/$uniqid.sock already exists.'); /* Setup socket server */ $server = stream_socket_server("udg:///tmp/$uniqid.sock", &$errno, &$errstr, STREAM_SERVER_BIND); if (!$server) { die('Unable t...
true
9d91784776aad96dc1034fadc34d396d9e16e06f
PHP
jiannei/laravel-response
/src/Http/Middleware/SetAcceptHeader.php
UTF-8
844
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * This file is part of the jiannei/laravel-response. * * (c) Jiannei <longjian.huang@foxmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Jiannei\Response\Laravel\Http\Middleware; use Closure; use Illuminate\Http\Req...
true
7a297a3cdffe36c7083b3368bb3850cd1744fd9b
PHP
Shofiul-Alam/pwf-laravel
/app/Transformers/PositionTransformer.php
UTF-8
1,660
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Transformers; use App\Models\Position; use League\Fractal\TransformerAbstract; class PositionTransformer extends TransformerAbstract { /** * A Fractal transformer. * * @return array */ public static function transform(Position $position) { return [ ...
true
74488aa20ea83d18d08c3c750204492b78814907
PHP
ThailanHigor/PortalDeNoticiasAm4
/valida_login.php
UTF-8
1,153
2.875
3
[]
no_license
<?php session_start(); //busca o modulo de conexao require 'model/db_conexao.php'; //recebe o post do formulario $usuario = $_POST['usuario']; $senha = $_POST['senha']; //verifica se há campos em branco if(!empty($usuario = $_POST['usuario']) and !empty($senha = $_POST['senha'])){ //query ...
true
aca846868476142f2dfe858b7cc28145b48a889f
PHP
nguyenthang011099/excersice-from-Leader
/Adapter/Iphone6.php
UTF-8
278
3.046875
3
[]
no_license
<?php class Iphone6 implements Iiphone6 { public function Size($size) { echo "Size ".$size; // TODO: Implement Size() method. } public function Speed($speed) { echo "Speed ".$speed; // TODO: Implement Speed() method. } }
true
0231882e50fda77b3bb1191e8107e365907d1894
PHP
maximebutin/advanced-eval
/container.php
UTF-8
1,373
2.71875
3
[]
no_license
<?php $container = array( 1 => array( 'ID' => '001', 'Poid_Max' => '3', 'Poid_Reel' => '1', 'Type_Contenu' => 'Plastique', ), 2 => array( 'ID' => '002', 'Poid_Max' => '5', 'Poid_Reel' => '2', 'Type_Contenu' => 'Alu', ), 3 => array( 'ID' => '003', 'Poid_Max' => '2', 'Poid_Ree...
true
15cc1f0cab86cd3509458578a1387e6b8b1bb21c
PHP
unil-lettres/dilps-tiresias
/server/Application/Repository/StatisticRepository.php
UTF-8
11,965
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Application\Repository; use Application\Model\Statistic; use Application\Model\User; use Generator; /** * @extends AbstractRepository<Statistic> */ class StatisticRepository extends AbstractRepository implements \Ecodev\Felix\Repository\LimitedAccessSubQuery { public f...
true
c618c10f0b094b6afbe7284c995ebe7c5fb4a15d
PHP
groydis/QUT-CAB230-Assignment-1
/CAB230-master/Part 2/Scripts/includes/functions.inc
UTF-8
1,721
2.984375
3
[]
no_license
<?php // Validate Text Only function validate_chars_only($string){ if (!preg_match("/^[a-zA-Z ]*$/", $string)){ return false; } return true; } // Validate Email function validate_email($email){ if (!filter_var($email, FILTER_VALIDATE_EMAIL)){ return false; } return true; } // Validate Postcod...
true
58dd78087ef45ceb472c5221744619cfab9fdf87
PHP
thaupt76/hcloud-php
/src/Servers.php
UTF-8
19,321
2.578125
3
[ "MIT" ]
permissive
<?php namespace Exploriment\HetznerCloud; use Exploriment\HetznerCloud\Configs; use Exploriment\HetznerCloud\Exceptions\InvalidInput; use Exploriment\HetznerCloud\Objects\Action; use Exploriment\HetznerCloud\Objects\ActionPasswordReset; use Exploriment\HetznerCloud\Objects\ConsoleCredentials; use Exploriment\HetznerC...
true
bdcceb7848abaf3fed37953b919524028e925b1e
PHP
chingcq/cPanel-for-Linux
/www/admin/core/registry.class.php
UTF-8
697
3.34375
3
[ "Apache-2.0" ]
permissive
<?php Class Registry Implements ArrayAccess { private $vars = array(); public function __set($i, $value) { if(isset($this->vars[$i]) == true) { throw new Exception($i . 'was already defined.'); } $this->vars[$i] = $value; return true; } public function __get($i) { if(isset...
true
bf1a99ad95bc260a7b8d012a06ace55821dbba8b
PHP
legacy-fatcode/open-api
/src/Annotation/PathItem.php
UTF-8
1,714
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace FatCode\OpenApi\Annotation; use FatCode\Annotation\Target; use FatCode\OpenApi\Annotation\PathItem\Operation; /** * @Annotation * @Target(Target::TARGET_CLASS, Target::TARGET_METHOD) */ class PathItem { /** * An optional, string summary, intended to apply to all o...
true
23e69072fffff60c5ffdd9f81d143fe13bfc2e02
PHP
septiadirahmawan/aes
/src/Bantuin/JSON.php
UTF-8
1,309
2.828125
3
[]
no_license
<?php namespace Septiadi\Bantuin; /** * Bantuin JSON * @version 1.0 * @author Septiadi Rahmawan <septiadirahmawan@gmail.com> * @link https://github.com/septiadirahmawan/bantuin/ * @copyright Copyright 2021 Septiadi Rahmawan * @package Bantuin */ if (!class_exists('JSON')) { class JSON { ...
true
42878b1a35a6a5083a3a6c90182ffcaeadfbe154
PHP
brueiff/atividade01
/crud/create.php
UTF-8
672
2.890625
3
[]
no_license
<?php $servername = "qao3ibsa7hhgecbv.cbetxkdyhwsb.us-east-1.rds.amazonaws.com"; $username = "chmr8mc65esbq2d8"; $password = "tiwc68257n43dd88"; $dbname = "f7ryywuthik3rpec"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname;charset=utf8", $username, $password); // set the PDO error mode to exception ...
true
efc110a61f1468181b079a22fad2eef5c72f0312
PHP
facile-it/moka
/src/Generator/Template/TemplateInterface.php
UTF-8
315
2.671875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Moka\Generator\Template; /** * Interface TemplateInterface * @package Moka\Generator\Template */ interface TemplateInterface { /** * @param \Reflector $property * @return string */ public static function generate(\Reflector $property): string; }
true
80c621042622b8661941bc5e8dca71619a6c3672
PHP
peter279k/HtmlModel
/src/ScriptContainerInterface.php
UTF-8
899
3.0625
3
[ "MIT" ]
permissive
<?php namespace Crell\HtmlModel; use Crell\HtmlModel\Head\ScriptElement; /** * Interface for classes that can contain script elements. */ interface ScriptContainerInterface { /** * Returns a copy of the page with the script added. * * @param ScriptElement $script * @param string $scope ...
true
93d1ee582cda6a969409a89e02b68a2d02019575
PHP
cubo-cms/cms
/plugin/head.plugin.php
UTF-8
2,384
2.578125
3
[ "MIT" ]
permissive
<?php namespace Cubo; defined('__CUBO__') || new \Exception("No use starting a class without an include"); class HeadPlugin extends Addon { // Generate metadata public static function getMetadata() { $html = '<title itemprop="name headline">'.Configuration::getParameter('title',Configuration::get('site-name','Cub...
true
3321ad9d739b6816d01db4c16b7c7cebdb30720e
PHP
luisvid/pptVivo-
/pptvivo_viewer/application/views/popup/Popup.view.php
UTF-8
361
2.734375
3
[]
no_license
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/../application/views/popup/PopupBasic.view.php'; abstract class Popup extends AjaxMessageBox{ protected $title; /** * * Draw the popup */ public abstract function draw(); /** * * Popup title * @return string popup title */ protected function ...
true
34451d70f3c2f06ffc3f5109e140c3311e8040a5
PHP
matthiasnoback/leanpub-sampler
/src/Matthias/LeanpubSampler/SampleTextFileGenerator.php
UTF-8
1,917
2.921875
3
[]
no_license
<?php declare(strict_types = 1); namespace Matthias\LeanpubSampler; final class SampleTextFileGenerator { private $manuscriptDirectory; private $filename; private $addAllSectionMarkers; /** * @var bool */ private $fromSubset; public function __construct( string $manuscriptDi...
true
ff2226d7e17935560ce4f89652ac04104ce1edf1
PHP
PhanithNoch/c2c-E-commerce
/app/Http/Controllers/Admin/UserController.php
UTF-8
1,377
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\User; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Storage; class UserController extends Controller { public function index() { $user = User::all(); $d...
true
cf8e03c92a4957ea447ae4355f8ccfc96cd9c333
PHP
Appletaart/Applebar
/admin/includes/Cart.Class.php
UTF-8
12,375
2.9375
3
[]
no_license
<?php require_once ("dbc.php"); if(!session_id()){ session_start(); } class Cart extends Db_object { protected static $db_table = "orders"; protected static $db_table_fields = array('table_id', 'products_id', 'quantity', 'totals_price', 'totals_time_prepare', 'date_order'); public $table_id; //table ...
true
19f327ef6d6a42b0ac39e347b5199117889837af
PHP
Jonas1710/dailyblog
/entries_member.php
UTF-8
1,086
2.609375
3
[]
no_license
<?php if(getUserIdFromSession() == true) { echo '<h1>Meine Blogs<h1>'; $entries = getEntries($blogId); if ($entries == NULL) { echo "Sie haben noch keinen Blog erstellt"; echo '<a href="index.php?function=entries_member_create&bid='.$blogId.'">Blog erstellen </a>'; } else { foreach ($entri...
true
4aed352217039b2b4244428fa7226eb1796efd09
PHP
ariekuroboo/Kuliah-OOP
/index.php
UTF-8
1,559
3.46875
3
[]
no_license
<?php class Animal { public $pussy, $inu, $buwung, $odette; public function terbang() { if($this->jumlah_kaki == 2) { echo "Bisa Terbang"; } else { echo "Tidak Bisa Terbang"; } } } class Kucing extends Animal { public function bersuara(){ return "stardenburdenhardenbart"; } } clas...
true
8bcee845e3d688869290c7d8252293c4ddd8364f
PHP
Stolz/php-stubs
/res/php/ncurses/functions/ncurses-mvvline.php
UTF-8
279
2.9375
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Set new position and draw a vertical line using an attributed character and max. n characters long * * @phpstub * * @param int $y * @param int $x * @param int $attrchar * @param int $n * * @return int */ function ncurses_mvvline($y, $x, $attrchar, $n) { }
true
027f7d6b1bcc6599f17abd53c56a8d2ca58426b7
PHP
chenwenlong-git/xny
/include/function.php
UTF-8
13,069
2.640625
3
[ "Apache-2.0" ]
permissive
<?php function outData($code = "",$message = "",$data = "",$jsonp=false){ if($jsonp===false) exit(json_encode(array('code' => $code,'message' =>$message,'data'=>$data))); $callback = $this->request->getParameter('callback'); if(!ctype_alnum(str_replace("_","",$callback))) return json_encode(array('code' => -5...
true
971f5eb6afd0eca576d4af4b181a321dd2d2ce5e
PHP
b2pweb/bdf-prime
/tests/Query/Expression/ValueTest.php
UTF-8
1,252
2.5625
3
[ "MIT" ]
permissive
<?php namespace Bdf\Prime\Query\Expression; use Bdf\Prime\PrimeTestCase; use Bdf\Prime\Query\Compiler\CompilerInterface; use PHPUnit\Framework\TestCase; /** * */ class ValueTest extends TestCase { use PrimeTestCase; /** * */ public function setUp(): void { $this->primeStart(); ...
true
331c469a1508aa4a6449120491e0934a76b7a958
PHP
MaxMartST/Calculator
/math.inc.php
UTF-8
779
3.3125
3
[]
no_license
<?php function add($arg1, $arg2) { return $arg1 + $arg2; } function sub($arg1, $arg2) { return $arg1 - $arg2; } function mul($arg1, $arg2) { return $arg1 * $arg2; } function div($arg1, $arg2, &$errorCode) { if ($arg2 == 0) { $errorCode = ERR_DIVISION_BYZERO; return 0; } else ...
true
2b43aa06bb7b781b84b6737916747649c6d259c3
PHP
MComScience/jolie-g
/common/modules/webhook/events/BeaconEventHandler.php
UTF-8
1,049
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Tanakorn * Date: 22/11/2561 * Time: 22:57 */ namespace common\modules\webhook\events; use LINE\LINEBot; use common\modules\webhook\interfaces\EventHandler; use LINE\LINEBot\Event\BeaconDetectionEvent; class BeaconEventHandler implements EventHandler { /** @var LINEBot...
true
5612b67470153aacb420cf6e91e8293f351e75f8
PHP
Rumengol/Projet_BDW
/pages/login.php
UTF-8
2,312
2.5625
3
[]
no_license
<?php include "../scripts/usermanager.php"; if(isset($_POST["login"])) login(); ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../style/login.css"> ...
true
a7485dc4eab0de4f73f7e1c18cddc5a385dc0d97
PHP
dotphpgift/gift
/app/lib/pages/DHtmlProcessor.php
UTF-8
9,857
2.546875
3
[]
no_license
<?php defined('ACCESS') or die("No direct script access allowed"); class DHtmlProcessor extends DHtmlEngine { public $attributes=array(); public $isFixedWidth=false; private $_elements; private $_beforeHeader; private $_afterHeader; private $_header; private $_footer; private $_container; private $_columns...
true
b1d9f404ac85fce3df2967a7420292ef3c0fc28b
PHP
labinfosys/shop
/core/Db.php
UTF-8
683
2.921875
3
[]
no_license
<?php namespace core; class Db { public static function connect() { $connection = false; $config = Shop::$app->config; $connectionString = 'mysql:host=' . $config['database']['host'] . ';dbname=' . $config['database']['dbname'] . ';charset=' . $config['database']['ch...
true
46c8341e1976322263cc4e0f5a09e1582734541e
PHP
XxRAZpienxX/Practice
/core/src/jkorn/practice/games/misc/gametypes/ITeamGame.php
UTF-8
910
3.09375
3
[]
no_license
<?php declare(strict_types=1); namespace jkorn\practice\games\misc\gametypes; use jkorn\practice\player\PracticePlayer; use pocketmine\Player; interface ITeamGame extends IGame { /** * @param PracticePlayer[] $players * * Generates the teams in the game. */ public function generateTeam...
true
5af22b547a249773905c707db9581fd47987dd49
PHP
Hyperion/valkyrie-yii
/protected/components/WowTalents.php
UTF-8
6,165
2.625
3
[]
no_license
<?php class WowTalents extends CComponent { private $_class; private $_icons; private $_names; public function __construct($class) { $this->_class = $class; } public function getTalentTrees() { $talentTrees = Yii::app()->cache->get('talentTrees_'.$this->_class); ...
true
ca6688fc8d55cbb749f841e81a21453a546b81e3
PHP
lukslevino/amosim
/module/MySDK/src/MySDK/Form/View/Helper/Field.php
UTF-8
5,013
2.625
3
[]
no_license
<?php namespace MySDK\Form\View\Helper; use Zend\Form\View\Helper\FormInput; use Zend\Form\ElementInterface; class Field extends FormInput { /** * Invoke helper as functor * * Proxies to {@link render()}. * * @param ElementInterface|null $element * @return string|FormInput */...
true
273703339fcab8a420f57036407e16a60ed7ac78
PHP
vladimirGue/clon-instagram
/app/Http/Livewire/CardHorizontal.php
UTF-8
2,502
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Arr; use Livewire\Component; use App\Models\Image; use App\Models\Comment; use App\Models\Like; class CardHorizontal extends Component { public $confirmingPublicationDeletion = fal...
true
f372814a3f49764e4162e87dcb2b191a9dee5b8c
PHP
jacobemerick/web
/controller/waterfalls/DefaultLogListController.class.inc.php
UTF-8
1,875
2.53125
3
[ "MIT" ]
permissive
<? Loader::load('collector', array( 'waterfall/CompanionCollector', 'waterfall/LogCollector', 'waterfall/PeriodCollector')); Loader::load('controller', 'waterfalls/DefaultListController'); abstract class DefaultLogListController extends DefaultListController { private static $ITEM_COUNT_PER_PAGE = 10; final pr...
true
fd12cd525f0bd25dfa75d16fe5724dd23afb198c
PHP
WPPlugins/pronamic-ideal
/vendor/wp-pay-gateways/pay-nl/src/Client.php
UTF-8
5,512
2.96875
3
[]
no_license
<?php /** * Title: Pay.nl client * Description: * Copyright: Copyright (c) 2005 - 2016 * Company: Pronamic * * @author Remco Tolsma * @version 1.1.7 * @since 1.0.0 */ class Pronamic_WP_Pay_Gateways_PayNL_Client { /** * API URL * * @var string */ const API_URL = 'https://rest-api.pay.nl/%s/%s/%s/%s/'...
true
d66597dad69355d2d85d76a7cdcdfc8305637808
PHP
dihlophos/pam
/app/Http/Requests/StoreService.php
UTF-8
1,105
2.546875
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreService extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the ...
true
59503b7daf753aad9c4af515f30f83ebec6ee925
PHP
greatschism/quizzy
/modules/Admin/forms/UpdatePasswordForm.php
UTF-8
862
2.8125
3
[]
no_license
<?php namespace app\modules\Admin\forms; use Yii; use yii\base\Model; /** * ResetForm is the model behind the login form. */ class UpdatePasswordForm extends Model { public $old; public $new; public $retype; public $user; /** * @return array the validation rules. */ public function rules() { return [...
true
dca3b8b4831d7e7b73c80065715a681ece06da29
PHP
memuller/todoead
/wp-content/plugins/spotlightyour/admin/theme_options/functions/admin/custom-post.php
UTF-8
3,238
2.65625
3
[]
no_license
<?php /** * Custom Post Option * * @access public * @since 1.0.0 * * @param array $value * @param array $settings * @param int $int * * @return string */ function DDBWP_option_tree_custom_post( $value, $settings, $int ) { if($value->item_id) { $option_val = get_option($value->item_id)...
true
3d1584966390eb2be96ea5bb48524b7d0d87124d
PHP
Ahmadullahkhan/new-project
/ops mrdn old/deleteteacher.php
UTF-8
834
2.53125
3
[]
no_license
<?php @session_start(); if(!isset($_SESSION['id'])) { header("location:Adminlogin.php"); } if(isset($_SESSION['id'])) { $id=$_SESSION['id']; } ?> <?php require_once("connection.php"); if(isset($_GET['id'])) { $id = mysql_real_escape_string($_GET['id']); $sql = "SELECT pic FROM teacher WHERE id='$id'"; $res = mys...
true
519e16f885dfa64ba3d681c3ee409302f058c68e
PHP
graster59/coffeepals
/app/Organization.php
UTF-8
1,150
2.59375
3
[]
no_license
<?php namespace App; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Hash; class Organization extends Model { use Authenticatable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ ...
true
120425b97242a3378447bf9e08bc57093c65a06a
PHP
Happiest-d/library
/login.php
UTF-8
3,084
2.71875
3
[]
no_license
<?php session_start(); function login($login, $pass, $remember) { if ($login=='' || $pass==''){ return false; } $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "isis"; $conn = new mysqli($servername, $us...
true
54235c12906ba0424baf6baa232a8fa037eed457
PHP
samuelszabo/SK-doplnenie-udajov-firmy
/libs/vies.class.php
UTF-8
737
3.046875
3
[]
no_license
<?php class vies { var $countryCode = 'SK'; var $vatNo; public function setCountryCode($countryCode) { $this->countryCode = strtoupper($countryCode); } public function setVatNo($vatNo) { $this->vatNo = preg_replace("/[^0-9]/","",$vatNo); } public function getVatNo() { if(!$...
true
76d4be7fd3ab11237e0e571eaaf9857a145aed00
PHP
icwq/lumen-admin
/app/Repositorys/AdminRepository.php
UTF-8
1,636
2.78125
3
[]
no_license
<?php namespace App\Repositorys; use App\Models\Admin; use App\Traits\PagingTrait; /** * Class AdminRepository * * @package App\Repositorys */ class AdminRepository { use PagingTrait; /** * 通过用户名查询管理员信息 * * @param string $username * @return mixed */ public function findByUse...
true
8a0ac54af605b0aa3a4f1d670df80fe55353babc
PHP
bsws/syncer
/src/metadata/PriceSet.php
UTF-8
1,203
2.609375
3
[]
no_license
<?php namespace Metadata; class PriceSet implements \Interfaces\Metadata { public static $table = 'price_set'; public static $tableAlias = 'ps'; public static function dbColumnsAliases() { return [ self::$tableAlias.'.id' => self::$tableAlias.'_id', self::$tableAlias....
true
a7caea2649eb891b0435bf3c8ed84f0c005d5622
PHP
Nvelia/OCNV-P4
/Model/MembersManager.php
UTF-8
1,507
3.0625
3
[]
no_license
<?php require_once('model/Manager.php'); class MembersManager extends Manager{ public function add(Member $member){ $req = $this->db->prepare('INSERT INTO members(name, password) VALUES(:name, :password)'); $req->bindValue(':name', $member->getName(), PDO::PARAM_STR); $req->bindValue(':password', $member->ge...
true
46f8d8289197d613f9a46c91cd9a6244c05eae66
PHP
runetime/website
/tests/Http/RadioTest.php
UTF-8
1,263
2.59375
3
[]
no_license
<?php namespace tests\Http; use tests\Test; /** * Tests HTTP routes for the RadioController. * * Class RadioTest */ final class RadioTest extends Test { /** * */ public function testIndex() { $response = $this->call('GET', 'radio'); $this->assertEquals(200, $response->getSta...
true
c0a968967b284f4923adf7631ce1c33361eb34c8
PHP
0xh/tl-manager
/app/Extras/TemplateBuilder/MenuGenerator.php
UTF-8
2,199
2.75
3
[]
no_license
<?php namespace App\Extras\TemplateBuilder; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Route; class MenuGenerator { // public $menu; public $controller; public $parsed_array = []; public static function checkForInfo($class) { $info = [ 'icon' => 'zmdi-l...
true
8d75143e50d443fbb2f70e275b8caa634ca66dec
PHP
Pawemol12/Ip-Pastebin
/src/Entity/User.php
UTF-8
4,641
2.625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\UserRepository; use DateTime; use DateTimeInterface; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Security\Core\User\UserInterface; use Serializable; use Doctrine\Common\Collections\ArrayCollection; /** * @ORM\Entity(repositoryClass=UserRepository::class) */...
true