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
177e3f2c58bd8c36328a2403569bcdb12e84d9d3
PHP
guglielmoseminara/laravel-apidoc-generator
/src/Tools/Traits/FormRequestHelpers.php
UTF-8
13,622
2.6875
3
[ "MIT" ]
permissive
<?php namespace Mpociot\ApiDoc\Tools\Traits; use Mpociot\ApiDoc\Tools\RuleDescriptionParser as Description; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Faker\Factory; trait FormRequestHelpers { public function getParams($rules, $formRequest) { ...
true
e523ceee4d815a897ea3fbd291dc89e8df6d9289
PHP
swayok/PeskyCMF
/src/Console/Commands/CmfMakeApiDocCommand.php
UTF-8
4,087
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PeskyCMF\Console\Commands; use Illuminate\Support\Arr; use Illuminate\Support\Str; use PeskyCMF\ApiDocs\CmfApiDocumentation; use Swayok\Utils\File; use Swayok\Utils\Folder; class CmfMakeApiDocCommand extends CmfCommand { protected $description = 'Create class that e...
true
310897648ade1b3d2738f369286c887a97d25a75
PHP
bariew/adventure-time
/web/protected/extensions/mailer/MailManager.php
UTF-8
2,376
2.625
3
[]
no_license
<?php class MailManager extends CApplicationComponent { public $mailer; public function getContentPattern($model, $patternName) { if(!$pattern = Yii::app()->config->get($patternName)) $pattern = $patternName; $body = array(); foreach($model->getSafeAttributeNames() as $attribute){ ...
true
4c5015640701f7768e07667b96ff8e51bb0a0e43
PHP
Ivan12273/sistema-busqueda-y-recuperacion
/roosterSearchEngine/searchEngine.php
UTF-8
8,981
2.734375
3
[]
no_license
<?php //Desactivar cors header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method"); header("Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE"); header("Allow: GET, POST, OPTIONS, PUT, DELETE"); ...
true
f44d0536669e7725eea2cfcc41adf2ac0595521f
PHP
pechatnov/bitrix-skeleton-fork
/database/examples/2019_08_21_152526_044482_add_crmguru_api_user.php
UTF-8
1,215
2.546875
3
[]
no_license
<?php use App\Core\BitrixProperty\Property; use App\Models\User; use Arrilot\BitrixMigrations\BaseMigrations\BitrixMigration; /** * Миграция для создания пользователя для работы с api для crmguru * Class AddCrmguruApiUser20190821152526044482 */ class AddCrmguruApiUser20190821152526044482 extends BitrixMigration { ...
true
835c1547c2adf7ff6ff2d6f1ae99ec6cf73fe6c0
PHP
Michelleannie02/fwphp
/fwphp/glomodul/z_examples/02_mvc/ha_oumar_imgs/z_runner/src/Domain/Model/RunResult.php
MacCentralEurope
1,355
3.03125
3
[ "MIT" ]
permissive
<?php /** * domain layer 04. RELATION CLASS * We will use it from the Runner models perspective, so it contains Run. Runner id is needed only for easier integration with other layers of the app. It also holds a time result which runner achieved during the competition. * * RunParticipation model is very similar. It...
true
a51dc9f975637866cf19cc8d6cd2cf4207b787a2
PHP
norealuser/desktop.rent
/OLD/Classes/Controllers/SharePoint.php
UTF-8
3,276
2.71875
3
[]
no_license
<?php namespace Classes\Controllers; use Classes\Utils\Curl; use Classes\Utils\Common; use Classes\Utils\Safety; use Classes\Models\SharePoint\Connection\Connector; class SharePoint { public $connector; public function __construct() { $this->connector = new Connector(); } # @http POST /...
true
a6ff5894349dae309d1b9e6d19f5d501aecd0716
PHP
terry-texas-us/tng123
/adminlog.php
UTF-8
823
2.53125
3
[ "MIT" ]
permissive
<?php function adminwritelog($string) { global $admtext, $currentuserdesc, $time_offset; require "config/logconfig.php"; $string .= " (" . _('User') . ": $currentuserdesc)"; $lines = file($adminlogfile); if ($adminmaxloglines && sizeof($lines) >= $adminmaxloglines) { array_pop($lines); ...
true
20b8c788aa7acbee503f70096a280610e7bc5c89
PHP
paulouskunda/clinicManagementSystem
/admin/pages/filesAdded.php
UTF-8
4,365
2.8125
3
[ "MIT" ]
permissive
<?php require '../../includeFiles/Connection.php'; require '../../includeFiles/functions.php'; $timestamp = date("Y-m-d H:i:s"); if (isset($_POST['patientSubmit'])) { # code... $firstName = mysqli_real_escape_string($con, $_POST['firstName']); $lastName = mysqli_real_escape_string($con, $_POST['lastName']); $o...
true
d4860451fb944b592ea901c4d04d3c850ca2a58f
PHP
CharlotteMGT/PHP
/TP7/Ex3.php
UTF-8
856
3.71875
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>TP7</title> </head> <body> <h1>Ex 3</h1> </body> </html> <?php trait Un { function small($string) { echo "<small>$string</small>"; } function big($string) { echo "<h4>$string</h4>"; } } t...
true
a3169693eb5c001ad6cea2518bdc31e93ff0409c
PHP
Caand95/SolSystem
/Source/Controller/CelestialElementController.php
UTF-8
802
2.875
3
[]
no_license
<?php require_once "./Model/CelestialElementDbRepository.php"; class CelestialElementController { private $celestialElementRepository = null; public function __construct() { $this->celestialElementRepository = new CelestialElementDbRepository("127.0.0.1", "root", "", "PlanetDB"); } publi...
true
340a8d3bdb2a52e522aabd3cfcb7498cb824a7ee
PHP
rihno100/php-mysql
/insert_information.php
UTF-8
844
2.78125
3
[]
no_license
<?php $servername ="localhost"; $username ="*****"; $password ="*****"; $dbname ="*****"; $name = $_POST['name']; $inforText = $_POST['inforText']; $sex = $_POST['sex']; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connec...
true
182dff478e1a55d7e4b3528d95511130897c8b36
PHP
deezzel/triary_php
/model/Publications.php
UTF-8
2,276
3.046875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Publications * * @author Artem Mihelson <artem.mihelson@gmail.com> */ final class Publications { ...
true
dd057a95bf841b792a0aa5107f4af9c95050bc96
PHP
matthewcreanrieger/online-pizza-ordering
/pizza.php
UTF-8
8,412
2.703125
3
[]
no_license
<?php require('PasswordHash.php'); require('db.php'); require('functions.php'); $content = ""; $_SESSION['extrapizzas'] = ""; $aftercontent = ""; $_SESSION['i'] = 1; try { $pdo = new PDO("mysql:host=$host;dbname=$dbname", $user,$password); $pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_WARNING); } catch (P...
true
21a9471dda62ae225c36db2834de1eb08595265f
PHP
antonkatz/binogi-completed-challenge
/tests/Unit/SpotifySearchTest.php
UTF-8
3,692
2.671875
3
[]
no_license
<?php namespace Tests\Unit; use Tests\TestCase; use PHPOption\{Some, None, Option}; use App\RemoteServices\SpotifySearch; use Tests\Unit\Helpers\SingletonTokenContainer; /** * Tests for Spotify search, that acts as a wrapper around the API and performs pagination. */ class SearchCommandsTest extends TestCase { ...
true
b7aacfb302bcfcaa0613512b77b23dc612c9d57c
PHP
adrigo/PHP
/POO/Coche.php
UTF-8
338
3.03125
3
[]
no_license
<?php //Requiero el archivo de clase para extenderlo en este script require_once("Vehiculo.php"); class Coche extends Vehiculo { function puedeAparcar($miPlanta){ //True si está en el array y no es superficie return (array_search($miPlanta,$this->plantas) !== false && array_search($miPlanta,$this->plantas...
true
80dd49587fca3b62d1bb3e9c134310e9ceae1785
PHP
yanaFramework/yanaFramework
/trunk/libs/yana/db/ddl/changelog.php
UTF-8
6,300
2.609375
3
[]
no_license
<?php /** * YANA library * * Software: Yana PHP-Framework * Version: {VERSION} - {DATE} * License: GNU GPL http://www.gnu.org/licenses/ * * This program: can be redistributed and/or modified under the * terms of the GNU General Public License as published by the * Free Software Foundation, either version...
true
e3e67f0ce8b04986958b6dc431197b6c132187a1
PHP
samihabakri/D2S-Dataverse
/OtherServices/User_Story22/datasets.php
UTF-8
23,291
2.890625
3
[ "Apache-2.0" ]
permissive
<?php session_start(); function getArrayKeysFlat($array) { if(!isset($keys) || !is_array($keys)) { $keys = array(); } foreach($array as $key => $value) { $keys[] = $key; if(is_array($value)) { $keys = array_merge($keys,getArrayKeysFlat($value)); } } return...
true
c78043e3573188fe5f01fd50dfcedb8f4f33192f
PHP
hsemix/pecee
/src/Model/ModelCollection.php
UTF-8
1,510
2.84375
3
[ "MIT" ]
permissive
<?php namespace Pecee\Model; use Pecee\Collection\Collection; class ModelCollection extends Collection { protected $type; /** * @return string */ public function getType() { return $this->type; } /** * @param string $type */ public function setType($type) ...
true
06d6ebaa540c3cb6e155d82c410737e2a7c103b1
PHP
sorcerershell/Learn-Symfony-Angular-WarehouseApp
/src/AppBundle/Transformer/ProductTransformer.php
UTF-8
720
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: gusprie * Date: 4/24/17 * Time: 7:11 PM */ namespace AppBundle\Transformer; use AppBundle\Entity\Product; use League\Fractal\TransformerAbstract; class ProductTransformer extends TransformerAbstract { public function transform(Product $product) { $data...
true
709a5a9309e22c67db930a8174f615f22b43f4c8
PHP
DerDu/AIO-System
/Library/PhpFunction.php
UTF-8
7,822
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * PhpFunction Library * * Extends (existing/missing) PHP-Functionality * // --------------------------------------------------------------------------------------- * LICENSE (BSD) * * Copyright (c) 2011, Gerd Christian Kunze * All rights reserved. * * Redistribution and use in source and binary form...
true
4f36e4d3786d90b2681202a6c2e80f7f137daaf4
PHP
TweetyBoop/TrackTik
/ElectronicItem.php
UTF-8
4,220
3.296875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: tanyalamontagne * Date: 2020-03-10 * Time: 4:50 PM */ class ElectronicItem { const ELECTRONIC_ITEM_TELEVISION = 'television'; const ELECTRONIC_ITEM_CONSOLE = 'console'; const ELECTRONIC_ITEM_MICROWAVE = 'microwave'; const ELECTRONIC_ITEM_CONTROLLER = 'contr...
true
e524db4fa46623495d33465283f465f36f2c8692
PHP
MedElfadhelELHACHEMI/Tesseract-Symfony
/Tesseract-Symfony/src/Tesseract/MOOCBundle/Redirection/AfterLoginRedirection.php
UTF-8
2,330
2.609375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace Tesseract\MOOCBundle\Redirection; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpF...
true
4b96eb0dac3a0e180f1ed0960d32a4c96ac9d765
PHP
daniloGuinami/importacao-csv
/app/Repository/EmpresaRepository.php
UTF-8
928
2.640625
3
[]
no_license
<?php namespace App\Repository; use App\Empresa; use App\User; class EmpresaRepository { private $empresa; public function __construct(Empresa $empresa) { $this->empresa = $empresa; } public function getAll() { return $this->empresa->all(); } public function getIdEm...
true
d5c71a40ebfad3a8e754dd7f8bc4046cc09d3b8d
PHP
kimill1394/phpcourse
/myphp/23filetest4.php
UTF-8
630
3.453125
3
[]
no_license
<? php // 1) 파일열기 // - fopen() // http://php.net/manual/en/function.fopen.php // 파일핸들 = fopen(파일명, 열기옵션); // 옵션 // -r : 파일 읽기모드 // -w : 파일 쓰기모드(덮어씌우기. 초기화) // -a : 파일 추가모드(파일 포인터가 EOF로 이동됨) // -r+, w+ // 반환값: 파일 핸들 $handle_r = fopen("old.txt","r"); $handle_w = fopen("new1.txt","w"); // 2) 파일사용 while(!feof($hand...
true
9762d20c8bb0c86496b239b5dc9dbd404c135b3e
PHP
Hypnobox/migrations
/src/Hypnobox/Migration/Command/MigrateCommand.php
UTF-8
4,281
2.5625
3
[]
no_license
<?php namespace Hypnobox\Migration\Command; use DirectoryIterator; use Doctrine\DBAL\Schema\SchemaDiff; use Exception; use RegexIterator; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Y...
true
37178447855bacc85b4993e32702edad41cca721
PHP
pilkhufterm5/armedica
/rh_ChangeDateInvoice.php
UTF-8
3,161
2.53125
3
[]
no_license
<?php /* * iJPe * realhost * 2010-05-25 * * Se realizo este archivo para implementar la funcionalidad de cambio de fecha a las facturas */ $PageSecurity = 10; include('includes/session.inc'); $title = _('Cambiar fecha a factura'); include('includes/header.inc'); If (isset($_POST['verInv']) || isset($_POST['c...
true
2993f4b6cb82e8c20606c8806b778e9a93d41c86
PHP
seriti/slim3-skeleton
/app/User/Report.php
UTF-8
3,695
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\User; use Seriti\Tools\Form; use Seriti\Tools\Report AS ReportTool; class Report extends ReportTool { //configure public function setup() { //$this->report_header = ''; $this->always_list_reports = true; $param = ['input'=>['select_dates','select_user']...
true
254280a0a1377a31ce4380fe04144990466118ac
PHP
g1a/hubph
/src/Git/WorkingCopy.php
UTF-8
17,009
2.75
3
[ "MIT" ]
permissive
<?php namespace Hubph\Git; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; use Symfony\Component\Filesystem\Filesystem; use Hubph\Util\ExecWithRedactionTrait; class WorkingCopy implements LoggerAwareInterface { use ExecWithRedactionTrait; use LoggerAwareTrait; protected $remote; prot...
true
a8b710bdf584c5b3a91b96fafdd1a38c7c59e792
PHP
matecat/simple-s3
/src/Commands/Handlers/HasBucket.php
UTF-8
952
2.671875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Simple S3 package. * * (c) Mauro Cassani<https://github.com/mauretto78> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace Matecat\SimpleS3\Commands\Handlers; use Matecat\SimpleS3\C...
true
d26b25da2dc7f0fd74071442aa58595655663c24
PHP
gongmingge/iot-sdk
/src/Ty/TimeClient.php
UTF-8
6,196
2.875
3
[ "MIT" ]
permissive
<?php namespace IotSpace\Ty; use IotSpace\Support\HttpMethod; /** * 定时管理 * https://developer.tuya.com/cn/docs/cloud/timing-management?id=K95zu050h5m53 * @package IotSpace\Ty */ class TimeClient extends BaseClient { /** * 设备添加定时任务 * @param string $deviceId 设备ID * @param string $category 定时分类 ...
true
e20c8bcd986f956ec5a76a96301734f27da5f40c
PHP
williamgomes/json-data
/src/src/YOC/Provider/DataProvider/ApiDataProvider.php
UTF-8
1,363
2.828125
3
[]
no_license
<?php namespace YOC\Provider\DataProvider; use GuzzleHttp\Client; use GuzzleHttp\Exception\ClientException; use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException; class ApiDataProvider implements DataProviderInterface { const JSON_REPORT_DATA_URL = 'https://yoc-media.github.io/weather/report'...
true
5e3ff8bbe23d493231b2a1ced20a0942477c371d
PHP
adilsongomesjunior/mundosdemirr
/homedir/public_html/wiki/languages/classes/LanguagePt_br.php
UTF-8
300
2.890625
3
[]
no_license
<?php /** Brazilian Portugese (Portuguêsi do Brasil) * * @addtogroup Language * */ class LanguagePt_br extends Language { /** * Use singular form for zero (see bug 7309) */ function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) { return $count <= '1' ? $w1 : $w2; } }
true
41881eb619fdc2011b3ecd120fd0b8f0cd11cc01
PHP
elernonelma/paraunit
/tests/BaseUnitTestCase.php
UTF-8
2,989
2.53125
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Tests; use Paraunit\TestResult\Interfaces\PrintableTestResultInterface; use Paraunit\TestResult\Interfaces\TestResultInterface; use Paraunit\TestResult\TestResultFormat; use Paraunit\TestResult\TestResultWithSymbolFormat; use PHPUnit\Framework\AssertionFailedError; use Tests\...
true
f067e678cd6cd114ae85acf9b4f914f7e5c9f77d
PHP
Dukecity/DoctrineExtensions
/tests/Query/Mysql/CastTest.php
UTF-8
1,490
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace DoctrineExtensions\Tests\Query\Mysql; use DoctrineExtensions\Tests\Entities\BlogPost; use DoctrineExtensions\Tests\Query\MysqlTestCase; final class CastTest extends MysqlTestCase { private $entityLong = BlogPost::class; private $entityShort = 'BlogPost'; public function testSimpleSqlQue...
true
a2c510e5222073a5fb9528c1637014673aaed42d
PHP
friends-of-presta/fop_console
/src/Commands/Category/CategoryProductsCount.php
UTF-8
6,293
2.65625
3
[ "AFL-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Copyright (c) Since 2020 Friends of Presta * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file docs/licenses/LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/l...
true
0d9b3bfcc6ef5997d0de3cdadf6c736273d7873b
PHP
jelenailic7/Movies-BE
/database/factories/MovieFactory.php
UTF-8
614
2.765625
3
[]
no_license
<?php use Faker\Generator as Faker; $factory->define(App\Movie::class, function (Faker $faker) { $values = collect([ 'Horror', 'Western', 'Thriller', 'Animation', 'Documentary', 'Action', 'Comedy', 'Drama' ]); return [ 'name' => $fake...
true
344f412cbbf3a13babe329c675d4c73cbfa58a90
PHP
geekaboo93/leet-php
/source/easy/toLowerCase.php
UTF-8
537
3.6875
4
[]
no_license
<?php function toLowerCase($str) { $result = ""; for ($i = 0; $i < strlen($str); $i++) { $char_code = ord($str[$i]); if ($char_code >= 65 && $char_code <= 90) { $result = $result . chr($char_code + 32); } else { $result = $result . $str[$i]; } } ...
true
a9c05e41968579bd11f770711736859d4621b3ab
PHP
alenagryadun/oct-mvc
/app/controllers/ControllerTasks.php
UTF-8
1,273
2.640625
3
[]
no_license
<?php namespace controllers; use core\Controller; use models\ModelTasks; class ControllerTasks extends Controller { public function __construct() { parent::__construct(); $this->model = new ModelTasks(); } public function action_index() { $this->view->tasks = $this->model->all()...
true
37f187022521a78338520d14c6e521e6d18c57d8
PHP
CedricSama/Php
/Framework/Laravel/musicband_correc/musicband/app/Http/Controllers/Backend/CouponController.php
UTF-8
1,689
2.671875
3
[]
no_license
<?php namespace App\Http\Controllers\Backend; use App\Coupon; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class CouponController extends Controller { // Voir les coupons public function index() { $coupons = Coupon::all(); return view('backend.coupon.index',compact('c...
true
b50865734b5d50c80c69463c12a1db3546ed5a49
PHP
vkovic/laravel-commando
/src/Console/Commands/DbImportDumpCommand.php
UTF-8
4,329
2.859375
3
[ "MIT" ]
permissive
<?php namespace Vkovic\LaravelCommando\Console\Commands; use Illuminate\Console\Command; use Vkovic\LaravelCommando\Handlers\Console\WithConsoleHandler; use Vkovic\LaravelCommando\Handlers\Database\WithDbHandler; class DbImportDumpCommand extends Command { use WithDbHandler, WithConsoleHandler; /** * T...
true
6dffb7e819221768f4e9ca2379df22e14844be30
PHP
trochenqn/IPOO-2021
/trabajoFinal_ORM/datos/funcion.php
UTF-8
7,520
3.015625
3
[]
no_license
<?php include_once "BaseDatos.php"; class Funcion { //variables private $idFuncion; private $nombre; private $precio; private $horaInicio; private $duracion; private $objTeatro; //constructor public function __construct() { //La duracion de la funcion es en minutos ...
true
eed5c353c0dcca009b3054539395686462c0b7ea
PHP
tsu-kaneko/php_lessons
/php_start/index.php
UTF-8
3,642
3.4375
3
[]
no_license
<!-- // $msg = "hello from the TOP!"; // echo $msg; // var_dump($msg); // debug // // // --------------------------------------- // // // 定数 // define("MY_EMAIL", "kaneko@gmail.com"); // // echo MY_EMAIL; // // echo nl2br("\n"); // 改行 // var_dump(__LINE__); // echo nl2br("\n"); // var_dump(__FILE__); // echo nl2br(...
true
260a4e730afc7580fadb3c4e0f722a67f1301584
PHP
phpdibakar/vsa
/app/database/seeds/EmergencyRelationTableSeeder.php
UTF-8
617
2.546875
3
[ "MIT" ]
permissive
<?php use VSA\Users\Model\EmergencyRelation; class EmergencyRelationTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Eloquent::unguard(); DB::table('emergency_relations')->delete(); $relations = [ 'Husband', 'Wife', 'Mother', 'Fa...
true
ae9c2ac8efa163fe2801f108c8ecb8af546bac8a
PHP
diogo-simao/mysql
/select_update_insert.php
UTF-8
967
3.171875
3
[]
no_license
<?php $link = mysqli_connect("localhost","my_user","my_password","my_db"); // stop the connection if retuns an error if (mysqli_connect_error()) { die ("There was an error connecting to the database"); } // select and return data from a specific table $query = "SELECT * FROM users"; ...
true
c1483800bd66693548de7276ab9a1c4536b602b5
PHP
dawan0111/high_school
/2018/광주/4과제/app/View.php
UTF-8
706
2.5625
3
[]
no_license
<?php use Model\_Base as DB; /** * View */ class View { public static function __callStatic($method, $arg) { $db = new DB; extract($arg[1] ?? []); switch($method) { case "open": require __dir__."/View/include/header.php"; require __dir__."/View/{$arg[0]}.php"; require __dir__....
true
eb3f1e5172942cd612399b64bc783f66e18d6cde
PHP
mdmuaj13/silver
/app/Http/Controllers/Api/AuthController.php
UTF-8
2,576
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Collection; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Validator; class AuthController extends Controller { public function register(Request $request) { $rule = [...
true
17a798df56da9c307736a934ee3e96fb338f596d
PHP
Arunkumar483/biomotionlog-COMPANY-EXPENSE-TRACKING-SYSTEM
/adminlogin.php
UTF-8
4,774
2.8125
3
[]
no_license
<?php // Initialize sessions session_start(); // Check if the user is already logged in, if yes then redirect him to welcome page if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){ header("location: test.php"); exit; } // Include config file require_once "config/confi...
true
bb7ff0ad0ebd4fefed43b3139a0c0039f91f6366
PHP
t-lefebvre-18/ppe1
/src/modele/class_Equipe.php
UTF-8
3,995
2.890625
3
[]
no_license
<?php class Equipe{ private $db; private $insert; private $select; private $delete; private $update; private $selectById; private $selectByIdResponsable; public function __construct($db){ $this->db = $db; $this->insert = $db->prepare("INSERT INTO `equipe`(`libelle`, `...
true
1a3babb78819c4b3ddad901e5741e73ed0ed1207
PHP
ChlodAlejandro/zsql.php
/src/Adapter/AdapterAwareInterface.php
UTF-8
244
2.515625
3
[ "MIT" ]
permissive
<?php namespace zsql\Adapter; use zsql\Adapter as AdapterInterface; interface AdapterAwareInterface { /** * @param AdapterInterface $adapter * @return $this */ public function setDatabase(AdapterInterface $adapter); }
true
7601bf839963fa24f1a2ee17a9a2e3c125439cb4
PHP
jjmmgarden/plants-api
/app/Services/Entities/HybridsEntity.php
UTF-8
4,191
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sueysok * Date: 16/5/9 * Time: 下午2:03 */ namespace App\Services\Entities; use App\Eloquent\Hybrids; use Illuminate\Database\Eloquent\Collection as ModelCollection; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection; /** * Class HybridsEntity * ...
true
4eb4bd21c57367cdaf74309f5823606bcd69d5d3
PHP
meiguonet/mgboot-common-php7
/src/util/CollectionUtils.php
UTF-8
1,047
2.671875
3
[ "MIT" ]
permissive
<?php namespace mgboot\util; use Illuminate\Support\Collection; final class CollectionUtils { private function __construct() { } private function __clone() { } /** * @param mixed $arg0 * @return Collection */ public static function toCollection($arg0): Collection ...
true
501357f37c5cc6a450d065111db32c53c1e28cf6
PHP
jpiercefield/CattleTracker
/PHP/pfunctions.php
UTF-8
17,103
2.59375
3
[ "MIT" ]
permissive
<?php //header('Content-type: application/json'); session_start(); $type = $_POST['type']; /* if($type == '24'){ getData(1); }else if($type == '7'){ getData(7); }else if ($type == '30'){ getData(30); }else if($type == 'db_search'){ search(); }else if($type=='cow_data') { cow_data(); }e...
true
b3e24010ac9f8d869c6c6c3eb9ee30f0899520a9
PHP
gutorockstar/dataware
/module/System/src/System/Model/ToolbarAction.php
UTF-8
2,516
2.96875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of ToolbarOption * * @author augusto */ namespace System\Model; class ToolbarAction { const TB_DISABLE_CLASS_CSS = 'disabled-style'; const TB_DISABLE_ACTION = 'javascript:void(0)'; ...
true
38fb35af43d95b6f69d5c1db7ff12380a8127d80
PHP
Framebase/www
/Includes/FSStack/Framebase/www/Controllers/index.php
UTF-8
3,600
2.734375
3
[]
no_license
<?php use \FSStack\Framebase\www\Renderers; define('CONTENT_DIR', implode('/', ['', 'var', 'www', 'content'])); class main_controller { use \CuteControllers\Base\Rest; protected $twig; public function __before() { // Set-up Twig $loader = new Twig_Loader_Filesystem(CONTENT_DIR); ...
true
b2215a1859f8802db4d0bef46a9e9f0c82f33472
PHP
lostinfo/jos-open-api
/src/request/OrderCompanyCreateServiceCreateCompanyOrderServide.php
UTF-8
5,534
2.578125
3
[]
no_license
<?php namespace Lostinfo\JosOpenApi\request; /** * 方法描述 * 拍拍业务-拍拍业务相关接口 * url: http://open.jd.com/home/home#/doc/api?apiCateId=382&apiId=3018&apiName=jingdong.orderCompanyCreateService.createCompanyOrderServide * Class OrderCompanyCreateServiceCreateCompanyOrderServide * @package Jd\request */ class OrderCompan...
true
29931635a8870bc9b2e0a8b8c7327326f70b4108
PHP
visol/ext-easyvote_smartvote
/Classes/Task/AdditionalFieldProvider.php
UTF-8
5,143
2.65625
3
[]
no_license
<?php namespace Visol\EasyvoteSmartvote\Task; /** * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license i...
true
d452df96e80e528417409dbedbdb9caba09981d8
PHP
jin2chen/yii2-advance
/api/domain/user/UserRepositoryInterface.php
UTF-8
110
2.53125
3
[]
no_license
<?php namespace api\domain\user; interface UserRepositoryInterface { public function add(User $user); }
true
4698127400c1bef5d4d167703d48cfe91c6447d1
PHP
felipeb95/ASTROMATH
/Web/astromath.informaticapucv.cl/generarexcel.php
UTF-8
11,300
2.53125
3
[]
no_license
<?php require 'vendor/autoload.php'; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; include 'database.php'; $spreadsheet = new Spreadsheet(); $sheet = $spreadsheet->getActiveSheet(); $sheet->setTitle("Feedback Random"); $conexion = new mysqli(DB_SERVER, DB_USERNAME, DB_PASSWORD,...
true
cc10be9d74df6ac1f240f70d0a2f3b7e1fc3fded
PHP
BavarianKnight/chevere
/components/Message/Message.php
UTF-8
3,145
2.921875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * This file is part of Chevere. * * (c) Rodolfo Berrios <rodolfo@chevere.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Chevere\Components\Message; use Ahc\Cli\Output\Color; use...
true
7b5a1c7793dec10c6b7a023952b477e0379f9626
PHP
fooman/magerun2-admin-roles
/src/Fooman/Magerun2/AdminRoles/RoleAssignResourcesCommand.php
UTF-8
2,211
2.515625
3
[]
no_license
<?php namespace Fooman\Magerun2\AdminRoles; use N98\Magento\Command\AbstractMagentoCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputOption; use Magento\Framework\Exception\LocalizedException; class RoleAssignRe...
true
a4999da56907e3ef019f24303bd21c4e72106ac9
PHP
lucianIonescu5p/Vanilla-PHP-shopping-cart
/common.php
UTF-8
856
2.75
3
[]
no_license
<?php session_start(); require_once 'config.php'; require_once 'translations.php'; $conn = new PDO("mysql:host=" . DB_HOST . ";dbname=" . DB_NAME . "", DB_USERNAME, DB_PASSWORD); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); $conn->s...
true
f9964ee75838cdbcccc060f32dd7213842971903
PHP
ganglia/ganglia-web
/test/GangliaAclTest.php
UTF-8
4,586
2.5625
3
[]
permissive
<?php $base_dir = dirname(__FILE__); ini_set( 'include_path', ini_get('include_path').":$base_dir/../lib"); require_once 'GangliaAcl.php'; /** * Test class for GangliaAcl. * Generated by PHPUnit on 2011-04-20 at 20:35:07. */ require_once 'TestCase.php'; class GangliaAclTest extends TestCase { protected func...
true
e820a9752cfab9adbdec0f9ca502af0404127cb2
PHP
spidgorny/nadlib
/User/PlainSessionUser.php
UTF-8
1,282
2.734375
3
[]
no_license
<?php use nadlib\HTTP\Session; /** * Class PlainSessionUser * extends User in order to have a dependency on the application */ class PlainSessionUser extends User { /** * @var PlainSessionUser */ static protected $instance; /** * @var Session */ protected $session; /** * @param int $id * @param...
true
c1eef6bb1e95366a68e0f373fc081c4593af8d1f
PHP
Con-Kitsune/19_07_kadai
/select7.php
UTF-8
3,958
2.5625
3
[]
no_license
<?php session_start(); include("functions.php"); if(!isset($_SESSION["name"])){ $_SESSION["name"] = "ゲスト"; } // chk_ssid(); //1. DB接続します $pdo = db_con(); //2.データ登録SQL作成 $stmt = $pdo->prepare("SELECT * FROM gs_bm_tabel;"); $status = $stmt->execute(); //3.データ表示 $view=""; if($status==false) { //execute(SQL実行時にエラーが...
true
0d6571744949310e5860f5be9e3adf529a942ceb
PHP
ICanBoogie/CLDR
/lib/NumberPatternParser.php
UTF-8
5,313
2.953125
3
[ "BSD-3-Clause" ]
permissive
<?php /* * This file is part of the ICanBoogie package. * * (c) Olivier Laviale <olivier.laviale@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ICanBoogie\CLDR; use function explode; use function preg_match...
true
a6974d37d70534b63fa7f586ed8d5dc07972dc6b
PHP
fygarciaj/calendar-helper
/src/Stevebauman/CalendarHelper/Drivers/Google.php
UTF-8
14,964
2.84375
3
[]
no_license
<?php namespace Stevebauman\CalendarHelper\Drivers; use Stevebauman\CalendarHelper\CalendarHelper; use Stevebauman\CalendarHelper\Exceptions\KeyNotFoundException; use Stevebauman\CalendarHelper\Objects\Attendee; use Stevebauman\CalendarHelper\Objects\Event; use Illuminate\Filesystem\FileNotFoundException; use Illumin...
true
e2e127a7f8ae918fe436e95bff3a01a4179825e3
PHP
EckhartOSB/opml-browser
/opml-browser.php
UTF-8
30,704
2.78125
3
[ "LicenseRef-scancode-other-permissive" ]
permissive
<?php /* Plugin Name: opml-browser widget Plugin URI: http://www.chipstips.com/?tag=phpopmlbrowse Description: Widget for browsing an OPML URL or file. Author: Sterling "Chip" Camden Version: 2.4 Author URI: http://www.chipsquips.com */ require (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'xmlparse.php'); d...
true
f11ff13ee51de59b8055eb56a2866e3e88b77f03
PHP
P4NK4J/E_library
/core/database/Categories.php
UTF-8
1,237
2.9375
3
[]
no_license
<?php class Categories extends QueryBuilder { public function __construct($pdo) { parent::__construct($pdo); $this->table = 'categories'; $this->column = array('name'); } public function categoryList() { $this->column = array('id','name','date_added'); return...
true
d76fbed6e920b3eef377430c2b577f0e7d31ee6d
PHP
JamesBondsky/4lapy
/src/CatalogBundle/Dto/Dostavista/Shop.php
UTF-8
4,390
2.609375
3
[]
no_license
<?php namespace FourPaws\CatalogBundle\Dto\Dostavista; use Doctrine\Common\Annotations\Annotation\Required; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use JMS\Serializer\Annotation as Serializer; /** * Class Shop * * @package FourPaws\CatalogBundle\Dto\Dostavista ...
true
664e772cd8af55820b97bde4ac6e095dfe8986c6
PHP
WendyGraphex/jobs-application
/modules/utils/common/lib/Server/mfWebServer.class.php
UTF-8
1,659
2.734375
3
[]
no_license
<?php class mfWebServer extends mfServer { protected static $instance=null; protected $context=null; static function getInstance($parameters = array(), $attributes = array(), $options = array()) { if (self::$instance===null) self::$instance=new self($parameters, $attributes , $...
true
7d99014526540b8181efea430165742f41c6f98a
PHP
luizcelso80/biblioteca
/app/Http/Controllers/BookController.php
UTF-8
6,025
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Book; use App\Models\Author; use Illuminate\Http\Request; use Illuminate\Support\Arr; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Storage; class BookController extends Controller { private $totalPage = 5; private $book; public f...
true
33aadefaba51b069ba1fc11ea94c2779fa30ac12
PHP
microsoft/php-src
/ext/standard/tests/serialize/bug72610.phpt
UTF-8
1,301
3
3
[ "BSD-3-Clause", "BSD-4-Clause-UC", "Zlib", "ISC", "LicenseRef-scancode-other-permissive", "TCL", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "JSON", "LicenseRef-scancode-pcre", "blessing" ]
permissive
--TEST-- __wakeup should be able to add dynamic properties without affecting other dynamic properties --FILE-- <?php class Obj { // Testing $this->a being a dynamic property. function __construct($a) { $this->a = $a; } public function __wakeup() { echo "Calling __wakeup\n"; for ($i = 0; $i < 10000; $i++) {...
true
f698ea6274dc98e4a9e8bf901ac84a93e9c9aa5c
PHP
shekarsiri/baserepo
/src/BaseRepo/PaginationTrait.php
UTF-8
1,848
2.671875
3
[ "MIT" ]
permissive
<?php namespace ShekarSiri\BaseRepo; trait PaginationTrait { public function pagination($total = 10, array $with = [], array $query = [], array $columns = ['*']) { //WITH Relations $model = $this->make($with)->latest(); //QUERY $model = $model->where(function ($q) use ($query)...
true
eb93b0386474cc020e311439b768ed5980ce7cc2
PHP
Bran-bit/SIGEV
/src/SIGEVframework/LiquidORM/QueryBuilder/QueryBuilder.php
UTF-8
5,900
3.09375
3
[]
no_license
<?php namespace SIGEVframework\LiquidORM\QueryBuilder; use SIGEVframework\LiquidORM\QueryBuilder\Exception\QueryBuilderInvalidArgumentException; class QueryBuilder implements QueryBuilderInterface { protected array $key; protected string $sqlQuery = ''; protected const SQL_DEFAULT = [ 'conditio...
true
5822056f47569f40775d81daeed8f6ef75ca1edb
PHP
BinaryStudioAcademy/bsa-2020-schedulia
/api/app/Http/Presenters/CustomFieldValuePresenter.php
UTF-8
713
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Http\Presenters; use App\Entity\CustomFieldValue; use Illuminate\Support\Collection; final class CustomFieldValuePresenter { public function presentCollection(Collection $customFieldValues) { return $customFieldValues->map(function ($customFieldValue) { ...
true
b2b29316d9f70f9f2cd952f4f5b0da22209e94e7
PHP
codememory1/LinuxCodememory
/system/Validator/Validate/Validator.php
UTF-8
5,080
2.65625
3
[]
no_license
<?php namespace System\Validator\Validate; use System\Validator\Validate\ArgumentsValidation; use System\Validator\Validate\ValidationRules; /** * Validator */ class Validator { /** * validated * * @var bool */ public $validated = false; /** * list * * @...
true
b231fb1da0e939e6b5bcf73caa0b074126883122
PHP
abdallahdev22/awoof-laravel
/app/Traits/DisplayHelpers.php
UTF-8
359
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Traits; trait DisplayHelpers { function prettyDump($result){ echo '<pre>'; var_dump($result); echo '</pre>'; } function print_collection(array $arr){ $this->prettyDump(json_encode($arr)); } function prettyPrint(object $obj){ $this->p...
true
cd9dad8148063060cbb56b2c9f195057a5e0cd32
PHP
phptj/laravel_h-
/app/Entities/Sys/SysRoles.php
UTF-8
582
2.609375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: fengyell <Luohaihua@misrobot.com> * Date: 2015年12月15日 * Time: 11:18:06 */ namespace App\Entities\Sys; use Illuminate\Database\Eloquent\Model; class SysRoles extends Model { protected $connection = 'sys'; protected $table = 'sys_roles'; protected $fillabl...
true
c3e043c82b31691f38b083c061007996009459f1
PHP
SubigyaPanta/VerySimpleLogger
/AnyOtherLogger.php
UTF-8
261
2.5625
3
[]
no_license
<?php class AnyOtherLogger implements Logger { public function writeLog(\Log $log) { // algorithm for other logging methods // similarly add other logger type classes to write // logs using different methods } }
true
829112e56ab1799bb045ca8b9924fe575451ca80
PHP
TeenahApp/web.api
/app/controllers/MemberEducationsController.php
UTF-8
5,841
2.71875
3
[ "MIT" ]
permissive
<?php class MemberEducationsController extends \Controller { /** * Display a listing of the resource. * * @return Response */ public function index($id) { // Check if the id does exist. $member = Member::where("id", "=", $id)->first(); if (is_null($member)) { return Response::json(array( "m...
true
3329e976b37ca22f4bb34c898f8e7656bc6a93df
PHP
Khalecky/edwb
/src/RowTrait.php
UTF-8
1,202
2.984375
3
[]
no_license
<?php declare(strict_types=1); namespace App; /** * Помощник для извлечения различной информации из строк таблицы. * s * @package App */ trait RowTrait { /** * @param array $item * @return string */ protected function getPayerType(array &$item): string { return $item[4]; ...
true
a8a420b460c4df6fd08233fa84e52965e9d9c2b6
PHP
StphnLwnga/usermgt-ipay
/app/Controllers/BaseController.php
UTF-8
3,956
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; /** * Class BaseController * * BaseController provides a convenient place for loading components * and performing functions that are needed by all your controllers. * Extend this class in any new controllers: * class Home extends BaseController * * For security be sure to d...
true
269d136c1958194cdec77278ec10106fd601e170
PHP
amy/documentation-test
/vendor/behance/php-sniffs/Behance/Sniffs/Arrays/ArrayBracketSpacingSniff.php
UTF-8
2,430
2.9375
3
[]
no_license
<?php class Behance_Sniffs_Arrays_ArrayBracketSpacingSniff implements PHP_CodeSniffer_Sniff { /** * Returns an array of tokens this test wants to listen for. * * @return array */ public function register() { return [ T_OPEN_SQUARE_BRACKET, T_CLOSE_SQUARE_BRACKET, ]; } // re...
true
5654e1573781b635df1fbeeeb02e5ac35e4db4f6
PHP
Cool-Programmer/instagram-photo-list
/includes/insta-photo-list-shortcodes.php
UTF-8
1,147
2.546875
3
[]
no_license
<?php // List photos function ipl_list_photos($atts, $content = null) { global $ipl_options; $atts = shortcode_atts([ 'title' => 'Instagram Photo List', 'count' => 20 ], $atts); $url = 'https://api.instagram.com/v1/users/self/media/recent/?access_token='.$ipl_options['access_token'].'&count='.$atts['co...
true
dbb05aaa8dd9482c9a676c8d5c7d1b2c545f4112
PHP
alexander-git/s-san_modules
/orders/models/OptionVal.php
UTF-8
5,028
2.53125
3
[]
no_license
<?php namespace app\modules\orders\models; use Yii; /** * This is the model class for table "{{%orders_option_vals}}". * * @property string $option_id * @property string $value * @property integer $city_id * * @property Option $option */ class OptionVal extends \yii\db\ActiveRecord { private static $valu...
true
bd4fa4d3248ef711e1dbaa67933bed7b7a891a27
PHP
FelixOnline/FelixAdmin
/helpers/ajaxPage.php
UTF-8
1,223
2.5625
3
[]
no_license
<?php namespace FelixOnline\Admin\Ajax; class getPageAjaxHelper extends Core { public function run() { if(!array_key_exists('page', $_POST) || $_POST['page'] == '') { $this->error("No page specified.", 400); } $page = $_POST['page']; if(isset($_POST['pullThrough'])) { $pullThrough = $_POST['pullThrou...
true
1f66547ba0b8098a595756a9fb7f2d339f6ace3f
PHP
Nalmac/Comin
/src/DataPersisters/FollowPersister.php
UTF-8
1,490
2.515625
3
[]
no_license
<?php namespace App\DataPersisters; use App\Entity\Follow; use Symfony\Component\Mercure\Update; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Messenger\MessageBusInterface; use ApiPlatform\Core\DataPersister\DataPersisterInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; c...
true
501ac99117237c61e5894343dbf06b51f62629dc
PHP
andrejs82git/my_reminder
/php/factorial/index.php
UTF-8
85
3.015625
3
[]
no_license
<?php function fact($n) { return $n==false?1:$n*fact($n-1); } var_dump(fact(5));
true
21ee467b6eefc6b738193fc63204764c4f835b91
PHP
ChristinaKr/AuctionSite
/server/Watch/read_one.php
UTF-8
1,128
2.875
3
[ "MIT" ]
permissive
<?php /** * Tutorial: https://www.codeofaninja.com/2017/02/create-simple-rest-api-in-php.html */ header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers: access"); header("Access-Control-Allow-Methods: GET"); header("Access-Control-Allow-Credentials: true"); header('Content-Type: application/j...
true
2abcd6360566f0c163a0620542ca88270c3f1d81
PHP
bijaya143/pmis-challenge
/app/ActivityLogFiles.php
UTF-8
824
2.59375
3
[]
no_license
<?php namespace PMIS; use Illuminate\Database\Eloquent\Model; use Nicolaslopezj\Searchable\SearchableTrait; class ActivityLogFiles extends Model { use SearchableTrait; /** * Searchable rules. * * @var array */ protected $table = 'pro_activity_log_files'; public $t...
true
3b1202c313d4bee1daa07b2562ae26f2007cf1c8
PHP
roundpartner/deploy
/src/Deploy/Config.php
UTF-8
942
2.8125
3
[]
no_license
<?php namespace RoundPartner\Deploy; class Config { /** * @var Config */ protected static $instance; protected $config; protected $configFile; protected $configModifiedTime; public function __construct($configFile = 'config.ini') { $this->configFile = $configFile; ...
true
6eb6e10e25667d2ab5ea8ba9836030a7ef6b3f37
PHP
Limber-Rodriguez/sistema
/modelos/Categoria.php
UTF-8
1,496
2.765625
3
[]
no_license
<?php require_once '../config/conexion.php'; class Categoria{ public function __construct(){} public function insertar($nombre,$descripcion){ $sql = "INSERT INTO categoria (nombre,descripcion,condicion) VALUES ('$nombre','$descripcion','1')"; return ...
true
042072df81fea227eaa2efc832715e1764268722
PHP
ministryofjustice/opg-digi-deps-client
/client/src/AppBundle/Service/CssClassCollector.php
UTF-8
1,847
2.5625
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Service; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\DataCollector\DataCollector; class CssClassCollector extends DataCollector { public function collect(Request $request, Response $response, \Exception $ex...
true
75be141bef225cf3d52dcae55571e88a08340363
PHP
vdemay/Scoopit-PHP
/examples/displayAFullTopic/includes/include_commons.php
UTF-8
813
2.78125
3
[]
no_license
<?php if ( !function_exists( 'property_exists' ) ) { function property_exists( $class, $property ) { if ( is_object( $class ) ) { $vars = get_object_vars( $class ); } else { $vars = get_class_vars( $class ); } return array_key_exists( $property, $vars ); } } if ( !function_exists( 'getDomain' ) ) { ...
true
02ceb195ea12106aeeb2ec9a8b55d293e60a7c33
PHP
inferius/ProjectClasses
/src/UserMethod.php
UTF-8
1,781
3.078125
3
[]
no_license
<?php namespace API; class UserMethod { public static function get_method($method_name) { return UserMethod::replace_method_in_code(UserMethod::get_plain_method($method_name)); } private static function get_plain_method($method_name) { $method_path = __DIR__ . "/Methods/{$method_n...
true
bef4a73c3b7f9ca14b4e41c3478f3830eb048029
PHP
pvgomes/biso
/src/Domain/Core/Money.php
UTF-8
1,338
3.375
3
[ "MIT" ]
permissive
<?php namespace Domain\Core; class Money { private $amount; private $currency; public function __construct($anAmount, Currency $aCurrency) { $this->setAmount($anAmount); $this->setCurrency($aCurrency); } private function setAmount($anAmount) { $this->amount = (in...
true
b832ee0d8f954b12047b06f0423436304e0d98ef
PHP
bairwell/middleware-cors
/tests/MiddlewareCors/Traits/RunInvokeArrays.php
UTF-8
7,974
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Class MiddlewareCorsTest validate. * * Tests the MiddlewareCors middleware layer. */ declare (strict_types = 1); namespace Bairwell\MiddlewareCors\Traits; use Bairwell\MiddlewareCors; use Psr\Log\LoggerInterface; use Monolog\Handler\TestHandler; use Monolog\Logger; trait RunInvokeArrays { /** ...
true
bf36836e258e17bd021d9af70ee99e5853c65ad7
PHP
zboina/grocery-mart
/src/Entity/Brands.php
UTF-8
3,840
2.546875
3
[]
no_license
<?php namespace App\Entity; use App\Repository\BrandsRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use ProxyManager\ProxyGenerator\ValueHolder\MethodGenerator\Constructor; use Symfony\Component\HttpFoundation\File\File; use Vi...
true
4a5ccf0732590d2cbfbda6b7d1734781758ec688
PHP
ericpsb/Research
/fbprojectb/IDsFromTaggableFriends.php
UTF-8
1,237
2.5625
3
[]
no_license
<?php ini_set('display_errors', 1); require __DIR__ . '/vendor/autoload.php'; // config $mongopass = getenv('MONGOPASS'); $config = parse_ini_file('config.ini'); $conn_string = $config['db-conn-string1'] . $mongopass . $config['db-conn-string2']; if (!isset($_POST['username']) || !isset($_POST['name1']) || !isset($_P...
true