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
370596aa3ba17d3b1ad40549aff3ef88bcd8c0b0
PHP
kskelton2021/jaxon-core
/src/Request/Traits/Factory.php
UTF-8
3,791
2.859375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Factory.php - Trait for Jaxon Request Factory * * Make functions of the Jaxon Request Factory class available to Jaxon classes. * * @package jaxon-core * @author Thierry Feuzeu <thierry.feuzeu@gmail.com> * @copyright 2016 Thierry Feuzeu <thierry.feuzeu@gmail.com> * @license https://opensource.org/l...
true
5beee794cb064260e512d30f520f7affaf12c0a4
PHP
pandajingjing/app-system
/lib/sys/controller.php
UTF-8
3,703
2.78125
3
[]
no_license
<?php /** * lib_sys_controller * * 控制器基类 * * @package lib_sys */ /** * lib_sys_controller * * 控制器基类 */ abstract class lib_sys_controller { /** * 构造函数 * * @return void */ function __construct() { // parent::__construct(); } /** * 在控制器开始时执行(调度使用) * ...
true
a6f32fb917a91f0b977ae266a7df346b4fd2049f
PHP
jorge-beltran-dev/mi
/Vendor/Highlight.php
UTF-8
3,654
2.90625
3
[]
no_license
<?php /** * Short description for highlight.php * * Some minor modifications to allow it to work with php4. * * PHP version 5 * * Copyright (c) 2008, CHris Schiflett * * @copyright Copyright (c) 2007, Chris Schiflett * @link http://shiflett.org/blog/oct/formatting-and-highlighting-php-code-listin...
true
b98280181fb57f228ed062085c6ad2eaf8500470
PHP
BrunoSette/oabgame
/game/app/classes/Auto.php
UTF-8
1,922
2.71875
3
[]
no_license
<?php class Auto { private function toUpper($var) { return str_replace('\' ', '\'', ucwords(str_replace('\'', '\' ', strtolower($var)))); } public function post_cadastra_tudo_infusion() { $sql = "SELECT nome, email, localizacao FROM tb_usuario"; $stmt = DB::prepare($sql); ...
true
2b4fbbaa53e066557120a77ff66b39e6821cda04
PHP
bafraikin/Camagru
/user/php/login_utils.php
UTF-8
6,760
2.6875
3
[]
no_license
<?PHP require_once($_SERVER["DOCUMENT_ROOT"] . "/src/utils.php"); require_once(path("/config/db_utils.php")); # error handling for register function error_register($login, $email, $pass, $pass_bis) { $error_array = array_merge(error_email($email), error_login($login), error_password($pass, $pass_bis)); return ($er...
true
09e9e76480a414f77d22f84e86a42da35cacaeda
PHP
mattepstein1/grad-force
/get_job_count.php
UTF-8
470
2.53125
3
[]
no_license
<?php $host = "auth-db223.hostinger.com"; $dbUsername = "u383316595_1"; $dbPassword = "AbC123!@#"; $dbname = "u383316595_1"; $db=mysqli_connect($host,$dbUsername,$dbPassword ,$dbname); $conn = new mysqli($host, $dbUsername, $dbPassword, $dbname); $SELECT = "SELECT * From job"; //Prepare statement $result = $conn...
true
95d7e4367a1a3b8dcaea5385f08d418f2a7bdac5
PHP
wahabtaofeeqo/sitting-arrangement-system
/application/controllers/Home.php
UTF-8
3,086
2.609375
3
[]
no_license
<?php defined("BASEPATH") OR exit("No direct script access allowed"); /** * */ class Home extends CI_Controller { public function index() { $this->checkSeating(); } public function login() { $this->load->model("homeModel"); $response = array("error" => false); if (!isset($_POST['username']) && !isse...
true
b711d99f2804037d1feb3d59d3ebbf24e8a4a8bd
PHP
b-b3rn4rd/IPv4VLSMCalculator
/IPv4VLSMCalculator.php
UTF-8
12,822
3.109375
3
[]
no_license
<?php /** * IPv4VLSMCalculator - aims to automate Variable Length Subnet Masking(VLSM) * calculation process using PHP. Provides essential functionality for rapid * subnetting, supernetting, and some other userful features. * * @package IPv4VLSMCalculator * @author Bernard Baltrusaitis <bernard@runawaylover.info...
true
69173a4ff510356e9bc4da96c15c11dd69e646bb
PHP
robin-zhao/rzSchemaorgPHPConverter
/Robinzhao/SchemaOrg/Thing/Action/SearchAction.php
UTF-8
697
2.625
3
[]
no_license
<?php /** * This is an auto generated file. */ namespace Robinzhao\SchemaOrg\Thing\Action; use Robinzhao\SchemaOrg\Thing\Action; /** * Search Action * http://schema.org/SearchAction */ class SearchAction extends Action { /** * A sub property of instrument. The query used on this action. * * ...
true
0446142cb859c75ae05e5482817c38c47516fab0
PHP
moonkabir/php
/15/2depencisInjection.php
UTF-8
1,125
3.453125
3
[]
no_license
<?php interface BaseStudent{ function displayName(); } class ImprovedStudent implements BaseStudent{ private $name; private $title; function __construct($name, $title){ $this->name = $name; $this->title = $title; } function displayName(){ echo "Hello From ...
true
b00c8d07e370680b35316ec6fcea5883a5b4e72d
PHP
wp-breeder/swoft-admin
/app/Model/Validator/RoleValidator.php
UTF-8
805
2.71875
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace App\Model\Validator; use Swoft\Validator\Annotation\Mapping\IsInt; use Swoft\Validator\Annotation\Mapping\IsString; use Swoft\Validator\Annotation\Mapping\Length; use Swoft\Validator\Annotation\Mapping\Validator; /** * 角色验证器 * Class RoleValidator * @Validator(name="RoleVa...
true
62fbead2235794a3909156acae1248d04e23354d
PHP
haykuro/datadotcom-scrape
/application/libraries/four11dotinfo.php
UTF-8
13,854
2.875
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php class Four11DotInfo { private static $business_scrapeURL = 'http://411.info/business/'; private static $person_scrapeURL = 'http://411.info/people/'; private static $blacklist_characters = array( 'blacklist' => array( "\xc2\xa0", "\x0d\x0a", "\xc3\x82\xc2", "\xc3\xa2\xc2\x80\xc2\x99", "\xc2\...
true
b740881e1d952683ab51f6b75d8293e9e3c0c0be
PHP
Hemoroide/Mini-blog
/connexion.php
UTF-8
1,268
2.796875
3
[]
no_license
<?php session_start(); $bdd = new PDO('mysql:host=localhost;dbname=espace_membre;charset=utf8' ,'root', ''); ?> <!DOCTYPE html> <html> <head> <title>CONNEXION</title> <meta charset="UTF-8"> <link rel="stylesheet" href="connexion.css"> </head> <body> <h1>CONNECTEZ-VOUS</h1> <...
true
20e83c8ee15e87e89b5f6f62c3fb91d84837a456
PHP
normanprivaldosjr/disaster-management
/app/GraphQL/Mutations/SourceMutator.php
UTF-8
2,118
2.609375
3
[]
no_license
<?php namespace App\GraphQL\Mutations; use App\GraphQL\Resolvers\BaseAuthResolver; use App\Models\Source; use GraphQL\Type\Definition\ResolveInfo; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Support\Facades\Auth; use Nuwave\Lighthouse\Support\Contracts\GraphQLContext; class SourceMutator ...
true
d679433bc99d5ba861ae56166c147a83a615c3f6
PHP
tolgakaragol/e-UygunCurency
/src/Command/NewProviderCommand.php
UTF-8
1,817
2.71875
3
[]
no_license
<?php namespace App\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\...
true
dbd23d27252615aa149fe86762e3043ec5cf0f72
PHP
mrakhman/piscine_PHP
/rush00/models/categories.php
UTF-8
1,744
3.234375
3
[]
no_license
<?php /* ** $category = { "name": "Super cool name" } ** Creates category (no duplicate check) ** Returns FALSE if error, itself if ok */ function create_category($category) { global $mysqli; if (empty($category['name'])) return FALSE; $query = "INSERT INTO `categories` (`name`) VALUES (?);"; $stmt = $mysqli...
true
f498f3fa821e11187345daccc6dce0c6621245fe
PHP
tectronics/flowershops
/FlowerShop/includes/controller/database.php
UTF-8
3,377
3.375
3
[]
no_license
<?php class Database{ private $connection; private $last_query; private $magic_quotes_a; private $real_escape_string_e; private static $instance; // Opens database connection function __construct() { $this->open_conn(); $this->magic_quotes_a = get_magic_quotes_gp...
true
64feaaaddd5cd1f367fe6d79cec4c474b4eddc67
PHP
JeremyGiner/homeplanet
/src/AppBundle/Twig/Printo.php
UTF-8
2,342
2.78125
3
[]
no_license
<?php namespace AppBundle\Twig; /** * @link http://stackoverflow.com/questions/22550368/how-can-we-get-class-name-of-the-entity-object-in-twig-view */ class Printo extends \Twig_Extension { /** * @var \Twig_Environment */ private $oEnvironment; //____________________________________________________________...
true
277be3d67018e9757475dea1a417b3ffbc7a419c
PHP
omarzeroual/Lorem-Ipsum-Pizza
/php/generateAuswahl.php
UTF-8
10,105
2.84375
3
[]
no_license
<?php #### Variablen #### # Rechner, auf dem sich die DB befindet $db_position = 'localhost'; $db_datenbank = 'loremipsum-pizza'; # Anmeldedaten $db_benutzername  = 'loremipsum-pizza'; $db_passwort  = 'pi$$a'; # Aufbauen der Datenbank Verbindung #$link = mysqli_connect('localhost', 'root', 'root'); $link = mysqli_con...
true
8c4b43c72eb0c86644521bfcf91e2b651c8d734e
PHP
thanhngvpt/ttvn.website
/app/Http/Requests/Admin/JobCategoryRequest.php
UTF-8
921
2.53125
3
[]
no_license
<?php namespace App\Http\Requests\Admin; use App\Http\Requests\BaseRequest; use App\Repositories\JobCategoryRepositoryInterface; class JobCategoryRequest extends BaseRequest { /** @var \App\Repositories\JobCategoryRepositoryInterface */ protected $jobCategoryRepository; public function __construct(JobCa...
true
d167b35177013ca84ee98a497433c0407324726e
PHP
lucatume/tad-reschedule
/tad-reschedule.php
UTF-8
9,451
3.03125
3
[]
no_license
<?php /** * Plugin Name: Reschedule Utility * Plugin URI: http://theAverageDev.com * Description: Easy cron event rescheduling. * Version: 1.0 * Author: theAverageDev * Author URI: http://theAverageDev.com * License: GPL 2.0 */ if (!function_exists('tad_reschedule')) { /** * @param string|callable $ho...
true
7d19691888f86811185d76cf511a8bbca86bf288
PHP
OP23/PHP-Web-Apps
/PHP_Web_Apps/Task_10/MVC/model/model.php
UTF-8
532
2.890625
3
[]
no_license
<?php //the model represents the data structures e.g. it generally contain functions that help you retrieve, insert, and update information in your database. function car() { return 'Mercedes Benz C180'; } function price() { return 'R400,000.75'; } ...
true
45b1cb4e7fb6c3c80bd9139a78a30f295283b462
PHP
azadam/pei-rest-backend
/lib/RANDF/PEI/Data/Sharing.php
UTF-8
2,363
2.65625
3
[]
no_license
<?php namespace RANDF\PEI\Data; use \Respect\Validation\Validator as v; use \RANDF\Database as Database; use \PDO as PDO; class Sharing { public static function santitize($sharing) { $sharing = (array) $sharing; $outSharing = array(); $fields = array( 'sharing_id', ...
true
00f3ab0025e7e3bad6b9cb0e33e9869d3be45765
PHP
appcia/webwork
/lib/Appcia/Webwork/Web/Form/Field/Text.php
UTF-8
461
2.53125
3
[]
no_license
<? namespace Appcia\Webwork\Web\Form\Field; use Appcia\Webwork\Web\Component\Filter; use Appcia\Webwork\Web\Form\Field; use Appcia\Webwork\Web\Form; /** * Form field * * @package Appcia\Webwork\Web\Form\Field */ class Text extends Field { /** * @{@inheritdoc} */ public function __construct(Form...
true
af4c69598765af46efd7d869847c885c8ca7e491
PHP
chaika0je/teaOcean
/models/Cart.php
UTF-8
153
2.578125
3
[]
no_license
<?php class Cart { public static function deleteProduct($id) { unset($_SESSION['cart'][$id]); header("Location: /cart"); } }
true
7a6ba866646cf26fc75b1412895676b12d00e954
PHP
thenikso/parini
/app/functions.php
UTF-8
19,975
2.53125
3
[]
no_license
<?php /** Crawler support */ // Gets the requested path if the website visitor is a crawler. // To make WordPress return the proper content, the following configuration should // be added to .htaccess after the WordPress symlink configuration: // // # BEGIN Angular-WordPress-Theme // <IfModule mod_rewrite.c> // Rewrit...
true
39e9d1266b9a25b18df16bd344b109e54de5eabd
PHP
cloudfoundry/php-buildpack
/fixtures/symfony_5_local_deps/vendor/symfony/routing/Generator/Dumper/CompiledUrlGeneratorDumper.php
UTF-8
1,855
2.6875
3
[ "MIT", "Apache-2.0" ]
permissive
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Generator\Dumper; use Symfony\Component\Routi...
true
f3ead9624aa4b75915cd6fa91ebfb06f48290def
PHP
franzose/mini-crm-demo
/app/Jobs/Crm/User/UpdateUserProfile.php
UTF-8
566
2.59375
3
[]
no_license
<?php namespace CrmDemo\Jobs\Crm\User; use Illuminate\Contracts\Bus\SelfHandling; use Illuminate\Http\Request; use CrmDemo\Jobs\Job; /** * Задача обновления пользовательского профиля. * * @package CrmDemo\Jobs\Crm */ class UpdateUserProfile extends Job implements SelfHandling { /** * @param array $attributes...
true
9ef53332e13b7fe20465153d4e80761b843fef14
PHP
zhangpanfeng/myedu_client
/mapper/SchoolMapper.php
UTF-8
462
2.953125
3
[]
no_license
<?php require_once '../utils/DB.php'; class SchoolMapper{ public static function selectAllSchools(){ $sql = "select * from school"; try { $conn = DB::getConnect (); $stmt = $conn->query ( $sql ); $data = $stmt->fetchAll ( PDO::FETCH_ASSOC ); $conn = n...
true
478658698bf0c3246d698dc43742f712d9dce580
PHP
smarshad/aasfatour
/application/controllers/Login.php
UTF-8
846
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Login extends CI_Controller { private $heading,$title; public function __construct(){ parent::__construct(); $this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); $this->output->set...
true
27c62c899b9b5db9fd04e49604c1d4764b9fabae
PHP
Holsje/ISE
/Congresapplicatie/admin/manageCongressPlanning_Class.php
UTF-8
13,962
2.78125
3
[]
no_license
<?php class manageCongressPlanning extends Management { private $tracks; private $events; private $location; //private $eventsInTrack; private $daysOfCongress; private $numDayOfCongress; private $congressNo; private $hourHeight; public $currentDay; public function __construct($congressN...
true
71120161a1304f60949a56a83a5df9f8bc780eb4
PHP
DavidIru/GET
/app/controllers/EncuestasController.php
UTF-8
19,646
2.5625
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Controlador de las encuestas |-------------------------------------------------------------------------- | Controlador con las funciones relacionadas con las encuestas | */ class EncuestasController extends BaseController { /** * M...
true
4c0fa99c730adf5d4b215fa659e0fa111102eea8
PHP
arecalde/EchoFactor
/content/statusContent.php
UTF-8
764
2.546875
3
[]
no_license
<br /> <form method='post' name='status'> <textarea name="comment"></textarea> <!-- Big textfield for status --> <input type='submit' name='submit' value='Post'/> </form> <?php if(!loggedin()){ header('location: index.php'); } $status = mysqli_real_escape_string($connect, $_POST['comment']...
true
f73e4ecc59c9a608839e8779f0dcbdb6856eccd1
PHP
Viscaweb/LIMO-Markup
/command/Scripts/Mdl/Compile.php
UTF-8
1,465
2.828125
3
[]
no_license
<?php namespace Scripts\Mdl; use Scripts\Exceptions\GulpCouldNotCompileException; use Scripts\Helper\CliCommands; use Scripts\Interfaces\ScriptInterface; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * Class Compile */ class Compile implements ScriptIn...
true
541f6c02ed03aac958e50beaf15070681eb4617d
PHP
PhillippOhlandt/bolt-extension-required-records
/src/Manager/RecordManager.php
UTF-8
2,502
2.8125
3
[ "MIT" ]
permissive
<?php namespace Bolt\Extension\Ohlandt\RequiredRecords\Manager; use Bolt\Extension\Ohlandt\RequiredRecords\Record\RequiredRecord; use Bolt\Storage\EntityManagerInterface; class RecordManager { /** * @var RequiredRecord[] */ protected $records = []; /** * @var EntityManagerInterface */...
true
1eeab0ef181ffb25f910d6ad0db036ff95b339c9
PHP
andrucastro/Web-back-end-1-
/library/functions.php
UTF-8
10,707
2.9375
3
[]
no_license
<?php function dynamicMenu($classifications){ // Build a navigation bar using the $classifications array $navList = '<ul>'; $navList .= "<li><a href='/phpmotors/' title='View the PHP Motors home page'>Home</a></li>"; foreach ($classifications as $classification) { $navList .= "<li><a href='/phpmotors/ve...
true
c3373bc2ceb8ec4f0a8411f9b80094de633cc960
PHP
JenniferGonzalez36/my_store_test
/helpers/Utils.php
UTF-8
469
2.90625
3
[]
no_license
<?php class Utils { public static function deleteSession($name) { if (isset($_SESSION[$name])) { $_SESSION[$name] = null; unset($_SESSION[$name]); } } public static function isValidSession($name) { return (isset($_SESSION[$name]) && $_SESSION[$name]); } public static function go...
true
b552f419d404a8544d37c3bbe93aec29d20a3e97
PHP
tommyku/liba_lib
/src/LibaAPI/Schedule.php
UTF-8
4,235
3.1875
3
[]
no_license
<?php namespace LibaAPI; class Schedule { /** * @var string $bAuth_user ITSC username for basic auth login * @var string $bAuth_pass ITSC password for basic auth login */ protected $bAuth_user; protected $bAuth_pass; public function __construct($_bAuth_user = NULL, $_bAuth_pass = NULL) ...
true
e6c9557cde00f771ebba6ef33c8c8e7701623007
PHP
itsamanverma/php
/DataStructure/2DPrimeAnagram.php
UTF-8
1,581
3.40625
3
[]
no_license
/** ********************************************************************************************* * program to Store the prime numbers and Anagrams in a 2D Array * @author amanverma * @version 1.0 *Date: 06/02/2019 *********************************************************************************************...
true
a742add98a94cce146118d2e46e5e129a7a0b08c
PHP
favourch/BMS
/application/models/ObtorLib/App/Core/Catalog/Service/Vendor.php
UTF-8
3,422
2.703125
3
[]
no_license
<?php /** * Description of Vendor * * @author Iyngaran Iyathurai <iyngaran55@gmail.com> */ class Base_Model_ObtorLib_App_Core_Catalog_Service_Vendor extends Base_Model_ObtorLib_Eav_Model_Service { public $vendor; /* * Get a user vendor using id * @return : Entity Vendor Object (Base_Model_...
true
ec1084d5c9f8c8132c66c7a7079705e958c4d3de
PHP
gopj/PI7
/application/models/chofer-vendedor/ventas_model.php
UTF-8
7,714
2.65625
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Ventas_model extends My_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function getVentas() { //un query que obtiene las ventas $query = $this->db->query(' SELECT v.idVenta...
true
f5623c2fcd18ca2d78c37b2083f48fff9b6c9e38
PHP
gelson-barros/POO-PHP
/18-Checar_se_metodo_da_classe_existe.php
UTF-8
893
3.78125
4
[]
no_license
<?php class Foo1 { public function bar() { echo "Eu sou private Foo1::bar()<br>"; } } class Foo2 { private function bar() { echo "Eu sou public Foo2::bar()<br>"; } } $f1 = new Foo1; $f2 = new Foo2; echo "<pre>"; print_r(get_class_methods($f2)); echo "</pre>"; if (is_c...
true
a7ae7381bccc7deaa3aa91514e9d4f9890e5e00e
PHP
SvenSchool/barroc-it
/application/functions.php
UTF-8
723
2.671875
3
[]
no_license
<?php function setMsg($msg, $msglvl) { $_SESSION['msg'] = $msg; $_SESSION['msglvl'] = $msglvl; } function getMsg() { if (isset($_SESSION['msg']) && isset($_SESSION['msglvl'])) { $lvl = $_SESSION['msglvl']; $msg = $_SESSION['msg']; switch ($lvl) { case 1: return "<div class='alert alert-succ...
true
9840607849aee0d210eea93299cc4490e65d2be6
PHP
janlanger/diploma-ctu-navigator-maps
/app/presenters/ApiPresenter.php
UTF-8
17,082
2.59375
3
[]
no_license
<?php namespace Maps\Presenter; use Maps\Model\Building\Building; use Maps\Model\Building\Queries\BuildingWithFloors; use Maps\Model\Floor\Queries\ActivePlanQuery; use Maps\Model\Floor\Floor; use Maps\Model\Floor\Plan; use Maps\Model\Metadata\FloorConnection; use Maps\Model\Metadata\Node; use Maps\Model\...
true
cd0954b6b99ee836cf086546d01bc72a1b612fea
PHP
Sofia-Alves/Nail-It
/controllers/signup_controller.php
UTF-8
1,226
2.71875
3
[]
no_license
<?php session_start(); // create new account if(isset($_POST['signup']) && $_POST['signup']=='done'){ echo 'signup'; if(!empty($_POST['firstname']) && !empty($_POST['lastname']) && !empty($_POST['password'])){ $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $email = $_...
true
70ef90a846496d7d5d975a132e2367d702d38065
PHP
divineslight/Squeeze
/application/libraries/squeeze.php
UTF-8
2,074
2.59375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * CodeIgniter Squeeze Class * * Makes asset management, minifying easy * * @package CodeIgniter * @subpackage Libraries * @category Libraries * @author Philip Sturgeon * @created 04/06/2009 * @license h...
true
a859f808202f342bd447c038f0d0922527d2b0ad
PHP
Edivald0/asisti
/alumno/subir_foto.php
UTF-8
1,378
2.734375
3
[]
no_license
<?php //echo "<pre>"; //print_r($_FILES); //echo "</pre>"; $tipo=$_FILES["foto"]["type"]; $archivo=$_FILES["foto"]["tmp_name"]; //string($cadena1,$cadena2) sirve para evaluar si en la primer cadena de texto //existe la segunda cadena de texto. //si dentro del tipo del archivose encuentra la palabra image //significa q...
true
7d941e3c135b571369af682478d794b09ce44670
PHP
sulft/youtube_tutorial
/php/built_in_function/math_function.php
UTF-8
624
4.25
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>math function</title> </head> <body> <h1>Math function</h1> <?php echo ceil(9.4) . "<br>"; //arrondit le nombre/variable à l'inférieur echo floor(9.4) . "<br>"; //arrondir le nombre/variable...
true
0c434bf8a5dfb6e8943acd7b05b46d3424c74c76
PHP
selenaelisewells/LRG_site_build
/admin/scripts/functions.php
UTF-8
594
3.03125
3
[ "MIT" ]
permissive
<?php function redirect_to($location=null) { if($location != null) { header('Location: '.$location); exit; } } // generating random passwords // function random_pass( // int $length = 64, // string $keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' // ): strin...
true
5036a5175ee86fba822c64fd1ce4cdad199bf8c4
PHP
egilkenson/srms
/page-templates/pageofposts.php
UTF-8
3,098
2.71875
3
[]
no_license
<?php /** * Template Name: Page of Posts * Description: Displays Page Contents, Followed By Posts Based On Custom 'category' Field * * @package srms */ get_header(); ?> <div id="post-area"> <?php if ( have_posts() ): ?> <?php while ( have_posts() ): the_post(); ?> <h2 class="category-he...
true
ba0045dbaf925f821779733e6089b1baf3510c37
PHP
ouracademy/repuestop
/app/Infraestructure/Persistence/Doctrine/DoctrineOrderRepository.php
UTF-8
902
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Infraestructure\Persistence\Doctrine; use Doctrine\Common\Persistence\ObjectRepository; use Doctrine\ORM\EntityManagerInterface; use App\Domain\Repository\OrderRepository; class DoctrineOrderRepository implements OrderRepository { private $genericRepository; private $em; public func...
true
91f1e4e5834aca1cd440fe79b0274ed0c0a920a6
PHP
sheawey/DelzPay
/src/Delz/Pay/WeChat/Message/CloseOrderRequest.php
UTF-8
1,084
2.625
3
[]
no_license
<?php namespace Delz\Pay\WeChat\Message; use Delz\Pay\WeChat\Helper; use Delz\Common\Util\Http; /** * 关闭订单请求 * * @package Delz\Pay\WeChat\Message */ class CloseOrderRequest extends Request { /** * 关闭订单网址 */ const API_CLOSE_ORDER = 'https://api.mch.weixin.qq.com/pay/closeorder'; public func...
true
3b684de053f51ab54ed9af76f2c5909a9e2f42d7
PHP
denis-kisel/lara-dbconfig
/src/DBConfig.php
UTF-8
974
2.734375
3
[ "MIT" ]
permissive
<?php namespace DenisKisel\DBConfig; class DBConfig { public static function put($key, $value) { SettingsModel::updateOrInsert(['key' => $key], [ 'key' => $key, 'value' => serialize($value) ]); } public static function get($key, $default = null) { r...
true
e7cb553711470166a10a3ddaf541331d1549d98b
PHP
yvette34/sedesol
/control_areas.php
UTF-8
941
2.96875
3
[]
no_license
<?php if (isset($_GET['op'])) { include "conexion.php"; $opcion = $_GET['op']; $objControlador = new controlAreas(); $objControlador->control($opcion); } class controlAreas { function __construct() { } function control($op) { switch ($op) { case 'cargarAreas': ...
true
7ec1ecdf78f7e70e58050f34a6f69a3bdd115d54
PHP
GeorgySmirnov/array-split
/web/models/ArraySplit.php
UTF-8
4,510
3.140625
3
[]
no_license
<?php namespace app\models; use yii\db\ActiveRecord; use yii\base\InvalidArgumentException; use app\models\User; class ArraySplit extends ActiveRecord { public static function tableName() { return '{{%array_split}}'; } public function rules() { return [ [['number_n',...
true
e9e9f2e719e4683607bd81bfe3e970293e5575fa
PHP
jimmysole/pblah
/module/Application/src/Application/Model/SetupModel.php
UTF-8
23,778
2.65625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Application\Model; use Zend\Db\TableGateway\TableGateway; use Zend\Db\Sql\Sql; use Zend\Db\Sql\Insert; use Zend\Db\Sql\Select; use Zend\Db\Sql\Ddl; use Zend\Db\Sql\Ddl\Column; use Zend\Db\Sql\Ddl\Constraint; use Zend\Db\Adapter\Adapter; use Application\Model\Filters\Setup; class...
true
af04e83a03a7987d246ca21e84b5829eeffb8069
PHP
yygatech/Dalao-Hotpot-Open
/src/html/database.php
UTF-8
5,452
3.015625
3
[]
no_license
<?php /** * Deal with database logic * Created by PhpStorm. * User: henry * Date: 3/11/18 * Time: 00:10 */ /** * Get MySQL connection * @return mysqli MySQL Connection */ function getConnection() { return mysqli_connect('127.0.0.1','ubuntu','ubuntu','dalao_hotpot',3306); //return mysqli_connect('eys.r...
true
0223ed5dd103a7703360e3ca1d992ae109e8ed28
PHP
FlorianSW/escape-statistics
/backend/app/Domain/Event.php
UTF-8
2,316
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Domain; use InvalidArgumentException; use ReflectionClass; class Event { public int $id; public string $type; public string $time; public string $missionVersion; public string $island; public string $setting; public ?int $playerCount; public ?string $ending; pu...
true
453e650dc051a5eab08fb8d404fcf4be19807b3b
PHP
FelixOnline/Core
/src/FelixOnline/Core/User.php
UTF-8
14,137
2.671875
3
[]
no_license
<?php namespace FelixOnline\Core; use FelixOnline\Base\BaseDB; use FelixOnline\Base\BaseManager; use FelixOnline\Base\Type; use FelixOnline\Base\App; use FelixOnline\Base\AbstractUser; use FelixOnline\Exceptions\InternalException; /* * User class * * Fields: * user - * name - * visits - * ip - ...
true
21c5a948be9f49fe6fdc036c1fa004771ade4ab2
PHP
markorenic/ibdocs
/public_html/dbconnect.php
UTF-8
810
2.734375
3
[]
no_license
<?php #connection info $dbname = 'dbwmbsxra9qfuj'; $dbuser = 'um7bdcyp85wnp'; $dbpass = '351e)|1@$)u4'; $dbhost = 'localhost'; ///creates a connection $connect = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname); function connect(){ $link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Una...
true
1ee81779d7d9ee2ec8b3e35f7c797c3a15a4a754
PHP
MoldySloth/camagru
/login/classes/DB.php
UTF-8
4,910
3.59375
4
[]
no_license
<?php // database wrapper working with PDO database objects to connect to a mysql database // abstracted way to work with the DB // using a get instance static method... so that we dont need to connect to the db every time whe want to use it. If you were using a constructor method you would have to reconnect every tim...
true
d915afde20441d6c8752e95f98696ec2eac8580c
PHP
flanpst/zw-settings
/Repositories/Core/BaseEloquentRepository.php
UTF-8
2,295
2.578125
3
[ "MIT" ]
permissive
<?php namespace Modules\Settings\Repositories\Core; use App\Repositories\Exceptions\NotEntityDefined; use Modules\Settings\Repositories\Contracts\RepositoryInterface; class BaseEloquentRepository implements RepositoryInterface { protected $entity; public function __construct() { $this->entity = ...
true
44aeb6ffb2e1174f93c8aa55410cee69b467124e
PHP
seyuf/magento-actions-sample
/magento/dev/tests/static/framework/Magento/TestFramework/Dependency/LayoutRule.php
UTF-8
15,460
2.609375
3
[ "MIT", "OSL-3.0", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0" ]
permissive
<?php /** * Rule for searching dependencies in layout files * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\TestFramework\Dependency; class LayoutRule implements \Magento\TestFramework\Dependency\RuleInterface { /** * Default modules list. ...
true
ff8bed42ea55d078eb2fcbadd258cc39413112b9
PHP
jarvis657/snippet
/free-sky/FreeSky/FreeSky_Debug.class.php
UTF-8
12,192
2.828125
3
[ "MIT" ]
permissive
<?php /** * Debug class * @author TX <txthinking@gmail.com> * @link http://blog.txthinking.com * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU GPL v2 */ class FreeSky_Debug extends FreeSky_Compile{ public $variable_lines; public $switch_lines; public $foreach_lines; ...
true
a2931a576815dcf0a7f78aee517fa4f3d67bd477
PHP
cryptobuks1/ibhaan123-LaravelCryptoEX
/database/migrations/2018_07_11_143438_create_feedbacks_table.php
UTF-8
1,369
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateFeedbacksTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('feedbacks', function (Blueprint $table) { ...
true
3496557aacd02a24cbacd29dece171211a2fea8c
PHP
mosaxiv/cakephp-secure-target-blank
/src/View/Helper/HtmlHelper.php
UTF-8
778
2.515625
3
[ "MIT" ]
permissive
<?php namespace SecureTargetBlank\View\Helper; /** * {@inheritdoc} */ class HtmlHelper extends \Cake\View\Helper\HtmlHelper { /** * {@inheritdoc} */ public function link($title, $url = null, array $options = []) { $secure = $options['secureBlank'] ?? true; if (isset($options['...
true
c4a900a3a34ccf3a6731b170bf0d791e2d553da0
PHP
Adv-Web-Group-2/module-6
/submit-recipe.php
UTF-8
617
2.6875
3
[]
no_license
<?php // get the data to insert into the db $title = $_POST["title"]; $author = $_POST["author"]; $description = $_POST["description"]; $ingredients = $_POST["ingredients"]; $directions = $_POST["directions"]; // insert the data with the sql query include_once 'db_connect.php'; $s...
true
57bc310f31e1c752a9eb25ce366a2244fd628304
PHP
phpbe/mf
/src/User/UserFactory.php
UTF-8
681
2.796875
3
[ "MIT" ]
permissive
<?php namespace Be\Mf\User; use Be\Mf\Be; class UserFactory { private static $cache = []; /** * 获取一个用户 实例(单例) * * @return User | mixed */ public static function getInstance() { $cid = \Swoole\Coroutine::getuid(); if (isset(self::$cache[$cid])) { retur...
true
85c6f3679dbb71b9bdfea38e1267a62816ab0c9c
PHP
dcarbone/helpers
/src/JsonErrorHelper.php
UTF-8
2,834
2.921875
3
[ "MIT" ]
permissive
<?php namespace DCarbone\Helpers; /** * Class JsonErrorHelper * @package DCarbone\Helpers */ class JsonErrorHelper { /** * @param bool $includeErrorName * @param int|null $lastError * @return string */ public function __invoke($includeErrorName = false, $lastError = null) { r...
true
d3f245c11ba9811714963ea4b34294a896a1a2c2
PHP
publicwhip/publicwhipv2
/src/Providers/MailerTransportProvider.php
UTF-8
3,294
3
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace PublicWhip\Providers; use InvalidArgumentException; use Swift_NullTransport; use Swift_SendmailTransport; use Swift_SmtpTransport; use Swift_Transport; /** * MailerTransportProvider. */ class MailerTransportProvider implements MailerTransportProviderInterface { /** ...
true
8a1eaadc09694d324c47e8260e0039abfbaf522e
PHP
devkoks/Fantasy-CORE
/core/modules/tpl.class.php
UTF-8
4,043
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace core\module; class tpl { public static $requires = [ 'module'=>[], 'functions'=>[] ]; public function open($dir,$file) { $file = $dir.'/'.$file.'.tpl'; if(file_exists($file)){ if(filesize($file) != 0){ $text = fopen($file,'r'); $data = fread($text, filesize($file));...
true
a59e3f452fca5e14a446b68154e4fc2fbea38149
PHP
davidmcnamee/Hypixel-Site
/hypixel/results/games/SmashHeroesResult.php
UTF-8
2,415
2.546875
3
[]
no_license
<?php /** * * @author ddude */ class SmashHeroesResult extends Result { public static $heroes = array( 'Bulk' => 'THE_BULK', 'General Cluck' => 'GENERAL_CLUCK', 'Spooderman' => 'SPODERMAN', 'Void Crawler' => 'DUSK_CRAWLER', 'Tinman' => 'TINMAN', 'Karakot' => 'GOKU'...
true
b7aab04942ec42d8263706d4455ffefd4dfef562
PHP
Itrulia/ArtisanBlock
/src/Itrulia/ArtisanBlock/ArtisanBlockConsole.php
UTF-8
1,602
2.703125
3
[]
no_license
<?php namespace Itrulia\ArtisanBlock; class ArtisanBlockConsole extends \Illuminate\Console\Application{ /** * @var \Illuminate\Foundation\Application */ protected static $app; /** * Start a new Console application. * * @param \Illuminate\Foundation\Application $app * @return \Illuminate\Console\App...
true
231bc58b7f9bd81473a04af8a8a70a622133f8a5
PHP
tmkasun/me
/archives/old/blog/wp-content/themes/flat-bootstrap/page-fullwithposts.php
UTF-8
2,841
2.859375
3
[ "MIT", "GPL-3.0-only", "OFL-1.0", "GPL-1.0-or-later", "GPL-2.0-only", "CC-BY-3.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "OFL-1.1", "GPL-2.0-or-later" ]
permissive
<?php /** * Theme: Flat Bootstrap * * Template Name: Page - Full Width with Recent Posts * * Full width page template (no sidebar, no container) with 3 columns of recent posts * * This is the template for full width pages with no sidebar and * no container. It also lists your 3 most recent posts. This page tru...
true
bcd2cbcf1ab2a2474b2f88f6b501825a767f8ea6
PHP
slimux/PI_Final
/src/MyApp/VideoBundle/Command/SocketCommand.php
UTF-8
1,600
2.8125
3
[]
no_license
<?php // myApp/pidBundle/Command/SocketCommand.php // Change the namespace according to your bundle namespace MyApp\VideoBundle\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; // Include ratchet libs use...
true
b365cd1ada292cd7d9ba5846d8bb730c70c9918d
PHP
Zceiko/quejasDiaco
/claseestado.php
UTF-8
1,890
2.96875
3
[]
no_license
<?php require_once('conexion.php'); class Estado{ private $idEstado; private $estadoCaso; function __construct(){} /*function __construct($idServicio,$nombre,$activo) { $this->setIdServicio($idServicio); $this->setNombre($nombre); $this->setActivo($activo); }*/ /* ID GET Y SE...
true
c5bb5eec7e231ce7be670fc0aa79e81d6c0d27d6
PHP
villijoe/adminmylife
/Classes/Book.php
UTF-8
2,759
3.078125
3
[]
no_license
<?php class Book { private $title; private $writer; private $total_pages; private $reading_pages; private $reading; private $start_date; private $end_date; public function getTitle() { return $this->title; } public function getWriter() { return $this->writer; ...
true
d0b6f72ef27cfd21cdfcc2360ec56e16dcd42ec8
PHP
willianmano/soa-server
/public/index.php
UTF-8
2,726
2.515625
3
[]
no_license
<?php use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Model\User; require_once __DIR__.'/../bootstrap.php'; $app = new Silex\Application(); $app->get('/hello/{name}', function($name) use($app) { return 'Hello '.$app->escape($name); }); $app->get('/testeorm', fun...
true
edf2cb9bdec6af8296c8c1307baf5bd50ca1ec1d
PHP
IlyaNekhlyudov/PHP-second-course
/models/Cart.php
UTF-8
1,030
3
3
[]
no_license
<?php namespace app\models; class Cart extends Record { public $id; public $name; public $description; public $price; public $category_id; /** * Product constructor. * @param $id * @param $name * @param $description * @param $price * @param $category_id */ ...
true
efeeaddf50ef7753010abd2c345e2aaab5d9f6c8
PHP
nvbach91/4IZ278-2020-2021-LS
/www/palt04/cv09/user-required.php
UTF-8
801
2.546875
3
[ "MIT" ]
permissive
<?php require("./config/config.php"); session_start(); if (!isset($_SESSION['user_id'])) { header('Location: login.php'); exit(); } //v session je user id uzivatele, ted ho nacteme z db $stmt = $connect->prepare('SELECT * FROM users WHERE user_id = :user_id LIMIT 1'); //limit 1 jen jako vykonnostni ...
true
9ca748185d4f433dfb821d258fa45e432a133856
PHP
stacy-kendi/Freelance_Web_Based_Project
/freelancerpanel/includes/adminupdatecategories.php
UTF-8
2,621
2.65625
3
[ "MIT" ]
permissive
<!--Edit Categoried Form--> <form action="" method="POST"> <div class="form-group"> <label for="categoryTitle">Category Name:</label> <?php ...
true
ff6bc5bae68fef37db6d88d96333d40e64902688
PHP
BureauVierkant/basisregistratie-adressen-gebouwen
/src/Model/Woonplaats.php
UTF-8
3,357
2.765625
3
[]
no_license
<?php namespace BureauVierkant\Basisregistratie\Model; /** * Class Woonplaats * * @package BureauVierkant\Basisregistratie\Model */ class Woonplaats { /** * Een identificatiecode van een woonplaats is een authentiek gegeven zoals opgenomen in de landelijke woonplaatsentabel * * @var string ...
true
8be68095433e370254a2cfd04078362e4e96371d
PHP
AlexandraMihalcea/alecsandru29.github.io
/DulApp/userdata.php
UTF-8
4,185
2.515625
3
[]
no_license
<html> <head> <link rel="icon" type="image/png" href="image/login.png"> <link rel="stylesheet" type="text/css" href="css/userdata.css"> <title>Userdata</title> <script type="text/javascript" src="functii.js"></script> </head> <body> <?php $username=$_REQUEST["username"]; $password=$_REQUEST["password"]; ...
true
e5b0de5a900ba7c2dafe737a6df7fd560cd8210c
PHP
nayed/dataface-back
/app/Http/Controllers/DockerController.php
UTF-8
3,541
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Repositories\DockerRepository; use App\Http\Requests\DockerRequest; use App\Http\Requests; class DockerController extends Controller { protected $dockerRepository; public function __construct(DockerRepository $dockerRepository) { ...
true
93f12fa0759b73f71fac1e6721ed392b65cde60e
PHP
leonpro778/mob-orders
/api.methods.php
UTF-8
905
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Luk-Star * Date: 16.05.2017 * Time: 19:44 */ function addUser($decode_data) { global $db; $stmt=$db->prepare("INSERT INTO users(name, surname, user_type, add_data, active) VALUES(:name, :surname, '5', :add_data, '1')"); $stmt->bindValue(':name', $decode_data['...
true
dec468f1c4f1c399897aa9f90d61423b5b720b48
PHP
wcharlesm/FrontendFamlyTree
/rest/Relation.php
UTF-8
1,974
2.75
3
[]
no_license
<?php require_once("../config/config.php"); include(ENV_PATH."RestIOC.php"); /* $familyNotes = new SqlNoteFactory($familyDb); $familyNotes = new SqlNoteFactory($familyDb); $familyPeople = new SqlPersonFactory($familyDb); $familyRelations = new SqlRelationFactory($familyDb); */ /* function __construct($myId, $you...
true
775a4024472dcc9aa87cd3f7e065cb4a7efa4981
PHP
jermu01/pirtti
/backend/unlinkImage.php
UTF-8
758
2.734375
3
[]
no_license
<?php session_start(); $data = array(); $file = $_GET['file']; //GET file include_once 'db.php'; //database connection try { $stmt = $conn->prepare("SELECT FROM gallery_image WHERE file = :file"); //SELECT statement $stmt->bindParam(':file', $file); //bindParam variable unlink("../img/uploads/" . $fil...
true
dcf742ae7587fae08edaee3d288209e4e4d3d4f5
PHP
UFOP-CSI477/2016-02-atividades-amanda1996
/TrabFinal/app/Http/Controllers/ContatosController.php
UTF-8
3,695
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Contatos; use Auth; use DB; class ContatosController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); } /** * Displ...
true
752740e85a48b3b5f9fef4c8518063bb588c64c0
PHP
wowngasb/tiny
/src/Route/DefaultRoute.php
UTF-8
2,274
2.84375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: kongl * Date: 2018/1/25 0025 * Time: 12:03 */ namespace Tiny\Route; use Tiny\Exception\NotFoundError; use Tiny\Interfaces\RequestInterface; use Tiny\Interfaces\RouteInterface; use Tiny\Util; /** * Class DefaultRoute * DefaultRoute 是一种简单的路由协议, 他只匹配 uri 前缀 始终返回默认信息 */ ...
true
ded0720be94331e9b85af174b083fc25151f0c04
PHP
fsi-dev/fsi-php-sdk
/src/Providers/Ecobank/EcobankIndex.php
UTF-8
1,999
2.6875
3
[]
no_license
<?php namespace FsiEngine\Providers\Ecobank; use FsiEngine\Constants\Meta; use FsiEngine\Providers\Support\ProviderInterface; class EcobankIndex implements ProviderInterface { /** * @var $apiKey * @var $environmentURL * @var $providerBaseURL * @var $defaultArrayObject */ protected $a...
true
30cd381702726c0a1719935a67f3bd7b0f5c8d87
PHP
toastedcrumpets/DynamO-Website
/htdocs/pages/news.php
UTF-8
397
2.65625
3
[]
no_license
<?php /*Check that this file is being accessed by the template*/ if (!isset($in_template)) { header( 'Location: /index.php/404'); return; } $pagetitle="News"; //Look in the news directory and create a date sorted list of the news items $file_array=glob('pages/news/*.html'); rsort($file_array); ob...
true
3012facf172556657175cd7997837058ebac4d98
PHP
imageVote/imagevote_core
/getISO.php
UTF-8
857
2.6875
3
[]
no_license
<?php //if loaded if (basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { $phone = $_POST["phone"]; } $json_data = file_get_contents('phone/phoneCodes.json'); $phoneCodes = json_decode($json_data, true); $firstValues = substr($phone, 0, 4); if (!isset($phoneCodes[$firstValues])) { $f...
true
ebfa176f50b70799c6f5057875319fc82d7e7bb9
PHP
rhyshall/RecipeFish
/controller/recipeFeaturesController.php
UTF-8
5,336
2.875
3
[]
no_license
<?php /****************************************************************************************** ******************************************************************************************* ** Name: recipeFeaturesController.php **** ** Description: Provides functionality for verifying recipe features ent...
true
2cd3952e6cce132fa6684af407803e9ac76d8b75
PHP
flexiodata/flexio-web-app
/application/tests/base/01.20-util.php
UTF-8
15,312
2.671875
3
[ "MIT" ]
permissive
<?php /** * * Copyright (c) 2018, Flex Research LLC. All rights reserved. * * Project: Flex.io App * Author: Aaron L. Williams * Created: 2018-10-22 * * @package flexio * @subpackage Tests */ declare(strict_types=1); namespace Flexio\Tests; class Test { public function run(&$results) { ...
true
6e42ba667967cad53b81295df535ca8e4050167d
PHP
ahmadammak/StrategyGame
/CityController.php
UTF-8
1,542
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: aabukhalil * Date: 7/8/15 * Time: 5:35 PM */ class CityController { protected $city; function __construct($cityId) { // TODO: Implement __construct() method. } public static function getAllCitiesIds() { } public function getUserId() ...
true
0dfe37b24f86b1ba5ae1f71177c13cd700ea02de
PHP
mckayb/phantasy-recursion-schemes
/src/functions.php
UTF-8
1,316
3.046875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Phantasy\Recursion; function curry(callable $callable) { $ref = new \ReflectionFunction($callable); $numParams = $ref->getNumberOfRequiredParameters(); $recurseFunc = function (...$args) use ($callable, $numParams, &$recurseFunc) { if (count($args) >= $num...
true
47e3b3744a52be0b21b8ba1d98508e9fdd7b581f
PHP
inseluine/base
/study/php/paiza/D007.php
UTF-8
85
2.609375
3
[]
no_license
<?php $count = trim(fgets(STDIN)); for ($i = 0; $i < $count; $i++) { echo '*'; }
true
557d4fb1fb7f341b09f557ae6cc684c7751ef754
PHP
orderbynull/sanitizer
/src/sanitizers/StripTagsSanitizer.php
UTF-8
681
3.3125
3
[]
no_license
<?php namespace Sanitizers; use DI\Annotation\Inject; /** * Удаляет теги HTML и PHP. * * @package Sanitizers */ class StripTagsSanitizer implements SanitizerInterface { /** @var string */ protected $allowedTags; /** * StripTagsSanitizer constructor. * * @Inject({"stripTags.allowedTags...
true
51120c312fb78e0935c7d3d2488ebba41dec6424
PHP
PavilsDDz/beepy
/assets/functions.php
UTF-8
725
2.8125
3
[]
no_license
<?php function getData($name = "", $method="POST") { if($name == "") return false; $data = $method == "POST" ? (isset($_POST[$name]) ? $_POST[$name] : "") : (isset($_GET[$name]) ? $_GET[$name] : ""); return $data; } function getDataGET($name = "", $method="GET") { if($name == "") return false; ...
true
ec05f5725258e1e9271f8fd9fb97839dbf755499
PHP
f9ngw1d/ZendForm
/Manage/src/Manage/Model/TDbUnderSubjectTable.php
UTF-8
5,600
2.578125
3
[]
no_license
<?php namespace Manage\Model; use Zend\Db\TableGateway\TableGateway; use Zend\Paginator\Adapter\DbSelect; use Zend\Db\ResultSet\ResultSet; use Zend\Paginator\Paginator; use Zend\Db\Sql\Select; use Zend\Db\Sql\Sql; use Zend\Db\Sql\Where; class TDbUnderSubjectTable { protected $tableGateway; public function __...
true