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
eeedb3454b5fcf88a06d1e7817153740ca9690bc
PHP
phuockhanh94/laravel-payment
/src/Gateways/CardInterface.php
UTF-8
611
2.9375
3
[]
no_license
<?php namespace GGPHP\Payment\Gateways; interface CardInterface { /** * Gets info for a card. * * @return array|null */ public function info(); /** * Create a new card. * * @param string $card_token * * @return CardInterface */ public function create(...
true
4870148ec7fedd46ee924eefce77455ccaa73f7a
PHP
arnyke/exercise
/exercise/adunare.php
UTF-8
134
3.078125
3
[]
no_license
<?php //title: A+B //sursa : http://www.infoarena.ro/problema/adunare $a = 131; $b = 245; $total = $a + $b; print_r($total); //376
true
c193f9ecd2f44f8341073307d87c2a7267aa8088
PHP
Klompara/Tetris
/addtotable.php
UTF-8
1,394
2.765625
3
[]
no_license
<?php function getUserIP() { $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = $_SERVER['REMOTE_ADDR']; if(filter_var($client, FILTER_VALIDATE_IP)) { $ip = $client; } elseif(filter_var($forward, FILTER_VALIDATE_IP)) { $ip = $forward; } else ...
true
a386c75c13c01b31468cc92ef821d6e779b93033
PHP
Shtarev/Tabelemacher
/daten/classes/tabelleAusfuellen.php
UTF-8
11,144
3.03125
3
[]
no_license
<?php /*Заполнение таблицы данными*/ namespace classes; use classes\loremIpsum as loremContent; class tabelleAusfuellen { public static function tabelleSchafen($anschluss, $tname, $imgDir, $width, $height, $menge){ // устанавливаем время работы PHP-скрипта т.к. размер таблицы может быть большой set...
true
b67b4a9ff0d1e22e086e45ee9e7011683454b8fa
PHP
WestAMZ/PhpProject
/model/insidencia.php
UTF-8
6,612
2.984375
3
[]
no_license
<?php class Insidencia { var $id_insidencia; var $fecha; var $descripcion; var $nivel; var $estado; var $id_usuario; var $adjunto; var $titulo; function __construct(){} /* function __construct($id_insidencia,$fecha,$descripcion,$n...
true
5082bf97de915fd480df7db79ec006eb4d9146c4
PHP
eyscode/kohana-rest-framework
/classes/ModelSerializer.php
UTF-8
7,021
2.578125
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
<?php defined('SYSPATH') OR die('No direct access allowed.'); class ModelSerializer { protected $_orm_model = null; protected $_fields = array(); protected $_has_many = array(); protected $_has_one = array(); protected $_belongs_to = array(); public function __construct() { if...
true
e22e30f1e74f1926336a280eeb53559d57378840
PHP
designcise/bitframe
/test/Http/Message/RedirectResponseTest.php
UTF-8
3,089
2.59375
3
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * BitFrame Framework (https://www.bitframephp.com) * * @author Daniyal Hamid * @copyright Copyright (c) 2017-2022 Daniyal Hamid (https://designcise.com) * @license https://bitframephp.com/about/license MIT License */ declare(strict_types=1); namespace BitFrame\Test\Http\Message; use PHPUnit\Fra...
true
5ece20e73265f32c8dfcba1c74af944ab03fabce
PHP
mxker/EnterpriseSystems
/common/moyun/TrackingCode.php
UTF-8
1,160
2.875
3
[]
no_license
<?php namespace common\moyun; class TrackingCode { /** * 根据包裹号码获取陌云流跟踪号 * @param int $id 包裹id * @return string 运单号 */ public static function getCode($id) { $code = self::getBaseCode('normal') . sprintf('%08d', $id); return $code; } /** * 获取陌云预分配物流号 * ...
true
80ff86ce32a37832519ad646bd1d02f038ae5163
PHP
tmorrow/Sales_piechart
/salespie.php
UTF-8
1,968
2.8125
3
[]
no_license
<!-- Taylor Morrow 300189738 Sales pie exercise --> <?php $mysqli = mysqli_connect("localhost","cs213user","letmein","testDB"); $year= $_POST['year']; $taryear= filter_input(INPUT_POST, 'year'); $yearsql= "SELECT * FROM sales WHERE year = '".$taryear."'"; $result= mysqli_query($mysqli, $yearsql) or die(mysq...
true
c3e4585bc10c66e7ca7b5206f11a78271f408631
PHP
TeamOfMy/TOM-BLOG
/App/Controller/Admin/PublicController.php
UTF-8
1,140
2.515625
3
[]
no_license
<?php namespace App\Controller\Admin; use App\Models\Users; use Symfony\Component\HttpFoundation\RedirectResponse; class PublicController extends BaseController { public function login() { return $this->render('Admin/Public/login'); } public function checkLogin() { $request = $t...
true
702c655e0703c3104a783ccbb2440ed7df0142ea
PHP
CeusMedia/HydrogenModules
/src/Tool/Calculator/classes/Model/Calculator/Multiplication.php
UTF-8
460
3.125
3
[]
no_license
<?php class Model_Calculator_Multiplication extends Model_Calculator_Operator { protected int $precedence = 5; public function operate( Model_Calculator_Stack $stack ) { $left = $stack->pop(); if( !$left ) throw new Exception( 'Missing multiplicand' ); $left = $left->operate( $stack ); $right = $stack->...
true
78e65768500076427f5cdbb970af4eef9ffa5ffe
PHP
alex-storozhenko/WSRatchetStarterProject
/app/Interfaces/WSConnectionInterface.php
UTF-8
607
2.8125
3
[ "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
<?php namespace App\Interfaces; use Ratchet\ConnectionInterface as RatchetConnection; /** * WebSocket connection contract. * * Interface WSConnectionInterface */ interface WSConnectionInterface extends RatchetConnection { /** * Returns the resource identifier for this connection. * * @return i...
true
8330a4f6833c6e7d64aeecdefd4ff49c7e8c8e61
PHP
hubertnnn/laravel-packages
/packages/merix/larapanel/src/Merix/LaraPanel/Core/Contracts/Components/ActionManagement.php
UTF-8
1,078
2.5625
3
[]
no_license
<?php namespace Merix\LaraPanel\Core\Contracts\Components; interface ActionManagement { // Action management public function refresh(); // Force a refresh on current data public function redirect($path); // Force a redir...
true
130db70c3b980beb2fe22c4213c9877b1c90a6e1
PHP
ricardorohde/QR-Digital-Menu-System-v1.5.2
/inc/modal_process.php
UTF-8
5,358
2.5625
3
[]
no_license
<?php include('config/config.php'); extract($_POST); //var_dump($_POST); $stmt2 = $conn->prepare("SELECT status, ctime FROM reset_counter"); //Getting time from resetcount for prevent login when admin reset the tables.. $stmt2->execute(); $stmt2->store_result(); $stmt2->bind_result($status,$ctime); $stmt2->fetch()...
true
faf652109a4524d8be7a0732955bfa2fb50145b6
PHP
bhazied/ubidV2
/src/ContinuousNet/UbidElectricityBundle/Controller/BannerTypeController.php
UTF-8
4,307
2.546875
3
[]
no_license
<?php namespace ContinuousNet\UbidElectricityBundle\Controller; use ContinuousNet\UbidElectricityBundle\Entity\BannerType; use ContinuousNet\UbidElectricityBundle\Form\BannerTypeType; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkEx...
true
97100dedfee377d362c0bca4e55698df15a4c8cb
PHP
dzineer/fd3-dynamic-pages-for-aqtermlife
/libraries/AQ2EAgentMicrositeService.class.php
UTF-8
3,031
2.5625
3
[]
no_license
<?php namespace AQ2EMarketingPlatform; if ( ! defined('FD3_DYNAMIC_PAGES_PLUGIN_AQTERM')) exit('No direct script access allowed'); /** * Filename: AQ2EAgentMicrositeService.class.php * Project: webroot * Editor: PhpStorm * Namespace: ${NAMESPACE} * Class: * Type: * * @author: Frank Decker * @since : 12/23/20...
true
35ce868c60bd6f536dfe6b647b9bebdc4f2b4509
PHP
deepakrt/hr112_hrms
/models/FtsGroupMaster.php
UTF-8
1,535
2.578125
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "fts_group_master". * * @property integer $group_id * @property string $group_name * @property string $group_description * @property integer $created_by * @property string $creation_date * @property string $last_modified_date * * ...
true
39f40fd0cb72e2d983943d00c18a98501137067d
PHP
RunOpenCode/event-overlaps
/src/Calculator.php
UTF-8
2,095
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace RunOpenCode\EventOverlaps; use RunOpenCode\EventOverlaps\Adapter\Matrix; use RunOpenCode\EventOverlaps\Contract\AdapterInterface; use RunOpenCode\EventOverlaps\Contract\CalculatorInterface; use RunOpenCode\EventOverlaps\Contract\EventInterface; use RunOpenCode\EventOverlaps\E...
true
80ae93490b7217b3e15f0add14ef9df1b0fea985
PHP
elib0/pos
/application/models/transfers.php
UTF-8
5,321
2.6875
3
[]
no_license
<?php class Transfers extends CI_Model { var $con = false; private $dbgroup = 'centralized'; function __construct() { parent::__construct(); //Verifica grupo de conexion para transacciones include('application/config/database.php'); if (isset( $db[$this->dbgroup] )){ ...
true
4749734eac0b19a3246226462c3dc488e41e77ca
PHP
brantcombv/rx2
/library/Rx/Console/Output/Handler/File.php
UTF-8
1,649
2.609375
3
[]
no_license
<?php class Rx_Console_Output_Handler_File extends Rx_Console_Output_Handler_Abstract { /** * Initialize logger object * * @return void * @throws Rx_Console_Exception */ protected function _initLog() { parent::_initLog(); // Initialize and configure writer to file ...
true
4c74db568bfcda96d99479dcb42147f9e8dbbd90
PHP
mavericks-lab/bigcommerce-laravel
/src/Store/Repository/MerchantRepository.php
UTF-8
727
2.640625
3
[]
no_license
<?php declare(strict_types = 1); namespace Maverickslab\Integration\BigCommerce\Store\Repository; use Maverickslab\Integration\BigCommerce\Store\Model\Merchant; /** * Merchant repository * * @author cosman * */ class MerchantRepository extends BaseRepository { /** * Reads merchant/store details...
true
4ce48d622c6053ce433f8f1eee151b5793b90436
PHP
azizmezzi/shop-locator
/shopLocator/function.php
UTF-8
1,183
2.65625
3
[]
no_license
<?php if(isset($_POST['home'])){ header("Location:home.php"); exit(); } $nom=$prenom=$email=$pass=''; if ($_SERVER["REQUEST_METHOD"] == "POST") { $nom = test_input($_POST['nom']); $prenom = test_input($_POST['prenom']); $email=test_input($_POST['email']); $pass=md5($_POST['pass']); } ...
true
2da6386afb30135b42a307b3bc2630213d49dc3e
PHP
Virtual-Machine-Vagrant/TienNguyen-vagrant-env
/vagrant-lavalite/public/vendor/litecms/faq/src/Litecms/Faq/Http/Controllers/FaqController.php
UTF-8
1,508
2.546875
3
[ "MIT" ]
permissive
<?php namespace Litecms\Faq\Http\Controllers; use App\Http\Controllers\Controller as BaseController; use Litecms\Faq\Interfaces\FaqRepositoryInterface; class FaqController extends BaseController { /** * Constructor. * * @param type \Litecms\Faq\Interfaces\FaqRepositoryInterface $faq * * ...
true
ed021c1d24ec739ec347de1a14e32f053d27d4e1
PHP
Dialgag1/lunches
/ClassManager.php
UTF-8
487
2.75
3
[]
no_license
<!DOCTYPE HTML> <html> <head> <title>Class Manager</title> </head> <body> <select name = "student"> <?php include_once('connection.php'); $stmt = $conn->prepare("SELECT * FROMTblUser WHERE Role = 0 ORDER BY Surname ASC"); $stmt->execute(); while ($row = $stmt->fetch(PDO::FET...
true
985c8fb226ba22a9cf583af252b8f561ff8a5415
PHP
fredemmott/travistest
/testb.php
UTF-8
158
3.03125
3
[]
no_license
<?php interface test { public function test(); } class foo implements test { public function test() { var_dump('hello'); } } (new foo())->test();
true
bc2ce6d46c98398489e88b1f77c4e06b7d93cb82
PHP
bzn/fnpb12
/sample.php
UTF-8
2,950
2.6875
3
[]
no_license
<?php include_once("include/init.php"); include_once("include/func.php"); include_once("class/myteam.class.php"); // 取得當前伺服器狀態(判斷自動排程用) //echo GetServerState(); //$playerRec7 = GetPlayerRec7(807); //var_dump($playerRec7); $aaa = -1; if(!$aaa) { echo "1"; } else { echo "2"; } /* // 比對時間大...
true
ab43042091e7461dbf941d27ad783219621fedf3
PHP
siti09012/webx
/vendor/inani/oxfordapi-wrapper/src/components/DictionaryTrait.php
UTF-8
1,794
2.796875
3
[ "MIT" ]
permissive
<?php namespace Inani\OxfordApiWrapper\Components; use Inani\OxfordApiWrapper\Exceptions\DictionaryException; use Exception; trait DictionaryTrait { protected $synonym = false; protected $antonym = false; /** * Set as true to grab synonym * * @return $this */ pub...
true
1325f8ff535d6be9b439b48a1ba9ef972d066b06
PHP
circlecreative/o2system-v3
/system/Core/SPL/ArrayObject.php
UTF-8
5,082
2.78125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: steevenz * Date: 03-Aug-16 * Time: 6:57 PM */ namespace O2System\Core\SPL; use O2System\Core\SPL\Traits\ArrayConversion; use O2System\Core\SPL\Traits\ArrayOffset; use O2System\Core\SPL\Traits\ArrayStorage; /** * Class ArrayObject * * @package O2System\Glob */ class A...
true
82d0ae913dbb2572815e07e44d694e442abc6767
PHP
gamingdark/TribePaymentsTestDemo
/classes/FrontendController.php
UTF-8
1,431
2.6875
3
[]
no_license
<?php declare(strict_types = 1); namespace Classes; use Classes\Repositories\UsersRepository; use Classes\Repositories\GroupsRepository; use Classes\Repositories\PermissionsRepository; class FrontendController { private static function getPartialPath(string $name): string { return sprintf('%...
true
978fab2568650a09a2ff2a579a31d507f0648ed6
PHP
jgodstime/sales-management-system-1
/application/Controller/RegisterController.php
UTF-8
2,311
2.765625
3
[]
no_license
<?php namespace Mini\Controller; use Mini\Core\View; use Mini\Model\Register; class RegisterController { var $View; public $msg; function __construct() { $this->View = new View(); $this->msg = new \Mini\Libs\FlashMessages(); } public function index() { if(isset($...
true
15fdd6580c757d900659784e3dac377334f5ea54
PHP
chy788/chytest
/GC_MVP/.svn/pristine/15/15fdd6580c757d900659784e3dac377334f5ea54.svn-base
UTF-8
7,540
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace ePals; use \ePals\Base\Rest; use \Exception; class Section extends Rest { private $id; //uuid private $sectionId; // ExternalId private $tenantDomain; private $schoolId; private $courseId; private $notes; private $meetingTimes; private $startDate; private $endDate...
true
9bddafa0257e2ccae6e4a935fc0152f20642ef2d
PHP
Cgyulas0525/tarca
/app/Repositories/MozgastetelRepository.php
UTF-8
692
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Mozgastetel; use App\Repositories\BaseRepository; /** * Class MozgastetelRepository * @package App\Repositories * @version October 4, 2020, 11:12 am UTC */ class MozgastetelRepository extends BaseRepository { /** * @var array */ protected $fieldS...
true
1aeb5a2e04037138939a663bd79c2b0624da3a0c
PHP
marcellodesales/infinitymetrics
/thirdparty/php-codesniffer/checkstyle.php
UTF-8
2,460
2.734375
3
[]
no_license
<?php /** * $Id: checkstyle.php 202 2008-11-30 19:24:44Z Marcello Sales * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ...
true
32646a41e6313943f02916610b75e87689570276
PHP
vvrahul/google-plus-post-share-api-php
/vendor/google/apiclient-services/Google/Service/Appengine/AppsServicesVersionsInstancesResource.php
UTF-8
1,933
2.609375
3
[ "Apache-2.0" ]
permissive
<?php /* * Copyright 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
true
60bc027c1bb296b69a1ef4cb65c607957488e9f0
PHP
elliotchance/concise
/src/Concise/Module/UrlModule.php
UTF-8
2,318
2.859375
3
[ "MIT" ]
permissive
<?php namespace Concise\Module; class UrlModule extends AbstractModule { public function getName() { return "URLs"; } /** * Validate URL. * * @return bool * @syntax url ?:string is valid */ public function urlIsValid() { $this->failIf( filt...
true
d5b15bae802f182dd4d230a519be0dd717ba332f
PHP
opatte/technical_test_foodmeup
/src/Foodmeup/NutritionBundle/Pager/Paginator.php
UTF-8
1,874
2.640625
3
[]
no_license
<?php namespace Foodmeup\NutritionBundle\Pager; use Knp\Component\Pager\Paginator as KnpPaginator; use Knp\Component\Pager\Pagination\PaginationInterface; /** * Class Paginator. */ class Paginator { /** * @var KnpPaginator */ private $knpPaginator; /** * Constructor. * * @para...
true
fc9748318f36351fd94a14b9dab484999b660856
PHP
EchoSystemMark/SlavsServer
/src/GameBundle/Monsters/AbstractMonster.php
UTF-8
7,603
3.0625
3
[ "MIT" ]
permissive
<?php namespace GameBundle\Monsters; use GameBundle\Statistics\Statistics; abstract class AbstractMonster { const TYPE = 0; /** * @var int */ public $id; /** * @var string */ public $name; /** * @var int */ public $experience; /** * @var int ...
true
bc18ad34f338455ff7f0191813ff3c5b51138635
PHP
mantishub/ImportUsers
/core/import_users_api.php
UTF-8
3,418
2.53125
3
[ "MIT" ]
permissive
<?php # # Copyright (c) 2016 MantisHub # Licensed under the MIT license # require_api( 'user_api.php' ); # Column Names define( 'COLUMN_USER_NAME', 0 ); define( 'COLUMN_REAL_NAME', 1 ); define( 'COLUMN_EMAIL_ADDRESS', 2 ); define( 'COLUMN_ACCESS_LEVEL', 3 ); define( 'COLUMN_PASSWORD', 4 ); define( 'COLU...
true
fe5aa5fcdf360e01d6383d1f6aa76948e1dde3d9
PHP
r0ly4udi/gpdi
/backend/modules/m1/models/Education.php
UTF-8
1,672
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\modules\m1\models; use Yii; use backend\models\Parameter; /** * This is the model class for table "education". * * @property integer $id * @property integer $parent_id * @property integer $level_id * @property string $school_name * @property string $city * @property string $country *...
true
bd0743eea0898f0194d2970ac6c1c996e65d0c24
PHP
EG-easy/chess
/config/config.php
UTF-8
278
2.53125
3
[]
no_license
<?php ini_set('display_errors', 1); define('DSN', 'mysql:dbhost=localhost;dbname=chess'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); session_start(); try{ $db = new \PDO(DSN, DB_USERNAME, DB_PASSWORD); } catch(\PDOException $e) { echo $e->getMessage(); }
true
348e655e9a80f297f9bdfe66e78b41c9c296100e
PHP
ahctun/PHP-PDO-MySQL-Class
/test.php
UTF-8
2,720
2.765625
3
[ "Apache-2.0" ]
permissive
<?php if (PHP_SAPI !== "cli") { header('HTTP/1.1 403 Forbidden'); exit('error: 403 Access Denied'); } if (PHP_OS === "WINNT") { exec('chcp 65001'); } $mTime = explode(' ', microtime()); $startTime = $mTime[1] + $mTime[0]; define('DBHost', '127.0.0.1'); define('DBPort', 3306); define('D...
true
94589f6f5e73e5f16218ff797337961ca0e5619e
PHP
Fabdrv/multiplicator
/calculs.php
UTF-8
1,645
3.46875
3
[ "Apache-2.0" ]
permissive
<!-- affichage du prénom --> <p> Bonjour <strong> <?php echo $_POST['prenom'] . '<br/>'; ?> </strong> </p> <p> Bienvenue sur les tables de multiplication</p> <?php /* securisation des données injectées */ $prenoms = ""; function securisation($donnees) { $donnees = trim($...
true
feee995c623f0d9d5cad98684d1a3b32d0dad673
PHP
huhuaihang/aikucun
/www/models/MerchantMessage.php
UTF-8
1,931
2.890625
3
[]
no_license
<?php namespace app\models; use yii\db\ActiveRecord; /** * 商户消息 * Class MerchantMessage * @package app\models * * @property integer $id PK * @property integer $mid 商户编号 * @property integer $sid 系统消息编号 * @property string $title 标题 * @property string $content 内容 * @property integer $time 添加时间...
true
58d114daf2e943394e62a601aa086273d9a49e3a
PHP
lawrelie/glowing-parakeet.php
/src/Lawrelie/GlowingParakeet/Contents/SearchResults/SearchResults.php
UTF-8
976
2.65625
3
[]
no_license
<?php namespace Lawrelie\GlowingParakeet\Contents\SearchResults; use DomainException, Throwable; class SearchResults extends \Lawrelie\GlowingParakeet\Contents\Contents { private array $children = []; public function __get(string $name): mixed { return 'children' === $name ? $this->$name : parent::__get...
true
c7d6885e351e118c8742f4edd2f3e360c38c153d
PHP
OscarLlaPar/Proyecto27
/Proyecto27/index.php
UTF-8
4,166
3.875
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>OLP-DWES - Ejercicio 01</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body{ background-color: black; color: red; } ...
true
00313538e39339e050cd1815e1dd288db72112b3
PHP
ytszayc123/fx
/application/admin/model/Admin.php
UTF-8
1,811
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\model; use app\common\CacheUtile; use think\Db; use think\Model; /*管理员表模型*/ class Admin extends Model { /*管理员登录*/ public static function modelLogin($username,$password) { return self::where(["aname"=>$username,"apassword"=>md5(sha1("YTSZAYC".md5($username).md5($password))...
true
493c9bd230d12ec51eac7726ccf9d475c435eb8a
PHP
midoooo/Facebook-Album-1
/service/MoveAlbum.php
UTF-8
3,599
2.640625
3
[]
no_license
<?php /** * Move one or more albums to google+ account base on specified albumId list */ require_once ("../lib/Facebook/facebook.php"); require_once ("Fbcredentials.php"); $_SESSION['albums'] = isset($_REQUEST["albums"]) ? $_REQUEST["albums"] : $_SESSION['albums']; set_include_path(get_include_path() . PATH_SEPARAT...
true
a342a58cecdfa860f5c43099029c1aa31f82abcf
PHP
sumukhabsholla/FundooNotes
/application/Service/TrashService.php
UTF-8
5,962
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: Authorization"); include "/var/www/html/codeigniter/application/Service/ReminderService.php"; include "/var/www/html/codeigniter/application/Static/ImageFormat.php"; class TrashService extends CI_Controller { public $imageRef; ...
true
5d3859fc51efa10028e46af0de208701b3b69de3
PHP
IevgenKachioni/testtask-banking-payments
/services/DB.php
UTF-8
2,096
3.3125
3
[]
no_license
<?php namespace Services; final class DB { /** @var DB */ private static $instance; /** * Gets the instance via lazy initialization (created on first usage). * @return \PDO * @throws \Exception */ public static function getConnection() { if (null === static::$instance)...
true
a0ccc5d9cd39dea3d7f6839b384b36825972651a
PHP
appostolov/PHP2017
/core/STATIC/STRINGS.class.php
UTF-8
4,174
3.296875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php require_once __DIR__ . '/CONFIG.class.php'; require_once __DIR__ . '/ARRAY.class.php'; /* * Class STRING handle [string] management * private statuc [string] $key_holder - empty KEY holder * public static [function] get_dynamic_keys - returns the KEYs in the string * public static [function] parse - sets the KE...
true
04681a33a51cdb40480622dc940c5d0a6863624e
PHP
jasonraimondi/command-query
/domain/src/Infrastructure/Repository/OAuth/DoctrineOAuthClientRepository.php
UTF-8
1,767
2.59375
3
[ "MIT" ]
permissive
<?php namespace Jmondi\Gut\Infrastructure\Repository\OAuth; use Doctrine\ORM\EntityManager; use Jmondi\Gut\DomainModel\Exception\EntityNotFoundException; use Jmondi\Gut\DomainModel\OAuth\OAuthClient; class DoctrineOAuthClientRepository implements OAuthClientRepositoryInterface { /** @var EntityManager */ priv...
true
4850426ca9d9594285a315530d653d1aa55c4206
PHP
Horat1us/taskbook-backend
/tests/UserTest.php
UTF-8
472
2.65625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: horat1us * Date: 8/19/17 * Time: 2:56 PM */ namespace Horat1us\TaskBook\Tests; use Horat1us\TaskBook\Entities\User; use PHPUnit\Framework\TestCase; class UserTest extends TestCase { public function testSettingPassword() { $password = sha1(mt_rand()); ...
true
ce20f19cb6928d09cc53a2478ae5308d2b8bc6d4
PHP
pabhd3/ProjectEuler
/001-100/009/pythagoreanTriplet.php
UTF-8
1,158
4.15625
4
[ "MIT" ]
permissive
<?php // Determine if a triplet is a pythagorean triplet function isPythagoreanTriplet($triplet){ $a = $triplet[0]; $b = $triplet[1]; $c = sqrt(pow($a, 2) + pow($b, 2)); $test1 = False; $test2 = False; if($a < $b && $b < $c){ $test1 = True; } if(filter_var($c, FILTER_VALIDATE_INT)){ $test2 = Tru...
true
2d6675959e98c21ae3cdf8344fc21520a535cec4
PHP
laksharzky/TravelKita
/actions/inserthotel.php
UTF-8
857
2.546875
3
[]
no_license
<?php include '../db_config.php'; //Data Hotel if (isset($_POST['proses'])) { //simpan data ke variabel lokal $kota = strtolower($_POST["kota"]); $check_in = $_POST["check_in"]; $check_out = $_POST["check_out"]; $tamu = $_POST["tamu"]; $kamar = $_POST["kamar"]; //validasi data tidak kosong if ( !empty($ko...
true
34bc3543410db01637b2ca1e2108733203baaa3a
PHP
oav2904/web-1
/CLASE 2/tarea/register.php
UTF-8
3,720
2.515625
3
[]
no_license
<?php require_once './shared/header.php'; require_once './shared/db.php'; ?> <section class="section"> <div class="container"> <h1 class="title"> Sign Up </h1> <?php if ($_SERVER['REQUEST_METHOD'] === 'POST') { $name = $_POST['name'] ?? ''; $lastname = $_POST['lastna...
true
5122026be5d926276de99b1f45f629b140c78d67
PHP
mylosers/lar_api
/app/Http/Controllers/Api/LoginController.php
UTF-8
1,849
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Model\UserModel; use Illuminate\Support\Str; use Illuminate\Support\Facades\Redis; /** * 登陆控制器 * Class LoginController * @package App\Http\Controllers\Api */ class LoginController extends Controller...
true
83207d6c419587b92687644ed6c961168753cee2
PHP
Siarko/php-component-cli
/src/Siarko/cli/util/config/Config.php
UTF-8
2,575
2.734375
3
[]
no_license
<?php namespace Siarko\cli\util\config; use Siarko\cli\bootstrap\Bootstrap; use Siarko\cli\bootstrap\events\Events; use Siarko\cli\util\ArrayHelper; use Siarko\cli\util\profiler\Profiler; abstract class Config { private $data = []; protected abstract function getPath(): string; protected abstract func...
true
7ef51c8b8e1ad593c9095190d4d533cbcc69dffc
PHP
warstars/micro-framework
/application/controllers/controller_admin.php
UTF-8
576
2.609375
3
[]
no_license
<?php namespace application\controllers; use application\controllers\Controller; use application\models\Category; class Controller_Admin extends Controller { function index() { $new = ''; $cat = new Category(); $newcat = $cat::find('all', ['conditions' => ['name']]); foreach($newcat as $key => $value) { ...
true
0c2faae0353bbfc2c0e1780c2b3248431ae60256
PHP
isaiasdr/Unearte
/Model/registros.php
UTF-8
2,566
3.25
3
[]
no_license
<?php include_once("ManejadorBD.php"); class registros extends ManejadorBD { private $idRegistros; private $Usuario; private $Fecha; private $Descripcion; private $evento_idEvento; private $db; public function __construct($conexion) { $this->db = parent::conectar($conexion); //eje...
true
9698f5178ca974bf5425bd7c8cfacdfc9879b49c
PHP
s-patompong/bx-alert
/app/Console/Commands/PriceAlertCommand.php
UTF-8
1,970
2.734375
3
[]
no_license
<?php namespace App\Console\Commands; use App\AlertHistory; use App\AutoAlertConfig; use App\Business\PriceAlerters\PriceAlerter; use App\Exceptions\PairNotFoundException; use Illuminate\Console\Command; class PriceAlertCommand extends Command { /** * The name and signature of the console command. * ...
true
6d97665eb84af87d1cb63f8bd30f3f38e27a2b6f
PHP
teolaz/Wordpress-Theme-Utils-Classes
/RuntimeInfos.class.php
UTF-8
4,681
2.78125
3
[]
no_license
<?php /** * stores the RuntimeInfos class definition */ /** * Manages a set of info to be printed as a json generally at the endo of the page * @author etessore * @version 1.0.1 * @package classes */ /* * Changelog * 1.0.1 * solved notice of undefined post on 404 pages */ class Runtime...
true
e4a036b4fcccd6f23619f0d73ad87db84e05b770
PHP
Seplarui/MVC-MYSQL_OLD
/Pruebas/Asignaturas/Index.php
UTF-8
1,295
2.5625
3
[]
no_license
<!DOCTYPE html> <html> <head><title></title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <?php include_once("funciones.php"); include_once("Modelo.php"); include_once("config.php"); ca...
true
2e9c6c02a6ac6b03cc2623455bd9ce308864238c
PHP
aaronbullard/Litmus
/old_app/app/libraries/Litmus/Entities/MagicObject.php
UTF-8
955
3.15625
3
[ "MIT" ]
permissive
<?php namespace Litmus\Entities; class MagicObject { protected $keys = array(); protected $type_casts = array(); protected $data = array(); final protected function __set($key, $value) { // is the key in the array of keys? if( in_array($key, $keys) ) { trigger_error("Cannot set {$key} to ".get_...
true
b9dab857cb83ef3a5a42913e2d5e3d58b8fdb60b
PHP
eoko/opence-eoze
/php/eoze/DateTime/TimeZoneProvider/PhpTimeZoneProvider.php
UTF-8
705
2.53125
3
[]
no_license
<?php namespace eoze\DateTime\TimeZoneProvider; use DateTimeZone; use eoze\util\PageInfo; /** * * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @author Éric Ortega <eric@planysphere.fr> * @since 1 nov. 2011 */ class PhpTimeZoneProvider extends AbstractTimeZoneProvider { public f...
true
e18e79fcdb5971528706606202be36d0ee658900
PHP
enygma/sunphp17
/App/Middleware/UserAccess.php
UTF-8
747
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Middleware; use App\Model\Service; class UserAccess { private $container; public function __construct($container) { $this->container = $container; } public function __invoke($request, $response, $next) { $route = $request->getAttribute('route'); $us...
true
79d8db903529cb2e8f9e0b9934741643eb8d1d49
PHP
D121-pemrogramanberbasisweb-genap-2020/webclassroom-testing-dandygardad
/HelloWorld.php
UTF-8
89
2.6875
3
[]
no_license
<?php echo "Hello World!<br>"; $nama = "Dandy Garda Dirgantara"; echo "Nama saya : $nama"; ?>
true
4162b590ee2846323412b471f734e38c749c7acf
PHP
oussama07/PIDEV
/src/AppBundle/Entity/User.php
UTF-8
2,545
2.640625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php // src/AppBundle/Entity/User.php namespace AppBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="user") */ class User extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy=...
true
b43333935a0512e8e7833d7fc1dd512fc9a7cf02
PHP
dssorokin/mvcMyshop
/www/controllers/UserController.php
UTF-8
1,143
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: proJS * Date: 16.06.2016 * Time: 20:19 */ class UserController { public function actionRegister(){ $result = false; $arrData = array(); if(isset($_POST['submit'])){ $arrData[] = $_POST['name']; $arrData[] =...
true
94abdb0212ba484e61fb46070fe2778976fbf72e
PHP
MAqielHilmanM/Sikipedia-Project
/application/controllers/Wiki.php
UTF-8
3,697
2.625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Wiki extends CI_Controller { public function __construct() { parent::__construct(); $this->load->database(); $this->load->helper('url'); $this->load->model('article_model'); } function _remap($method = 'main_page', $args = null) { if($args != null) $this->index($method,'...
true
7c5597beae27625c0753d9904487bf7896d2fc0b
PHP
iconvt/swoft-Xadmin
/app/Model/Entity/AuthGroupAccess.php
UTF-8
1,161
2.75
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace App\Model\Entity; use Swoft\Db\Annotation\Mapping\Column; use Swoft\Db\Annotation\Mapping\Entity; use Swoft\Db\Annotation\Mapping\Id; use Swoft\Db\Eloquent\Model; /** * 权限分组表 * Class AuthGroupAccess * * @since 2.0 * * @Entity(table="auth_group_access") */ class AuthG...
true
c4dc25747dd51ca49a8d6bb29e37894d26b6e18a
PHP
my-tigre-trip/mytigretrip
/wp-content/themes/gotravel-child/App/Models/Price.php
UTF-8
637
2.640625
3
[]
no_license
<?php namespace App\Models; /** * a price result container */ class Price { // boat public $boatName; public $adults; public $children; public $priceBoat; public $priceBoatChildren; public $priceBoatAdults; public $discountAdults; public $discountChildren; public $groupDisco...
true
c2b3219481070a6104b8d86e21ab16a66c7ade52
PHP
toseef31/islamic-eden-Wall
/app/Http/Controllers/NewsLetterController.php
UTF-8
1,160
2.59375
3
[ "MIT" ]
permissive
<?php namespace Edenmill\Http\Controllers; use Illuminate\Http\Request; use Edenmill\Http\Requests; use Edenmill\Subscriber; use Illuminate\Support\Facades\Mail; use Edenmill\Mail\NewsLetters; class NewsLetterController extends Controller { public function index(){ $subscribers = Subscriber::all(); return view(...
true
1af4db389690acc211621c8284d48a39fef9f791
PHP
md-aamroni/PHP-8
/Solid Principle/liskov-substitution/ConditionExample.php
UTF-8
839
3.828125
4
[]
no_license
<?php /** * Example of Ordinary Conditional Statement * * @param int * @return float|string * @throws Exception */ function autoVatAdded($number) { // TODO: Pre Condition try { if (!is_int($number)) { throw new \Exception('Param must be an integer'); } } catch (Exception $e) { return $e->getMessage()...
true
2bcb305be34469b797ec7e91435a7688c0e85f05
PHP
delforgedf/cursoOo
/ClienteEspecialInterface.php
UTF-8
149
2.53125
3
[]
no_license
<?php interface ClienteEspecialInterface { public function getEnderecoEspecial(); public function setEnderecoEspecial($enderecoEspecial); }
true
a982bb446ec404fa7f380b754646a1447823b9cb
PHP
bpanatta/atst2020
/src/factories/NumberFactory.php
UTF-8
764
3.265625
3
[ "MIT" ]
permissive
<?php namespace bpanatta\factories; use bpanatta\models\Number; /** * @author Bruno Panatta <brunopanatta@gmail.com> */ class NumberFactory { /** * Create an array containing a range of Number objects. * @param mixed $start First number value of the sequence * @param mixed $end The range will hal...
true
f2592ff14e9a45ce6b9dad6e44db4d279d91d18e
PHP
dagui150/siasoft_v2
/protected/models/SolicitudOc.php
UTF-8
7,432
2.609375
3
[]
no_license
<?php /** * This is the model class for table "solicitud_oc". * * The followings are the available columns in table 'solicitud_oc': * @property string $SOLICITUD_OC * @property string $DEPARTAMENTO * @property string $FECHA_SOLICITUD * @property string $FECHA_REQUERIDA * @property string $AUTORIZADA_POR * @pr...
true
a34f5c4afaa84504817400c1d653aad5d7222ee8
PHP
LeVanTan-58131382/design_pattern_LP
/php_designpattern/New folder/thanh_nam/Structual_Pattern/CompositePattern/Tree.php
UTF-8
1,129
3.90625
4
[]
no_license
<?php class Tree{ private string $name; private string $branch; private array $result = array(); public function setName($name){ $this->name = $name; } public function getName(){ return $this->name; } public function setBranch($branch){ $this->branch = $branch;...
true
79e49b3028545b45fa5f2fd55b426777d046ac58
PHP
aimon7/NASA
/rover_guide2.php
UTF-8
5,104
2.703125
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <head> <title>NASA Guide Input Page for second rover</title> <style type="text/css"> form { /* Center the form on the page */ margin: 0 auto; width: 700px; /* Form outline */ padding: 1em; border: 1px solid #CCC; border-radius: 1em; } form div + div { marg...
true
9361e586ec5eb0ff1a0fa3a0167a3e0d5da6bee2
PHP
Amerzel/LibRooms
/api/1_0_0/available_slots_for_room.php
UTF-8
1,405
2.625
3
[ "MIT" ]
permissive
<?php require_once("../../load.php"); // TODO: input validation if(isset($_GET['date'])) { $date = date("Y-m-d",strtotime($_GET['date']));; } if(isset($_GET['room_id'])) { $room_id = $_GET['room_id']; } $hours = load_hours($db,$date); pr($hours); $available_slots = $hours->slots; if(strtotime($available_slot...
true
b180b3af64b030ef60983af81f0774153396fba2
PHP
tcesarusa/mm-e-commerce
/vendor/omnipay/targetpay/tests/Message/MrcashCompletePurchaseRequestTest.php
UTF-8
516
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Omnipay\TargetPay\Message; use Omnipay\Tests\TestCase; class MrcashCompletePurchaseRequestTest extends TestCase { /** * @var MrcashCompletePurchaseRequest */ private $request; protected function setUp() { $this->request = new MrcashCompletePurchaseRequest($this->get...
true
e96dd4865d5acbebd68297d87c08fc4c76c5d37d
PHP
hduy2000/qlcb
/admin.php
UTF-8
1,548
2.53125
3
[]
no_license
<?php require('connect.php'); $query = "SELECT * FROM `user` WHERE position = '0'"; $result = mysqli_query($conn, $query); ?> <!DOCTYPE html> <html> <head> <title>Quản lý cán bộ</title> <meta charset="utf-8"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.m...
true
e059f99895b001a3c4d046220a2428bf15cb85f1
PHP
yukinaaa/-log
/mission_2-2.php
UTF-8
1,167
2.953125
3
[]
no_license
<html> <head> <title>mission_2-2.php</title> <meta charset="utf-8"> </head> <body> <form method="POST"action="mission_2-2.php"> 名前:<input type="text"name="name"value><br/> コメント:<input type="text"name="comment"value><br/> <input type="submit"value="送信"> </form> <?php $filename="mission_2-1.txt"; ...
true
eab041b03b0f2310751240b17b096f78f81f82bb
PHP
chevronphp/loggers
/example/FileLogger.php
UTF-8
989
2.8125
3
[]
no_license
<?php class FileLogger { protected $path; protected $name; function __construct($path, $name = ""){ if(!is_dir($path)){ throw new LoggerException("'{$path}' is not a directory"); } $this->path = rtrim($path, DIRECTORY_SEPARATOR); $this->name = $name; } function __invoke( $level, $message, array $co...
true
762fc5ecef9600226fe4baa19c82c5c0babd42ee
PHP
caferrari/manager
/module/Base/src/Base/Entity/Usuario.php
UTF-8
1,755
2.65625
3
[]
no_license
<?php namespace Base\Entity; use Doctrine\ORM\Mapping as ORM, Crud\Model\AbstractEntity, Zend\Crypt\Password\Bcrypt; /** * @ORM\Table(name="usuario") * @ORM\Entity(repositoryClass="Base\Repository\Usuario") @ORM\HasLifecycleCallbacks */ class Usuario extends AbstractEntity { /** * @ORM\Id *...
true
c70238f55ca63cbfc4a2fed9a7488600a1b39309
PHP
Relkondo/PHP
/D8/class/Map.class.php
UTF-8
5,731
3.40625
3
[]
no_license
<?php require_once("class/MapObject.class.php"); require_once("class/SpaceShip.class.php"); class Map { private $_map; private $_obstacles; private $_vessels1; private $_vessels2; public function __construct(array $args = []) { $this->_obstacles = array(); $ship = new HeavyShip(12, 12, "Iron Storm" , 1); ...
true
166461a1f10b7b814da1d6accc4ccdfc8558195e
PHP
rahach/php
/zend cerified php engineer/database/php3/aufgabe_busunternehmen/uebung3.php
UTF-8
924
2.625
3
[]
no_license
<h3>Übung 3</h3> <table> <tr><th>fahrtNr</th><th>bus</th><th>fahrerName</th><th>abfahrzeit</th><th>fahrtziel</th><th>fahrtdatum</th><th>ankunftszeit</th></tr> <?php $sql = "SELECT fahrtNr, CONCAT(polKz, ' ', hersteller), name, abfahrtzeit, fahrtziel, fahrtdatum, DATE_FORMAT(ADDTIME(ADDTIME(fahrtdatum,abfahrtzeit), ...
true
a160cc57cada2a38d6a1332d7c8f7374196d9667
PHP
MatokUK/puzzle-util-combination
/tests/CombinationIntervalTest.php
UTF-8
803
2.75
3
[ "MIT" ]
permissive
<?php namespace Matok\Util\Tests; use Matok\Util\CombinationInterval; use PHPUnit\Framework\TestCase; class CombinationIntervalTest extends TestCase { public function testCurrentValue() { $combination = new CombinationInterval('ab', 2, 3); $firstValue = $combination->current(); $comb...
true
8af5e1ffabffe9df9e9331372f9181494228c442
PHP
webteractive/expressionengine-env
/system/ee/EllisLab/ExpressionEngine/Service/Profiler/Section/Variables.php
UTF-8
2,298
2.578125
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
0dccc84223ad3740d856185a9aaebe29bbf46188
PHP
blank-attic/project-belleville-en-vrai
/sportform.php
UTF-8
11,121
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="ce site est une présentation du Festival du Quartier BELLEVILLE, Belleville En Vrai"/> <meta name="author" content="Laurent Abemango alias LAWD / Badis Nakh...
true
91d955510686ccf01cee3c68670942b9bdbd84f3
PHP
omaben/paxful-back
/vendor/flying-panda/php-framework/libs/DataSource/Model/DataBaseEvent.php
UTF-8
4,540
2.765625
3
[]
no_license
<?php namespace Libs\DataSource\Model; use Libs\Event\EventLib; class DataBaseEvent { private static EventLib $onInsertBefore; private static EventLib $onInsertLater; private static EventLib $onUpdateBefore; private static EventLib $onUpdateLater; private static EventLib $onInsertBatchBefore; ...
true
5a05787baf0bc9766525a7d8612baf0bb325b9db
PHP
carloshenrq/ragnarokapi
/app/Validator.php
UTF-8
1,713
2.859375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * RagnarokAPI, RESTful api for Hercules Emulator * Copyright (C) 2019 carloshernq * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (...
true
37bb7a022d2b35a4cddcc46efda46739ffcb0c74
PHP
hirari123/myproduct
/app/Http/Controllers/Calculate/SixpackingIntakeController.php
UTF-8
3,636
2.796875
3
[]
no_license
<?php namespace App\Http\Controllers\Calculate; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\sixpackingIntake; // sixpackingIntakeモデルを使う use Illuminate\Support\Facades\Auth; // Authファサードを使う class SixpackingIntakeController extends Controller { // indexアクション public function index(...
true
d21f3f9fcf4212183e86383db8c70dc953ffc6a7
PHP
avikuu/payu
/src/Verifier.php
UTF-8
2,325
2.71875
3
[]
no_license
<?php namespace Nksquare\Payu; class Verifier { /** * @var Nksquare\Payu\Account */ protected $account; /** * @param Nksquare\Payu\Account $account */ function __construct($account) { $this->account = $account; } /** * @param array $data * @param str...
true
f055af55752a9db48b35f8a91c452b95b190736b
PHP
Skarbo/CampusguidePhp
/src/dao/db/log_db_dao.php
UTF-8
4,923
2.578125
3
[]
no_license
<?php class LogDbDao extends LogDao { // VARIABLES // /VARIABLES // CONSTRUCTOR // /CONSTRUCTOR // FUNCTIONS // ... CREATE /** * @param array $academy * @return LogModel */ private static function createLog( array $logArray ) {...
true
8f33bd8c3274b8a9592a9fb8b6b46c7535818035
PHP
bukka/php-util
/tests/serialize/crash.php
UTF-8
188
2.921875
3
[]
no_license
<?php class SerializeTest { public $a = 1; public function __serialize() { return [ 'result' => serialize($this) ]; } } var_dump(serialize(new SerializeTest()));
true
512557c475c9e2412e21610e07c0cf03321a83d0
PHP
davajlama/Schemator
/Schema/src/Rules/MaxLength.php
UTF-8
842
3.03125
3
[]
no_license
<?php declare(strict_types=1); namespace Davajlama\Schemator\Schema\Rules; use Davajlama\Schemator\Schema\Exception\PropertyIsNotStringException; use Davajlama\Schemator\Schema\Exception\ValidationFailedException; use Davajlama\Schemator\Schema\Validator\Message; use function is_string; use function strlen; class ...
true
88c3dc348c5507733978f8e6973825b416425444
PHP
wnik/php-mvc
/app/storages/PDOStorage.php
UTF-8
1,296
2.859375
3
[]
no_license
<?php namespace App\Storages; use App\Core\{Connection, Config}; use App\Interfaces\StorageInterface; class PDOStorage extends Connection implements StorageInterface { public static function getInstance() { if (!self::$instance) self::$instance = new self(); return self::$instanc...
true
fe51f4f87ab248c6cf54e83e6b665353e4eb6846
PHP
kyonetca/bitcoin_alerts
/library/Router.php
UTF-8
2,115
2.875
3
[]
no_license
<?php /** * RainFramework * ------------- * Realized by Federico Ulfo & maintained by the Rain Team * Distributed under MIT license http://www.opensource.org/licenses/mit-license.php */ /** * Set the route getting the user input */ class Router{ private static $config_dir = CONFIG_DIR, // co...
true
1ff946409b018261d8aa707731e29877725f9a7c
PHP
mackendy/BaseWpBootrstrap3
/includes/base/custom-post-types.php
UTF-8
1,185
2.625
3
[]
no_license
<?php /** WP Custom Post Type Class :: https://github.com/jjgrainger/wp-custom-post-type-class/ **/ function set_custom_post_types() { $post_types = array(); /* * * Left empty : populate after examples library * */ if ($post_types) { foreach ($post_types as $post_type) { ...
true
dfd45f30fc6b519279bd7321798418511525c927
PHP
hive-school/viktor-bocharsky
/php-core-1/symfony/src/BW/UserBundle/Controller/ProfileController.php
UTF-8
2,373
2.515625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace BW\UserBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use BW\UserBundle\Entity\Profile; use BW\UserBundle\Form\ProfileType; /** * Profile controller. */ class ProfileController extends Controller { /** * Displays...
true