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
c89ba8d7e237ab36e6d19a2772e3300eba7371fd
PHP
theBrianCui/pureLogWeb
/web/functions/getSelect.php
UTF-8
1,269
2.8125
3
[]
no_license
<?php //Get arrays from cache $dateArray = __c()->get($chartName . "Date"); $minArray = __c()->get($chartName . "Min"); $cached = true; //Got from cache? if ($dateArray == null || $minArray == null) { if (!$chartCon) { die('Could not connect: ' . mysqli_error($chartCon)); } $getAll = "(SELECT *...
true
ac23a18dc5c7564266878f2d706024d45e065269
PHP
elmerptuazon/FlexiSourceTest
/app/Console/Commands/ImportCommand.php
UTF-8
1,481
3.015625
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputOption; use App\Services\Importer\IImportService; class ImportCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'run:import'; ...
true
54f59396b96f78ca9c363c41624e28065cce85f8
PHP
somprabhsharma/SPAM
/checkmail.php
UTF-8
1,230
2.8125
3
[]
no_license
<html> <head> </head> <body> <?php require ('class.phpmailer.php'); require ('class.smtp.php'); $mail = new PHPMailer(); $mail->isSMTP(); $mail->Host ='hostnameurl'; // Specify main and backup server //$mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only $mail->SMTPA...
true
aee267900a80a81785b5420ecc6aa413ed62df23
PHP
gabrielhsales/Sample_Laravel
/app/Http/Controllers/AuthController.php
UTF-8
1,273
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Role; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Tymon\JWTAuth\Facades\JWTAuth; class AuthController extends Controller { public function login(Request $request) { $user = User::where('email', $request->email)->fi...
true
a6ba30b3994650a585256e40e3b1aeb073ed8d8a
PHP
Quadigital/Framework
/src/library/Quadigital/Database/AbstractTableGateway.php
UTF-8
1,515
3
3
[]
no_license
<?php /** * File in control of database connection and interactions with the database. * * PHP version 5 * * @author Adam Rivers <contact@quadigital.co.uk> * @copyright 2012-2013 Quadigital * @license http://www.php.net/license/3_01.txt PHP License 3.01 */ namespace Quadigital\Database; use Quadigital\D...
true
18ca69319d82543116bdcc3109a91b058d44bbb0
PHP
katarzynakrolikowska/personal_budget_web
/classes/QueryGenerator.php
UTF-8
430
2.984375
3
[]
no_license
<?php class QueryGenerator { protected $myDB = null; protected $user = null; public function __construct($dbo, $user = null) { $this -> myDB = new MyDB($dbo); $this -> initUser($user); } private function initUser($user) { if ($user) { re...
true
b9cf59f1cdd1ba981d2b1bf091e460beceda587b
PHP
kamilkozak/allegroapi
/src/AllegroClient.php
UTF-8
3,174
2.515625
3
[ "MIT" ]
permissive
<?php /** * Copyright: IMPER.INFO Adrian Szuszkiewicz * Date: 20.09.2019 * Time: 12:18 */ namespace Imper86\AllegroRestApiSdk; use Http\Adapter\Guzzle6\Client; use Imper86\AllegroRestApiSdk\Helper\LogFactory; use Imper86\AllegroRestApiSdk\Helper\SandboxUri; use Imper86\AllegroRestApiSdk\Helper\SoapLogFactory; us...
true
f3f44c4cd72540bb6aa03a1e3ed0ef8ca5ce3c16
PHP
hucongyang/cnhutongApp
/models/HT_Lesson.php
UTF-8
11,957
2.578125
3
[]
no_license
<?php /********************************************************* * This is the model class for CnHutong Lesson * * @package HT_Lesson * @author Lujia * * @version 1.0 by Lujia @ 2015/05/19 创建类以及相关的操作 ***********************************************************/ class HT_Lesson extends CActiveRecord { /******...
true
a2318047fc29078951cf8fad294263b6bf125a8d
PHP
doctrine/rst-parser
/lib/Parser/ListItem.php
UTF-8
1,214
3.234375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Doctrine\RST\Parser; use Doctrine\RST\Nodes\Node; use function array_reduce; use function trim; /** * Represents a single item of a bullet or enumerated list. */ final class ListItem { /** @var string the list marker used for this item */ private $prefix; /**...
true
a268c4dbb044a5625916cbe2742989d0a19b4bfc
PHP
mahadazad/code-gen
/src/CodeGen/Loader/ReplaceLoader.php
UTF-8
981
2.59375
3
[]
no_license
<?php namespace CodeGen\Loader; use CodeGen\Service\ClassBuilder; class ReplaceLoader implements LoaderInterface { protected $innerLoader; /** * @param LoaderInterface $loader * @param string $search * @param string $replace */ public function __construct(LoaderInte...
true
581357d7d828111b6fa290c5e38d90839643a3d4
PHP
ZeEdu/fast-parking
/model/geral.php
UTF-8
4,250
2.703125
3
[]
no_license
<?php include_once "formatacoes.php"; function entrada ($dados) { $conexao = include_once("conexao.php"); $sql = "insert into clientes (nome, modelo, placa, entrada) values ('$dados[nome]', '$dados[modelo]', '$dados[placa]', LOCALTIME())"; $conexao->query ($sql); $conexao->close(); }...
true
3d786143cc2d2060b0406cbe78d4638bf69a5e38
PHP
47669079/complexio_m7
/crear.php
UTF-8
483
2.609375
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors',1); require 'tauler.php'; //para poder trabajar con tauler.php $tauler = new Tauler(8,8,$_POST['tipo']); //cuando creamos el objeto tauler le metemos la variable tipo que es la que nos dirá como queremos la tabla $tauler->show(); //llamamos a la accio...
true
685fb1bc0fc2f4ee6b503d495675db44d2a77460
PHP
gif007/projectmanager
/app/models/Project.php
UTF-8
1,512
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Core\App; class Project { public $id; public $title; public $client; public $comments; public $description; public $status; public $date_started; public $quote; public $department; public $created_by; const status_choices = [ 'In...
true
d1d1f9548cf95de0427bdffcf27a0592368cd0d8
PHP
davy-monnier/CoWork_code
/ratrapagecowork/routes/newSite.php
UTF-8
643
2.828125
3
[]
no_license
<?php require('../model/site.php'); require('../bdd.php'); if( !isset($_POST['nom']) || !isset($_POST['adresse']) || !isset($_POST['image']) || !isset($_POST['description'])){ echo "toute les variable ne sont pas instancié"; return; } if( empty($_POST['nom']) || empty($_POST['adresse']) || empty($_POST[...
true
d95237f28c1a6e0e6679799b7613ca6f16669199
PHP
herdiwai/test-bootcamp-berita
/function.php
UTF-8
2,454
2.828125
3
[]
no_license
<?php $conn = mysqli_connect("127.0.0.1", "root", "", "berita"); function query($query) { global $conn; $result = mysqli_query($conn, $query); $rows = []; while( $row = mysqli_fetch_assoc($result) ) { $rows[] = $row; } return $rows; } function user($data) { global $conn; $name = strtolower(str...
true
6cc2291a90ea520b0e129711f4f9640d921ab23d
PHP
raresvla/mynewshop
/library/MyShop/Plugin/Router.php
UTF-8
1,648
2.578125
3
[]
no_license
<?php /** * This plugin checks defines custom application routes * * @author Rares Vlasceanu * @version 1.0 * @package MyShop * @subpackage Plugin */ class MyShop_Plugin_Router extends Zend_Controller_Plugin_Abstract { /** * Called before Zend_Controller_Front begins evaluating the * request agains...
true
9b8538f3f5903884c2376a8fe06e870a5ee9cbc3
PHP
TSka/TestTaskChess
/src/Chess/Events/EventManager.php
UTF-8
937
3.21875
3
[]
no_license
<?php namespace Chess\Events; class EventManager implements ManagerInterface { private $listeners; /** * Subscribe manager * * @param $eventType * @param $listener */ public function subscribe($eventType, $listener) { $this->listeners[$eventType][] = $listener; } ...
true
6bf366b7ede05adafb161d15027491fe9f0f847a
PHP
antonkot/lottery
/common/models/Gift.php
UTF-8
2,456
2.578125
3
[]
no_license
<?php namespace common\models; use Yii; use yii\behaviors\TimestampBehavior; /** * This is the model class for table "gift". * * @property int $id * @property int $user_id * @property int $type * @property int $amount * @property int $sent * @property int $thing_id * @property int $lottery_id * @property i...
true
1407d44ad4ac525b1b464fd3550a47e1836e50e7
PHP
vetermanve/verse_env
/src/Verse/Di/Env.php
UTF-8
774
3.09375
3
[ "MIT" ]
permissive
<?php namespace Verse\Di; class Env { /** * Instance of Current Dependency container * * @var ContainerInterface */ private static $container; /** * Get Dependency container instance. * Create empty SimpleContainer if container is missing * * @return Containe...
true
2b0f802de65cb0ce141e4a778e34ca653591ea2f
PHP
06romix/php-rest-framework
/src/Endpoint/Repository.php
UTF-8
2,158
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace Dev256\Rest\Endpoint; use Di\ObjectManagerInterface; use Dev256\Framework\Module\GetList; use Dev256\Rest\Endpoint; use Dev256\Rest\RestEndpoint; class Repository { public function __construct( private GetList $getModuleList, private ObjectManagerInterfac...
true
736caddd7c243f347f0ed1fea98f594129705a65
PHP
hadleyn/fitness
/app/Http/Middleware/CheckUserPreferences.php
UTF-8
797
2.5625
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; use App\UserPreference; use App\User; class CheckUserPreferences { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ ...
true
74d90d012f5c5a8518ae53fe5fd3369ae756dbae
PHP
ycs77/laravel-crud-page
/src/Http/Controllers/Actions/Create.php
UTF-8
2,227
2.609375
3
[ "MIT" ]
permissive
<?php namespace Ycs77\LaravelCrudPage\Http\Controllers\Actions; trait Create { /** * Created redirect CRUD route. * * @var string|array */ protected $createRedirectRoute = 'index'; /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response ...
true
be929560b7d1e9fe80b2b56f62d6dd2242ed5681
PHP
Eduardogit/SymfonyEgel
/src/AreasBundle/Entity/Area.php
UTF-8
1,545
2.59375
3
[ "MIT" ]
permissive
<?php namespace AreasBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; /** * Area */ class Area { /** * @var integer */ private $id; /** * @var string */ private $nombre; // protected $subarea; // public function __construct...
true
2499aaff4549325069808a1d24d44c27827a62e6
PHP
Carloseduardozero/WebStatus
/model/modelBean/Cadastro_Bean.php
UTF-8
1,496
2.796875
3
[ "Beerware" ]
permissive
<?php class Cadastro_Bean{ private $nome; private $cpf; private $sexo; private $nascimento; private $endereco; private $cep; private $email; private $telefone; private $comentarios; private $senha; private $celular; function getNome() { return $this->nome; } function getSenha() { return $this->senha; } ...
true
56ee2a08bc6be12ca8d7dd362c0445429019890b
PHP
arthuradolfo/CyberFestival
/testes/arquivo.php
UTF-8
2,281
2.9375
3
[]
no_license
<?php include_once("C:\wamp\www\CyberFestival\src\php\configs\base.php"); /** * Classe de testes para a classe Usuario * @category Usuário * @package Testes * @author Arthur Adolfo <arthur_adolfo@hotmail.com> * @version 1.0 * @copyright 2015 */ class TesteArquivo { /** * Variavel booleana que diz...
true
b7a5cf7dcc40f7648bf3c29370d6ff73dc2e6308
PHP
gitlizhongkang/YII
/common/models/Group.php
UTF-8
1,039
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%group}}". * * @property string $g_id * @property string $g_alias * @property string $g_name * @property integer $g_sys */ class Group extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function...
true
e2d64adb1b116708aa0beea72311ba338eb80b58
PHP
IP-CAM/Opencart-to-Symfony-Bridge-Extension
/src/Model/Setting/Module.php
UTF-8
736
2.984375
3
[]
no_license
<?php declare(strict_types=1); namespace Sypa\Model\Setting; class Module { private int $module_id; private string $name; private string $code; private string $setting; public function __construct(int $module_id, string $name, string $code, string $setting) { $this->module_id = $module_i...
true
8c40471f6d37d85c305eb40090604efe08147e17
PHP
Filmaluco/coregeek
/application/libraries/User.php
UTF-8
16,869
2.765625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: FilipeA * Date: 9/30/2018 * Time: 22:51 */ class User { /** * @var CI_Controller * allows access to codeIgniter framework */ protected $CI; /** * @var int * User Store ID */ protected $store_id = "Not Defined"; /** *...
true
e5f674a5196b538fa0f364f55498e56cbb5a78b0
PHP
ScriptFUSION/Retry-exception-handlers
/test/Unit/MicroSleepExceptionHandlerTest.php
UTF-8
865
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace ScriptFUSIONTest\Retry\Unit\ExceptionHandler; use PHPUnit\Framework\TestCase; use ScriptFUSION\Retry\ExceptionHandler\MicroSleepExceptionHandler; final class MicroSleepExceptionHandlerTest extends TestCase { public function testValue(): void { $handler = new M...
true
e8b546487015cbf6af6512c173e2347b20bc6f96
PHP
ToddBudde/phrails
/html/rules/InternationalPhoneRule.php
UTF-8
408
2.8125
3
[ "MIT" ]
permissive
<?php /** * Is the current model property an integer. * * @package html * @subpackage rules * @author Justin Palmer **/ class InternationalPhoneRule extends PregRule { /** * constructor * * @return NameRule * @author Justin Palmer **/ public function __construct($message='%s is not valid.') { paren...
true
8aecd34d43aebe63b5b5758ddbb4d35f41bb1539
PHP
JasiakWeronika/BezpieczenstwoKomputerowe
/Bezpieczenstwo/mainPage.php
UTF-8
961
2.546875
3
[]
no_license
<?php include('session.php'); $username = $_SESSION['login_user']; $sql2 = "SELECT bankaccount FROM users WHERE login = '$username'"; $result = $db -> query($sql2); if ($result->num_rows == 1) { $row = $result->fetch_assoc(); $recAcc = $row["bankaccount"]; } ?> <!DOCTYPE html> <html lang="pl"...
true
71d6dc8226829d48a6429951e4325e32b3997ccc
PHP
KFoobar/laravel-flight
/stubs/app/Models/Team.php
UTF-8
969
2.71875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace App\Models; use App\Models\User; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use KFoobar\Uuid\Traits\HasUuid; class Team extends Model { use HasFactory; use HasUuid; /** * The attributes that aren't mass assignable. * * @v...
true
f51942c80fe1a48de001c8b61f2602c1f904378e
PHP
kalidusachintha/gapstars-onboarding
/app/Contracts/Onboarding.php
UTF-8
367
2.59375
3
[]
no_license
<?php namespace App\Contracts; use Illuminate\Http\JsonResponse; /** * should be implemented in to any service class that uses different sources for chart data */ interface Onboarding { /** * Generate precentage amount for each step that needs to chart * @return JsonResponse */ public functio...
true
284ead0193d84f420620af561506bf03bfbd37f9
PHP
SandySaenz/process
/app/Http/Controllers/TypedocumentController.php
UTF-8
2,524
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Typedocument; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class TypedocumentController extends Controller { public function __construct() { $this->middleware(['auth','rols:Administrador']); } public function index() { ...
true
7d97134b0cdaf671c73a17da95beef338c72c48c
PHP
dva1986/imaginary-bank
/src/ReportBundle/Calculation/Commission.php
UTF-8
1,150
2.859375
3
[ "MIT" ]
permissive
<?php namespace ReportBundle\Calculation; use ReportBundle\Interfaces\CalculateInterface; /** * Class Commission * @package ReportBundle\Calculation */ class Commission extends Calculation implements CalculateInterface { /** * @return float */ public function calculate() { $balance ...
true
a6ed03b55fe1c6b5aaf63201071548f269c35746
PHP
FranciscoJavierGonzalezOrnelas/ComputoEnlaNubeProyecto
/BackEnd/loginCliente.php
UTF-8
843
2.5625
3
[]
no_license
<?php session_start(); include_once 'conexion.php'; $correo_login = $_POST['login_correo']; $contrasena_login = $_POST['login_contrasena']; //Verificar que existe el usuario $consulta = "SELECT * From clientes where correo='$correo_login'"; $resultado = mysqli_query($connection, $consulta); $user = mysq...
true
c63dd12f760b797eeaf00de01d6d6e66dbf438be
PHP
JMigi/facebookcrawlerdemo
/test.php
UTF-8
485
2.65625
3
[]
no_license
<?php $start = "file:///C:/Users/Miguel/Documents/GitHub/jmigi.github.io/index.html"; function test($url){ $doc = new DOMDocument(); $doc->loadHTML(file_get_contents($url)); $linklist = $doc->getElementsByTagName("a"); foreach($linklist as $link){ $l = $link->getAttribute("href")."\n...
true
2fe9d39f89df50475a3287da69642f5e61c52d8f
PHP
ipetrovbg/homeworks
/php-if/task4.php
UTF-8
1,739
3.5
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Задача 4 - Положителен или отрицателен сбор</title> </head> <body> <?php if(!empty($_GET['sub'])){ $a = $_GET['number1']; $b = $_GET['number2']; $c = $a + $b; // първо решение if ($c > 0) { echo '<br />ПЪРВО РЕШЕНИЕ:<br />'; echo ...
true
c1c8c21a64c8389f299cc75c221b5ebe58f59ba5
PHP
RisenLord/Intial-php-fcc
/9_arrsin.php
UTF-8
724
2.859375
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"> <title>Inputting via arrays</title> </head> <body> <form action="arrsin.php" method="post"> Pasbanc: <...
true
c9e93d390b034c7e484ac9cf727f2be66c7f1ac4
PHP
BackupTheBerlios/flushcms
/AutoPhpFramework/dao/ApfProductPrice.php
UTF-8
4,609
2.5625
3
[]
no_license
<?php /** * Table Definition for apf_product_price */ class DaoApfProductPrice extends DB_DataObject { ###START_AUTOCODE /* the code below is auto generated do not remove the above tag */ var $__table = 'apf_product_price'; // table name var $id; // int(11)...
true
d4b0e16089c63c2d875f05a198ec8c28c76ea063
PHP
mariyamihova/PHP-Web-Development-Basics
/OOP Advanced - Exercise/02. Multiple Implementation/PersonInterface.php
UTF-8
153
3.0625
3
[]
no_license
<?php interface PersonInterface { public function setName($name); public function getName(); public function setAge($age); public function getAge(); }
true
59cf639843d8099f72865f82fa52e9dbecfec92d
PHP
RNNikolov/Blog
/app/ExchangeRate.php
UTF-8
802
2.75
3
[ "MIT" ]
permissive
<?php namespace App; class ExchangeRate { const url = "https://api.exchangeratesapi.io/latest?base="; const currencies = ["CAD","HKD","ISK","PHP","DKK","HUF","CZK","GBP","RON","SEK","IDR","INR","BRL","RUB","HRK", "JPY","THB","CHF","EUR","MYR","BGN","TRY","CNY","NOK","NZD","ZAR","USD","MXN","SGD","AUD"...
true
677a1d19938d8631d0271523a8cd4f0f7eb3dbcc
PHP
crazyrex/phpbench
/lib/Formatter/ClassLoader.php
UTF-8
1,085
2.90625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the PHPBench package * * (c) Daniel Leech <daniel@dantleech.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace PhpBench\Formatter; use Seld\JsonLint\JsonParser; /** * Loads a PHPB...
true
1dfa10bfa57a26d59b84f575531ce4bf3d8b559f
PHP
nokaut/api-kit
/src/Entity/Product/Prices.php
UTF-8
703
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: jjuszkiewicz * Date: 17.06.2014 * Time: 13:24 */ namespace Nokaut\ApiKit\Entity\Product; use Nokaut\ApiKit\Entity\EntityAbstract; class Prices extends EntityAbstract { protected $min; protected $max; /** * @param float $max */ public function...
true
7d778710bda9cf2e1c0e51ad4e5cf5125e754fe9
PHP
mattwoo/is-apiclient
/src/HTTP/Response/AbstractResponse.php
UTF-8
744
2.84375
3
[]
no_license
<?php /** * This file is a part of apiclient package. * Author: Mateusz Westwalewicz * Date: 31.08.2017 * Time: 10:13 */ namespace Mattwoo\IsystemsClient\HTTP\Response; abstract class AbstractResponse { /** * @var int */ protected $statusCode; /** * @var string */ protected $...
true
e1d3a1df38a611b546078a8918a49d486a387992
PHP
craytor-archived/Mine-Panel
/inc/mclogparse.inc.php
UTF-8
915
2.96875
3
[]
no_license
<?php // Parses text with control codes and returns HTML function mclogparse($str) { // Prevent HTML interpretation $str = '<span id="mclogparse">'.htmlspecialchars($str); // Colors $fgColors = array( 30 => 'black', 31 => 'red', 32 => 'green', 33 => 'yellow', 34 => '#0055ff', // blue 35 => 'magenta',...
true
bb3184a82e228ab17a3e0ab3c6f46a4176f133fb
PHP
AlexSchwitthal/BioGro
/model/Dal/exempleDal.class.php
UTF-8
9,968
3
3
[]
no_license
<?php /** * BioGro * © GroSoft, 2017 * * Data Access Layer * Classe d'accès aux données * * Utilise les services de la classe PdoDao * * @package default * @author as * @version 1.0 * @link http://www.php.net/manual/fr/book.pdo.php */ namespace Schuman\Dal; use Schuman\Dal\Applica...
true
4c742da873fbd3011cc9918c3cebcb9b9723bbf3
PHP
Iamtong/laravel-admin-login-check-safe
/src/Rules/AdminPasswordUsed.php
UTF-8
1,338
2.59375
3
[ "MIT" ]
permissive
<?php namespace Encore\LoginCheckSafe\Rules; use Encore\LoginCheckSafe\Models\PasswordLogModel; use Illuminate\Contracts\Validation\Rule; /** * Class AdminPasswordUsed 验证密码最近是否使用过 * @package Encore\LoginCheckSafe\Rules * @author liujt 2019/8/13 13:37 */ class AdminPasswordUsed implements Rule { private $_id; ...
true
eb41f8133fe16086de42f81576915b6434dc5778
PHP
vietor/NextPHP
/system/libs/NpWebQuery.php
UTF-8
3,668
2.984375
3
[ "Apache-2.0" ]
permissive
<?php //! The class for remote HTTP request /*! * @note create by NpFactory::getLibraryObject('WebQuery') */ class NpWebQuery { private $s; /*! * @brief Constructor */ function __construct() { } function __destruct() { @curl_close($this->s); } protected function init($url = "", $user="", $passwd="...
true
cff40b6f8f6b9239f2376ad0b2b652aa25a5ae4b
PHP
hoang-van-hung/case_study_module3
/database/seeders/CategoriesSeeder.php
UTF-8
1,123
2.671875
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Category; use Illuminate\Database\Seeder; class CategoriesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $category = new Category(); $category->name ="Iphone"; $...
true
29c0d76c216a1a8a56bf4303d0a61c94620fa6f7
PHP
funteam-hayakawa/blog_tutorial
/cake_2_8_3/app/View/Tags/index.ctp
UTF-8
2,440
2.671875
3
[]
no_license
<div class="container"> <h1>Tag lists</h1> <?php echo $this->Html->link( 'Blog Index', array('controller' => 'posts', 'action' => 'index') ); ?> <br> <?php echo $this->Html->link( 'Login', array('controller' => 'users', 'action' => 'login') ); ?> <br> <?php echo $this->Html->link( 'Logout'...
true
d77ed7752958f7731bdb114048650256d8bf36cb
PHP
mhtarek/Tourist-Spot-Management
/adminPages/editSpots.php
UTF-8
2,736
2.84375
3
[]
no_license
<?php session_start(); include_once '../include/class.user.php'; $user = new User(); $uid = $_SESSION['uid']; if (!$user->get_session()){ header("location:../login.php"); } if (isset($_GET['q'])){ $user->user_logout(); header("location:../login.php"); } $...
true
d2ee89e63a383bba768cdd913a14b21588c01e82
PHP
DurableDrupal/drush-migration-scripts
/d601/dd-list-content-types-machine-name-and-count.php
UTF-8
310
2.671875
3
[]
no_license
<?php $the_content_types = node_get_types(); foreach($the_content_types as $key => $value) { print($key); $node_type = $key; $num = 0; $result = db_query('SELECT nid FROM node WHERE type = "%s" ', $node_type); while ($obj = db_fetch_object($result)) { $num++; } print(': ' . $num . "\n"); }
true
2a959e66ffe82bf1f16b97d1b073e54c948267b2
PHP
mdpatrick/VichGeographicalBundle
/Listener/ODM/MongoDB/GeographicalListener.php
UTF-8
984
2.515625
3
[]
no_license
<?php namespace Vich\GeographicalBundle\Listener\ODM\MongoDB; use Doctrine\ODM\MongoDB\Event\LifecycleEventArgs; use Doctrine\ODM\MongoDB\Event\PreUpdateEventArgs; use Vich\GeographicalBundle\Listener\AbstractGeographicalListener; /** * GeographicalListener. * * @author Dustin Dobervich <ddobervich@gmail.com> *...
true
3b9170c6d1601bc29ade80bb6d64a48055816bb2
PHP
LafTo001/bSHadmin
/app/View/Rapports/liste_joueurs.ctp
ISO-8859-1
2,064
2.5625
3
[]
no_license
<? header ( "Content-type: application/vnd.ms-excel" ); header("Content-Disposition: attachment; filename=Liste des joueurs.xls"); ?> <table border="1"> <tr> <th bgcolor="#CCCCCC" width="200">Nom</th> <th bgcolor="#CCCCCC" width="100">Date naissance</th> <th bgcolor="#CCCCCC" width="200">Ad...
true
53ecabf84c324afa37763b7091b0dfe0e4816cca
PHP
JuliusM5/PHPmokymai
/menesiai.php
UTF-8
1,426
3.21875
3
[]
no_license
<?php $menesiuVardai = array( 1 => [ 'pavadinimas' => 'Sausis', 'dienuKiekis' => 31], 2 => ['Vasaris', 28], 3 => 'Kovas', 4 => 'Balandis', 5 => 'Gegužė', 6 => 'Birželis', 7 => 'Liepa', 8 => 'Rugpjutis', 9 => 'Rugsėjis', 10 => 'Spalis', 11 => 'Lapkritis', 12 => 'Gruodis' ); echo $menesiuVardai[1]['dien...
true
429e343e95ebe642e3a6935c2b9fe6da50094a24
PHP
samgiles/uni-collaborative-development
/WebApplication/core/controllers/web/ErrorController.php
UTF-8
462
2.734375
3
[]
no_license
<?php /** * A simple 404 error controller. * @author Samuel Giles * @package application-controller * @subpackage application-controller-web * @todo Generalise for any error not just 404. */ class ErrorController extends Controller { public function __construct() { $this->_skin = 'default'; $this->_layout ...
true
aeb1abf822e69020328d3adcc67014823b5083ef
PHP
adil8003/test
/models/Trendding.php
UTF-8
1,222
2.609375
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "trendding". * * @property integer $id * @property string $title * @property string $subtitle * @property string $addeddate * @property string $trendingimg * @property integer $statusid * @property integer $offer */ class Trenddin...
true
4943370566a0207a85864bd3d9fded9c0fdf6d96
PHP
wku-auston/CTEC3110-labs
/lab02/personal_details/index.php
UTF-8
891
3.09375
3
[]
no_license
<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; require_once 'Person.php'; require_once 'View.php'; require '../vendor/autoload.php'; $app = new \Slim\App; $app->get('/','do_person'); $app->run(); function do_person() { $arr_output = array(); $...
true
4c9d2b49d063b02a7f309d2f21b26d4511adfb4e
PHP
binalogue/laravel-boilerplate
/.presets/auth/templates/app/Domain/Users/Actions/CreateUserAction.php
UTF-8
1,156
2.609375
3
[ "MIT" ]
permissive
<?php namespace Domain\Users\Actions; use Domain\Users\DataTransferObjects\UserData; use Domain\Users\Models\User; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; /** @see \Domain\Users\Actions\CreateUserActionTest */ class CreateUserAction { public function execute(UserData $data): User { ...
true
64d0c623809d0b541af89ed304ecb5420ec1d094
PHP
forwardblock-io/chain-poa-php
/src/Transactions/Flags/AssetCreateTxConstructor.php
UTF-8
4,920
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ForwardBlock\Chain\PoA\Transactions\Flags; use Comely\DataTypes\Buffer\Binary; use ForwardBlock\Chain\PoA\Transactions\ProtocolTxConstructor; use ForwardBlock\Protocol\Exception\TxConstructException; use ForwardBlock\Protocol\Exception\TxEncodeException; use ForwardBlock\Proto...
true
84a676a6c8eef49079ccb11de6f23959ae33dbb4
PHP
DannyX1993/SPaceX_PHP
/app/api-resources/exceptions/AuthorizationFailedException.php
UTF-8
302
2.578125
3
[]
no_license
<?php namespace api\exceptions; class AuthorizationFailedException extends \Exception { const HTTP_RESPONSE_CODE = 404; const MSG = 'No existe ningun usuario con esos datos'; public function __construct() { parent::__construct(self::MSG, self::HTTP_RESPONSE_CODE); } }
true
cfcdc5846fc3e3fcc0110a26cfc8ebda25cdec03
PHP
UEhQZXI/yyaai
/app/Http/Requests/Api/V1/Store/CategorieRequest.php
UTF-8
1,068
2.59375
3
[]
no_license
<?php namespace App\Http\Requests\Api\V1\Store; use Illuminate\Foundation\Http\FormRequest; class CategorieRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /*...
true
c2f8e9165cf5907ac19b398e4413cf023e728c99
PHP
farias85/avivamento
/src/AV/MediaBundle/EventListener/MediaUploadListener.php
UTF-8
1,453
2.578125
3
[ "MIT" ]
permissive
<?php namespace AV\MediaBundle\EventListener; use AV\MediaBundle\Service\FileUploader; use Doctrine\ORM\Event\LifecycleEventArgs; use Doctrine\ORM\Event\PreUpdateEventArgs; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\VarDumper\VarDumper; class MediaUploadListener { private $uplo...
true
d6b737675fe7d1564418bddc005b03c81d9b31d7
PHP
mouton-rebelle/core
/framework/classes/fuel/fuel.php
UTF-8
2,732
2.65625
3
[]
no_license
<?php /** * NOVIUS OS - Web OS for digital communication * * @copyright 2011 Novius * @license GNU Affero General Public License v3 or (at your option) any later version * http://www.gnu.org/licenses/agpl-3.0.html * @link http://www.novius-os.org */ class Fuel extends Fuel\Core\Fuel { protecte...
true
72477c0acd51e3c290253aafc344507e31406235
PHP
Dregozone/BakeNGo
/app/reports.php
UTF-8
2,818
2.71875
3
[]
no_license
<?php namespace app; require_once("Model/Reports.php"); require_once("View/Reports.php"); require_once("Controller/Reports.php"); $model = new Model\Reports($mIndex); $controller = new Controller\Reports($model); $view = new View\Reports($model, $controller); if ( sizeof($...
true
6098744b7104d8b7faeba58d57e0ca687501cace
PHP
NicholasZyl/chess
/src/Domain/PieceFactory.php
UTF-8
2,414
3.21875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace NicholasZyl\Chess\Domain; use NicholasZyl\Chess\Domain\Piece\Bishop; use NicholasZyl\Chess\Domain\Piece\King; use NicholasZyl\Chess\Domain\Piece\Knight; use NicholasZyl\Chess\Domain\Piece\Pawn; use NicholasZyl\Chess\Domain\Piece\Queen; use NicholasZyl\Chess\Domain\Piece\Rook; ...
true
18e0d92d6cf4f18a5e0f7036e76eb677498a30c4
PHP
muskie9/silverstripe-markdown
/code/renderer/GithubMarkdownRenderer.php
UTF-8
3,109
3.015625
3
[ "BSD-3-Clause" ]
permissive
<?php class GithubMarkdownRenderer implements IMarkdownRenderer { private static $useGFM=false; private static $useBasicAuth=false; private static $username=null; private static $password=null; /** * Detects if curl is supported which is required for this renderer * @return {bool} Detects if...
true
ff8ace842f2c3be734c35de13a98f0591b1ba82b
PHP
davidjeje/b5
/controleur/UserController/vers_traitement_email.php
UTF-8
1,919
2.59375
3
[]
no_license
<?php require '/../../functions.php'; function envoyer_email() { $errors = array(); if (isset($_POST['envoyer'])) { if(isset($_POST['prenom']) and !empty($_POST['prenom'])) { if(isset($_POST['nom']) and !empty($_POST['nom'])) { if(isset($_POST['mail']) and !empty($_POST['mail']) and filter_var($_POS...
true
bb9d9cfd0c93e1faf5509a28081caaca76085491
PHP
tauantcamargo/squadra-minicurso-api
/app/Http/Controllers/ContatoController.php
UTF-8
1,705
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Business\ContatoBO; use App\Entities\Contato; use Illuminate\Support\Facades\Input; /** * Classe de controle referente a entidade 'Contato'. * * @package App\Http\Controllers * @author Squadra Tecnologia S/A. */ class ContatoController extends Controller { /** ...
true
09b563c7db06c7eaafe72b9d5163c1da9122d95a
PHP
pechatnov/bitrix-skeleton-fork
/app/autoload/Core/Jewelry/Constructor/MediaSelector/DefaultMediaSelector.php
UTF-8
1,369
2.796875
3
[]
no_license
<?php namespace App\Core\Jewelry\Constructor\MediaSelector; use App\Models\Jewelry\JewelryBlankSku; /** * Класс для отбора фотографий и видео 360 по умолчанию * для торгового предложения (ИБ "Торговые предложения для заготовок ЮБИ"). * * @package App\Core\Jewelry\Constructor\MediaSelector */ class DefaultMediaS...
true
da39d5cbc22abe34885e575e350172f631ce946d
PHP
eivl/Audible_Browser
/Browser/WebPage.php
UTF-8
2,180
3.203125
3
[]
no_license
<?php /** * @package Audible * @author Matthew Hayes <Matthew.Hayes@AllThingsCode.com> */ abstract class Audible_Browser_WebPage { /** * All properties for this object are stored in this array. * Default values are not populated, * so if properties are accessed before they are set, * a p...
true
efae2369d88104aa57777e4b0c3ae9b55581503a
PHP
volumnet/raas.cms
/classes/pagecopyhelper.class.php
UTF-8
29,703
2.546875
3
[]
no_license
<?php namespace RAAS\CMS; use RAAS\Application; use SOME\Text; class PageCopyHelper { /** * Соответствие исходных страниц и копий по ID# * @var array<int => int> */ protected $pageMapping = []; /** * Соответствие исходных меню и копий * @var array<int => int> */ protecte...
true
541514a1219f0ed5917765c8886e50bca350ab3a
PHP
joeborysko/hop
/src/elementEditor/classGenerator/classes/ruby/Ruby.php
UTF-8
365
2.765625
3
[ "Unlicense" ]
permissive
<?php namespace hop\elements\instances\ruby; require_once __DIR__ . "/../../HtmlElement.php"; /** * The HTML <code><ruby></code> Element represents a ruby annotation. Ruby * annotations are for showing pronunciation of East Asian characters. */ class Ruby extends HTMLElement { /** */ public function __constru...
true
dc278b18c92bea22edbebe916a292b1a8ce3de39
PHP
linux20121022/blog
/models/Users.php
UTF-8
2,129
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "{{%blog_users}}". * * @property integer $user_id * @property integer $category_id * @property integer $status * @property string $name * @property string $password * @property string $salt * @property integer $sex * @property str...
true
b02d73c73ad5aa6f8e9e9025b6d4e8cc4431fb6e
PHP
violuke/tax
/src/Resolver/TaxResolverInterface.php
UTF-8
1,546
2.703125
3
[ "MIT" ]
permissive
<?php namespace CommerceGuys\Tax\Resolver; use CommerceGuys\Tax\Model\TaxRateAmountInterface; use CommerceGuys\Tax\Model\TaxRateInterface; use CommerceGuys\Tax\Model\TaxTypeInterface; use CommerceGuys\Tax\TaxableInterface; /** * Tax resolver interface. * * Acts as a facade in front of the chain resolvers and serv...
true
e395a6477018ce8fe9ac3643b0c2b4df0cddf076
PHP
ExSituMarketing/EXS-ErrorBundle
/Services/Loggers/Exception5xxLogger.php
UTF-8
3,297
2.65625
3
[ "MIT" ]
permissive
<?php namespace EXS\ErrorBundle\Services\Loggers; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Debug\Exception\FlattenException; use EXS\ErrorBundle\Entity\Exception5xx; use EXS\ErrorBundle\Services\Utils\Flattener; /** * Description of Exception5xxLogger * * Persists a 5xx series exception...
true
cff3d773edaac5f9ee3740b8ea97bf60a88e6f67
PHP
patison5/workstation
/page-proofs/HSECite/autoload/models/professions.php
UTF-8
899
2.609375
3
[]
no_license
<?php namespace models; Class professions { // все кампусы static function show_professions(){ return \F3::get('DB')->exec("SELECT * FROM professions"); } // функция редактирования конкретного кампуса static function edit_professions_layout($id) { return \F3::get('DB')->exec("SELECT * FROM profe...
true
dd370fa3fc0d447ad1474c32357d95331c19c009
PHP
putrarp/belajarlean
/crossword/admin/include/Storage.php
UTF-8
2,401
3.109375
3
[ "MIT" ]
permissive
<?php if (!defined('BASE_PATH')) die("No direct access allowed"); include_once("config.php"); class Puzzle { # Save words to a file function save($name, $data) { $data = "#title: $name\n$data"; if (file_put_contents($this->getFilePath($name), trim($data))) $this->deleteFil...
true
a834f7c6079568683f44f329930f3b61e9832018
PHP
JuraPapuniysky/city-quest
/geo/Services/CityService.php
UTF-8
3,352
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace Geo\Services; use App\Entities\CityEntity; use App\Entities\CountryEntity; use App\Entities\Request\CityRequestEntity; use App\Exceptions\ValidationException; use Geo\Exceptions\ExternalServiceException; use Geo\Factories\Entity\CityEntityFactory; use App\Factories\Entity\Req...
true
2ff5da4a7991b3521dec1ecd198d3578c1225a80
PHP
jstaliano/pa7web
/functions.php
UTF-8
1,156
3.078125
3
[]
no_license
<?php /** * Conecta com o MySQL usando PDO */ function db_connect() { $PDO = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME . ';charset=utf8', DB_USER, DB_PASS); return $PDO; } /** * Cria o hash da senha, usando MD5 e SHA-1 */ function make_hash($str) { return sha1(md5($str)); } /** ...
true
00cdb058e9cb7faeeadc77792d8319103cd6eb72
PHP
moiteiro/Lumturo
/core/dictionary.php
UTF-8
2,137
3.453125
3
[]
no_license
<?php namespace System; /** * Classe responsável por fazer a traduçao e conversao de todo o sistema. * @author Bruno Moiteiro <bruno.moiteiro@gmail.com> * @version 1.0 * @copyright Copyright (c) 2012, Bruno Moiteiro */ class Dictionary extends File { /** * Armazena um XML de palavras que devem ...
true
d0b3f2ab084adc5c4cea86782c283060bf7a3b7e
PHP
matsumotoseiya1103/MYSQL
/includes/dbh.inc.php
UTF-8
425
2.90625
3
[]
no_license
<?php define("SERVERNAME","localhost"); define("USERNAME","root"); define("PASSWORD",""); define("DBNAME","db1"); //creat a connection to the database $conn=mysqli_connect(SERVERNAME,USERNAME,PASSWORD,DBNAME); //test the connection if(!$conn){ die("C...
true
6912a3f7673e6d9a2285ac65d2b78b6405b64d16
PHP
legenki/TaleSpace
/Website/includes/shortcodes/html/html-javo-slider.php
UTF-8
1,423
2.53125
3
[ "MIT" ]
permissive
<?php if( !isset( $jvfrm_home_slider_param ) ) { die; } $arrSliderOptions = shortcode_atts( Array( 'post_type' => 'post', 'featured' => 'false', 'count' => '-1', ), $jvfrm_home_slider_param ); $arrGetSlideParams = Array( 'post_type' => $arrSliderOptions[ 'post_type' ], 'posts_per_page' => intVal( $arrSlid...
true
618bc24ea27141732451f38a98296621523fce44
PHP
ganvani/AWS
/Platform/platform/plugins/Assets/classes/Assets/Credits.php
UTF-8
5,678
2.640625
3
[]
no_license
<?php /** * @module Assets */ /** * Class for manipulating credits * @class Assets_Credits */ class Assets_Credits { const DEFAULT_AMOUNT = 20; /** * Get the logged-in user's credits stream * @method userStream * @param {string} [$userId=null] * The id of the user for which the stream is obtained. D...
true
a98feaf071adabc1d53e6ca26bead513ac617d26
PHP
cdeguillage/WebFlix
/movie_delete.php
UTF-8
1,022
2.609375
3
[]
no_license
<?php // Titre de la page / Utilisateur $currentPageTitle = "Surrpimer un film"; // Utilisateur $admin = false; // Connection à la base de données require_once(__DIR__.'/config/database.php'); // Header du site web require_once(__DIR__.'/partials/header.php'); if (!empty($_GET)...
true
38c56c3c45dc999439dbb229c26478daeed8ab18
PHP
majidakbari/order-service
/app/app/Bundles/Order/Resources/ShoppingCartItemResource.php
UTF-8
479
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Bundles\Order\Resources; use Illuminate\Http\Resources\Json\JsonResource; /** * Class ShoppingCartItemResource * @package App\Bundles\Order\Resources * @property int amount * @property ProductResource product */ class ShoppingCartItemResource extends JsonResource { public function toArra...
true
58314ec511c98e01fe50bd4d97d9a47cdcf7d728
PHP
fludotlove/Playground
/ArrayStore/ArrayStore.php
UTF-8
9,976
3.390625
3
[]
no_license
<?php /** * ArrayStore class definition. * * @author Nathan Marshall <nathan@fludotlove.com> * @copyright 2013, Nathan Marshall */ /** * Array store with dot-notation access. * * @author Nathan Marshall <nathan@fludotlove.com> */ class ArrayStore implements Countable, IteratorAggregate, JsonSerializable, Se...
true
06c9ff6074b06da72bf522e6f4ad747c8f783906
PHP
temp/fn
/tests/Unit/ApplyTest.php
UTF-8
742
2.875
3
[]
no_license
<?php declare(strict_types=1); namespace FncTests\Unit; use PHPUnit\Framework\TestCase; use function Fnc\apply; use function max; /** * @covers \Fnc\apply */ final class ApplyTest extends TestCase { public function testArrayValue(): void { $data = [1, 99, 30]; $max = static function (...$...
true
e2671cfd77ac8d8c82de7c249af40482016a03ce
PHP
idhamhafidz/query_generator
/class.php
UTF-8
5,626
2.90625
3
[]
no_license
<?php ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(-1); /** * Created by PhpStorm. * User: idhamhafidz * Date: 10/4/15 * Time: 12:09 PM * Property Of JOMos * * @description This script is to help generate mysql query */ class mysqlQueryGenerator{ public $servername ...
true
840724b360b89b2cc5c68607e71d9a8c64d93d50
PHP
BedrockStreaming/ApcuBundle
/src/M6Web/Bundle/ApcuBundle/Apcu/Apcu.php
UTF-8
2,265
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace M6Web\Bundle\ApcuBundle\Apcu; /** * Provide APCu abstraction * with namespace feature */ class Apcu { protected string $namespace; protected int $ttl; /** * Construct * * @param string $namespace Namespace * @param int $ttl Defaul...
true
f24787fc98a94f4e4cabf06933f66e407dc05d78
PHP
NeerajaRamu/JewelShop
/database/seeds/RolesSeeder.php
UTF-8
847
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\ModelNotFoundException; use App\Models\Roles; class RolesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $data = [ [ 'name' ...
true
aef9e1f96f398b9190a4c194344b3ac1749886d7
PHP
acerus/WordPressify
/www/wp-content/plugins/wp-pipes/includes/html/date.php
UTF-8
2,123
2.96875
3
[ "MIT", "GPL-1.0-or-later", "GPL-2.0-or-later", "GPL-2.0-only" ]
permissive
<?php /** * @package Joomla.Libraries * @subpackage HTML * * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Extended Utility class for han...
true
3a022312afbdfd2a69f683b8611074d27321dc43
PHP
Arnaldo66/itsara-toolbox
/src/Services/PDFService.php
UTF-8
6,464
2.609375
3
[]
no_license
<?php namespace App\Services; use Doctrine\ORM\EntityManagerInterface; class PDFService { private $em; public function __construct(EntityManagerInterface $em) { $this->em = $em; } /** * get command Adresse */ public function getCommandVignette() { $commands = $t...
true
e69d996162fcb987fed2aef86d10ccf829846b20
PHP
Researcher86/blog
/tests/Domain/Model/Post/PostRepositoryTest.php
UTF-8
989
2.515625
3
[]
no_license
<?php namespace Tests\Domain\Model\Post; use Blog\Domain\Model\Post\PostRepository; use Blog\Domain\Model\User\UserId; use PHPUnit\Framework\TestCase; class PostRepositoryTest extends TestCase { /** * @var PostRepository */ private $repository; protected function setUp(): void { $c...
true
8bacf3f180a2e36b276e97be23921e8782a2abd2
PHP
ThorbenKuck/wasVPM
/mods/vpm.mod/ferientage/days.php
UTF-8
3,736
2.8125
3
[]
no_license
<?php if(!isset($jahr)) die("Das klappt so nicht!"); $datum_now = date ( "Y-m-d" ); // var_dump(easter_date($jahr)); echo "</br>"; echo "</br>"; $timestamp = easter_date ( $jahr ); // $datum = gmdate("d.m", $timestamp); $tage = 60 * 60 * 24; // $zeit = 31556926; // $ostern = date("d.m.$jahr",mktime(0,0,0,date ("m", ...
true
ed812e631f5c87b1f28b8212a43f6f26a934a7be
PHP
MisderGAO/pipelinetest
/httpd/www/site1/index.php
UTF-8
1,151
2.75
3
[]
no_license
<html> <body> <h1><br><br><br>Web page test for SITE 1<br><br><br></h1> <p>showing the result of connecting mysql</p> <?php $servername = "192.168.0.33"; $username = "root"; $password = "root"; // establish connection $conn = mysqli_connect($servername, $username, $password); // test connection if (!$conn) { ...
true
c707a53657cad838645bc2bc54ec131d5299ec01
PHP
FiveLab/Amqp
/tests/Unit/Consumer/Middleware/ConsoleOutputMiddlewareTest.php
UTF-8
6,206
2.546875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the FiveLab Amqp package * * (c) FiveLab * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code */ declare(strict_types = 1); namespace FiveLab\Component\Amqp\Tests\Unit\Consumer\Middleware; use FiveLab\Com...
true
44700c9bb4890927721e9db84b96f4062ac3e6d9
PHP
phillip-hopper/SDK-PHP
/src/CurlClient.php
UTF-8
12,136
2.8125
3
[ "MIT" ]
permissive
<?php namespace OntraportAPI; /** * Class CurlClient * * @author ONTRAPORT * * @package OntraportAPI */ class CurlClient { const HTTP_OK = 200; const HTTP_BAD_REQUEST = 400; const HTTP_UNAUTHORIZED = 401; const HTTP_FORBIDDEN = 403; const HTTP_NOT_FOUND = 404; const HTTP_RATE_LIMIT = 429...
true
fce446d421de3743b5035fe67f619a8056836f47
PHP
jcchevalier-ledger/jcchevalier.fr
/app/Http/Controllers/projects/RegisterController.php
UTF-8
1,070
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\projects; use App\Http\Controllers\Controller; use App\Http\Requests\RegisterRequest; use App\User; use Illuminate\Support\Facades\Hash; /** * Class RegisterController * * @package App\Http\Controllers\projects */ class RegisterController extends Controller { /** * @...
true