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
1c9c5fb96faa9c407cca288692e76c85aaa53943
PHP
Polko8nuk/test_laravel
/app/Http/Requests/ValidateData.php
UTF-8
1,116
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ValidateData extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } public function mes...
true
d64100ecac0253daf9f55d1cb07300c29abb520c
PHP
Juanjose-fernandez/desfibriladores
/app/Repositories/BaseRepo.php
UTF-8
3,161
3
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: JoséAntonio * Date: 12/09/2016 * StudyTime: 10:17 */ namespace App\Repositories; use Illuminate\Database\Eloquent\Model; abstract class BaseRepo { abstract public function getModel(); /* * Obtener Modelo con lo id indicado * @param int id Del modelo ...
true
e4be5a244a991612cad2ecc19e9c47c187cea24e
PHP
MarnuLombard/Paybee
/app/Observers/UserObserver.php
UTF-8
1,171
2.53125
3
[]
no_license
<?php namespace PayBee\Observers; use PayBee\Models\Token; use PayBee\Models\User; class UserObserver { /** * Handle the user "created" event. * * @param User $user * * @return void * @throws \ErrorException */ public function created(User $user) { $token = Toke...
true
915eb6f2b104e0b1536932e55a884eafedaeb8be
PHP
soliphp/framework
/src/Soli/RouterTrait.php
UTF-8
1,402
2.78125
3
[ "MIT" ]
permissive
<?php /** * @author ueaner <ueaner@gmail.com> */ namespace Soli; trait RouterTrait { protected $defaultNamespaceName = null; protected $defaultHandlerName = 'index'; protected $defaultActionName = 'index'; protected $defaultParams = []; protected $namespaceName = null; protected $handlerName...
true
54e31ceb0aafcfe8c5d9eb71966290a3c1099730
PHP
TrexlerLibrary/hours-feed-generator
/feed_generator.php
UTF-8
9,995
2.984375
3
[]
no_license
<?php /** * HOURS, REVISITED (2015 edition) * * Here we define the functions used to pull a list of events from a series of * Google Calendars + form it into our own JSON api. Currently, it's being used * exclusively on the Library's website, but this could also be used for the * long-fabled digital signag...
true
239adf33fc3b7d5e29eb37b86279d60f4550834b
PHP
rafaelstjf/Trabalho_de_BD
/material de consulta/p15/index.php
UTF-8
655
3.359375
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Loop</title> </head> <body> <?PHP $i; $a; echo "Contage...
true
7dd1e8cbfd23a34f661fb243b4e8eb601dd5fc1e
PHP
sam-web2019/test-pinetech
/include/class.user.php
UTF-8
1,931
2.8125
3
[]
no_license
<?php include 'connection.php'; class User{ public $db; /*** for registration process ***/ public function reg_user($firstname, $lastname,$password, $email,$dob){ $conn = db(); $password = md5($password); $var = $dob; $date = str_replace('/', '-', $var); $dob = date('Y-m-d', strtotime($date)); $sql="SELECT * FR...
true
77cfc6f19dd588625c00f8358dbe6162290adb04
PHP
oleggai/kis
/application/entity/Delivery.php
UTF-8
2,518
2.8125
3
[]
no_license
<?php /** * Class Delivery * @Entity * @Table(name="deliveries") */ class Delivery { /** * @Id * @GeneratedValue * @Column(type="integer", name="id_delivery") */ private $idDelivery; /** * @ManyToOne(targetEntity="Supplier") * @JoinColumn(name="supplier", referencedColumnNa...
true
8b043bc95f5dd9e4ff4715ffd0f1da85174de793
PHP
huongbee/php1701_m2
/OOP/index06.php
UTF-8
1,237
3.359375
3
[]
no_license
<?php class SinhVien{ public $name = "KPT"; function setName($name){ $this->name = $name; } function getName(){ return $this->name; } } class Hocsinh{ public static $name = "KPT"; const a=4; function setA(){ return Hocsinh::a; } public $height = 100;...
true
02a82671c49eec169f5dedfcaf1612f59c8e76be
PHP
bomi1012/rainercremer
/classes/database/DB.class.php
UTF-8
802
2.859375
3
[]
no_license
<?php class DB extends PDO { private static $_instance; private $_host = 'localhost'; private $_user = "root"; private $_pass = "root"; private $_base = "rainer_web"; // private $_user = "web412"; // private $_pass = "rooter"; // private $_base = "usr_web412_1"; private $_ch...
true
b78a6bd9ffab5453b006f768bff6474b63737be2
PHP
nova-framework/system
/src/Packages/Console/PackageMigrateRefreshCommand.php
UTF-8
3,202
2.71875
3
[ "MIT" ]
permissive
<?php namespace Nova\Packages\Console; use Nova\Console\Command; use Nova\Console\ConfirmableTrait; use Nova\Packages\PackageManager; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; class PackageMigrateRefreshCommand extends Command { use ConfirmableTrait; ...
true
3301b77bd330d6156656b219d43c5228da5417cc
PHP
aopao/2005
/app/Api/Serializers/PageSerializer.php
UTF-8
875
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Api\Serializers; class PageSerializer { /** * 自定义返回的 Json类型 * * @param array $data * @param int $pageSize * @param int $pageNo * @param int $totalPage * @param int $totalCount * @param int $status * @param string $message * @ret...
true
79203b64d946fbd6f69c77bac024d51337144ef9
PHP
Souhil-nouioua/SportL
/app/Core/Model/Model.php
UTF-8
491
2.796875
3
[]
no_license
<?php namespace App\Core\Model; use App\Database; /** * Class Model * @package App\Core\Model */ class Model { protected $db; public function __construct() { $this->db = Database::getDb(); } /** * Get an instance of a Model * @param $name * @retur...
true
08905c03427b55e93d1454432e0d8840cdd04f02
PHP
brnovk/university-study-master
/6th course/php - mysql (basics)/my task (v4 - employees of university)/php-scripts/php-labs-v4/lab1/subType1/subtype1-employees-handler.php
UTF-8
2,352
2.96875
3
[]
no_license
<?php if (session_status() == PHP_SESSION_NONE) { session_start(); } $requestType = ''; if (filter_input_array(INPUT_POST)) { $requestType = INPUT_POST; } else if (filter_input_array(INPUT_GET)) { $requestType = INPUT_GET; } $rawChairsName = filter_input($requestType, 'chairsName', FILTER_SANITIZE_S...
true
9d1bc921c285248d107ab05e4fb34619ea57a6cc
PHP
samienaseem/WebDevelopment
/plugin_encode/login.php
UTF-8
382
2.625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php require="conn.php"; $username="samar123"; $password="123123"; $query="select * from Student where username '$username' and password '$password'"; $res=mysqli_query($conn,$query); if (mysqli_num_rows($res)>0) { echo "success hogya"; # code... } e...
true
8e3efd693245c3a4270c275607d079bc085d9018
PHP
DoSomething/gateway
/tests/RestApiClientTest.php
UTF-8
3,056
2.703125
3
[ "MIT" ]
permissive
<?php use DoSomething\Gateway\Common\RestApiClient; use DoSomething\Gateway\Exceptions\ValidationException; use DoSomething\GatewayTests\Helpers\JsonResponse; use GuzzleHttp\Psr7\Response; class RestApiClientTest extends TestCase { /** * Test that we can instantiate a RestApiClient. */ public functi...
true
67d2f929656e70f66530d501a2c5fb51e2036c14
PHP
php-kitchen/code-specs
/src/Contract/TestGuy.php
UTF-8
6,357
2.859375
3
[ "MIT" ]
permissive
<?php namespace PHPKitchen\CodeSpecs\Contract; use PHPKitchen\CodeSpecs\Directive\Wait; use PHPKitchen\CodeSpecs\Expectation\Matcher\ArrayMatcher; use PHPKitchen\CodeSpecs\Expectation\Matcher\BooleanMatcher; use PHPKitchen\CodeSpecs\Expectation\Matcher\ClassMatcher; use PHPKitchen\CodeSpecs\Expectation\Matcher\Direct...
true
9f92fe7069067cb85356dc0190b688a3ff8d7f23
PHP
archangel9800/dip
/build/scriptsPHP/connect.php
UTF-8
365
2.9375
3
[]
no_license
<?php //подключение к базе function connectToDb(){ $conn = mysqli_connect(SERVERNAME, USERNAME, PASSWORD, DBNAME); mysqli_set_charset($conn, "utf8"); // Check connection if (!$conn) { die("Connection failed:" . mysqli_connect_error()); } return $conn; } function closeConnectionToDb($conn) {...
true
0d1bd39752cc5f1cb82adfbea557178108794047
PHP
feldy/s2gis-helpdesk
/database/migrations/2018_03_01_095027_hd_pic.php
UTF-8
920
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class HdPic extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('hd_pic', function (Blueprint...
true
2368744345032b354cc20b48b097e00e429b304e
PHP
jicumollick/onlineFoodOrder1
/admin/update-password.php
UTF-8
3,395
2.59375
3
[]
no_license
<?php include('partials/menu.php'); ?> <!-- main content section start --> <div class="main-content"> <div class="wrapper"> <h1>Change Password </h1> <br> <br> <br> <?php if(isset($_GET['id'])){ $id = $_GET['id']; } ?> <form action="" method="POST"> <table class="tbl-30"...
true
2a9b5710e9d2a8e8151a84f627e2e8bc48ecf2d1
PHP
trigama/sentry-php
/src/ErrorHandler.php
UTF-8
11,430
2.84375
3
[ "BSD-2-Clause" ]
permissive
<?php declare(strict_types=1); namespace Sentry; /** * This class implements a simple error handler that catches all configured * error types and logs them using a certain Raven client. Registering more * than once this error handler is not supported and will lead to nasty problems. * The code is based on the Sy...
true
84232e0bbde635805d7f6654080d1d98fa2b00c5
PHP
aleksandarustic/test
/lib/Base/View.php
UTF-8
3,168
2.890625
3
[]
no_license
<?php namespace Lib\Base; /** * Base view Class */ class View { /** * view_name * * @var string */ protected $view_name; /** * data * * @var array */ protected $data; /** * site_title * * @var string */ protected $site_title = SIT...
true
b0ee54fa2bdb425c7791d71773b0761e70f0afde
PHP
marcomusso/pnp4nagios-templates-examples
/share/templates.special/risk-COLL-Semaphores.php
UTF-8
1,297
2.59375
3
[]
no_license
<?php # # # $this->MACRO['TITLE'] = "Risk Semaphores"; $this->MACRO['COMMENT'] = "Risk Semaphores Arrays for all COLL DRM Nodes"; # # Get a List of Services by regex # Option 1 = 'Host Regex' # Option 2 = 'Service Regex' # $services = $this->tplGetServices("risk.u..1[01][34567890]","Semaphores"); #$services = $this...
true
41a96737409476d1ac6e348edc1f5542cc4a5c00
PHP
hahieuit/Ultimate
/administrator/components/com_sh404sef/plugins/system/shlib/shl_packages/system/xml.php
UTF-8
2,079
2.953125
3
[ "Apache-2.0" ]
permissive
<?php /** * Shlib - programming library * * @author Yannick Gaultier * @copyright (c) Yannick Gaultier 2017 * @package shlib * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @version 0.3.1.632 * @date 2017-06-01 */ // no direct access defined('_JEXEC') or die; /** ...
true
208d94e902895c9e8522fc814ca3f7ccf3de3ec2
PHP
habib-eg/design_principles
/src/Pattens/Creational/Prototype/Employee/Salary.php
UTF-8
1,478
3.390625
3
[]
no_license
<?php namespace App\Pattens\Creational\Prototype\Employee; class Salary { private float $salary; private float $tax; private float $medicalInsurance; /** * Salary constructor. * @param float $salary * @param float $tax * @param float $medicalInsurance */ public function...
true
f79b4f5cc1e80e6d12d70018c7810802d1b5884b
PHP
Jalal14/Matrimonial---laravel
/app/Http/Requests/UpdateProfileRequest.php
UTF-8
1,980
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UpdateProfileRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * ...
true
fb558ae9105bb94334bc72c8c6f46c63e459e5da
PHP
angelobo/SemPubEvaluator
/utils.php
UTF-8
1,039
2.90625
3
[ "Apache-2.0" ]
permissive
<?php function buildZIPfromCSVDirectory($zipOutputFile, $csvDirFullpath){ $zip = new ZipArchive(); // TODO: Handle errors in zipping files if($zip->open($zipOutputFile, ZIPARCHIVE::CREATE) !== TRUE) return false; $dh = opendir($csvDirFullpath); while (false !== ($filename = readdir($dh))) { $fileInfo = pathinfo($...
true
03ac2371547eeeae15d3d3fc829740f3adb19a16
PHP
ehovel/SwooleDistributedWeb
/src/app/Helpers/Libs/Form.php
UTF-8
37,027
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\Helpers\Libs; /** * 表单处理器 * 用于生成HTML表单项 * @author Tianfeng.Han * @package SwooleSystem * @subpackage HTML * @link http://www.swoole.com/ * */ class Form { static $checkbox_value_split = ','; static $default_help_option = '请选择'; /** * 根据数组,生成表单 * @pa...
true
15baa239d08702cb17b9f5aa426a5821663be9c8
PHP
iwd-nl/snelstart-php
/src/Mapper/V1/LandMapper.php
UTF-8
749
2.53125
3
[]
no_license
<?php /** * @author IntoWebDevelopment <info@intowebdevelopment.nl> * @project SnelstartApiPHP * @deprecated */ namespace SnelstartPHP\Mapper\V1; use Psr\Http\Message\ResponseInterface; use SnelstartPHP\Mapper\AbstractMapper; use SnelstartPHP\Model\Land; /** * @deprecated */ final class LandMapper extends Abs...
true
67042266e827513726eb26ad23beaf1d33046fb9
PHP
smithb895/BlissAdmin
/bans/import_bans.php
UTF-8
5,553
2.90625
3
[]
no_license
<?php // v Remove these lines when you know it works v //error_reporting(E_ALL); //ini_set('display_errors', 1); // ^ Remove these lines when you know it works ^ /* Author: Anzu * Description: This code will take a banlist file, * and split it up in to an array with each line as an element. * Then, it will split ea...
true
5b7b7afef0291b38b25a86abf9715a0aebe25682
PHP
Faon2018/test
/admin/getGoods.php
UTF-8
978
2.53125
3
[]
no_license
<?php include "../public/connect.php"; $className=$_GET["className"]; $class_id=0; $sql1 = "select count(id) sum from goods "; $mysql_result1 = $db->query($sql1); $rows1=[]; while ($db1 = $mysql_result1->fetch_array(MYSQLI_ASSOC)){ $rows1[]=$db1; } $sql3 = "select id from `class` where cname='$className'"; $mys...
true
1bffb62cedd31a7027bd1cca93a651cbea738601
PHP
Saumikk747/project1
/300blood_bank/blood_bank/profile-edit.php
UTF-8
11,363
2.5625
3
[]
no_license
<?php require_once('header.php'); ?> <?php // Check if the agent is logged in or not if(!isset($_SESSION['agent'])) { header('location: '.BASE_URL.'logout.php'); exit; } else { // If agent is logged in, but admin make him inactive, then force logout this user. $statement = $pdo->prepare("SELECT * FROM tbl_agent WH...
true
edf81147d7ecffdb177cecfea276732b4ac8b1d9
PHP
vsmoraes/laravel
/src/Illuminate/Contracts/Validation/Factory.php
UTF-8
409
2.765625
3
[ "MIT" ]
permissive
<?php namespace Illuminate\Contracts\Validation; interface Factory { /** * Create a new Validator instance. * * @param array $data * @param array $rules * @param array $messages * @param array $customAttributes * @return \Illuminate\Contracts\Validation\Validator */ public function make(arra...
true
4e334da8df34a1699a7bf14eef77367d98e1c6ff
PHP
chkdsk11/project
/serve/datas/homedata/BaiyangBrandsData.php
UTF-8
7,071
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 林晓聪 * Date: 2016/10/19 0004 * Time: 下午 5:02 */ namespace Shop\Home\Datas; class BaiyangBrandsData extends BaseData { protected static $instance=null; /** * 获取符合条件的品牌总数 * @param $platform 站点标识 app、wap、pc * @return int */ public function get...
true
c56dd2d7c768b7e1d56fea4001c5b6010d5002d4
PHP
edflor46/Curso-de-Programacion-Orientada-a-Objetos-POO
/PHP/UberBlack.php
UTF-8
672
3.109375
3
[]
no_license
<?php include_once('Car.php'); class UberBlack extends Car { //VAriables public $typeCarAccepted; public $seatMaterial; /* -------------------------------------------------------------------------- */ /* Constructor */ /* -----...
true
e8a957d6a12a54063d2af24c2fb7a4426cf6d4c0
PHP
raizeta/Tutorial
/PHP/PHP Array/array_intersect_key.php
UTF-8
1,070
3.953125
4
[]
no_license
<?php #array_intersect_key — Computes the intersection of arrays using keys for comparison array array_intersect_key ( array $array1 , array $array2 [, array $... ] ) #Result array_intersect_key() returns an array containing all the entries of array1 which have keys that are present in all the arguments. $array1 = ...
true
35593fab9bff0b9615cd4d5c70fa25d971506303
PHP
alex-oleshkevich/php-fast-xml-parser
/src/FastXml/Parser.php
UTF-8
5,009
2.875
3
[ "MIT" ]
permissive
<?php namespace FastXml; use Exception; use FastXml\CallbackHandler\CallbackHandlerInterface; use FastXml\CallbackHandler\GenericHandler; class Parser { /** * XML parser resource. * @var resource */ protected $parser; /** * Currently aggregated data. * @var array */ pro...
true
fd853b4300006fe06f007640d41882b9ea8adc87
PHP
gustavobhm/php-mailer-service
/class/FileUtils.php
UTF-8
690
3.140625
3
[]
no_license
<?php class FileUtils { static function deleteFilesByMaxAge($dir, $max_age) { $list = array(); $limit = time() - $max_age; $dir = realpath($dir); if (! is_dir($dir)) { return; } $dh = opendir($dir); if ($dh === false) { return...
true
823b6109b4a65f00b9bb03b936c8344271b9b42d
PHP
dkorsak/symfony-sandbox
/cms/src/App/GeneralBundle/Services/Mailer.php
UTF-8
1,462
3.125
3
[]
no_license
<?php /** * Mailer class * * */ namespace App\GeneralBundle\Services; /** * Mailer service * */ class Mailer { /** * @var \Swift_Mailer */ private $swift; /** * @var string */ private $from; /** * @var string */ private $sender; /** * Constructo...
true
72642a3ca849ba2fed9a8082a9e678275e8c97b7
PHP
eytoo/documentos.dev
/app/Carro.php
UTF-8
476
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Carro extends Model { protected $table = "cars"; public $timestamps = false; public function driver() { return $this->hasOne(Driver::class,"driver_id","id"); } public function modelo() { return $this->belongsTo(...
true
50d98b795a0d5f4592ab6c0f60f0010c9213f598
PHP
Abdifatah29/to-do-App
/connect.php
UTF-8
1,036
3.546875
4
[]
no_license
<?php //create class class Dbh { //Properties private $servername; private $username; private $password; private $dbname; //public methods of a class to run inside the brower public function connect() { $this->servername = "167.71.74.228"; $this->username = "abdi"; ...
true
9b04c583d87b45776e2bda341e1f751bea9b566f
PHP
ozdemirburak/skyscanner-php
/src/Traits/RequestTrait.php
UTF-8
1,420
2.671875
3
[ "MIT" ]
permissive
<?php namespace OzdemirBurak\SkyScanner\Traits; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Psr7; trait RequestTrait { use ConsoleTrait; /** * @var string */ protected $url = 'https://partners.api.skyscanner.net/apiservices'; /** * @var string ...
true
8a9ef335bf5fb594495870f83f2000667da05ee3
PHP
callcocam/progama-vida-ministerio
/src/Model/Vidaministerio/Vidaministerio.php
UTF-8
3,739
2.578125
3
[]
no_license
<?php /** * @license © 2005 - 2016 by Zend Technologies Ltd. All rights reserved. */ namespace Progama\Model\Vidaministerio; use Base\Model\AbstractModel; /** * SIGA-Smart * * Esta class foi gerada via Zend\Code\Generator. */ class Vidaministerio extends AbstractModel { protected $publish_up = '0000-00-0...
true
d4099676fbbbe5b33d20e70bcd4eb61b6ba6c0be
PHP
wp-plugins/cm-custom-reports
/backend/classes/modules/GraphModule.php
UTF-8
6,923
2.546875
3
[]
no_license
<?php CMCR_Graph_Module::init(); class CMCR_Graph_Module { public static function init() { add_filter('cmcr_graph_options', array(__CLASS__, 'changeGraphSpan'), 10, 2); } /** * Adjust the graph span to the filtered dates * @param type $options * @param type $data * @return...
true
b7b8a648ac536204a3348a6bcd3fb9834cbb33c0
PHP
D9d9-ALiK1990/php-webinars
/App/Data/Shop/Order/OrderController.php
UTF-8
2,686
2.578125
3
[]
no_license
<?php namespace App\Data\Shop\Order; use App\Controller\AbstractController; use App\Data\Product\ProductRepositoryOld; use App\Data\User\UserModel; use App\Model\ModelManager; class OrderController extends AbstractController { /** * @route("/order/list") */ public function index() { r...
true
8cf1ed5712809085ad492b3be6b511f3061c97d8
PHP
adriasir123/AJR_LM1819
/php/ejercicio05_(funcs_forms)/funciones.php
UTF-8
1,098
3.734375
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>funciones</title> </head> <body> <?php //Una función o devuelve algo, o no devuelve nada ...
true
66d5b9dc4b8e845bb5e5d170e6a71ddfbc044a94
PHP
ppKrauss/simplediff
/php/test.php
UTF-8
4,617
2.75
3
[ "Zlib" ]
permissive
<?php /** * Adapted from https://github.com/paulgb/simplediff/blob/master/python/test.py */ include 'simplediff.php'; $TESTS = array( 'insert'=> array( array( "old"=> array(1, 3, 4), "new"=> array(1, 2, 3, 4), "diff"=> array( array("=", array(1)), ...
true
f30a79b4b543c2d8bf5e8527a0c02a02c8804010
PHP
wplibs/model
/src/Utils/Object_Data.php
UTF-8
1,693
3.078125
3
[ "MIT" ]
permissive
<?php namespace WPLibs\Model\Utils; class Object_Data implements \ArrayAccess { /** * Store the object data. * * @var array */ protected $data; /** * Constructor. * * @param array|object $data The data. * @return void */ public function __construct( $data ) { $this->data = $data; } /** ...
true
bd1c7c04aa944052f2c0442cd98d8a3b283f3b5f
PHP
vanyaraspopov/school-rating
/VerifyPhone/core/components/verifyphone/processors/mgr/item/update.class.php
UTF-8
1,305
2.5625
3
[]
no_license
<?php class vpPhoneUpdateProcessor extends modObjectUpdateProcessor { public $objectType = 'vpPhone'; public $classKey = 'vpPhone'; public $languageTopics = array('verifyphone'); //public $permission = 'save'; /** * We doing special check of permission * because of our objects is not an...
true
97d822bcc8ae3f6166db8bb4cf828ce4bf76879a
PHP
ThunderTeasers/UpYourGears
/app/Http/Helpers/Navbar.php
UTF-8
523
2.84375
3
[]
no_license
<?php namespace App\Helpers; class Navbar{ static public function isActive($url, $full){ if(!$full){ $uris = explode('/', $_SERVER['REQUEST_URI']); foreach($uris as $uri){ if($uri == $url){ return 'active'; } } ...
true
4a413f71241936c78ecc142962229a4bfa377987
PHP
Chromadream/FIT2104-A3
/Database.php
UTF-8
1,203
2.984375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Jonathan Nicholas * Date: 10/12/2017 * Time: 18:41 */ class Database { private $_username; private $_password; private $_db; private $_host; private $_conn; private $_connerr; function __construct() { $this->setParams(); $th...
true
cc633befa578eb8b78144ea82ca83dd8f248e3fc
PHP
OskarStark/continuouspipe
/api/spec/ContinuousPipe/River/CodeRepository/DockerCompose/Configuration/PortIdentifierSpec.php
UTF-8
1,312
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace spec\ContinuousPipe\River\CodeRepository\DockerCompose\Configuration; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class PortIdentifierSpec extends ObjectBehavior { function it_has_string_representation() { $this->beConstructedThrough('fromNameAndPort', ['nginx', 80]); ...
true
2e9b155b6e44c3b39eeb4d45c0075130bb21cbbd
PHP
AntoineCheminPro/filRouge
/correction/banquephp/addCount.php
UTF-8
847
2.890625
3
[ "MIT" ]
permissive
<?php require "model/entity/user.php"; require "model/entity/account.php"; require "model/accountModel.php"; session_start(); if(!isset($_SESSION["user"])) { header("Location: login.php"); } if(isset($_POST["new_account"])) { try { $account = new Account($_POST); $account->setUser($_SESSION["user"]); } ...
true
3c6e95a89c348143c295cc96c76674ed1031fb6a
PHP
oscarmatia/bop-tour
/seleccionar_producto.php
UTF-8
434
2.515625
3
[]
no_license
<?php $conexion = mysqli_connect("localhost", "root", "", "proyecto"); $consulta = "SELECT * FROM producto_artesanal "; $resultado = mysqli_query($conexion, $consulta); $nombre =""; while($fila = mysqli_fetch_array($resultado)) { if($fila[nombre_producto] != $nombre) { echo " <input type="ch...
true
4d9f1a661e08d64745f51e6faf5d8ce637e9aa5e
PHP
urusai88/bencode
/src/BencodeInteger.php
UTF-8
930
3.203125
3
[]
no_license
<?php namespace nanodesu88\bencode; class BencodeInteger extends BencodeElement { /** * @var int */ protected $value; /** * @param int $value */ public function __construct(int $value) { $this->setValue($value); } /** * @param $value */ public fu...
true
17eca4384e741acd4a7bc165fcbc883409287941
PHP
phperspace/ICI
/application/third_party/redis_queue/src/space/phper/task/Queue.php
UTF-8
1,630
3.0625
3
[]
no_license
<?php namespace Src\Space\Phper\Task; /** * 队列抽象类 * * @author phper.space */ abstract class Queue { /** * 推入一批job * * @param array $jobs * @param mixed $data * @param string $queue * @return mixed */ public function bulk($jobs, $data = '', $queue = null) { ...
true
f6df17387e15dacccffd6034d488fd6eed69f79a
PHP
limboniatech/limbonia-app-base
/lib/Router.php
UTF-8
8,125
2.96875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Limbonia; /** * Limbonia Router input class * * This defines all the basic parts of Limbonia Router * * @author Lonnie Blansett <lonnie@limbonia.tech> * @package Limbonia */ class Router { use \Limbonia\Traits\Hash; /** * The single instance allowed for the Router object * * @var \...
true
86fcc57bd0a909fde1b1222627d4c510da16faf7
PHP
jpmariano/snippets
/PHP/spl/ch05/append_multiple.php
UTF-8
667
3.375
3
[]
no_license
<?php $boys = new ArrayIterator(array('Ian', 'Mark', 'David')); $girls = new ArrayIterator(array('Jennifer', 'Alice', 'Susan')); $unisex = new ArrayIterator(array('Jody', 'Alex')); $append = new AppendIterator(); $append->append($boys); $append->append($girls); $append->append($unisex); echo '<h2>AppendIter...
true
28c334fca0e9f24a56e436639ced7533811ff75a
PHP
DenisBuarque/laravel-bolao
/Bolao/app/Repositories/Eloquent/UserRepository.php
UTF-8
2,258
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Eloquent; use Illuminate\Http\Request; use App\Repositories\Contracts\UserRepositoryInterface; use Illuminate\Support\Facades\Validator; use Illuminate\Validation\Rule; use App\User; class UserRepository extends AbstractRepository implements UserRepositoryInterface { protected $mo...
true
8cd5bdd94802fde731061225229aaff74d1afcd5
PHP
eavMarshall/DiContainer
/tests/testClasses/ClassHoldingSessionInfoIsUpdated.php
UTF-8
218
2.609375
3
[ "MIT" ]
permissive
<?php namespace tests\testClasses; class ClassHoldingSessionInfoIsUpdated { public $sessionInfo; public function __construct(SessionInfo $sessionInfo) { $this->sessionInfo = $sessionInfo; } }
true
239e6cebfc2d4f7f41882a7ef1667c808edd317b
PHP
landim32/FreteApp
/www/vendor/landim32/emagine-pagamento/src/MundiPagg/BLL/UsuarioMundiPaggBLL.php
UTF-8
1,544
2.765625
3
[]
no_license
<?php namespace Emagine\Pagamento\MundiPagg\BLL; use stdClass; use Exception; use Emagine\Login\BLL\UsuarioBLL; use Emagine\Login\Model\UsuarioInfo; class UsuarioMundiPaggBLL { const MUNDI_PAGG_ID = "MUNDI_PAGG_ID"; /** * @throws Exception * @param UsuarioInfo $usuario * @return string */...
true
eba991d16e397268149d5cdcd136c6f45d4bf25a
PHP
PlatoCreative/silverstripe-swipestripe
/code/product/Product.php
UTF-8
16,626
2.8125
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php /** * Represents a Product, which is a type of a {@link Page}. Products are managed in a seperate * admin area {@link ShopAdmin}. A product can have {@link Variation}s, in fact if a Product * has attributes (e.g Size, Color) then it must have Variations. Products are Versioned so that * when a Product is adde...
true
092e7c1e62e03aa30960ae75a909d8ca671a5954
PHP
Dhii/iterator-base
/src/AbstractBaseIteration.php
UTF-8
667
2.796875
3
[ "MIT" ]
permissive
<?php namespace Dhii\Iterator; use Dhii\Data\KeyValueAwareTrait; /** * Base functionality for an iteration. * * @since [*next-version*] */ abstract class AbstractBaseIteration implements IterationInterface { /* * Provides key and value property management functionality. * * @since [*next-versi...
true
f43002f6c093e465ee43a99f9ebc4e484b5722f1
PHP
ben-xo/LazySpot
/php/metatune/.svn/text-base/index.php.svn-base
UTF-8
5,187
2.625
3
[]
no_license
<?php // This is just a demo. Code is way to ugly for use. require_once("lib/config.php"); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="no-NB"> <head profile="http://gmpg.org/xf...
true
c007ce03e8f33cc9c5c43ae38f794c6aa6f8238a
PHP
microsoftgraph/msgraph-beta-sdk-php
/src/Generated/Models/PaymentTerm.php
UTF-8
11,641
2.71875
3
[ "MIT" ]
permissive
<?php namespace Microsoft\Graph\Beta\Generated\Models; use DateTime; use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWrite...
true
96685f11dbdd801d59d7052c45b7c9ef39b04200
PHP
StevenKobza/IAT352
/pages/position.php
UTF-8
3,545
2.71875
3
[]
no_license
<!DOCTYPE html> <?php session_start(); if (!isset($_SESSION["started"])) { $_SESSION["started"] = "true"; } // database connection include("../phpData/dbconnect.php"); $connection = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname); // test if connection succeeded if (mysqli_connect_errno()) { // if conn...
true
dbe8a03d0188e11fc2a603af5680674457248fd9
PHP
pawanjangid/SchoolManagementSoftware
/application/controllers/Firebase.php
UTF-8
1,920
2.515625
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Firebase extends CI_Controller { function __construct() { parent::__construct(); $this->load->database(); $this->load->library('session'); /*cache control*/ $this->output->set_header('C...
true
cf83a01e676baebb2aa3206e166fe68083904338
PHP
Lebowskix/MyGreenHome
/PHP/getDailyCons.php
UTF-8
1,803
2.796875
3
[]
no_license
<?php #Query DB for daily overall consumption $time = intval($_GET['time']); $nickname = $_GET['nick']; $host = "213.136.71.88"; $dbname = "mygreenhome"; $user = "mghome"; $pass = "benfejonmgh1"; try { # MySQL with PDO_MYSQL $con = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass); } catch(PDOException $...
true
456e00ab31e92b8771b0d5119e23792097595102
PHP
minhquang19/HotelBooking
/app/Http/Controllers/Admin/ImageController.php
UTF-8
1,637
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Http\Requests\Images\StorePostRequest; use App\Repositories\Admins\RoomImage\RoomImageRepo; class ImageController extends Controller { protected $imageRepo; public function __construct(RoomImageRepo $imageRepo) { ...
true
1722a27f8325019e9c1ebe9c056507068cc1b646
PHP
firozhassan/phpproject1
/gparesult.php
UTF-8
1,524
3.0625
3
[]
no_license
<?php $name = "মরিয়ম"; $gender; $marks = 110; if( $name == 'মরিয়ম' || $name == 'রোকেয়া' || $name == 'করিমন' ){ $gender = "আপু"; }else{ $gender = "ভাই"; } if( $marks >= 0 && $marks <=32){ echo "<span style= 'color:red';>$name $gender আপনি আপনি ফেইল করছেন</span>"; }else if( $marks >=33 && $marks...
true
668c434f196dec3a3243057e57621263e570a9b9
PHP
nfangxu/package-fx-laravel-slug
/src/Services/FxSlugService.php
UTF-8
481
2.671875
3
[]
no_license
<?php namespace Fx\Slug\Services; use Fx\Slug\Contacts\FxSlug; use Fx\Translation\Contacts\Translate; use Illuminate\Support\Str; class FxSlugService implements FxSlug { protected $translate; public function __construct(Translate $translate) { $this->translate = $translate; } public functio...
true
72c11cc5485dd2ae8b9e7a59b4ed6b4a3b714009
PHP
mashb1t/ecclesiastical-year
/Validation/Factory.php
UTF-8
1,137
2.671875
3
[]
no_license
<?php /** * @category hpc-server * @package EcclesiasticalYear_Validation * @copyright Copyright (c) HPC * @author Stephan Suess */ namespace Hpc\Component\EcclesiasticalYear\Validation; use Hpc\Component\EcclesiasticalYear\Validation\Exceptions\ModuleException; use ReflectionClass; class Factory...
true
57624d95d7697167e71002b9e3e2fac4093fd355
PHP
CarlosNobuaki/webline-master
/insere_automovel.php
UTF-8
796
2.5625
3
[]
no_license
<?php session_start(); include_once("conexao.php"); $name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING); $placa = filter_input(INPUT_POST, 'placa', FILTER_SANITIZE_STRING); $chassi = filter_input(INPUT_POST, 'chassi', FILTER_SANITIZE_STRING); $montadora = filter_input(INPUT_POST, 'montadora', FILTE...
true
17e9ede2871e1dccecf1577be337327440c9662b
PHP
jyggen/radius
/src/Packet.php
UTF-8
3,491
2.984375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * This file is part of boo/radius. * * (c) Jonas Stendahl <jonas@stendahl.me> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Boo\Radius; use Boo\Radius\Exceptions\AttributeException; final class Packet { /** * @va...
true
7fdd9ae517ed7ca6f4f41e6f945d963070aea6ee
PHP
smaction/PHP-II
/CreateClass.php
UTF-8
4,251
3.453125
3
[]
no_license
<?php interface MachineInterface{ public function changePowerState(); public function getPowerState(); } abstract class electronics implements MachineInterface{ protected $power; protected $display; protected $powerState = 'off'; public function changePowerState (){ if (...
true
6428dd09159fbf38078614756708d1bb6f35931d
PHP
IBVPD/Nuvi
/tests/ImportBundle/Converter/DateRangeConverterTest.php
UTF-8
10,415
2.5625
3
[ "MIT" ]
permissive
<?php namespace NS\ImportBundle\Tests\Converter; use DateTime; use NS\ImportBundle\Converter\DateRangeConverter; use PHPUnit\Framework\TestCase; class DateRangeConverterTest extends TestCase { public function testGetKey(): void { $converter = new DateRangeConverter(); $retOne = $converter-...
true
33f9ebfd3f2cb338f638804ab926a797c4af4cc8
PHP
wojtossfm/symfony2-kram-bundle
/src/WojciechM/KramBundle/Presentation/PresentationField.php
UTF-8
1,381
2.71875
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace WojciechM\KramBundle\Presentation; class PresentationField { const TYPE_LIST = "list"; const TYPE_SINGLE = "single"; const TYPE_PROP = "properties"; const TYPE_VAL = "values"; const FORMAT_DATE = "date"; const FORMAT_COUNT = "count"; const FORMAT_SUMMARY = "summary"; private $type; private $p...
true
a9bb9b5baa2fb7ec52a7bd6d3f2b74ab533f6653
PHP
aloncn/logger
/logger.php
UTF-8
674
2.515625
3
[]
no_license
<?php /** * @lloydzhou https://github.com/bephp/logger */ function logger($path = 'php.log', $cond = true) { $logs = array(); register_shutdown_function(function() use ($path, &$logs){ return count($logs) > 0 ? @file_put_contents($path, implode(array_map(function($log){ return count($...
true
60e7654ed63202416e6bda7552a152ce61f69210
PHP
limoncello-php/framework
/components/Auth/src/Authorization/PolicyAdministration/Target.php
UTF-8
1,919
2.609375
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Limoncello\Auth\Authorization\PolicyAdministration; /** * Copyright 2015-2019 info@neomerx.com * * 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 ...
true
09c9139df436393d369fd75c309940938d975bc2
PHP
Warlie/qPortal-Project
/PlugIn/plugin_rewrite.php
WINDOWS-1252
6,246
2.578125
3
[]
no_license
<?PHP /** *ContentGenerator * * * @------------------------------------------- * @title:GK3 * @autor:Stefan Wegerhoff * @description: it is a converter and calculates Gauss Krueger coordinates to an address, has to set in line to an emitter and a listener * */ require_once("plugin_interface.php"); class rewrite exten...
true
e2231f2209885a28f02414978994d5f549ca84dd
PHP
inetstudio/reviews
/entities/sites/src/Contracts/Services/Back/ItemsServiceContract.php
UTF-8
533
2.515625
3
[ "MIT" ]
permissive
<?php namespace InetStudio\Reviews\Sites\Contracts\Services\Back; use InetStudio\Reviews\Sites\Contracts\Models\SiteModelContract; use InetStudio\AdminPanel\Base\Contracts\Services\BaseServiceContract; /** * Interface ItemsServiceContract. */ interface ItemsServiceContract extends BaseServiceContract { /** ...
true
41150ff036ee15e493936ce7ccdc606f66e0feca
PHP
beryb/backend
/src/Enum/AdvertisementTypeEnum.php
UTF-8
309
2.5625
3
[]
no_license
<?php namespace App\Enum; /** * Class AdvertisementTypeEnum * @package App\Enum */ class AdvertisementTypeEnum { const Basic = 'BASIC'; const Video = 'VIDEO'; /** * @var array */ public static $labels = [ self::Basic => 'Basic', self::Video => 'Video' ]; }
true
f02c2f454a62776420af0112fe09e9c3c5439c7f
PHP
Wfmsa/TrabalhoExtraDevWeb
/model/Leite.php
UTF-8
916
3.09375
3
[]
no_license
<?php use Faker\Provider\zh_TW\DateTime; include (Produto); include (Perecivel); class Leite extends Produto implements Perecivel{ private $marca; private $volume; private $dataValidade; public function __construct($codigo,$preco,$marca,$volume,$dataValidade ) { try{ if($codigo!== NULL && $preco !== NU...
true
484ba2a44081b0f347105bf81b0c3b68be2a0dcc
PHP
GreenShootLabs/shoe-bot
/app/Bot/Operations/IsAttributeInSet.php
UTF-8
826
2.78125
3
[]
no_license
<?php namespace App\Bot\Operations; use OpenDialogAi\OperationEngine\BaseOperation; class IsAttributeInSet extends BaseOperation { public static $name = 'is_attribute_in_set'; public function performOperation(): bool { $firstAvailableAttribute = null; foreach ($this->attributes as $att...
true
3097e062aef4f76854573250e3eda1ee9e3725f1
PHP
TonyKaravasilev/CryptoManana
/src/CryptoManana/Core/Interfaces/MessageDigestion/DerivationDigestLengthInterface.php
UTF-8
1,044
2.828125
3
[ "MIT" ]
permissive
<?php /** * Interface for specifying the derivation control over the outputting digest length for digestion algorithms. */ namespace CryptoManana\Core\Interfaces\MessageDigestion; /** * Interface DerivationDigestLengthInterface - Interface for derivation digest length control capabilities. * * @package CryptoMa...
true
004549702788570172e82695288e1db52c3c93d1
PHP
crystlbrd/DatabaseHandler
/src/Interfaces/IConnection.php
UTF-8
4,535
3.265625
3
[ "MIT" ]
permissive
<?php namespace crystlbrd\DatabaseHandler\Interfaces; use crystlbrd\DatabaseHandler\Exceptions\ConnectionException; interface IConnection { const JOIN_INNER = 1; const JOIN_LEFT = 2; const JOIN_RIGHT = 3; const JOIN_FULL = 4; const JOIN_CROSS = 5; /** * IConnection constructor. * ...
true
e43457e6083824aafecde4f1b8216cf6df9fd2e1
PHP
chrrasmussen/BlogApp
/Backend/RSS.php
UTF-8
1,037
2.859375
3
[ "MIT", "Apache-2.0" ]
permissive
<?php require_once(__DIR__ . '/App.php'); require_once(__DIR__ . '/Libraries/Template/Template.php'); require_once(__DIR__ . '/Models/Post.php'); /** * RSS singleton * * @author Christian Rasmussen <christian.rasmussen@me.com> */ class RSS { public static function run() { App::setUpDB(); self::loadRSS()...
true
86c228b0ed61a0b22ab1d6134f58aedccc788590
PHP
kirstenkingma/CodeIgniter-Hydrofiel
/application/controllers/Profile.php
UTF-8
5,397
2.75
3
[ "MIT" ]
permissive
<?php /** * Class Profile * Handles all actions related to user profiles */ class Profile extends _SiteController { public function __construct() { parent::__construct(); if( ! $this->session->logged_in ) { redirect( '/inloggen', 'refresh' ); } if( $this->session->engels ) { $this->lang->load( "profi...
true
529e2f25f423a2134b45441e624b5459665decbd
PHP
gariev/xref
/tests/StorageTest.php
UTF-8
1,432
2.578125
3
[ "Apache-2.0" ]
permissive
<?php $includeDir = ("@php_dir@" == "@"."php_dir@") ? dirname(__FILE__) . "/.." : "@php_dir@/XRef"; require_once "$includeDir/XRef.class.php"; class StorageTest extends PHPUnit_Framework_TestCase { protected $xref; public function __construct() { // don't read config file, if any XRef::setCon...
true
8789f9023f51f6655f48e461b3134adb92528d73
PHP
szeber/yapep_translator
/class/Common/Dao/Table/Translation/ProjectTable.php
UTF-8
945
2.734375
3
[]
no_license
<?php /** * @package Common * @subpackage Dao\Table\Translation */ namespace Common\Dao\Table\Translation; /** * Table class for the project table. * * @package Common * @subpackage Dao\Table\Translation */ class ProjectTable extends \YapepBase\Database\MysqlTable { /** id field */ const FIEL...
true
38d5b0be73f923e3bf6dac16bfdb81e35af667cc
PHP
wallytanchu/lig-demo
/database/seeds/UsersTableSeeder.php
UTF-8
624
2.71875
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\User; class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Let's truncate our existing records to start from scratch. User::truncate(); $faker = \Faker...
true
3bf8e3dffe0284bd446a9a45fa99b69621ec5da3
PHP
GabrielTrossero/Test_KS
/database/seeders/TreatmentSeeder.php
UTF-8
643
2.609375
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\Treatment; use App\Models\Patient; use App\Models\Dentist; class TreatmentSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $patient = Patient::fact...
true
62e93790c1e028bf3d5c31588b12f7b7ebfad767
PHP
Snarov/EripAPI
/src/include/util/ScriptParams.php
UTF-8
5,288
2.75
3
[]
no_license
<?php /** * * Класс, отвечающий за хранение и предоставление информации о параметрах выполнения сценария apictl. Состояние экземпляра класса определяется параметрами командной строки. * * @property-read string $username */ class ScriptParams { //шаблоны параметров const FTP_ADDR_PATTERN = '/^(?:[0-9]{1,...
true
66866fdb17f4c7b7300bc4eb3349762c33ab663f
PHP
EricRoos/PHPFramework
/app/models/comment.php
UTF-8
583
2.90625
3
[]
no_license
<?php require_once('record.php'); class Comment extends Record{ protected $member; protected $data; public function __construct($arr){ $this->member = Member::find($arr['member_id']); $this->set_data($arr['data']); } public function member(){ return $this->member; } public function set_mem...
true
1ca40c96193bfb08a9bb8157189c8ef066fdbd9e
PHP
ayushgarg1234/MCQ-Exam
/reading.php
UTF-8
10,252
2.609375
3
[ "Apache-2.0" ]
permissive
sample code php for m-c quiz (with comments) home stories reading grammar about this page uncommented version logo explanation • Apart from the explanatory comments, the code displayed below is identical with the code used to produce this multiple choice quiz. • The code is "valid." In other words, it follows the...
true
cab93385e8a76384e2f614dd988b44b6be9b6bf9
PHP
beberlei/zf2
/library/Zend/Stdlib/CallbackHandler.php
UTF-8
10,825
2.65625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
true
6a84ed6807ed6b124b1987eadcdffa14a301676c
PHP
drlinux/portapp
/classes/model/Page.php
UTF-8
11,901
2.53125
3
[ "MIT" ]
permissive
<?php class Page extends CasBase { function __construct() { parent::__construct(); $this->sTable = strtolower(__CLASS__); $this->sTableI18n = $this->sTable."_i18n"; $this->aAllField = array("pageId", "pageParent", "pageSorting", "pageIsDefault", "pageRedirect"); $this->sIndexColumn = "pa...
true
b324247484a963b1ae11d26ab02fd02eaf4802fa
PHP
abdiiwan1841/workflow-engine
/Documents/StepDocument_remove.php
UTF-8
1,792
3.03125
3
[]
no_license
<?php class StepDocument { private $objMysql; private $stepId; private $documentId; private $documentType; /** * * @param type $stepId */ public function __construct ($stepId = null) { if ( $stepId !== null ) { $this->stepId = $stepId; ...
true
70ff74f8c60dd33738995ed0e10c039e397ca3df
PHP
zilongqiu/rector
/src/NodeAnalyzer/MethodArgumentAnalyzer.php
UTF-8
1,545
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Rector\NodeAnalyzer; use PhpParser\Node; use PhpParser\Node\Arg; use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; use PhpParser\Node\Scalar\String_; final class MethodArgumentAnalyzer { public function hasMethodFirstAr...
true
58032a9b7f05dfd2190f89af52d955839d790e4f
PHP
rg2609/cs50
/pset8/bin/import
UTF-8
1,161
2.65625
3
[]
no_license
#!/usr/bin/env php <?php // configuration require("../includes/config.php"); $filename = '../US.txt'; if (file_exists($filename)) { if (is_readable($filename)) { $row = 1; if (($handle = fopen("../US.txt", "r")) !== FALSE) { ...
true