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
af2eee6f1bc53c4b99941a9c15a358ed0dc7e663
PHP
BitBagCommerce/SyliusMailChimpPlugin
/src/Validator/Constraints/UniqueNewsletterEmailValidator.php
UTF-8
1,705
2.515625
3
[ "MIT" ]
permissive
<?php /* * This file was created by developers working at BitBag * Do you need more information about us and what we do? Visit our https://bitbag.io website! * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career */ declare...
true
a3fbe78aae4d3f20b4afb891269bb4f58f06af6f
PHP
gnudles/Javaluator
/javaluator-web/en/doc/tutorial/extending.php
UTF-8
2,564
3.09375
3
[]
no_license
<h2>Customizing built-in evaluator</h2> <h3>Extending an evaluator</h3> <p>Javaluator comes with a basic set of common operators, functions, constants and brackets. If you need more, you can add your own.</p> <p>In this example, we will add a new function: sqrt (square root)</p> <p>First we have to create the <a hr...
true
e131762732c75b204959bafe8044de6afe73fdd9
PHP
Hady-Eslam/FindHouse
/Core/ConfigsEngines/SiteConfigsEngine.php
UTF-8
765
2.796875
3
[]
no_license
<?php namespace Configs; use Configs\ConfigsCheckerEngine; use Exceptions\ConfigsExceptionsEngine; use ArrayAccess; class SiteConfigsEngine extends ConfigsCheckerEngine implements ArrayAccess{ function __construct($ConfigsPath){ $this->Configs = include_once $ConfigsPath; } public function offsetSet($OffSet, ...
true
969efcdb42b5493561d0f72120b42bade7072e75
PHP
elic-dev/staades-sdk-php
/src/StaadesClient.php
UTF-8
2,589
2.59375
3
[ "MIT" ]
permissive
<?php namespace Staades; use DateTime; use GuzzleHttp\Client; use GuzzleHttp\Command\Guzzle\Description; use GuzzleHttp\Command\Guzzle\GuzzleClient; use Guzzle\Service\Loader\PhpLoader; use Symfony\Component\Config\FileLocator; class StaadesClient extends GuzzleClient { /** * Factory to create new instance....
true
d62054618b61ddb9b06318d4e63c4f19299463d0
PHP
andersonsrsilva/MyOwnAPI
/app/Http/Controllers/MakerController.php
UTF-8
2,159
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\MakerRequest; use App\Maker; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; class MakerController extends Controller { public function __construct() { $this->middleware('auth.basic', ['except' => ['index', 'show']]); ...
true
a812cffa743959dd80af99c98d02f8332977e8a2
PHP
Pleisterman/mbAdmin
/module/MbCommon/src/MbCommon/Security/Authentification/JsonWebTokens/JsonWebTokensJsonDecoder.php
UTF-8
2,385
2.71875
3
[]
no_license
<?php /* * Project: MbCommon * * File: \MbCommon\Security\Authentification\JsonWebTokens\JsonWebTokensJsonDecoder.php * * Last Revision: 16-01-2017 * * Purpose: * deoodes the json for a jsonwebtoken * * Author: Pleisterman * Web: www.pleisterman.nl * Mail: info@pleisterman.n...
true
3cfc18907c2a85a7386e01354fd2c1fcb110eb55
PHP
VratsaSoftware/aktivnosti-bg
/Laravel/app/Http/Middleware/ProtectUsersRoute.php
UTF-8
1,045
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; use App\Models\User; class ProtectUsersRoute { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function han...
true
98fa084f465e57f6bae21fe597c7283564535f23
PHP
Suylo/Sharing-Pictures
/app/models/Picture.php
UTF-8
1,541
3.546875
4
[]
no_license
<?php namespace App\models; class Picture { private int $pictureID; private string $pictureWording; private string $pictureURL; private string $userID; private $datePicture; /** * Picture constructor. * @param int $PictureID - ID of picture which allows to identify the picture in t...
true
5f531b72913320de4c86dc76cd7dace2ea4361fd
PHP
vicenterusso/laravel-magic-date-mutator
/src/Traits/DateAutoMutator.php
UTF-8
1,751
2.625
3
[ "MIT" ]
permissive
<?php namespace VRusso\MagicDateMutator\Traits; use Carbon\Carbon; trait DateAutoMutator { use \VRusso\TableStructure\Traits\FieldsInfo; private static $date_fields; private static $table_name; private static $database_format; public static function bootDateAutoMutator() { $class_na...
true
81c81e4528a05bb367fef808deda016f87f1afa2
PHP
wwx101123/casa
/casa/extend/sms/fastoo/api.php
UTF-8
1,835
2.65625
3
[]
no_license
<?php /** * 重构的短信接口 例子参照test * User: yt * Date: 2018/6/19 0019 * Time: 下午 5:08 */ namespace sms\fastoo; use sms\fastoo\model\SendSingleSmsParm; use sms\fastoo\model\SendBatchSmsParm; use sms\fastoo\model\ReturnModel; use sms\fastoo\api\SendSmsApi; use sms\fastoo\api\URLConfig; use sms\fastoo\client\HttpPostClien...
true
e2699747890867685964f012f8609e4bea7795ab
PHP
Devender28/devims
/application/models/admin/Blogmodel.php
UTF-8
12,344
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Blogmodel extends CI_Model { function __construct() { parent::__construct(); } function get_blog() { return $this->db->get_where('blog',array('id'=>'1'))->row(); } function getall_categories() { return $this->db->get_where('blogcategory')->result()...
true
a3234706fb3683758fa2691fa52280e4e72305bf
PHP
leblanc-simon/Gesdon
/lib/Gesdon/Task/Manager.php
UTF-8
3,719
2.515625
3
[]
no_license
<?php namespace Gesdon\Task; use Gesdon\Core\Exception; use Gesdon\Database\TaskManagerQuery; use Gesdon\Core\Config; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Output\NullOutput; use Symfony\Component\Console\Output\StreamOutput; use Symfony\Component\Console\Output\OutputInterface...
true
f23a91074ae0f3a158f064a24a8068a7b4fbe76e
PHP
MichalBecko/JunoPublic
/Juno/app/AdminModule/DefaultModule/model/Classes/MyMailer.php
UTF-8
1,672
2.6875
3
[ "MIT" ]
permissive
<?php namespace DefaultModule\Classes; use SettingsModule\Services\SettingsService, Nette\Mail\SmtpMailer, Nette\Mail\Message, Nette\Mail\SmtpException; /** * Description of MyMailer * * @author Vladimír Vráb <www.artexe.sk> */ class MyMailer { /** @var SettingsService */ ...
true
e3a0a297a3ca2716d7142281497eee66a671c7dc
PHP
iHazzam/LeaveRequest
/Pages/administrator_tools_handle.php
UTF-8
3,628
2.6875
3
[]
no_license
<?php //fetch variables from admin tools form (administrator_tools.php) $hours_requested = $_POST['hours_requested']; $request_id = $_POST['request_id']; $confirmation_status = $_POST['confirmation_status']; session_start(); $_SESSION['individual_flag'] = 0; include_once $_SERVER['DOCUMENT_ROOT'] . 'LeaveRequest/Sc...
true
03257dc3563b0b337c0ec808835855ff205b8f8d
PHP
Viniciusalopes/tempo-limite-php
/home/index.php
UTF-8
1,270
2.75
3
[ "MIT" ]
permissive
<!DOCTYPE html> <!-- --------------------------------------------------------------------------------------- Licença : MIT - Copyright 2020 Viniciusalopes (Vovolinux) <suporte@vovolinux.com.br> Criado em : 11/01/2020 Projeto : tempo-limite-php Finalidade: Exemplo simples de utilização da classe Tempo --------------...
true
0baa31e6ff2fa1b049056e01871857e260f08ee0
PHP
primanandaaditya/pemalang
/master/bap/edit_jadwal.php
UTF-8
6,590
2.5625
3
[]
no_license
<?php session_start(); ob_start(); include ('../../auth.php'); ?> <?php require_once ('../../config.php'); //proses GET if (!isset($_GET['id'])){ header('location: jadwal_bap.php'); }else{ //dapatkan data user // dari id di atas $id = $_GET['id']; $sql = "select * from jadwal_bap where id = :id";...
true
974b1662d200cecedfa5faacab8c000866c8f5e4
PHP
samuraimasa/WebPush
/admin/module/Push/src/Push/Util/GoogleOAuthUtil.php
UTF-8
5,940
2.671875
3
[]
no_license
<?php namespace Push\Util; use Push\Model\Dao\GoogleOAuth; use Zend\Http\Client; use Zend\Http\Request; use Zend\Json\Json; use Zend\Uri\UriFactory; class GoogleOAuthUtil { public $googleOauth; public function __construct(GoogleOAuth $googleOauth) { $this->googleOauth = $googleOauth; } ...
true
e4935f2e6844c57f4c0a9aafe8beb4f48b6b0064
PHP
tedslittlerobot/frb-cli
/src/Tasks/Notification.php
UTF-8
2,422
2.59375
3
[ "MIT" ]
permissive
<?php namespace Tlr\Frb\Tasks; use Carbon\Carbon; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\QuestionHelper; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ConfirmationQuestion; u...
true
e97fafc2f771676d1acf0e30370ff29f4c78d35c
PHP
alex905/Parkingweb
/cancelar_reserva.php
UTF-8
4,720
2.515625
3
[]
no_license
<?php require_once("./menu.php"); require_once("./Metodos_cancelar_reserva.php"); session_start(); //Creamos un objeto de la clase Metodos_cancelar_reserva $metodos = new Metodos_cancelar_reserva(); $reservas = ""; $mensaje = ""; $contador = 0; //Comprobamos si se ha pulsado el...
true
6d5521bf0577c2b978a67d928139e8a474699cfb
PHP
emanuele78/mybnb
/app/Traits/AvailabilityTrait.php
UTF-8
2,312
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Traits; use App\Apartment; use App\Booking; use App\ReservedDay; use Auth; use Carbon\Carbon; trait AvailabilityTrait { /** * Check if the given interval is available for the passed apartment * * @param Carbon $check_in * @param Carbon $check_out * @param Apartment $...
true
46c6b41eb4429771c78325400975f3123ab2387e
PHP
Jleagle/omdb-imdb-api-client
/tests/ImdbTest.php
UTF-8
701
2.625
3
[]
no_license
<?php use Jleagle\Imdb\Imdb; class ImdbTest extends PHPUnit_Framework_TestCase { /** * @group medium */ public function testRetrieve() { $imdb = Imdb::search('the matrix'); $this->assertTrue(is_array($imdb)); $this->assertEquals('Jleagle\Imdb\Responses\Result', get_class($imdb[0])); } /**...
true
3dc1c74f68a3ecce4d5776f25e8df7b174f62ae2
PHP
dflydev/safsi-php
/lib/safsi_exception_Exception.php
UTF-8
425
2.859375
3
[]
no_license
<?php class safsi_exception_Exception extends Exception { private $cause; public function __construct($message = null, $code = 0, $cause = null) { parent::__construct($message, $code); $this->cause = $cause; } public function cause() { return $this->cause; } } require_o...
true
a1939a23467fdcd32d68d8023f2792ee9ce8722b
PHP
brusselopole/Worldopole
/core/process/queries/QueryManagerPostgresqlMonocleAlternate.php
UTF-8
29,102
2.65625
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Worldopole; class QueryManagerPostgresqlMonocleAlternate extends QueryManagerPostgresql { public function __construct() { parent::__construct(); } public function __destruct() { parent::__destruct(); } /////////// // Tester /////////// public ...
true
4e6d33be77dd5d962809fcc1a4ec9fedc0f4953c
PHP
DustinHartzler/PharmToTable
/wp-content/plugins/sfwd-lms/includes/admin/classes-import-export/export/class-learndash-admin-export-pages.php
UTF-8
1,894
2.671875
3
[]
no_license
<?php /** * LearnDash Admin Export Pages. * * @since 4.3.0 * * @package LearnDash */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( class_exists( 'Learndash_Admin_Export_Posts' ) && trait_exists( 'Learndash_Admin_Import_Export_Pages' ) && ! class_exists( 'Learndash_Admin_Export_Pages' ) ) { /** * Class Lea...
true
0cd5abab83328d4629f0889ff305c9584ab85f61
PHP
pseudoh/LiteWork
/system/view.php
UTF-8
3,107
3.359375
3
[]
no_license
<?php /** ** Facilitates loading of views/pages and provides a basic templating system. ** The templating system is based on a master page that defines the common html elements and ** defines sections that are populated by sub-pages. ** This is accompliahsed by output buffering. ** ** @author Hassan Qulqass - pseudoh...
true
56ab578cda1a27f6a001a22ca51a889aaadaeb0e
PHP
SweetMyCher/appointments.ru
/app/Http/Controllers/FioController.php
UTF-8
1,703
2.671875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; class FioController extends Controller { public function getFio() { $term = $_POST["search_term"]; //передача с фронта данные //цикл появления данных $fio = DB::table('naznach') ->where('FIO' ,'=', $term)->get(...
true
be6e88aaabc3458ca5f6b4a52c40e4609ca8291a
PHP
brunvez/ObligatorioPHP
/controllers/SessionsController.php
UTF-8
1,078
2.96875
3
[]
no_license
<?php namespace Controllers; class SessionsController extends BaseController { public function create() { if (isset($_POST['password']) && isset($_POST['username'])) { $username = $_POST['username']; $password = $_POST['password']; $stmt = \DB::connect()->prepare('...
true
299df26cdb603593711456a49dcaf9dda38dde15
PHP
robocon/mini2
/public/index.php
UTF-8
13,017
2.75
3
[ "BSD-3-Clause" ]
permissive
<?php /******************************* LOADING & INITIALIZING BASE APPLICATION ****************************************/ // Configuration for error reporting, useful to show every little problem during development error_reporting(E_ALL); ini_set("display_errors", 1); session_start(); // Load Composer's PSR-4 autoloa...
true
d343eba0df39619d7d55ac0c8560406381f7a536
PHP
mikesdh/thjocon
/tests/test.php
UTF-8
220
3.15625
3
[ "Apache-2.0" ]
permissive
<?php class Father{ public function __construct(){ echo 'fatcher construct'; } } class Son extends Father{ public function __construct(){ parent::__construct(); echo 'Son construct'; } } $Son = new Son(); ?>
true
3d525d120a65bbdec1c3763a8f6d2c53931310ca
PHP
jaysontolentino/simple_ems
/application/models/Employee.php
UTF-8
1,271
3.5
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php //User Model class Employee extends CI_Model { public function __construct() { parent::__construct(); } //fetch all employees public function getAllEmployees($limit, $offset) { $this->db->limit($limit, $offset); return $this->db->get('...
true
ee6f223a397351eb8cc8c3e382753f644bf43a16
PHP
YaangVu/php-kong
/src/Models/Target.php
UTF-8
1,914
2.75
3
[]
no_license
<?php /** * @Author yaangvu * @Date Jun 16, 2022 */ namespace Yaangvu\LaravelKong\Models; class Target implements KongEntity { private ?string $id = null; private ?string $name = null; private Upstream $upstream; private string $target; private int $weight = 100; private ?a...
true
f27e42217689f609bb080814ad3aa0f606150eb2
PHP
LMonjarret/exam-webecom
/models/model_profil.php
UTF-8
550
3.125
3
[]
no_license
<?php // Classe d'un objet métier, décrit un profil utilisateur. Hérite de "model" class model_profil extends model { /********* ATTRIBUTS *********/ protected $table = "profil"; protected $primaryKey = "code"; /********* INITIALISATION *********/ protected function initFields(...
true
daf868ec4816c2f655c336db4e55911a01db15dc
PHP
graphis/one_application
/classes/Controller/Work.php
UTF-8
3,821
2.640625
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); /** * Portfolio Controller — Main controller for sandorzsolt.hu * * @package sandorzsolt.hu * @category Controller * @author Zsolt Sándor * @copyright (c) 2012 Zsolt Sándor * @license http://kohanaphp.com/license.html */ class Controller...
true
1ed051a73aed115ca22b710ab1b117f0b289fb58
PHP
yueyuzhao/leetcode-php
/0345-reverse-vowels-of-a-string/SolutionTest.php
UTF-8
392
3.0625
3
[]
no_license
<?php require_once './Solution.php'; use PHPUnit\Framework\TestCase; final class SolutionTest extends TestCase { public function testSolution() { $s = new Solution(); $this->assertEquals('holle', $s->reverseVowels('hello')); $this->assertEquals('leotcede', $s->reverseVowels('leetcode'...
true
71e5c4ecc36027618041bb8a7688d0e3a43b753c
PHP
cheng91jing/Shared-Card
/application/common/model/Goods.php
UTF-8
2,500
2.53125
3
[]
no_license
<?php namespace app\common\model; /** * Class Goods * @property int goods_id * @property integer goods_name 商品名称 * @property integer partner_id 所属合作商 * @property integer cat_id 商品类型 * @property float goods_price 商品单价 * @property integer goods_number 商品库存 * @property integer goods_discount 是否开启商品优惠 * @proper...
true
6eb7c57016f6aec18dd49dfb61df3c55003b982a
PHP
mpetrov83/icar
/inc/events/Abstract_Transaction.class.php
UTF-8
2,455
2.96875
3
[]
no_license
<?php # # ICAR EVENTS # syalcin # # Updated: June 07, 2005 # # TRANSACTION ABSTRACT class TransactionAbstract { var $_accounts; var $_eventDetail; var $_validationCollection; var $_errors; var $name; // Transaction Name function TransactionAbstract($detail) { $this->_eventDetail = $detail; ...
true
391a8e9d1fd82ced8b50a2e0526c400790048823
PHP
ojnickel/elearning
/coursera/wa4e/javascript/assigments/1/index.php
UTF-8
3,091
2.9375
3
[]
no_license
<?php session_start(); //db connection require_once 'pdo.php'; //for checking if user is logged in require_once 'check.php'; //get a list of profiles function make_list($pdo) { $stmt = $pdo->query("SELECT profile_id, first_name, headline FROM Profile"); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); return $...
true
358b6e41aa3042ab54eb68d43fda5807c78e1dab
PHP
hoangbaovu/php_training
/chuong_05_OOP/02-property-method/04.php
UTF-8
253
3.109375
3
[]
no_license
<?php require_once 'Cat.class.php'; $catA = new Cat(); $catA->setName('Miu Miu'); $catA->setColor('Gray'); $catA->setAge(2); $catA->showInfo(); $catB = new Cat(); $catB->setName('Kitty'); $catB->setColor('Black'); $catB->setAge(3); $catB->showInfo();
true
1cedb543c9f51a534cef9e65fcd12f16c48c7816
PHP
Gtvar/Ticki
/src/Ticki/Core/Model/WinCount.php
UTF-8
1,416
3.15625
3
[ "MIT" ]
permissive
<?php namespace Ticki\Core\Model; use Ticki\Core\Exception\ExceptionFactory; /** * Determine winner */ class WinCount { /** * @var array */ protected $count = array(); /** * Construct */ public function __construct() { $this->count = array( Cell::TIC => ...
true
b7973b6fc7111d7358291874f57d2a34d27f593a
PHP
kthread/IS683_project
/homework3/Schema_ImageObject.php
UTF-8
1,054
2.859375
3
[]
no_license
<?php include_once("common_libs.php"); class Schema_ImageObject extends Schema_MediaObject { // Caption // ExifData // RepresentativeOfPage // Thumbnail (of type Schema_ImageObject) function __construct() { parent::__construct(); $this->SchemaArray["itemType"] = "http://schema.org/ImageObject"; ...
true
8164e1e08712003ebaa98e7b97f819b6338f5309
PHP
alrik11es/ph2p
/src/Core/Pool.php
UTF-8
738
2.71875
3
[ "MIT" ]
permissive
<?php namespace Ph2p\Core; class Pool{ public $nodes = []; public function __construct() { $storage = new Storage(); $this->nodes = unserialize($storage->get('nodes')); } public function addNode($hash) { // if(!in_array($hash, $this->nodes)) { // $node = new Nod...
true
00cc2abd0023e05f8d473f60af5792b56752426a
PHP
boekabart/htimaze_php
/maze.php
UTF-8
3,100
2.78125
3
[]
no_license
<?php require_once(__DIR__ . '/vendor/autoload.php'); $key = $argv[1]; // Configure API key authorization: User token $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', $key); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Swagger\...
true
a90725ad9bdc99697245526a1062be9c59467138
PHP
danilau/CrApp
/models/User.php
UTF-8
935
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Andrej * Date: 26.6.15 * Time: 18.29 */ namespace app\models; use Yii; use yii\web\IdentityInterface; use app\models\CRActiveRecord; class User extends CRActiveRecord implements IdentityInterface{ public $id; public $username; public $handState; /** ...
true
8e82cc7f54d4e3fe45a4fe4136b5e37248d10860
PHP
WinstonShields/Search-Engine
/src/elasticsearch/download_docs.php
UTF-8
1,980
3.109375
3
[]
no_license
<?php if (isset($_POST['download_id'])) { $dissertation_id = $_POST['download_id']; // The path where your dissertation directory will be. $path = "/mnt/d/Documents/CS518/dissertation/" . $dissertation_id . "/"; // Get all of the files in the directory. $dir = scandir($path); $counter = 0;...
true
f9bbadb3ebe23796fefce8aa828c19f3ad62f2d9
PHP
confusedmatrix/Telescope-Schedules
/lib/TelescopeSchedules/Telescopes/SwiftTelescope.php
UTF-8
3,109
2.828125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the TelescopeSchedules package. * * (c) Christopher Briggs <chris@jooldesign.co.uk> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace TelescopeSchedules\Telescopes; use TelescopeSchedules\...
true
de17b29bfa573c6b0d4f1d14c1cb6a4990432e6c
PHP
feifeio0/PHP-Hypertext-Preprocessor
/php&mysql加强/php加强/2.运算符/12-逻辑运算符.php
UTF-8
248
3.1875
3
[]
no_license
<?php //&& 两个表达式都返回true才为真 //|| /*for ($i=100; $i <200 ; $i++) { if(($i%3==1) && ($i%4==2) && ($i%5==3)){ echo $i,'<br>'; } }*/ $car = true; $house = false; if($car || $house){ echo 'ok'; }else{ echo 'no ok'; } ?>
true
60322dd46daf5268312187f15bf60b3e832b0320
PHP
cosnics/cosnics
/src/Chamilo/Libraries/Protocol/Microsoft/Graph/Service/GroupService.php
UTF-8
20,992
2.5625
3
[ "MIT" ]
permissive
<?php namespace Chamilo\Libraries\Protocol\Microsoft\Graph\Service; use Chamilo\Configuration\Service\ConfigurationConsulter; use Chamilo\Core\User\Storage\DataClass\User; use Chamilo\Libraries\Protocol\Microsoft\Graph\Exception\AzureUserNotExistsException; use Chamilo\Libraries\Protocol\Microsoft\Graph\Exception\Gro...
true
ca7fbe6a6dfa13c554a90c1da8780b9c54c4e423
PHP
chapter-three/AppleNewsAPI
/tests/Document/Components/FacebookPostTest.php
UTF-8
663
2.734375
3
[ "MIT" ]
permissive
<?php /** * @file * Tests for ChapterThree\AppleNewsAPI\Document\Components\Tweet. */ use ChapterThree\AppleNewsAPI\Document\Components\FacebookPost; /** * Tests for the FacebookPost class. */ class FacebookPostTest extends PHPUnit_Framework_TestCase { /** * Setting properties and outputting json. */ ...
true
13e5c5ddd000ee9529dde52d84f54fc8acf3163f
PHP
linchew/Linchew-MVC-2.0
/core/classes/View.php
UTF-8
1,263
3.265625
3
[]
no_license
<?php /** * * Class View is the basic structure of all the View in MVC Structure. * @author Linchew * */ abstract class View { //General Variable protected $vars = array (); protected $scripts=array(); protected $styles=array(); protected $_scripts=array(); protected $_styles=array(); ...
true
4f00a08610951f920a657f90ac38824f15b14c3e
PHP
sebastian-asprilla/Sport2
/model/registro_model.php
UTF-8
1,977
2.609375
3
[]
no_license
<?php @session_start(); include('conexion_model.php'); class uso{ function registro(){ try { $nombres=$_POST['Nombres']; $apellidos=$_POST['Apellidos']; $cedula=$_POST['Cedula']; $ficha=$_POST['Ficha']; $correo=$_POST['Correo'...
true
3512b7f63fa4d3ff754a2dac8e38fb5fe5090ee9
PHP
4iz278/cviceni
/04-objekty-II-validace/04-autoload/osoba.php
UTF-8
267
2.8125
3
[]
no_license
<?php /** * Class Osoba */ class Osoba{ /** @var string $jmeno */ public $jmeno; /** @var Ukol[] $ukoly */ public $ukoly = []; /** * @param $nazevUkolu */ public function pridatUkol($nazevUkolu){ $this->ukoly[]=new Ukol($nazevUkolu); } }
true
29c35bf32890479037b763d6548ba3970f9d2ddf
PHP
tsapina/knjiznica1
/korisnik.php
UTF-8
2,624
2.6875
3
[]
no_license
<?php include 'php/includes/header.php'; ?> <h1>Uređivanje korisnika</h1> <?php if(isset($_GET['id'])) { $id = $_GET['id']; $sql="SELECT * FROM korisnik WHERE korisnik_ID = $id"; $korisnik = upit($sql); if(isset($_POST['uredi'])) { $ime = $_POST['ime']; $prezime = $_POST['prezime']; $kontakt = $_POST['kon...
true
0157be0225b038ecc4f42f4be500a3fc49180f7b
PHP
edusant/teste
/app/Model/Pagamento.php
UTF-8
1,739
2.578125
3
[]
no_license
<?php namespace App\Model; class Pagamento extends Cone { public function create($user_id){ // var_dump(filter_input(INPUT_POST, FILTER_DEFAULT)); // die(); $intervalo = filter_input(INPUT_POST, 'intervalo', FILTER_SANITIZE_SPECIAL_CHARS); $valor = filter_input(INPUT_POST, 'valor',...
true
0fd010745c14cc90fd824f2c5cb3384f26deaae3
PHP
sylvainhalle/GyroGearloose
/QReader/dist/Other/generate-trace.php
UTF-8
325
3.125
3
[]
no_license
<?php $num_events = 400; $event_size = 600; echo "<trace>\n"; for ($i = 0; $i < $num_events; $i++) { echo "<event>#$i?".random_data($event_size)."</event>\n"; } echo "</trace>\n"; function random_data($length) { $out = ""; for ($i = 0; $i < $length; $i++) { $out .= chr(rand(48, 126)); } return $out; ...
true
047749992f3da86d82db4a3fe654a43a5ee415e5
PHP
kimhou/memcachedTest
/php/MemcacheTestPro/src/memcache.php
UTF-8
608
2.84375
3
[]
no_license
<?php var_dump("start<br/>"); $cache = new Memcache; $cache->connect('10.66.108.24', 9101); $key = "php-key-1"; var_dump("<br/>get last set value = " . $cache->get($key)); var_dump("<br/>start set value"); $cache->set($key, "value1". time()); var_dump("<br/>set finished"); var_dump("<br/>get set just set value =...
true
153d387bb91ccd95164b786a478a47b91e1d46bb
PHP
marcoantonioarenas/ARQUITECTURA-ORIENTADA-A-SERVICIOS
/AppPaque/webServiceY/index.php
UTF-8
4,317
2.640625
3
[]
no_license
<?php //no bloquee el contenido if (isset($_SERVER['HTTP_ORIGIN'])) { header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); header('Access-Control-Allow-Credentials:true'); header('Access-Control-Max-Age:86400'); //cache por un dia } //ESTABLECE FORMATO DE ENTRADA PARA APPLICATION/JSON if(strc...
true
44f8c5f56e23e9477ed48be3b0d08eb0d4187f6a
PHP
yikhsn/silondry
/app/Model/Customer.php
UTF-8
3,457
3.15625
3
[]
no_license
<?php namespace Acme\Model; use Acme\Model\CRUD; use PDO; class Customer { protected $db, $totalRecord, $currentPage, $limit; /** * the constructor method to create an instance of the * crud model and count total row record in the table */ public function __cons...
true
3fe3adfbd7a7e6969ca36379b068adf45c1f9d5e
PHP
vkrtecek/utrata-server
/tests/Unit/PurposeTest.php
UTF-8
3,489
2.6875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: vkrte_000 * Date: 26. 3. 2018 * Time: 0:16 */ namespace Tests\Unit; use App\Model\Entity\Member; use App\Model\Entity\Purpose; use App\Model\Exception\AlreadyExistException; use App\Model\Service\PurposeService; use Symfony\Component\HttpKernel\Exception\BadRequestHttpEx...
true
b89a121a2dee1a9fb1753f9d87c7ea63a869d7c8
PHP
evgeniy-bublik/laravel-portfolio
/app/Http/Controllers/Admin/Portfolio/CategoryController.php
UTF-8
4,360
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin\Portfolio; use DataTables; use App\Models\Portfolio\Category; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Requests\Admin\Portfolio\Category\StoreRequest; use App\Services\Admin\Portfolio\CategoryService; use App\Repositories\Eloquent\Portfo...
true
7b0c8fa2d3986f3f4b399e0f72fb2cfaa43d0f07
PHP
alepiace/fabrik
/plugins/fabrik_element/fileupload/adaptor.php
UTF-8
4,663
2.5625
3
[]
no_license
<?php /** * @package Joomla * @subpackage Fabrik * @copyright Copyright (C) 2005 Fabrik. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die(); /** * Abstract Storage adaptor for ...
true
fdd2db58eab886d14439fbc30de9472680218bc6
PHP
EduardoFRRZ/curso_web_basico
/curso/Site/alterar.php
UTF-8
2,148
2.828125
3
[]
no_license
<?php include "config/domain.php"; include "dvd/dvd.php"; include "template/html.php"; $html = new html(); $html->header(); $dvd = new dvd(); //Procuramos verificar se existe algum id sendo repassado, caso exista a variavel $valores receberá um array contendo todas as informações relativas aquele registro ...
true
02a7305127a8692ae8f5100221afb7b2b02ac6e0
PHP
ArielEspinoza07/nurse-service-api
/app/Policies/MedicalNoteTypePolicy.php
UTF-8
2,693
2.59375
3
[]
no_license
<?php namespace App\Policies; use App\Models\MedicalNoteType; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class MedicalNoteTypePolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. * * @param User $user * * @return mixed ...
true
e965739a0c926a40dd20f89076390607a8cc37d3
PHP
sagarwal3005/jaimin-zeromatrixsolutions.com
/app/models/Society.php
UTF-8
959
2.5625
3
[ "MIT" ]
permissive
<?php namespace SocialSoc\models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Society extends Model { protected $softDelete = true; // enable soft deleting use SoftDeletes; protected $fillable = ['name', 'country_id', 'state_id', 'city_id','deleted_at','a...
true
cab42662d9c434708e003048245325fb517c2ed1
PHP
nahlabhm/gestion-materiel-Informatique-Symfony
/src/Controller/ServiceController.php
UTF-8
3,224
2.53125
3
[]
no_license
<?php namespace App\Controller; use App\Entity\Service; use App\Form\ServiceType; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; ...
true
fdf7fc1b52f23c10454b09d1cff0367370c67a77
PHP
kaiquevandersar/openautomationtest
/arearestrita/listarContatos.php
UTF-8
1,503
2.875
3
[]
no_license
<?php include "../includes/header2.php"; ?> <?php // Arquivo com os dados e função de conexão require "../conexaoMysql.php"; require "getContato.php"; $arrayContato = ""; $msgErro = ""; try { $conn = conectaAoMySQL(); $arrayContato = getContato($conn); } catch (Exception $e) { $msgErro = $e->getMessage(...
true
a6dbd974bcb1f3d281c7af3ffe2273e29739bcc8
PHP
macielbombonato/docker-chamilo
/1.11.2/chamilo-lms-1.11.2/main/gradebook/lib/be/dropboxlink.class.php
UTF-8
1,628
2.75
3
[ "GPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* For licensing terms, see /license.txt */ /** * Gradebook link to dropbox item * @author Bert Steppé * @package chamilo.gradebook */ class DropboxLink extends EvalLink { private $dropbox_table = null; /** * Constructor */ public function __construct() { parent::__construc...
true
6e7099efd7ae8e4299afb5851971a10d3e02521b
PHP
ekyna/Commerce
/Order/Repository/OrderRepositoryInterface.php
UTF-8
3,905
2.671875
3
[ "MIT" ]
permissive
<?php namespace Ekyna\Component\Commerce\Order\Repository; use Ekyna\Component\Commerce\Common\Model\CouponInterface; use Ekyna\Component\Commerce\Common\Repository\SaleRepositoryInterface; use Ekyna\Component\Commerce\Customer\Model\CustomerInterface; use Ekyna\Component\Commerce\Order\Model\OrderInterface; /** * ...
true
721d07c57497ea5f5637695bdc7e52a6602060fb
PHP
pqhuy98/APPDEV
/Web/archive.php
UTF-8
2,128
2.578125
3
[ "MIT" ]
permissive
<?php //--------------------------------------------- include "MISC_functions.php"; if (!isset($_GET["date"]) || empty($_GET["date"]) || !checkDateFormat($_GET["date"]) || !dateRecordExists($_GET["date"]) ) $date = "None"; else $date = $_GET["date"]; //--------------------------------------------- if (...
true
0b451c18e91dbd8a293cda5ee4c7e357fcf3385e
PHP
GrimmDevelop/backend
/app/Events/ImportProgress.php
UTF-8
1,440
2.53125
3
[]
no_license
<?php namespace App\Events; use Grimm\User; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; class ImportProgress implements Should...
true
46c9ae92f784b83c1f429f52dee3e5b46044c669
PHP
lucianoob/FlexUpdateApp
/bin-debug/example/php/services/erpprodutosService.php
UTF-8
3,070
2.671875
3
[]
no_license
<?php require_once 'ErpConexaoService.php'; require_once 'vo/erpprodutos.php'; class erpprodutosService { var $tablename = "erpprodutos"; var $conexao; var $query; function erpprodutosService() { $this->conexao = new ErpConexaoService(); } public function listarerpprodutos() { $this->conexao->openConexao();...
true
5a46b946b6dec7877bb2d9cb431fa3d9b299c524
PHP
matrunchyk/expression-parser
/src/HandlerProxy.php
UTF-8
2,294
3.078125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DI\ExpressionParser; use ReflectionClass; use InvalidArgumentException; class HandlerProxy { /** @var ExpressionParser $context */ protected $context; /** @var array $handlers */ protected $handlers; /** * HandlerProxy constructor. * * @pa...
true
3406fb6d23e3e02879f4bcfe87d4cb1ecd98fab6
PHP
Aspheles/DaVinci-Code
/Server/savequestion.php
UTF-8
3,118
2.59375
3
[]
no_license
<?php include "connection.php"; //Checking for question first $title = $_POST['question_title']; $description = $_POST['question_description']; //$image = $_POST['question_image']; $puzzleid = $_POST['puzzle_id']; $stmt = $conn->prepare("SELECT * FROM questions WHERE id=:id AND title=:title AND puzzle_id =:puzzle_i...
true
ee35dbb9b6541e70989b149bc786e75022d5bc14
PHP
Mutale85/PHP-and-MySQL--Role-Based-Login-System
/admin.php
UTF-8
1,559
2.53125
3
[]
no_license
<?php include("data/db.php"); $role = $_SESSION['userRole']; if (!isset($_SESSION['username'])) { header("location:./"); }else if (isset($_SESSION['userRole'])) { if ($_SESSION['userRole'] == "user") { header("location:home.php"); } } ?> <!DOCTYPE html> <html> <head> <title>Login Page</title> <meta charset="utf...
true
ff042e5976c0bad75e8a8d96439b76cf02ed6165
PHP
oyinloslos/bookstore-online
/www/public/UserLogin.php
UTF-8
2,242
2.640625
3
[]
no_license
<?php #load db connection include '../includes/db.php'; #including functions include '../includes/functions.php'; #title $page_title = "Login"; #include header include 'includes/header.php'; ?> <?php $errors = []; if(array_key_exists('login', $_POST)){ if (empty(...
true
ea9d6c2c230b5e76c5b565ca50971c98e0483eb1
PHP
aliandac/testCode
/helpers/helpers.php
UTF-8
3,156
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Request; use App\Models\Settings; use App\Models\Advertisements\BuyingAdvertisement; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; use App\Services\Advertisement\AdDistribution; if ( !function_exists('limit') ) { function limit( $value , $limit , $end = '...
true
514e2f98bbdf67e0984adc2f02d90fe64482ef9b
PHP
marcospont/php2go
/php2go/widget/ReCaptcha.php
UTF-8
2,024
2.59375
3
[]
no_license
<?php require_once PHP2GO_PATH . '/vendor/recaptcha/recaptchalib.php'; class ReCaptcha extends WidgetInput { private static $themes = array( 'red', 'white', 'blackglass', 'clean', 'custom' ); private static $locales = array( 'en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr' ); protected $publicKey; protected $...
true
d24835fde2f4059078b96dd4839cb881da2ba566
PHP
JSn1nj4/ElliotDerhay.com
/database/factories/ProjectFactory.php
UTF-8
605
2.625
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Project> */ class ProjectFactory extends Factory { /** * Define the model's default state. * * @return array<string, mixed> */ ...
true
a7e964d199e76401df65afd848f65542d2bba0c4
PHP
amitalgo/loanbay
/app/Http/Resources/User.php
UTF-8
683
2.609375
3
[]
no_license
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class User extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { return ...
true
910715cbbb1d2eeb01bc8330daee3a646934db65
PHP
ritesh2406/Ajax
/test4.php
UTF-8
2,824
2.625
3
[]
no_license
<?php include ('db_connec.php'); if($_POST){ print_r($_POST); $name=$_POST['name']; $address=$_POST['address']; $dob=$_POST['dd'].'/'.$_POST['mm'].'/'.$_POST['yyyy']; $city=$_POST['city']; if(!empty($_FILES)){ $image_name=$_FILES['img']['name']; move_uploade...
true
c69ea39956b4554b2f280cc95c44a068a52f40b4
PHP
Utegrad/Softball
/softball/content.php
UTF-8
171
2.71875
3
[]
no_license
<div id="content"> <?php $i=0; while ($i <= 10) { echo "<h4 style='margin: 0 auto; padding: 5px;'>Hello World</h4>\n"; $i++; } ?> </div>
true
3276920f9d40e880fe09106557144a0ebe46ccd2
PHP
Foreachq/page-analyzer
/app/Services/Checkers/SiteChecker.php
UTF-8
1,349
2.765625
3
[]
no_license
<?php namespace App\Services\Checkers; use App\Exceptions\InvalidUrlException; use App\Exceptions\UrlNotFoundException; use App\Services\Parsers\HtmlParser; use Database\Factories\UrlCheckFactory; use Database\Repositories\UrlCheckRepository; use Database\Repositories\UrlRepository; use Exception; use Illuminate\Supp...
true
041d663bb4a8e6a2a69c097624843649d42dda58
PHP
delta3d2009/formext
/form_rander/新建文件夹/searcher.php
UTF-8
2,969
2.765625
3
[]
no_license
<?php namespace form_rander; class searcher { public $_searchCfg; function __construct(){ } public function rander(){ if(empty($this->_searchCfg)){ return; } ?> <fieldset class="searchBox"> <legend>查询条件</legend> <?php foreach ($this->_searchCfg as $ke...
true
755a1a1358c6c1856d4f6c5c804dc5bf3e456db3
PHP
slavielle/grabbag
/tests/Grabbag/ItemCollectionTest.php
UTF-8
35,448
2.53125
3
[ "MIT" ]
permissive
<?php /* // Testable classes require_once __DIR__ . '/../vendor/autoload.php'; // Test useful classes require_once 'sourceData/Leaf1.php'; require_once 'sourceData/List1.php'; require_once 'sourceData/SourceDataHelper.php'; require_once 'testData/TestDataHelper.php'; */ use PHPUnit\Framework\TestCase; use Grabbag\Gra...
true
7f0dfd3b8f6c34b7d40ef1463a0896c3022d6d68
PHP
gueessa/hubrid
/bundles/hybrid/libraries/installer.php
UTF-8
729
2.859375
3
[]
no_license
<?php namespace Hybrid; use Exception; class Installer { /** * Installation status * * @var boolean */ public static $status = false; /** * Return whether Hybrid is installed * * @return bool */ public static function installed() { return static::$...
true
eb7d23071f0db4aafc81ea9d1385d23e83eb31a8
PHP
Quimoniz/ophelia
/humidity.php
UTF-8
9,023
2.609375
3
[ "MIT" ]
permissive
<?php include('config.php'); $environ_handle = new mysqli($ENVIRON_DB_HOST, $ENVIRON_DB_USER, $ENVIRON_DB_PASS, $ENVIRON_DB_DB); if(isset($_GET['brief_humidity'])) { $environ_result = $environ_handle->query('SELECT time, ort, temperature, pressure, humidity FROM sensors WHERE ort=\'vorratskammer\' ORDER BY time DESC...
true
938eaf4002d232f4a108a747a93699a9f3a2d7d5
PHP
tinmaungzin/user-crud-backend
/app/Http/Controllers/API/UserController.php
UTF-8
1,298
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Http\Actions\UserCreate; use App\Http\Controllers\Controller; use App\Http\Requests\API\CreateUserRequest; use App\Http\Requests\API\UpdateUserRequest; use App\Models\User; use Illuminate\Http\Request; class UserController extends Controller { public function ind...
true
89fa22b49352ca30c454b0901f8ffc239879764b
PHP
silverwolfx10/tcc-uhealth
/application/tests/src/Ad/src/Ad/Form/PackageTest.php
UTF-8
1,849
2.65625
3
[]
no_license
<?php namespace Application\Ad\Form; /** * Class UnitTest */ class PackageTest extends \Infrastructure\Test\UnitTestCase { //chamado automaticamente pelo phpunit public function setUp(\Phalcon\DiInterface $di = NULL, \Phalcon\Config $config = NULL) { $this->classTested = '\Application\Ad\Form\Package'; ...
true
2d7618c560db63b42f5530dd884e77d16bd23299
PHP
AndriyK/design-patterns-php
/tests/Iterator/ArrayListTest.php
UTF-8
469
2.890625
3
[ "MIT" ]
permissive
<?php use \Kondrat\DesignPatterns\Iterator\ArrayList; class ArrayListTest extends PHPUnit_Framework_TestCase { public function testFunctionality() { $list = new ArrayList(); $list->add('test 1'); $this->assertEquals('test 1', $list->get(0)); $this->assertEquals(1, $list->lengt...
true
8c5e19eed89e875052977727348e429c6ad086e1
PHP
mechoriet/dns
/src/Dns.php
UTF-8
2,979
2.75
3
[ "MIT" ]
permissive
<?php namespace Spatie\Dns; use Spatie\Dns\Contracts\Collection as CollectionContract; use Spatie\Dns\Exceptions\CouldNotFetchDns; use Spatie\Dns\Exceptions\InvalidArgument; use Spatie\Dns\Handlers\Dig; use Spatie\Dns\Handlers\DnsGetRecord; use Spatie\Dns\Handlers\Handler; use Spatie\Dns\Support\Collection; use Spati...
true
89d715605730dd358f19fb941a528eb7d99abd01
PHP
dennishohmann/fss-praxis
/src/Controller/StudentController.php
UTF-8
4,347
2.53125
3
[]
no_license
<?php namespace App\Controller; use App\Entity\Student; use App\Form\StudentType; use App\Repository\StudentRepository; use Knp\Bundle\SnappyBundle\Snappy\Response\PdfResponse; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\...
true
a00d73e8b6599ee2e7468c8638210103008cd821
PHP
xRichard/EmbraceGW
/pages/apitest.php
UTF-8
320
2.5625
3
[]
no_license
<?php echo 'api test <br />'; $data = $guild->getMembers(); //echo "<pre>"; $count = count($data); for($a = 0; $a < $count; $a++) { echo "<img src='".$data[$a]['character']['thumbnailURL']."'></img>"; $b = $a + 1; if($b % 20 == 0) { echo "<br />"; } } //echo "</pre>"; ?>
true
2c3ceed705947a62d0d0a5738e113a2577a14da6
PHP
DavidBadura/orangedb
/src/Annotation/ReferenceOne.php
UTF-8
380
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DavidBadura\OrangeDb\Annotation; /** * @author David Badura <d.a.badura@gmail.com> * * @Annotation */ class ReferenceOne { public ?string $target; public function __construct(array $data) { $this->target = $data['target'] ?? null; if (isset($d...
true
bc003282de53a5a553b62993a2a0b143c4e90190
PHP
VeraGorod/odds_parser_php
/data_helpers/DataGetter.php
UTF-8
886
2.609375
3
[]
no_license
<?php /** @noinspection PhpComposerExtensionStubsInspection */ namespace DataHelpers; require_once __DIR__ . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "helpers" . DIRECTORY_SEPARATOR . "FileHandler.php"; /** * */ class DataGetter { public static function get_ligs(){ if (!file_exists(\Helpers\F...
true
20f034309c646da8901978d185470506b7c8d12b
PHP
thethan/fantasytest
/app/DataTransferObjects/Users/Teams/TeamInfoFromResponseDto.php
UTF-8
1,028
2.875
3
[ "MIT" ]
permissive
<?php namespace App\DataTransferObjects\Users\Teams; use Illuminate\Contracts\Support\Arrayable; class TeamInfoFromResponseDto implements Arrayable { protected $team_key; protected $logo; protected $name; protected $league_id; protected $game_id; protected $season; protected $code; ...
true
fb7b4b0d0581b40558703dd7dc87138933f75ea9
PHP
tuanpv1/hung
/console/migrations/m180603_095212_add_email_column_to_info_table.php
UTF-8
429
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles adding email_column to table `info_table`. */ class m180603_095212_add_email_column_to_info_table extends Migration { /** * @inheritdoc */ public function up() { $this->addColumn('info_table', 'email', $this->string()); } /** * @i...
true
c10d960a4cf21dfa5a1796b553280fb04588a978
PHP
tmalahie/firebase-php
/src/Firebase/DynamicLink.php
UTF-8
1,540
2.71875
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
<?php declare(strict_types=1); namespace Kreait\Firebase; use GuzzleHttp\Psr7\Utils; use JsonSerializable; use Kreait\Firebase\Util\JSON; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\UriInterface; final class DynamicLink implements JsonSerializable { /** @var array<string, mixed> */ private ...
true
10ebcbb9316e5f6be68f51d6c80564dea42b54ab
PHP
spasoyevich/gestion-de-base
/projet/principale.php
UTF-8
889
2.65625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Die and Retry</title> <!-- importer le fichier de style --> </head> <body> <form action = "verif-form.php" method = "post"> <input type = "text" name = "name" size="100"> <input type = "submit" name = "submit"...
true
e08f1e910d1ac712d0bc36cd0b38d7703239ea85
PHP
herculesdev/hphp
/framework/core/libraries/InputValidator.php
UTF-8
500
2.65625
3
[]
no_license
<?php /** * User: Hércules * Date: 20/02/2019 * Time: 08:25 */ namespace Core\Libraries; class InputValidator { private $input; function __construct() { } function __construct($input) { $this->input = $input; } private function setInput($input) ...
true
1a86fa34fe529fd386acbb121447ac83db7ae6fe
PHP
snwfog/whm_fsts
/application/whm/model/FlagDescriptor.php
UTF-8
2,760
2.921875
3
[]
no_license
<?php namespace WHM\Model; /** * Class FlagDescriptor * * @Entity * @Table(name="flag_descriptors") * @package WHM\Model */ use Doctrine\ORM\EntityManager; class FlagDescriptor { /** * @Id * @Column(type="integer") * @GeneratedValue * @var id */ private $id; /** * ...
true
6fdf577f33d64d8c416197e286b75e766fa94d19
PHP
duggore/aliados
/abonar-pagos-per/include/Libs.php
UTF-8
13,701
2.546875
3
[]
no_license
<?php /*$url = explode("/aliados/admin", $_SERVER["REQUEST_URI"]); $url = explode("/", $url[1]);*/ $url = explode("/admin", $_SERVER["REQUEST_URI"]); $url = explode("/", $url[1]); //$url = explode("/", $_SERVER["REQUEST_URI"]); $ruta = ""; $file=$url[count($url)-1]; for ($i=1; $i < (count($url) - 1); $i++){ $ruta ....
true