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
8f883d3a0c831a7dec6d67e77e9e2cdd4d7227c6
PHP
naomi-monderer/runtrack2
/jour02/job05/index.php
UTF-8
240
3.046875
3
[]
no_license
<?php for ($nombre = 2;$nombre <= 1000; $nombre++){ for ($diviseur = 1;$diviseur <= $nombre){ $compteur = 0; } if($nombre%$diviseur==0){ $compteur++;} } if ($compteur==2){ echo $nombre; } ?>
true
93f015a4129690efafed7228c3e73268a32ee938
PHP
jadsakour/pharmacy
/database/seeds/InvoiceTypesTableSeeder.php
UTF-8
691
2.703125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Models\InvoiceType; class InvoiceTypesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Create the appropriate types $sell_invoice = new InvoiceType(); $sell_in...
true
0405f0dcbe6a637fab4c77aa4cfa1b33ba28b5f6
PHP
MaestroMaximus/presto-testo
/core/standards/wf1/res/check_md5s_post.php
UTF-8
437
2.625
3
[]
no_license
<?php function check_files() { foreach($_POST as $key => $value) { if(strncmp($key, "md5_", 4) == 0) { $field_name = substr($key, 4); if(isset($_POST[$field_name]) && md5($_POST[$field_name]) == $value) { return true; } else { return false; } } ...
true
fb194eb291180896abf3cb06d66ea78ba31c1cd4
PHP
andpop/burger-shop-php
/admin_without_twig.php
UTF-8
1,644
2.578125
3
[]
no_license
<?php require_once 'script/functions-admin.php'; $pdo = dbConnectPDO(); ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatibl...
true
5a56adad072cc2d9ecbb8f31c22695d0f14b6532
PHP
freud14/fake-blog-hacking
/blog_hack/include/members.php
UTF-8
1,641
2.65625
3
[]
no_license
<?php $search = ""; if(isset($_GET['search']) && !empty($_GET['search'])) { $search = " WHERE login LIKE '%".mysqli_real_escape_string($link,$_GET['search'])."%'"; } $sql = "SELECT id, login, email, level FROM user" . $search . ";"; $qu...
true
d48d3f17bda9d048911b9e91c5037284391423ce
PHP
mariogrieco/cloudlet
/Subir.php
UTF-8
2,441
2.515625
3
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <title>Mi primera app web :D</title> <link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'/>...
true
73e7f0adb920803d707ef162c987ffdf5fbfc2e6
PHP
gwissem-mention/ct20_ctlib
/Component/AWS/AwsS3.php
UTF-8
5,562
2.640625
3
[]
no_license
<?php namespace CTLib\Component\AWS; use Aws\Sdk; use Aws\S3\S3Client; use Aws\S3\Exception\S3Exception; use Aws\CommandPool; use Aws\CommandInterface; use Aws\ResultInterface; use GuzzleHttp\Promise\PromiseInterface; /** * Helper service to interact with AWS S3 service. * * Author David McLean <dmclean@celltrak....
true
af7d7dcefe6b6bfe149992bef98aceac93fccc35
PHP
Team-Tea-Time/thaliak
/code/app/HTTP/Controllers/CharacterProfilesController.php
UTF-8
1,475
2.515625
3
[ "MIT" ]
permissive
<?php namespace Thaliak\HTTP\Controllers; use Illuminate\Http\Request; use Thaliak\Models\CharacterProfile; class CharacterProfilesController extends Controller { public function __construct() { $this->middleware('auth:api'); } public function save(Request $request): CharacterProfile { ...
true
a72a6394daa57ecbdc0bc46f58acb81464f0d218
PHP
square/square-php-sdk
/src/Apis/LocationsApi.php
UTF-8
4,348
2.671875
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Square\Apis; use Core\Request\Parameters\BodyParam; use Core\Request\Parameters\HeaderParam; use Core\Request\Parameters\TemplateParam; use CoreInterfaces\Core\Request\RequestMethod; use Square\Http\ApiResponse; use Square\Models\CreateLocationRequest; use Square\Models\Creat...
true
d7ccc501ac246eb5311b02a3e0fd22511f1e79bd
PHP
MikSDigital/example-shop-app
/src/Model/CartModel.php
UTF-8
1,458
3.015625
3
[]
no_license
<?php namespace App\Model; use App\Entity\Product; use App\Repository\CartRepository; class CartModel { /** @var CartRepository */ private $cartRepository; public function __construct(CartRepository $cartRepository) { $this->cartRepository = $cartRepository; } public function addPro...
true
97e9a59dd39ad35f0626c66854653b1f1be09061
PHP
xiaolong8333/ForeignExchange
/server/Database.php
UTF-8
2,117
3.140625
3
[ "MIT" ]
permissive
<?php namespace server; class Database { private $mysqli; private $name; static public $instance; public $mysqlMes=[ 'db_host'=>'192.168.0.150', 'db_user'=>'root', 'db_pwd'=>'123456', 'db_name'=>'foreign_currency' ]; private function __construct() { ...
true
38e54a431e21953fbdf163d28d424fa9940acead
PHP
globocom/secDevLabs
/owasp-top10-2021-apps/a6/cimentech/app/html/modules/path/path.api.php
UTF-8
1,484
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @file * Hooks provided by the Path module. */ /** * @addtogroup hooks * @{ */ /** * Respond to a path being inserted. * * @param $path * An associative array containing the following keys: * - source: The internal system path. * - alias: The URL alias. * - pid: Unique path alias iden...
true
5702ccdea1de1801cfa21f212790b14967dadbd9
PHP
kbrintle/sme-wotcart
/common/models/settings/SettingsStore.php
UTF-8
3,888
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\settings; use common\components\CurrentStore; use Yii; use yii\helpers\VarDumper; /** * This is the model class for table "settings_store". * * @property integer $id * @property integer $store_id * @property string $logo * @property string $name * @property string $phone * @prop...
true
594771bb68c7c5f4f233bf5ce28a36f0c0d97a0b
PHP
K0sen/bsa-2018-php-5
/app/Services/GetMostChangedCurrencyCommandHandler.php
UTF-8
639
2.828125
3
[]
no_license
<?php namespace App\Services; class GetMostChangedCurrencyCommandHandler extends AbstractCurrenciesCommandHandler { /** * Returns most changed for 24h currency * * @return Currency */ public function handle(): Currency { $currencies = $this->currencyRepository->findAll(); ...
true
72cbfd7d12fe4df2e1a3de00046a3e276b13ed84
PHP
cekip88/Leka
/controllers/dater.php
UTF-8
267
2.703125
3
[]
no_license
<?php class Dater{ public static $data; public static function add($sdata){ if(!isset(self::$data)){ self::$data = []; } self::$data = array_merge(self::$data,$sdata); return self::$data; } public static function getData(){ return self::$data; } }
true
20e36c42ba5e79d6d58550f42984307332b8ff8d
PHP
luniva5/bsccsit
/app/Http/Controllers/EmployeeController.php
UTF-8
1,063
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class EmployeeController extends Controller { //public function show($name){ // $result='abc'; // return view('employee.show',compact('name'));//bhayena //} public function show($name,$second,$third){ $result=''; ...
true
72577b573c310bdc8d52d5ce95a86facb3d0ac7a
PHP
philipobiorah/calculator
/calculator.php
UTF-8
2,377
3.703125
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>Calculator in PHP</title> <style> body { background-color:bisque; text-align: center; } form{ margin-top: 5em; } ...
true
82b4bcad5b01c24193c680ac1fa9493902e3609b
PHP
BetaWareLtd/UnitTestPredavanje
/phpUnitTutorial/Test/URLTest.php
UTF-8
600
2.828125
3
[]
no_license
<?php namespace phpUnitTutorial\Test; use phpUnitTutorial\URL; class URLTest extends \PHPUnit_Framework_TestCase { /** *@dataProvider providerTestSlugiffyReturnsSluggifiedString */ public function testSlugiffyReturnsSluggifiedString($originalString, $expectedResult){ $url=new URL(); $res=$url->sl...
true
9cc7c49cbb01fc4885924d34c238e139d668dda1
PHP
pprzy/CIS330-Twitter
/CIS330-Twitter/accountCreation.php
UTF-8
2,097
2.96875
3
[]
no_license
<?php //Includes: include_once("./databaseTools.php"); function newAccountWidget() { if (isset($POST['submit'])) { $result = addUser(); if(!$result) { echo "Account creation was unsuccessful."; //createAccountForm(); } else { echo "Account creatio...
true
bb151a32265880fb5939861cc3c261000a4f2097
PHP
17eyes/17eyes
/tests/parser/bug60768.phpt
UTF-8
456
2.921875
3
[ "ISC", "BSD-3-Clause" ]
permissive
--TEST-- Bug #60768 Output buffer not discarded ?> <?php global $storage; ob_start(function($buffer) use (&$storage) { $storage .= $buffer; }, 20); echo str_repeat("0", 20); // fill in the buffer for($i = 0; $i < 10; $i++) { echo str_pad($i, 9, ' ', STR_PAD_LEFT) . "\n"; // full buffer dumped every time } ob_e...
true
d3f2f4ca96e908ce23a07d346c3b65475cccb8c0
PHP
DeepshikhaNUS/EFI
/efi-gnt/libs/gnd_v1.class.inc.php
UTF-8
4,394
2.890625
3
[]
no_license
<?php require_once(__DIR__ . "/gnd.class.inc.php"); class gnd_v1 extends gnd { private $page_size; private $page; private $query = array(); // list of queried items function __construct($db, $params, $job_factory) { parent::__construct($db, $params, $job_factory); } protected fu...
true
2464695594f2042fc813dd2156d5e8cc1a5aaa5d
PHP
primerg/demotest
/Alert/CounterDuration.php
UTF-8
2,739
2.796875
3
[]
no_license
<?php namespace IO\Utilities\Alert; use IO\Utilities\Alert\Counter; class CounterDuration extends Counter { public function count() { // print strtotime(date('2015-03-23 00:05:00'));die(); $errorRedCtr = 0; $errorYelCtr = 0; $duration = $this->rules->duration / 5; // since ou...
true
06a6e3629a9df6df06c73e4694098821cdb3e35a
PHP
tdimdimich/tt_yii2
/models/Author.php
UTF-8
963
2.53125
3
[]
no_license
<?php namespace app\models; use m160113_071553_CreateAuthor; use Yii; use yii\db\ActiveRecord; /** * This is the model class for table "authors". * * @property integer $id * @property string $firstname * @property string $lastname * * @see m160113_071553_CreateAuthor */ class Author extends ActiveRecord { ...
true
57c650c9ad8d39d98599c2c6911fabaea64d21eb
PHP
ozzner/SistemaWeb_LaRoca
/controller/controller_alumno.php
UTF-8
6,761
2.765625
3
[]
no_license
<?php //error_reporting(E_ALL ^ E_NOTICE); class AlumnoController { private $error; private $message; private $conexion; function __construct() { include_once '../util/util_constants.php'; include_once "../database/database_mysql.php"; include_once '../util/util_...
true
98288ef7e30df9e5885443c53db539333a0844be
PHP
AkibAlAmin/Shopping-Mall-Automation
/app/Http/Controllers/calculator.php
UTF-8
1,054
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; class calculator extends Controller { public function calculator(Request $request) { $firstvalue = $request->input('firstvalue'); $secondvalue = $request->input('secondvalue'); ...
true
ecfe005f649a1966d4f01fe83a82dd4a74db94bc
PHP
stas727/telegrambot
/app/Conversation/Flows/WelcomeFlow.php
UTF-8
762
2.515625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: stasm * Date: 12.12.2017 * Time: 16:24 */ namespace App\Conversation\Flow; use App\Conversation\Traits\HasStates; use App\Conversation\Traits\HasTriggers; use App\Conversation\Traits\SendMessages; class WelcomeFlow extends AbstractFlow { use HasTriggers, HasStates, ...
true
f0c8840d3bfacc3944f76dbf57e637e24d22d08f
PHP
Sebobo/Shel.Blog
/Classes/Fusion/Helper/AssetHelper.php
UTF-8
2,350
2.65625
3
[ "MIT" ]
permissive
<?php namespace Shel\Blog\Fusion\Helper; /* * * This script belongs to the Neos CMS plugin "Shel.Blog". * * * * @author Sebastian Helzle <sebastian@helzle.it> ...
true
114dd0df2df03142098e4b5b98c8b5841bd6c1fa
PHP
engineerings/DeckOfCards
/src/AppBundle/Tests/Utils/Game/Display/Type/TextDisplayerTest.php
UTF-8
628
2.78125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php declare (strict_types=1); namespace AppBundle\Utils\Game\Display\Type; use AppBundle\Utils\Game\Card\Card; use AppBundle\Utils\Game\Display\Type\TextDisplayer; class TextDisplayerTest extends \PHPUnit_Framework_TestCase { /** * @test */ public function correctly_show_card_to_string() {...
true
4411ed18cb9e1d92a3f8c9831acc66bf31af0d0b
PHP
md353/IS218-challenge2
/challenge2/index.php
UTF-8
1,882
2.6875
3
[]
no_license
<?php //====================================================================| // Michael De La Cruz | // IS218 | // Challenge 1 Index.php | //====================================================================| /* require 'File.php'; require 'readcsv.php'; requi...
true
166a430869d819988c1701debe83521f01bc5d18
PHP
Dizel995-1998/WebSocketMessenger
/src/Service/VirtualClass/VirtualClass.php
UTF-8
1,728
3.0625
3
[]
no_license
<?php namespace Service\VirtualClass; class VirtualClass { /** * @var VirtualProperty[] */ protected array $properties = []; /** * @var VirtualMethod[] */ protected array $methods = []; public function __construct( protected string $name, protected ?string $ex...
true
6cd7c7535186bbd85cca9d75dfb3888a55d5d073
PHP
hesna/dealify
/app/Rules/ArrayValuesForKeyAreUnique.php
UTF-8
2,563
3.375
3
[]
no_license
<?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; use Illuminate\Support\Arr; use InvalidArgumentException; /** * Class ArrayValuesForKeyAreUnique * Given an array [ * [ * a => value1, * b => value2, * ], * [ * a => value3, * b => value4, * ] * ] * This rule makes s...
true
ee2e243dc2dead060991e0663bed49c913fff1a3
PHP
cngddflzw/bms
/controllers/index.php
UTF-8
4,755
2.65625
3
[]
no_license
<?php if(!defined("BASE_URL")) die("BASE_URL is not define"); class Index extends __BaseController { public function __construct() { parent::__construct(); } public function index() { session_start(); $this->pageData["payerList"] = $this->loadConfig("paye...
true
756624008d6b89ade625140f7c9d3ae571e02223
PHP
leonnip/GESTION
/shop_gestion/export-excel-tarjeta.inc.php
UTF-8
8,471
2.578125
3
[]
no_license
<html> <head> <META httpequiv="ContentType" content="text/html; charset=UTF-8"> </head> <body> <?php $date = date('Y-m-d'); define('CHARSET', 'UTF-8'); header("Content-type: application/vnd.ms-excel; charset='".CHARSET."'"); header("Content-Disposition: attachment; filename=T_ordenes_".$date.".xl...
true
995c1ca0cc002002058d32d6be37f1c4fb289922
PHP
amphp/artax
/examples/8-benchmark.php
UTF-8
1,193
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // Usage ----------------------------------------------- // Default (10 x 100 requests): php examples/8-benchmark.php // Infinite (10 x 100 requests): php examples/8-benchmark.php 0 // Custom (10 x $count requests): php examples/8-benchmark.php $count use Amp\Artax\Client; use Amp\Artax\Response; use A...
true
061ba83c73d72afef3511c9b5b14a88b12075f6b
PHP
washingtonstateuniversity/askdruniverse.wsu.edu
/includes/dru-shortcodes.php
UTF-8
3,104
2.515625
3
[]
no_license
<?php /** * Class UComm_Shortcodes */ class dru_Shortcodes { /** * Setup the hooks. */ public function __construct() { add_shortcode( 'tag_cloud', array( $this, 'tag_cloud_display' ) ); add_shortcode( 'search_bar', array( $this, 'search_bar_display' ) ); add_shortcode( 'featured_q', array( $this, 'feature...
true
0af4ba6b355b5de171b8db0a0f08f29ab9538120
PHP
ivorobioff/symfony-basics
/src/ApiBundle/User/Serializers/UserByTypeSerializer.php
UTF-8
585
2.515625
3
[]
no_license
<?php namespace ApiBundle\User\Serializers; use ApiBundle\Client\Serializers\ClientSerializer; use ApiBundle\Support\Serializer; use CoreBundle\Client\Entities\Client; use CoreBundle\User\Entities\User; use RuntimeException; /** * @author Igor Vorobiov<igor.vorobioff@gmail.com> */ class UserByTypeSerializer extends...
true
da27ae9abec50bddc055c2ccaf6cbd211f4b546e
PHP
Clevis/Access
/tests/cases/Method/TestAccessMethod.php
UTF-8
655
2.890625
3
[ "BSD-3-Clause" ]
permissive
<?php class TestAccessMethod extends Object { private function _private() { return 1; } protected function _protected() { return 2; } public function _public() { return 3; } private static function privateStatic() { return 4; } protected static function protectedStatic() { return 5; } public ...
true
13d3bcd1b681a012f8f5d89b9502c6b5ad24e840
PHP
maestrano/mno-php
/lib/mno-php/src/MnoSettings.php
UTF-8
2,300
2.8125
3
[]
no_license
<?php /** * Holds Maestrano settings * * These settings need to be filled in by the user prior to being used. */ class MnoSettings { /** * The name of the application. * @var string */ public $app_name = 'myapp'; /** * Is SSO enabled for this application * @var boolea...
true
c633e200382885d6ed27b9ccc38706c2415a19de
PHP
desuex/autocomplete-from
/app/GeoResultLog.php
UTF-8
1,041
2.65625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * @property string result1 * @property string result2 * @property string result3 * @property string result4 * @property string result5 * @property string query * @property string ip * @property boolean served_from_db * */ class GeoResultLog ex...
true
b4e163ca89382ff0a68eda1f79e1970993bc1a94
PHP
digtyarenko/osnova-php-sdk
/src/Component/Model/AdditionalData.php
UTF-8
404
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Osnova\Api\Component\Model; use Osnova\Api\Component\Enum\AdditionalDataTypeEnum; /** * Class AdditionalData * @package Osnova\Api\Component\Model */ class AdditionalData extends Model { public AdditionalDataTypeEnum $type; public string $url; public int $size;...
true
0c4c5c797e6cd1e41bd558620a90a557f2795864
PHP
makeadiff/Phoenix
/database/migrations/2019_10_04_105533_create_Survey_Choice_table.php
UTF-8
952
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateSurveyChoiceTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('Survey_Choice', function (Blueprint $table) { ...
true
6b98f8668bbff2a270f40573f118fce6c9e56809
PHP
denstark/clisonic-php
/lib/msgQueue/shm.class.php
UTF-8
1,372
3.109375
3
[]
no_license
<?php namespace msgQueue; /** * Class for handling a message queue using SHM */ class csSHM extends csBase { private static $shmem; public static function queueMsg($msg) { $key = \csSettings::get(CS_MESSAGE_KEY); $queue = self::get($key, array()); $queue[] = $msg; self::set($key, $queue); ...
true
1b71a0c67f75a136996a867a8d879d9e822d8dfb
PHP
YoruNoHikage/Web-Unit-Test
/Model/UserModel.php
UTF-8
6,518
2.84375
3
[]
no_license
<?php require_once "Model.php"; class UserModel extends Model{ public function getAllUsers(){ $userArray = array(); $sth = $this->execute("SELECT * FROM users"); $req = $sth->fetchAll(); foreach($req as $userDb){ $user = new User(); $user->setUsername($userDb["username"]); $user->setHash...
true
247837aaefc54d236b193b750c58a5c77563cfdc
PHP
BaneleMK/Matcha
/user/matchme-v2.info.php
UTF-8
5,477
3.15625
3
[]
no_license
<?php try { session_start(); function tagmatch ($matchid, $seekerid, $conn) { $sql = "SELECT tag1, tag2, tag3, tag4, tag5 FROM usertags WHERE userid = '$matchid'"; $stmt1 = $conn->prepare($sql); $stmt1->execute(); $tags1 = $stmt1->fetch(); $sql = "SELECT tag1, ...
true
d30f2f8b8fca0d3c9b514d05cd50445dba547fd7
PHP
leoceolin/Generate-PDF-with-TCPDF-PHP
/index.php
UTF-8
3,279
2.71875
3
[]
no_license
<?php // Include the main TCPDF library (search for installation path). require_once('tcpdf.php'); require 'config.php'; /*$relatorio = new Buscar(); $getEnd = $relatorio->GetEndereco($CodEsc); $contEnd = 0; foreach($getEnd as $row){ $contEnd++; } for($i = 0; $i < $contEnd; $i++){ $nomeEsc = $getEnd[$i]["Nome"];...
true
01d457f29fae4954bf1b70b0ff5806a0886747cd
PHP
wp-boutique/boutique-gateway
/GatewayInterface.php
UTF-8
496
2.796875
3
[]
no_license
<?php namespace Boutique\Gateway; interface GatewayInterface { /** * Charge a transaction * @param integer $orderId */ public function charge($orderId); /** * Refund a transaction * @param integer $orderId */ public function refund($orderId); /** * Cancel a t...
true
f2db3afbb90f685a8bbeeab63c5da5cdf3761484
PHP
mimetic/corona-fontmetrics-generator
/index.php
UTF-8
3,784
2.6875
3
[]
no_license
<?php /* queryFontMetrics(): characterWidth: maximum character ("em") width characterHeight: maximum character height ascender: the height of character ascensions (i.e. the straight bit on a 'b') descender: the height of character descensions (i.e. the straight bit on a 'p') textWidth: width of drawn text in pixels ...
true
551f35c1e70108e73159ed64549164a4e26d26fe
PHP
dtabirca/phprapidrest
/example/ExampleResource.php
UTF-8
2,771
2.84375
3
[]
no_license
<?php namespace phprapidrest\example; use phprapidrest\Response; use phprapidrest\Resource; use phprapidrest\ResourceInterface; use phprapidrest\example\Util; use phprapidrest\example\ExampleController; class ExampleResource extends Resource implements ResourceInterface{ protected $allowed_methods = ['GET', 'POST...
true
cb6013197b35d94286242a0de8ea18cbe48d3184
PHP
Lordwesrer/kblog-php-blog-script
/database/seeders/ContactSeeder.php
UTF-8
640
2.578125
3
[]
no_license
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use DB; use Faker\Factory as Faker; class ContactSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create(); for($i=0;$i<10;$i++){ DB::t...
true
21d53edd52fe25e29a3778e47229f07fa7ffbb32
PHP
nickbe/tinyissue
/app/Form/FilterIssue.php
UTF-8
3,622
2.53125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Tinyissue package. * * (c) Mohamed Alsharaf <mohamed.alsharaf@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tinyissue\Form; use Request; use Tinyissue\Model; /** * Fil...
true
ba9a1524444178b28aa45fc07d6a6aa27b096eac
PHP
windsonPatricio/projetoIntegrador
/php-basico/ola.php
UTF-8
441
3.515625
4
[]
no_license
<!DOCTYPE HTML> <html> <head> <title>Exemplo</title> </head> <body> <?php $idade = (int)$_GET["idade"]; if($_GET["idade"]>=18){ echo "Maior Idade!". PHP_EOL; }else{ echo "Menor Idade!". PHP_EOL; } for($i=0;$i<$_GET["numero"];$i++){ echo "<p>".($_GET["numero"]-$i)."</p>"...
true
24999c6a4c45bf4f15018751645af2b66b68e645
PHP
KRDS/Validator
/src/validation/Unchanged.php
UTF-8
459
2.90625
3
[ "MIT" ]
permissive
<?php /** * Validates that the value has not been changed. * * @param mixed $reference Reference value to be checked against */ namespace Validation; class Unchanged extends \Validator\Validation_Abstract { protected $_reference; public function __construct($reference) { $this->_reference = $reference; } ...
true
52b8a60af0d9949b4a63f24b32842cbf7076259e
PHP
ksecurity45/OSWE
/AWAE-PREP-master/Edabit/php/twenty-eight.php
UTF-8
263
3.8125
4
[]
no_license
<?php /* we could have also done: return array_sum(array_map('abs', $arr)); */ function getAbsSum($arr) { $total = 0; forEach($arr as $i) $total += abs($i); return $total; } $array = [2, -1, 4, 8, 10]; echo sprintf("%d\n", getAbsSum($array)); ?>
true
402b2e2a01a7c282e6c1edacedbc2ffaac5b3cf1
PHP
ksupasak/mml-legacy
/protected/models/UserPin.php
UTF-8
653
2.59375
3
[]
no_license
<?php /** * @var integer $id * @var integer $user_id * @var string $pin * @property User $user */ class UserPin extends CActiveRecord { public static function model($className=__CLASS__) { return parent::model($className); } public function tableName() { return '{{user_pin}}'; } pu...
true
d469b36a762567e972b59a0861f3116f44f8308f
PHP
mercher-inc/mercher
/protected/components/AuthManager.php
UTF-8
14,325
2.671875
3
[]
no_license
<?php /** * Project: mercher * Author: Dmitry Les * Date: 12/23/13 * Time: 5:31 PM */ class AuthManager extends CPhpAuthManager { //ROLES const ROLE_OWNER = 'roleOwner'; const ROLE_SHOP_MANAGER = 'roleShopManager'; const ROLE_PRODUCTS_MANAGER = 'roleProductsManager'; const...
true
0ed7d2b0065b6ad2f1daf347a22e929f5b4fdb83
PHP
codyxia/laravel-develop-tools
/src/exception/BusinessException.php
UTF-8
291
2.59375
3
[ "MIT" ]
permissive
<?php namespace Cody\LaravelDevelopTools\exception; use Exception; class BusinessException extends Exception { public function __construct(array $codeResponse, $info = '') { [$code, $message] = $codeResponse; parent::__construct($info ?: $message, $code); } }
true
80b5dd5da7ad7e132c06a7dbbdced63cc9c8fe39
PHP
MechaChen/20190705phpLab_DD101
/exercise/22(�p��)/08orangeSwitch.php
UTF-8
1,335
2.796875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>08orangeSwitch</title> </head> <body> <?php echo "<table border=\"1\"> <tr> <th>等級</th> <th>40公斤以內</th> <th>超出40公斤</th> <th>超出100公斤</th> </tr> <tr> <td>1</td> <td>30元/公斤</td> <td>25元/公斤</td> <td>2...
true
b8f4eddfd4ff766e909d24846c2e74152407fa77
PHP
tejassawant54/iNeed-Application
/php/iNeed_Service_login.php
UTF-8
1,398
2.796875
3
[]
no_license
<?php //echo "In php...."; $input = file_get_contents("php://input"); $data = json_decode($input,true); $username = $data['username']; $password = $data['password']; $flag = $data['flag']; // Create connection $con=mysqli_connect("129.21.73.22","root","","iNeedDb"); //$con=mysqli_connect("localhost","root"...
true
fa08db4a531049345221e37b03ebf9c9678902fb
PHP
ge-tracker/influxdb-laravel
/src/InfluxDBManager.php
UTF-8
1,110
2.625
3
[]
no_license
<?php namespace GeTracker\InfluxDBLaravel; use GrahamCampbell\Manager\AbstractManager; use Illuminate\Contracts\Config\Repository; /** * @mixin \InfluxDB2\Client * * @author James Austen <james@ge-tracker.com> */ class InfluxDBManager extends AbstractManager { /** * The factory instance. */ pro...
true
7dbbe07a3554e9ea532b798975d4a1aa3ab93c2b
PHP
AMYCAMARA/exercicephp
/croissants.php
UTF-8
886
3.578125
4
[]
no_license
<?php $a = random_int(-15, 1150); $b = random_int(0, 10000); $c = random_int(-7000,12093); echo "la valeur de a est : {$a} <br>"; echo "la valeur de b est : {$b} <br>"; echo "la valeur de b est : {$c} <br>"; if($a<$b && $b<$c) { echo "les valeurs dans l'ordre croissants :{$a},{$b},{$c} <br> "; ...
true
1091e61ed2fc43a384b431a4a4b2b9bed7a32357
PHP
davinder17s/turbo
/system/components/eloquent/validator.php
UTF-8
610
2.625
3
[ "MIT" ]
permissive
<?php use Acme\Validation\Capsule\Manager as Validation; class Validator{ public static function __callStatic($name, $args) { // Define the locale and the path to the language directory. $validation = new Validation('en', APPDIR .'/lang'); // Adding a database connection is optional. O...
true
9a1b1e25b63f0f5341d26df4c76dd82a640883a7
PHP
mleczkopawel/zf3-doctrine
/module/Application/src/Service/MailService.php
UTF-8
1,929
2.65625
3
[]
no_license
<?php /** * User: mlecz * Date: 01.02.2017 * Time: 15:12 */ namespace Application\Service; use Zend\Mail\Exception\RuntimeException; use Zend\Mail\Message; use Zend\Mail\Transport\Sendmail; class MailService { public function send($data, $translator) { $mail = new Message(); $mail->setEnc...
true
4f3b32ab4cefd9b38f56ee0fc4676716640da735
PHP
jpbailey/games
/newname.php
UTF-8
1,683
2.84375
3
[]
no_license
<html> <head> <title>Editing Team Name</title> <link rel="stylesheet" href="./styles.css"> </head> <body> <?php // take a look at the bids that are coming in, read the correct // new values, update the database, give them the option of returning // to the previous submitbid.php page // set the environment require ('....
true
e82ee015fbb8107efa55cbc3b664d71519661251
PHP
marijang/kimanturadev
/wp-content/plugins/ct-ultimate-gdpr/includes/shortcode/shortcode-cookie-popup.php
UTF-8
1,733
2.703125
3
[ "MIT" ]
permissive
<?php /** * Class CT_Ultimate_GDPR_Shortcode_Cookie_Popup */ class CT_Ultimate_GDPR_Shortcode_Cookie_Popup { /** * @var string */ public static $tag = 'ultimate_gdpr_cookie_popup'; /** * CT_Ultimate_GDPR_Shortcode_Cookie_Popup constructor. */ public function __construct() { add_shortcode( self::$tag,...
true
860237411443748e2be357296a864a5a5b610bd5
PHP
do6po/switch-port-shutdowner
/app/Models/Switches/SwitchPortStatus.php
UTF-8
1,197
3.265625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: box * Date: 07.12.18 * Time: 13:36 */ namespace App\Models\Switches; class SwitchPortStatus { const UP = 1; const DOWN = 2; const UNKNOWN = 0; protected $portIndex; protected $portStatus; protected function __construct(int $port) { ...
true
8b0f62cae4174dfcd72d282108f4a2d207e53505
PHP
Zoumana-Sow/_kalansoSymfony
/src/Entity/Apprenant.php
UTF-8
1,607
2.515625
3
[]
no_license
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\ApprenantRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Serializer\Annotation\Groups; /** * @ORM\Entity(reposit...
true
13a91ce51a62952a209acb32cb7924d3a2b41dde
PHP
Mario-desu/PHP-BFI
/15schleife_while_select_auswahl.php
UTF-8
541
3.421875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Schulung</title> <meta charset="UTF-8"> <link rel="stylesheet" href="style.css"> </head> <body> <?php $zahl=1; $limit=5; $auswahl=4; // $output="<select name='anzahl'>\n"; while ($zahl<=$limit){ if($zahl===$auswahl)// $===$ -> identisch { $output.="\t<option selected>$za...
true
59009452b26a97475aa205a3ce98d6c6c833d27f
PHP
jarod2011/SimpleModel
/src/SimpleModel/Registry.php
UTF-8
575
3.015625
3
[]
no_license
<?php namespace SimpleModel; class Registry { private static $list = []; public static function set($key, $value, $ttl = 0) { self::$list[$key] = $value; } public static function get($key) { if (isset(self::$list[$key])) { return self::$list[$key]; } ...
true
13a6e4c840f27ec2c3fa101b1fd6aae142ea7aef
PHP
ArtARTs36/ConsoleGif
/src/Elements/Color.php
UTF-8
1,079
3.328125
3
[]
no_license
<?php namespace ArtARTs36\ConsoleGif\Elements; use ArtARTs36\ConsoleGif\ImageSource; class Color { private $red; private $blue; private $green; public function __construct(int $red, int $green, int $black) { $this->red = $red; $this->blue = $black; $this->green = $green...
true
a3d9a0c38f8b6fa622deae9727faa3c90615e9dd
PHP
eucalypto/potato
/php/first_steps.php
UTF-8
2,507
3.71875
4
[ "Unlicense" ]
permissive
<?php // this script is a trying of the things I learn from: // http://onlinephpguide.com/ echo "Hello, this is me", " and me", "<br />"; echo $_SERVER['HTTP_USER_AGENT'], "<br />"; $user_name = "Gandalf the Grey"; // Concatenate strings with (.) dot: print "I am called" . " " . $user_name; echo "<br />"; // strlen() ...
true
438d62beb24ac826e65492cece2237bae0f8d147
PHP
Srishti2398/Session3PHP_PDOlib
/insertdb.php
UTF-8
3,179
2.96875
3
[]
no_license
<?php $dbHost = "localhost"; $dbUser = "phpmyadmin"; $dbPassword = "ttn"; $dbName = "testDB"; try { $dsn = "mysql:host=" . $dbHost . ";dbname=" . $dbName; $pdo = new PDO($dsn, $dbUser, $dbPassword); } catch(PDOException $e) { echo "DB Connection Failed: " . $e->getMessage(); } $status = ""; if($_SERVER['REQUE...
true
71536966dccda0e99c9db7f46ab4cbf5a6827853
PHP
Rony-R/Proyecto-Industrias-IS902
/class/class-publicacion.php
UTF-8
5,326
2.875
3
[]
no_license
<?php class Publicacion{ private $id_publicacion; private $id_presupuesto; private $id_usuario; private $id_categoria; private $id_estado; private $nombre_proyecto; private $descripcion; public function __construct($id_publicacion, $id_presupuesto, $id_usuario, $id_categoria, $id...
true
a708cd66ff7186d182c150b01b4ca551c98368e7
PHP
MarsCube/AlgorithmByPhp
/leetcode/101-150/121.php
UTF-8
1,501
3.71875
4
[]
no_license
<?php /** * 买卖股票最佳时机,进行一次交易 * 动态规划求解 * 状态定义 定义DP[i][0]为第i天不持股时的利润 定义DP[i][1]为第i天持股时的最大利润 状态方程 针对第 i 天所获得的最大利润,分为两种情况: 针对第 i 天所获得的最大利润,分为两种情况: 如果第 i 天不持有股票,可能第 i - 1 天时就已经不持股,也可能是在第 i 天时卖出了股票。 如果第 i 天仍然持有股票,可能第 i - 1 天还没有卖出股票,那么当前的最大利润应该是第 i - 1 天的最大利润。也可能是之前已经卖出了股票,而在第 i 天时重新购入股票。 dp[i][0] = MAX(dp[i -...
true
b31bb2e33bb5ed35f0c133f83b2bccdff91735ed
PHP
awaoulale/projetWeb
/sup_util.php
UTF-8
1,627
2.515625
3
[]
no_license
<html> <?php $data=explode(" ", $_POST['utilisateurs']); $nom = $data[0]; $prenom = $data[1]; echo '<div id="infos">'; echo '<h2> Ajout de '.$prenom.' '.$nom.'</h2>'; echo '</div>'; session_start(); // On démarre la session AVANT toute chose $serveur="localhost"; $log="root"; $mdp=""; $bdd="projetweb"; ...
true
26065a70315d5e14f6c8e9d0852ccf78654cf5d5
PHP
k-dimitrijevs/product-catalog
/app/Services/ProductsServices/ListProductTagsService.php
UTF-8
450
2.671875
3
[]
no_license
<?php namespace App\Services\ProductsServices; use App\Models\Collections\TagsCollection; use App\Repositories\TagsRepository\MySqlTagsRepository; class ListProductTagsService { private MySqlTagsRepository $repository; public function __construct(MySqlTagsRepository $repository) { $this->reposit...
true
7167ff0c7d0688daeeb08ebe02c70bcd93f25695
PHP
jinguanio/laravel_cmp
/app/models/Img.php
UTF-8
1,855
2.96875
3
[]
no_license
<?php class Img{ protected $code_width; protected $code_height; protected $code_num; /** * 初始化验证码格式 */ public function __construct() { $this->code_width = Config::get('Img.captcha.width'); $this->code_height = Config::get('Img.captcha.height'); $this->code_num...
true
f11e391d674610d22b5496dd2d53da26ff750fef
PHP
gotnospirit/php-dpat
/System/FormInput/FormInputConfiguration.php
ISO-8859-1
1,893
3.171875
3
[]
no_license
<?php /** * @package FormInput * @class FormInputConfiguration * @author Jimmy CHARLEBOIS * @date 25-01-2007 * @brief Classe d'encapsulation des proprits de configuration d'un lment de formulaire */ System::import( 'System.Interfaces.FormInput.IFormInputConfigurati...
true
52e066807d9803d1751db1bfae5c2d0ca0da8bdb
PHP
svn2github/openbiz-cubi
/cubi/modules/tool/ToolListbox.php
UTF-8
10,246
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?PHP /** * FieldControl - class FieldControl is the base class of field control who binds with a bizfield * * @package BizView * @author rocky swen * @copyright Copyright (c) 2005 * @version 1.2 * @access public */ class ToolListbox extends Listbox { /* Special handling the SelectFrom dbs() ...
true
94ccb526ddc522929fe8767bcb556ae0e9a347bd
PHP
softsquad-git/world-design
/app/Services/Admin/Pages/PageService.php
UTF-8
493
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Services\Admin\Pages; use App\Models\Pages\Page; class PageService { public function store(array $data): Page { $item = Page::create($data); return $item; } public function update(array $data, Page $item): Page { $item->update($data); return...
true
ad240bf44b984c44773ee04616809ba610b35c5a
PHP
kleopatra999/paypal-14
/Bill/Req/PayPalStructBillUserReq.php
UTF-8
2,007
2.890625
3
[]
no_license
<?php /** * File for class PayPalStructBillUserReq * @package PayPal * @subpackage Structs * @date 2013-09-04 * @author Mikaël DELSOL <contact@wsdltophp.com> */ /** * This class stands for PayPalStructBillUserReq originally named BillUserReq * Meta informations extracted from the WSDL * - from schem...
true
14a010769fac686d10b1d576c68d4250f6de7ee7
PHP
viethoang0707/pico-e-learning
/appLms_bk/modules/scorm/CPManager.php
UTF-8
15,175
2.5625
3
[]
no_license
<?php /* ======================================================================== \ | FORMA - The E-Learning Suite | | | | Copyright (c) 2013 (Forma) | |...
true
e48bd6371c7cd698ab8884e796eef526bf1dc37c
PHP
iansingh/schmittens_beta_0.2
/files/xml/xml_export_events_terse.php
UTF-8
2,817
2.65625
3
[]
no_license
<?php session_start(); require "../include.php"; require "../functions.php"; require "../stagefunctions.php"; dbconnect(); $err = 0; //var_dump($_GET); //var_dump($_SESSION); $uid = $_GET['user_id']; $fs = $_GET['feedsecret']; $lid = $_GET['location_id']; //$t = $_GET['type']; // Party, Concert, Other, Exhibit...
true
b70c1a9c106995e1635338ae8ad4a120ab65c8ee
PHP
boxm16/super-clean-carpet
/Model/Item.php
UTF-8
4,200
2.875
3
[]
no_license
<?php require_once 'Product.php'; class Item extends Product { private $spot; private $code; private $year; private $length; private $width; private $square; private $forCleaning; private $forStoring; private $forMending; private $cleaningCharge; private $storingCharge; ...
true
933e40cc40f8c946d8f890cd6e2997ab29ec724d
PHP
donhatptit/miny-beta
/app/Console/Commands/SeoEquationGenerator.php
UTF-8
4,055
2.625
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Models\ChemicalEquation; use App\Helper\handleEquation; class SeoEquationGenerator extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'seo:equation '...
true
9d0778dec31b7a86535588b2ce04cf52f127cad8
PHP
yassinelfarhi/udoras
/src/FS/TrainingProgramsBundle/Model/Command/TrainingState/GetNextSlideCommand.php
UTF-8
2,913
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Vladislav * Date: 26.10.2016 * Time: 18:54 * Autor: <vladislav@fora-soft.com> */ namespace FS\TrainingProgramsBundle\Model\Command\TrainingState; use Doctrine\ORM\EntityManager; use FS\TrainingProgramsBundle\Entity\EmployeeTrainingState; use FS\TrainingProgramsBundle\Ent...
true
9e6430c9f09d9116c14c86928897be9621b06362
PHP
raven0230/PRS-COMP2411
/model/Paper/PaperDB.php
UTF-8
16,092
3.046875
3
[]
no_license
<?php include_once "../model/util/autoload.php"; class PaperDB { private $conn; function __construct() { $this->conn = DBHelper::getConnection(); } public function getSubmission($submissionId) { $fileSQL = "SELECT file, file_mime, time FROM Submission WHERE Submis...
true
ad32f004be4500126f6f63fdc33d9d9c12a9b166
PHP
mahidharakarapu/pizza1
/pizza/student_welcome.php
UTF-8
3,274
2.671875
3
[]
no_license
<?php include '../view/header.php'; ?> <main> <section> <h1>Welcome Student!</h1> <h2>Available Sizes</h2> <table> <?php foreach ($sizes as $size) : ?> <tr> <td> <?php echo $size['size']; ?> ...
true
e4a8ca4b5c3091fe28381db251caa0eef651f618
PHP
akop0505/fus_school_public
/auth/User.php
UTF-8
1,293
2.65625
3
[]
no_license
<?php namespace app\auth; use yii\web\IdentityInterface; use yii\web\User as BaseUser; use yii\db\Expression; /** * Class User * @package app\auth * * @property \app\models\User|null $identity */ class User extends BaseUser { /** * @var array */ public $superAdmins = []; /** * @inh...
true
e1fdbad1e6eaddc0c3495a351925e70da3cf3e20
PHP
Roberto0596/Kn_pos
/modelos/compra.modelo.php
UTF-8
4,085
2.828125
3
[]
no_license
<?php require_once "conexion.php"; class ModeloCompras { public $Id_venta; public $Folio; public $Id_usuario; public $Id_proveedor; public $Id_almacen; public $Fecha; public $Hora; public $ListaProductos; public $TotalVenta; function __construct($Id_venta, $Folio, $Id_usuario, ...
true
2345b293b22dfa7eeada78742b139d1609c3e73d
PHP
xwoor/Basic-Task
/includes/db.php
UTF-8
275
2.546875
3
[]
no_license
<?php $server = "localhost"; $user = "root"; $password = ""; $dbname = "task"; $conn = mysqli_connect($server, $user, $password,$dbname); if (!mysqli_set_charset($conn, "utf8")) { printf("Error cargando el conjunto de caracteres utf8: %s\n", mysqli_error($conn)); } ?>
true
021365480491d573dd2b02ba353291d02ef7f9fa
PHP
TrinhCDanh/Quanlymarket
/app/Repositories/Eloquent/CoSoCungCapRepository.php
UTF-8
4,745
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Eloquent; use App\Models\CoSoCc; use App\Repositories\Contracts\CoSoCungCapRepositoryInterface; use DB; class CoSoCungCapRepository implements CoSoCungCapRepositoryInterface { private $coSoCungCap; public function __construct() { $this->coSoCungCap = new CoSoCc()...
true
7fcff313c77450c34a3e89a00ec40c13b822d7c5
PHP
webteractive/expressionengine-env
/system/ee/EllisLab/ExpressionEngine/Model/File/FileDimension.php
UTF-8
6,770
2.5625
3
[ "LGPL-2.1-only", "OFL-1.1", "LicenseRef-scancode-unknown-license-reference", "Swift-exception", "Apache-2.0", "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
permissive
<?php /** * This source file is part of the open source project * ExpressionEngine (https://expressionengine.com) * * @link https://expressionengine.com/ * @copyright Copyright (c) 2003-2019, EllisLab Corp. (https://ellislab.com) * @license https://expressionengine.com/license Licensed under Apache License...
true
75d4e05e1978ae835d7eb1665ef87b6a50ac75f7
PHP
almamaka/php_gyak
/php/oop_calc_autok/autok/class/sql.php
UTF-8
1,649
3.140625
3
[]
no_license
<?php require "database.php"; class Sql extends Database{ //Használom a szülőosztály konstruktorát -> lefuttatom a database osztályon belüli konstruktort -> az attribútumoknak értéket adtam public function __construct(){ parent::__construct(); } //Autók feltöltés...
true
f741f85bcaddb2a9430c1a4756e09825b0038ce7
PHP
digiaonline/common-sanitization-stages
/src/Stages/HtmlPurifierStage.php
UTF-8
860
2.84375
3
[ "MIT" ]
permissive
<?php namespace Digia\Sanitization\Stages; use HTMLPurifier; use HTMLPurifier_Config; use League\Pipeline\StageInterface; /** * Class HtmlPurifierStage * @package Digia\Sanitization\Stages */ class HtmlPurifierStage implements StageInterface { /** * @var HTMLPurifier_Config */ private $config; ...
true
ef236f3fe43504f8c2c73732d636acbc49e2dcff
PHP
PatB93/flintwaterpublic
/includes/queries.php
UTF-8
409
2.59375
3
[]
no_license
<?php require_once "database_config.php"; function queries($choice) { global $mysqli; $choice = $mysqli->real_escape_string($choice); if (strcmp($choice, "lead") === 0) $query = "SELECT * FROM `waterCondition` ORDER BY `leadLevel` ASC"; else if (strcmp($choice, "providers") === 0) $query = "SELECT * FROM `R...
true
4efd18cbf4368fd44353ec1c2e7ac668069111f6
PHP
melisa014/holzner-koterov
/OOP/oop4FileLoggerExtended.php
UTF-8
3,320
3.234375
3
[]
no_license
<?php require_once ('oop4FileLogger.php'); class FileLoggerExtended extends FileLogger implements Interjections// передача методов через наследования классов { use Chukcha { Chukcha::cold as winterIsComming; } //Все свойства/поля базового класса наследуются public $f; //Открытый файл p...
true
d2c4a95d969350d98b65bc84533191cbc1cf3483
PHP
eternalphp/framework
/src/framework/Container/Container.php
UTF-8
813
3.015625
3
[]
no_license
<?php namespace framework\Container; use ArrayAccess; class Container extends AbstractContainer implements ArrayAccess { protected static $instance; /** * Set the globally available instance of the container. * * @return static */ public static function getInstance() { if...
true
4df6a34f0da2ac62f1218a3f346481a9ebed8015
PHP
karayabin/universe-snapshot
/universe/Ling/Meredith/Dictionary/DictionaryInterface.php
UTF-8
210
2.640625
3
[]
no_license
<?php namespace Ling\Meredith\Dictionary; /* * LingTalfi 2016-01-02 */ interface DictionaryInterface { /** * @param $word * @return false|string */ public function search($word); }
true
6aff38952855e1f2aae57d4aab7712a9ea3f1a51
PHP
ed-fruty/SimpleBus
/Bundle/SymfonyBridge/src/Logger/MessageLogger.php
UTF-8
1,197
2.859375
3
[ "MIT" ]
permissive
<?php namespace SimpleBus\SymfonyBridge\Logger; class MessageLogger { const LIMIT_ACTION_THROW_EXCEPTION = 1; const LIMIT_ACTION_DISCARD_AND_STOP = 2; private $logLimit; private $limitAction; private $messages; private $numMessages = 0; private $enabled = true; public function __co...
true
1225e7c34a2f18f7e2ac52f44f186cff3333833e
PHP
Jekman87/it
/application/forms/Login.php
UTF-8
877
2.53125
3
[]
no_license
<?php class Application_Form_Login extends Zend_Form { public function init() { $username = new Zend_Form_Element_Text('username'); $username->setLabel('Логин:') ->setRequired(true) ->addValidator('NotEmpty', true, array('messages' => arra...
true