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
f220769e8fff8374b3c89e45e40c2d093f57a830
PHP
ngaphan/3wa3
/03-E_3WA_internetSite_promo27/Developpement27/Week08-27Oct-2Nov/exercice10/src/troiswa/dev23/animal/fish/Shark.class.php
UTF-8
618
3.3125
3
[]
no_license
<?php namespace troiswa\dev23\animal\fish; use troiswa\dev23\animal\AbstractAnimal; use troiswa\dev23\animal\Attackable; use troiswa\dev23\animal\Fish; use troiswa\dev23\animal\Swimmable; class Shark extends AbstractAnimal implements Swimmable, Attackable { /** ...
true
09d26b1a4bf5dd991bce5649ea49b492a1198807
PHP
jarekwaszczuk/Project-Auth
/bundles/app/src/Project/App/HTTPProcessors/Admin/Auth.php
UTF-8
2,525
2.609375
3
[]
no_license
<?php namespace Project\App\HTTPProcessors\Admin; use PHPixie\HTTP\Request; use PHPixie\HTTP\Responses\Response; use Project\App\HTTPProcessors\Processor; use Project\App\ORM\Admin\Admin; use PHPixie\AuthLogin\Providers\Password as PasswordProvider; use PHPixie\Template; use Project\App\ORM\Admin\AdminRepository; /*...
true
dfab7657df683694f6229f4abe0ede0c842f6ab8
PHP
MyLoadTest/VuGenLocalReplay
/www/classes/HttpRequestResponseMap.class.php
UTF-8
4,621
2.96875
3
[]
no_license
<?php spl_autoload_register(function ($class) { include "classes/".$class.".class.php"; }); /// Matches HTTP requests to the correct HTTP response class HttpRequestResponseMap { private $requests = array(); // These arrays must have the same number of elements private $responses = array(); /** ...
true
70edf535820b04d26e9a7ec32a322369b98eeaa3
PHP
hybrida/hybridaweb
/protected/models/ProfileForm.php
UTF-8
1,416
2.625
3
[]
no_license
<?php class ProfileForm extends CFormModel { private $_user; public $user; public $facebookUser; private $_facebookUser; public $imageUpload; public function __construct($user) { $this->_user = $user; $this->setFields(); } private function setFields() { $this->user = $this->_user->getAttributes(); ...
true
3ac22a488eaab73223d4c7e06e0dea047eeb4be3
PHP
liem04/Algorithms
/codefights/palindromeRearranging.php
UTF-8
461
3.703125
4
[]
no_license
<?php function palindromeRearranging($inputString) { $arr = []; $strLen = strlen($inputString); for ($i = 0; $i < $strLen; $i++) { $char = $inputString[$i]; if (!in_array($char, $arr, true)) { $arr[] = $inputString[$i]; } else { $index = array_search($char, $a...
true
df1f3937c215122b40528050f57154cf598cb219
PHP
dinarpratnya12/TugasKelompok
/codeigniterr/application/models/Transaksi_m.php
UTF-8
2,868
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Transaksi_m extends CI_Model { public function getData() { //untuk select column $this->db->select('*'); //untuk from table transaksi $this->db->from("transaksi"); //$get eksekusi fungsi select //hasil eksesusi = "select * from ...
true
9ee8d550b163ea85f2f6daae05ffaca08255c7e7
PHP
crossdsection/irshaad-backend
/src/Middleware/CorsMiddleware.php
UTF-8
1,804
2.734375
3
[]
no_license
<?php namespace App\Middleware; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; /** * Cors middleware */ class CorsMiddleware { /** * Invoke method. * * @param \Psr\Http\Message\ServerRequestInterface $request The request. * @param \Psr\Http\Message\Resp...
true
488d1b4c85d823e72be13783ed996d2a16d49958
PHP
ErwannGui/plateforme-Ydays
/plateforme_ydays/src/AppBundle/Entity/Rapport.php
UTF-8
3,293
2.828125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php /** @author Groupe 5 <https://github.com/ErwannGui/plateforme-Ydays> @copyright 2017 Groupe 5 @version 1.0 */ namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * rapport * * @ORM\Table(name="rapport") * @ORM\Entity(repositoryClass="AppBundle\Repository\rapportRepository") */ class Rappor...
true
6effed65cbef2833d2b041d100b551b4198dd8fe
PHP
Cli-published/graphpinator
/src/Value/LeafValue.php
UTF-8
1,518
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Graphpinator\Value; final class LeafValue implements \Graphpinator\Value\InputedValue, \Graphpinator\Value\OutputValue { use \Nette\SmartObject; private \Graphpinator\Type\Contract\LeafDefinition $type; private string|int|float|bool $rawValue; public funct...
true
57d9ce6c49f93d129282f289456a9872b75cc937
PHP
frawylf/apps
/ocdownloader/lib/ocDownloaderFile.class.php
UTF-8
4,532
2.640625
3
[]
no_license
<?php /** * ownCloud - ocDownloader plugin * * @author Xavier Beurois * @copyright 2012 Xavier Beurois www.djazz-lab.net * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either ...
true
1fe31ce18b7b40d36db340ba3a54ad6c68effc31
PHP
latik/laravel-cqrs-es
/app/Events/UserUnableRegister.php
UTF-8
273
2.578125
3
[]
no_license
<?php namespace App\Events; class UserUnableRegister { private $payload; public static function fromArray($payload): self { return new self($payload); } private function __construct($payload) { $this->payload = $payload; } }
true
58d1191a730fe9cd9f277b39c58d64eadd703e7a
PHP
Selesterkft/CP_GLOBAL
/1.01/keyGen.php
UTF-8
598
2.921875
3
[]
no_license
<?php class keyGen { private $p_keyType; private $p_noOfKeys; public function __construct( $keyType, $noOfKeys ) { $this->p_keyType = $keyType; $this->p_noOfKeys = $noOfKeys; } public function getKey() { $keyLenght = ( $this->p_keyType ==...
true
bbbb620ce4fcf11e3e88f2f23beb1bef9684b1ca
PHP
smanch3v/Basic-site
/profile.php
UTF-8
456
2.578125
3
[]
no_license
<?php include('sessions.php'); if(!isset($_SESSION['login_user'])){ header("location: index.php"); //Redirecting to Home Page } $content = '<html> <head> <title>Your Home Page</title> </head> <body> <div id=profile> <b id="welcome">Welcome : <i><?php echo $login_session; ?></i></b> <b ...
true
bca8eae7a97f76c5023fc8e565ef38dadd08c09e
PHP
lizzyxh/lizzyxh.github.io
/portfoliosite/assets/php/email_form.php
UTF-8
1,471
3
3
[]
no_license
<?php // Only process POST requests. if ($_SERVER["REQUEST_METHOD"] == "POST") { // Get the form fields and remove whitespace. $goto_after_mail = "http://www.lhidalgo.com/#contact"; $name = strip_tags(trim($_POST["name"])); $name = str_replace(array("\r","\n"),array(" "," "),$nam...
true
3db10480cc6614c5b481d1e99b8ca62048a7f350
PHP
StuntsKhumza/mathebula
/php/bookingsSQL.php
UTF-8
3,128
3.03125
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of bookingsSQL * * @author Nkosinathi.Khumalo */ class bookingsSQL { //put your code here privat...
true
31f461a0b3f8cc5c4026718ce5aed535b69079a3
PHP
stYassine/laravel-ecommerce
/database/seeds/ProductsTableSeeder.php
UTF-8
1,927
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Product; class ProductsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $p1 =Product::create([ 'name' => 'Samsung', 'price' => 499, ...
true
9488ddf48902e13c93af6f54d5a7c23619f39f1d
PHP
denissolomkin/lotzon
/protected/application/model/models/EmailInvites.php
UTF-8
556
2.671875
3
[]
no_license
<?php Application::import(PATH_APPLICATION . 'model/Model.php'); Application::import(PATH_APPLICATION . 'model/entities/EmailInvite.php'); Application::import(PATH_APPLICATION . 'model/processors/EmailInvitesProcessor.php'); class EmailInvites extends Model { public function init() { $this->setProcess...
true
179bfa8cb42f55fcb22fd901232a47407863dd8b
PHP
earantesjunio/yumipetfashion
/yumipetfashion/modules/checkout/boletobancodobrasil/module.boletobancodobrasil.php
UTF-8
10,402
2.625
3
[]
no_license
<?php require_once(dirname(__FILE__) . '/../checkoutEdazCommerce.php'); class CHECKOUT_boletobancodobrasil extends ISC_CHECKOUT_PROVIDER { /* Does this payment provider require SSL? */ var $_requiresSSL = false; /* The help text that will be displayed post-checkout */ var $_paymenthelp = ""; ...
true
53666fe6827708ba3d206e0af820740f2bd515a2
PHP
boxed-code/event-source
/src/Emitter/Responses/StreamedResponse.php
UTF-8
511
2.6875
3
[]
no_license
<?php namespace BoxedCode\EventSource\Emitter\Responses; use BoxedCode\EventSource\Emitter\Buffers\Buffer; use Closure; class StreamedResponse implements Response { public function __construct() { ignore_user_abort(false); } public function output(Closure $renderer, Buffer $buffer) {...
true
8587b354eddab9a45ae1c2704fddb46ee5dc0da9
PHP
thong-trainer/drc-technology
/app/ProductVariant.php
UTF-8
935
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class ProductVariant extends Model { public $timestamps = false; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'product_id', 'dimension_id', 'value', 'description' ]; ...
true
32e0555c4b072aea352c671d0a27b28f3a84a53f
PHP
masudcoder/LaravelMultiAuth
/app/Libraries/Classes/Samurai.php
UTF-8
11,243
2.65625
3
[ "MIT" ]
permissive
<?php /** * @filename Samurai.php * @description This class is for making payment through Quantum Gateway (Non-interactive method) * @version 1.0 * @package PaymentLibrary.classes * @author Masuduzzaman * * @link * @created on November 21, 2011 * @Dependencies * @licen...
true
b20c22f0c822c14b1844ff27a7c139ba739f4d0f
PHP
duzun/P2PEG
/tests/P2PEGTest.php
UTF-8
22,900
2.671875
3
[ "MIT" ]
permissive
<?php // ----------------------------------------------------- /** * @author DUzun.Me * * @TODO: Test the quality of generated data */ // ----------------------------------------------------- // We have to make some adjustments for PHPUnit_BaseClass to work with // PHPUnit 8.0 and still keep backward compatibilit...
true
05a5eaa983c0e60bb89289869f693af5b775c271
PHP
Zeltonique/heloworldEie
/web/index.php
UTF-8
250
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Zeltonique's Website</title> </head> <body> <?php $welcome="Helloo and welcome to Zeltonique's Website"; echo $welcome; ?> </body> </html>
true
e0ae094b8e50216fe364b81b80b5c475e07fecde
PHP
AlekseiKochetkov/test404
/module/Listener/src/Service/LoggerService.php
UTF-8
1,016
2.65625
3
[]
no_license
<?php namespace Test404\Listener\Service; use Test404\Listener\Model\Message; use Test404\Listener\Model\MessageLog; use Test404\Listener\Persistence\LogRepositoryInterface; use Zend\Db\Adapter\Driver\Pdo\Result; class LoggerService implements LoggerServiceInterface { protected $logRepository; /** * L...
true
125d086f10ee091b346a6c9fb692a07d4b23fb1c
PHP
slobz/SitePerso
/Seb/Bundle/TrackerBundle/Entity/Tracker/Tracked.php
UTF-8
3,038
2.71875
3
[]
no_license
<?php namespace Seb\Bundle\TrackerBundle\Entity\Tracker; use Doctrine\ORM\Mapping as ORM; /** * Tracked * * @ORM\Table() * @ORM\Entity */ class Tracked { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ privat...
true
4bab90c7433cf6593146268833ebebe98cb740ba
PHP
codekipple/wp-day-one
/web/content/plugins/debug-bar/panels/class-debug-bar-wp-query.php
UTF-8
3,111
2.546875
3
[]
no_license
<?php class Debug_Bar_WP_Query extends Debug_Bar_Panel { function init() { $this->title( __('WP Query', 'debug-bar') ); } function prerender() { $this->set_visible( defined('SAVEQUERIES') && SAVEQUERIES ); } function render() { global $template, $wp_query; $queried_object = get_queried_object(); if ( ...
true
9ed995ae6496fd6e308491ba16ec6f286e90a6e6
PHP
Pol-Valentin/mars-rover
/src/Direction.php
UTF-8
861
3.625
4
[]
no_license
<?php namespace Mars; class Direction { const NORTH = 'N'; const SOUTH = 'S'; const EAST = 'E'; const WEST = 'W'; const RIGHT = 'r'; private $direction; private $leftDirections = [ 'N' => 'W', 'W' => 'S', 'S' => 'E', 'E' => 'N', ]; private $righ...
true
5d7f88deb9916d81d1a923aa1da9aabc2f1a9c4e
PHP
ryanfmurphy/db_viewer
/obj_editor/index.php
UTF-8
28,045
2.609375
3
[ "MIT" ]
permissive
<?php #todo will obj_editor accept "schema.table" format for table? { # pre-HTML logic, PHP functions, etc { # init: trunk, includes & requestVars, edit mode { # trunk, includes & requestVars $trunk = dirname(__DIR__); $cur_view = 'obj_editor'; require("$trunk/includes...
true
2805f8c1bb574afda3ac6e8cf86f7e662587f60e
PHP
paSaMend/cinaweb
/controlador/eliminarOVA.php
UTF-8
753
2.5625
3
[ "MIT" ]
permissive
<?php include_once '../FACADE/Facade.php'; $idOVA = $_GET["idOva"]; $path = "../OVA/".$_GET["OVA"]; $facade= Facade::getInstance(); $result = $facade->eliminarOVA($idOVA,$path); removeDirectory($path); function removeDirectory($path) { $path = rtrim( strval( $path ), '/' ) ; $d = dir( $path ); if( ! $d...
true
b19ce8713698dd8d71d9a337cd7f31bd61a9590c
PHP
hyperized/benchmark
/src/Generic/Size.php
UTF-8
1,400
2.96875
3
[ "MIT" ]
permissive
<?php namespace Hyperized\Benchmark\Generic; /** * Class Size * @package Hyperized\Benchmark\Generic */ class Size { /** * @var array */ private static $units = [ 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB' ]; ...
true
afc28ae068be5a1e221dbc7f0cf57366b0b69c1d
PHP
MahmoudAliMoh/Challenge
/app/Http/Transformers/ProviderXTransformer.php
UTF-8
922
2.546875
3
[]
no_license
<?php namespace App\Http\Transformers; use App\Http\Contracts\UsersContracts\ProviderXTransformerContract; class ProviderXTransformer implements ProviderXTransformerContract { /** * Transform providerX. * * @param $data * @return array */ public function transformProviderX(array $da...
true
4681f0e095a1908ff22b66eb61c32382e8230be9
PHP
alex77520/CI3RABC
/application/helpers/save_http_files_helper.php
UTF-8
2,326
2.953125
3
[ "MIT" ]
permissive
<?php /** * FCKeditor 保存远程图片插件 * @author LuTH(512701323@qq.com) * @license LGPL * @version 1.0 2009.6.10 * @copyright Copyright (c) 2009 * */ function getFiles($html) { $files = array (); //$re = "/http:\/\/(\w+\.)+(net|com|cn|org|cc|tv|com.cn)(\S*\/)(\S)+\.(gif|jpg|png|bmp|jpeg)/"; //原始、简洁 $r...
true
2cca24001c1b3784fe41bd48d107ebb33a46b2f2
PHP
thangle96/CDPTW2_NhomD
/extension1.1/training-php-DaiDat98-patch-1/home.php
UTF-8
2,027
2.640625
3
[ "Apache-2.0" ]
permissive
<?php session_start(); session_regenerate_id(true); include('functions.php'); if (!isAdmin()) { $_SESSION['msg'] = "You must log in first"; header('location: login.php'); } if (isset($_GET['logout'])) { session_destroy(); unset($_SESSION['user']); header("location: login.php"); } $query=mysqli_query($conn,"SELEC...
true
974a14b370cffec574f5dccda949b8e241abc053
PHP
AlexNesvat/frag
/database/migrations/2018_09_24_115111_create_products_table.php
UTF-8
2,295
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', fun...
true
bfa5e06e0eb03d75ec819eb3014a27800870e1c3
PHP
zsxsoft/zbp-app-validator
/validator/Helpers/StaticInstance.php
UTF-8
863
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sx * Date: 2017/10/22 * Time: 10:29 */ namespace Zsxsoft\AppValidator\Helpers; trait StaticInstance { private static $_instance = null; protected static function initializeThis() { self::$_instance = new self(); } public static function __c...
true
65506731ebe40bc928b5525c8622f855a92ff752
PHP
julienperrot1/lmb-php
/modele/Phase.php
UTF-8
1,302
2.890625
3
[]
no_license
<?php global $RACINE; include_once ($RACINE . 'modele/Objet.php'); /* Représente une phase d'un tournoi d'une ligue */ class Phase extends Objet { const TYPE = "Phase"; const TABLE = "monobasket_phase"; const CHAMPS = "tournoi_id,libelle,date,ordre_temporel,type,specifique_id"; // Récupère l'ordre tem...
true
28a9f7ba48bf77e0b7f7a85cbf3d8f945c624c37
PHP
stiellerr/zthemename
/archive/class-zthemename-social-media-widget.php
UTF-8
5,721
2.90625
3
[]
no_license
<?php /** * Zthemename social media custom widget * * @link https://developer.wordpress.org/themes/functionality/widgets/ * * @package zthemename */ if ( ! class_exists( 'Zthemename_Social_Media_Widget' ) ) { /** * Core class used to implement the Calendar widget. */ class Zthemename_Social_Media_Widget e...
true
24ec96119fcb573be4c22c332545ab04d073b733
PHP
HellishHel/TravelAgency
/src/Model/ToursModel.php
UTF-8
4,964
2.734375
3
[]
no_license
<?php namespace PensionFund\Model; use PensionFund\Config; class ToursModel { public function get($data) { $query = " select t.id, t.name, t.description, c.name as country, ...
true
2c008d7ca26acd8d6d694c1fd90e5fdc9f5076c3
PHP
gabrielponto/mikro-php-framework
/GForm.php
UTF-8
6,112
2.875
3
[]
no_license
<?php class GForm { public function __construct($type = '') { if ($type) $this->type = $type; } public $type; public $model; public $options = array(); public $wrapper = false; // Indica se os labels e inputs devem ser colocados dentro de colunas. Com th e td respectivamente ...
true
da53bcd5a8b8bacf919f62d89b1609a0274985f6
PHP
spetz83/spetz-db-pumper
/module/Application/src/Entity/Genre.php
UTF-8
2,080
2.625
3
[]
no_license
<?php //////////////////// // // Copyright 2014-2016. Quantum Corporation. All Rights Reserved. // StorNext is either a trademark or registered trademark of // Quantum Corporation in the US and/or other countries. // //////////////////// namespace Application\Entity; use Doctrine\Common\Collections\ArrayCollection; u...
true
7160b1dc4a08dcdc6a3263dcd028127f7385c059
PHP
JCarlin6/MCCS
/controller/ALLAssets_ServerSide.php
UTF-8
654
2.546875
3
[ "MIT" ]
permissive
<?php // DB table to use $table = 'Assets'; // Table's primary key $primaryKey = 'id'; // Array of database columns which should be read and sent back to DataTables. // The `db` parameter represents the column name in the database, while the `dt` // parameter represents the DataTables column identifier. In this ca...
true
8954117410e978717b1a2c9b008f15beca34e467
PHP
sankam-nikolya/advanced-algorithms
/algorithm/recursion/recursiveTreeIterator.php
UTF-8
598
2.796875
3
[]
no_license
<?php $teams = array( 'Popular Football Teams', array( 'La Lega', array( 'Real Madrid', 'FC Barcelona', 'Athletico Madrid', 'Real Betis', 'Osasuna')), array( 'English Premier League', array( 'Manchester United', ...
true
ad226696d654673506fa84dc3e8a147b09ccd8b3
PHP
lmorchard/feedmagick2
/modules/WebFilter.php
UTF-8
1,819
2.984375
3
[]
no_license
<?php /** * WebFilter * * A module that sends incoming raw data to a URL via POST request body and passes along the response body. * * @package FeedMagick2 * @subpackage PipeModules * @author l.m.orchard@pobox.com * @version 0.1 */ class WebFilter extends FeedMagick2_BasePipeModule { /** * Fetch hea...
true
ed73bee02d590cbd5049207f29300e121483f04f
PHP
wkfunk/mothballs
/content.php
UTF-8
1,759
2.703125
3
[]
no_license
<?php $db_conn = new mysqli('localhost', 'root', 'root', 'movieCol'); if($_GET) { $col = $_GET['c']; $filter = strtolower($_GET['q']); $q = "SELECT * FROM movie_collection where lcase($col) like '%$filter%' order by title"; } else { $q = "SELECT * FROM movie_collection order by ...
true
352596bf9deae744dad6deeb2aaaddbcd6c2c169
PHP
railken/laravel-api-helpers
/src/Filter.php
UTF-8
3,169
2.640625
3
[ "MIT" ]
permissive
<?php namespace Railken\Laravel\ApiHelpers; use Railken\SQ\Languages\BoomTree\Resolvers as Resolvers; use Railken\SQ\QueryParser; use Railken\Laravel\ApiHelpers\Query\Visitors as Visitors; class Filter { /** * @var array */ protected $keys; /** * Set keys. * * @param array $keys...
true
1962e3442f5499f6ec968fc151a359967b090f7e
PHP
iamphedz/rilan_tools
/app/Repositories/OrderRequestRepositoryInterface.php
UTF-8
2,332
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; interface OrderRequestRepositoryInterface { /** * Get order request with given ID * * @param int $id * @return mixed */ public function get($id); /** * Validates order request variables * @return mixed */ public function vali...
true
c43773c0a4209b9bbdc2210fc49e1596b291a68e
PHP
horakdani/gyakorlas
/beolvasas_kiiras/penzezesARG_TEST.php
UTF-8
706
3.0625
3
[]
no_license
<?php echo "\n"; echo "Test all the money in your wallet if you have 5 piece of 100 HUF, 6 piece of 200 HUF and 1 pieco of 500 HUF\n\n"; //----------------------------------------------------------------- echo "Read data from parameters:\t\t"; assertEquals(`php penzezesARG.php 5 6 1`, "A pénztár teljes összege: 2200Ft"...
true
f47d61a3a5da19898ddd66010a5ca3a5557e641d
PHP
nhatminh0149/nlcstocotoco
/frontend/xulygiohang.php
UTF-8
2,694
2.546875
3
[]
no_license
<?php require_once __DIR__ . '/../dbconnect.php'; // if(!isset($_SESSION['kh_taikhoan'])){ // echo '<script> // alert("Bạn phải Đăng nhập trước khi vào Giỏ hàng nhé!!!"); // window.location= "khachhangdangnhap.php" ; // </script>'; // } ?> <!DOCTYPE html> <html lang=...
true
e7888fb8026901c02fe153806cf6f2da427842be
PHP
rapidecek/Intranet-php
/login.php
UTF-8
2,696
2.84375
3
[ "MIT" ]
permissive
<?php session_start(); require_once('connect.php'); if(isset($_POST) & !empty($_POST)){ $username = mysqli_real_escape_string($connection, $_POST['username']); $password = md5($_POST['password']); $sql = "SELECT * FROM `user` WHERE username='$username' AND password='$password'"; $result = mysqli_query($connection,...
true
adcec8b180c0fcd957c9e47365bd4ed52e5a9fe2
PHP
DFMoller/YikesBikes
/includes/get_num_users.inc.php
UTF-8
615
2.96875
3
[]
no_license
<?php include_once("db_connect.php"); $sql = "SELECT * FROM users"; $result = mysqli_query($conn, $sql); $users_online = 0; if (mysqli_num_rows($result) > 0) { // output data of each row $users_online = 0; while ($row = mysqli_fetch_assoc($result)) { $last_online...
true
7588c5de9678d3637181a8550af4151ed08794bf
PHP
typrone1/giaphaphpmvc
/App/Controllers/Posts.php
UTF-8
629
2.609375
3
[]
no_license
<?php namespace App\Controllers; use App\Models\Post; use Core\Controller; use Core\View; /** * Created by PhpStorm. * User: Huu Ty * Date: 17/09/2017 * Time: 4:50 PM */ class Posts extends Controller { public function indexAction(){ $posts = Post::getAll(); View::renderTemplate('Posts/index.h...
true
c0b842fc34ef16e4ed3943a3a380ab2a1539a70c
PHP
NR0459/Postcard
/mail.php
UTF-8
1,315
2.78125
3
[]
no_license
<?php require 'class.phpmailer.php'; try { $mail = new PHPMailer(true); //New instance, with exceptions enabled $to = $_POST['email']; $mail->AddAddress($to); $mail->From = $_POST['femail']; $mail->Subject = "See your postcard"; $body = ""; $body = preg_repla...
true
8b280560b34a2e2e35cfca6769a65fc4a8565319
PHP
phamphuchinh1606/philippe_paxsky
/app/Logics/DirectionLogic.php
UTF-8
1,244
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Logics; use App\Models\Direction; use App\Models\Building; use App\Common\Constant; use DB; class DirectionLogic extends BaseLogic{ public function find($id){ return Direction::find($id); } public function getAll(){ return Direction::whereIsDelete(Constant::$DELETE_FL...
true
82677c398cb499786dcd09fb52aaabb07050465b
PHP
studentIvan/Batman-PHP
/system/Framework/Common/Migrate.php
UTF-8
1,871
2.921875
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php namespace Framework\Common; use \Doctrine\DBAL\Connection, \Doctrine\DBAL\Platforms\AbstractPlatform, \Doctrine\DBAL\Schema\Schema, \Framework\Interfaces\SchemaInterface; abstract class Migrate implements SchemaInterface { /** * Schema data-types: */ public $string = 'string'; ...
true
3ff7fbcfee72665df9ced528298425c56f652ffb
PHP
katbreitin/360Web2
/labs/unit09lab01_mvc_trucker/show_trips_controller.php
UTF-8
847
2.5625
3
[]
no_license
<?php include('show_trips_service.php'); /* The first job of the controller is to receive the request. In this case there are not any query or post parameters on the request object */ /* The 2nd job of the controller is to orchestrate other server side componets for the ultimate purpose of creating the model */ ...
true
d5895d967c33bed070cfcbb555e389371e210698
PHP
fjerbi/CodeIgniter3-online-shop
/application/third_party/dompdf/include/cached_pdf_decorator.cls.php
UTF-8
6,719
2.625
3
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "LGPL-2.1-or-later", "LGPL-2.1-only", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-only", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * DOMPDF - PHP5 HTML to PDF renderer * * File: $RCSfile: cached_pdf_decorator.cls.php,v $ * Created on: 2004-07-23 * * Copyright (c) 2004 - Benj Carson <benjcarson@digitaljunkies.ca> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Genera...
true
70e06e09f98e6b5e9132b87b62bb60cca009fd43
PHP
peip-mirror/ApiProblem
/src/JsonParseException.php
UTF-8
569
2.859375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Crell\ApiProblem; class JsonParseException extends JsonException { /** * JsonParseException constructor. * * This version forces a string for $failedValue, as that's the only thing that * could fail to parse, since that's all you can even try to parse....
true
6ae299801dc7a32b62a7f6c82f9f1c6c066e486e
PHP
RyanMichaelNasalinas/PHP-Content-Management-System-
/registration.php
UTF-8
7,877
2.765625
3
[]
no_license
<?php include "includes/Database.php"; ?> <?php include "includes/header.php"; ?> <!-- Navigation --> <?php include "includes/navigation.php"; ?> <?php if($_SERVER['REQUEST_METHOD'] == "POST"){ $firstname = trim($_POST['firstname']); $lastname = trim($_POST['last...
true
967588c0e6e2659061da367ac384d33860d9f669
PHP
theguitarvity/SourcePHPTF2016
/tf2016/classes/Entidades/Senha.php
UTF-8
616
2.625
3
[]
no_license
<?php /** * Description of Senha * * @copyright (c) 2015, ByteGod IT solutions - todos os direitos reservados */ class Senha { private $senha; private $codApoio; private $codTF; function getSenha() { return $this->senha; } function getCodApoio() { return $this->codApoio; ...
true
4c42b7b3f1237e6236df980b7b1852b6f3df4015
PHP
YerlenZhubangaliyev/skel
/src/App/Application.php
UTF-8
721
2.828125
3
[]
no_license
<?php namespace App; use Composer\Autoload\ClassLoader; /** * Класс инициализации приложения */ abstract class Application { /** * Автозагрузчик классов * * @var \Composer\Autoload\ClassLoader */ public $loader; /** * Экземпляр класса * * @var \App\Bootstrap */ ...
true
fcafa5aff16f4fa3e1221bcb103b5e06051893ff
PHP
Ishan-rao/Capstone
/cart.php
UTF-8
6,813
2.546875
3
[]
no_license
<?php include './includes/navigation.php'; ?> <?php if (isset($_SESSION['customer_email'])) { echo "<b>YOUR EMAIL : </b>".$_SESSION['customer_email']; }else{ echo ""; } ?> <div class="container-fluid"> <div class="row mt-2"> ...
true
8b0ede2dcd8051c759a1902bab3c10a65d3da47d
PHP
1997justin12/Campus_Hire
/Database/test.php
UTF-8
442
3.0625
3
[]
no_license
<?php $bd = strtotime("6 October 2010"); if(date('Y-m-d') == date('Y-m-d',$bd)) { echo "true"; } else { $year = date('Y'); if(date('m')>=date('m',$bd)) { if(date('d')>=date('d',$bd)) { $bd = date('Y',$bd); $age = $year - $bd; } else { $bd = date('Y',$bd); $age = ($yea...
true
bfb138d7e04fdafdc706291dab934ec462268f13
PHP
PierrickV/MeetSpace
/WWW/C_project.php
UTF-8
964
2.515625
3
[]
no_license
<!-- C_project.php Controller for a project page Created by Maxime (2015-01-14) --> <?php if (isset($_GET['ID'])) // ET SI ON A DES PARMS DANS L'URL { $project= new Project($_GET['ID']); // Projet non initialiser. $projects_users=$project->get_subscribed_users(); $projects_manager=$project->get_manager_l...
true
833e30ce6e1dc36b28f6d5c50c7914ae793e469e
PHP
fredzengue/test-game
/app/Http/Controllers/GameController.php
UTF-8
2,132
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Game; use App\Models\Lastmove; use Illuminate\Http\Request; class GameController extends Controller { public function index(){ $game = Game::with('lastmoves')->orderBy('created_at','DESC')->first(); return view('welcome')->with('game',$game); ...
true
38d9d080b8fc8faa7b9fcebbdd06319b6eb4aae8
PHP
italomks/tcc
/PDO/conexao.php
UTF-8
734
2.796875
3
[]
no_license
<?php function conectar() { return new PDO('mysql:host=localhost;dbname=db_curriculo', 'root', '18201511'); } function pesquisar($sql) { $conexao = conectar(); $statement = $conexao->query($sql, PDO::FETCH_ASSOC); return $statement->fetchAll(); } function inserir($sql) { $conexao = conectar(); ...
true
5f473cdc225d51d1949e7f92e0d5dccccad62d0a
PHP
MartinProkop/BigBrother
/library/BB/Db/Query/Interface.php
UTF-8
159
2.515625
3
[]
no_license
<?php interface BB_Db_Query_Interface { public function __construct($data); public function toArray($recursive = true); public function __toString(); }
true
3eb0e01eb27fabad7d0057459678eec6fbd1e57b
PHP
tangzhaofeng/yousheng_novel
/ys.suixinmh.com/library/service/wxpcLoginService.php
UTF-8
3,656
2.625
3
[]
no_license
<?php /** * @author gaoguofeng */ class wxpcLoginService extends Service{ private $_appId; private $_appSecret; private $_callback; private $logDo; private $doMain; private $wxConfig; const OAUTH_PREFIX = 'https://open.weixin.qq.com/connect'; const OAUTH_AUTHORIZE_URL = '/qrconnect?'; c...
true
da2c61ebc2dc2294859f3e156ae612152ecb6911
PHP
wuxincoc/yii-framework-base
/modules/api/controllers/Format.php
UTF-8
3,398
2.578125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the yii-framework-base. * @author William Chan <root@williamchan.me> */ namespace app\modules\api\controllers; use app\components\Html; use app\models\Advertise; use Yii; /** * 格式化一些通用的信息 * * @author William Chan <root@williamchan.me> */ class Format { /** * 格式化输出 app...
true
564146ee40857befae78d32987cb833979f02308
PHP
fracz/refactor-extractor
/results/yii2/f9aa9a181f318a03cae87d7f45ba550789520a54/after/Command.php
UTF-8
43,625
2.84375
3
[]
no_license
<?php /** * Command class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2012 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\db\dao; use yii\db\Exception; /** * Command represents a SQL statement to ...
true
ba8cd56168c6380569c5cd0dcfa46e3541a05d30
PHP
ianrenton/athousandwords
/editstory.php
UTF-8
3,231
2.75
3
[ "BSD-2-Clause" ]
permissive
<?php require_once('config.php'); session_start(); mysql_connect(DB_SERVER,DB_USER,DB_PASS); @mysql_select_db(DB_NAME) or die( "Unable to select database"); // If not logged in, deny access if (!isset($_SESSION['userID'])) { header('Location: ./login'); die(); } // If id not specified, go to the home page. if(...
true
1d1a3d8f4f8159c5e789daabbaac47b5e743a1b0
PHP
lupswitch/saferlanes
/includes/proof/http/Header.php
UTF-8
1,507
3.453125
3
[]
no_license
<?php namespace proof\http; /** * timestamp Jul 31, 2012 4:17:37 AM * * * @author Lasana Murray <dev@trinistorm.org> * @copyright 2012 Lasana Murray * @package proof\http * * Class for sending an http header to the user's browser. * */ class Header implements HttpResponse { const E404 = 404; con...
true
112b3d1dd3006b52575b094aa786e2f14fb88078
PHP
square/square-php-sdk
/src/Models/Builders/ListTeamMemberWagesResponseBuilder.php
UTF-8
1,426
2.828125
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Square\Models\Builders; use Core\Utils\CoreHelper; use Square\Models\ListTeamMemberWagesResponse; /** * Builder for model ListTeamMemberWagesResponse * * @see ListTeamMemberWagesResponse */ class ListTeamMemberWagesResponseBuilder { /** * @var ListTeamMemberWage...
true
9fb1ffb72472c1bd7007e81e94a23d9cd0428214
PHP
ericplatas/ep-ajax-upload
/uploader.php
UTF-8
1,630
2.8125
3
[]
no_license
<?php // Definicoes padrao do upload $uploadDirectory = 'uploads/'; // Pasta onde os arquivos sao salvos $extensions = array('jpg', 'pdf', 'msi'); // Extensoes permitidas $totalItens = count($_FILES['arquivo']['tmp_name']); $msgRetorno = array(); for($i = 0; $i < $totalItens; $i++){ $fileExtension = substr($_FILES['...
true
7dbb926dd8eb9d7cfc58b8dc1840f9d647266103
PHP
nilamdoc/sffteam
/app/webroot/bingo.php
UTF-8
2,198
3.296875
3
[]
permissive
<?php /* Generate however many unique bingo cards you require (should be fewer than 10k though). This is not meant to compute ALL possible bingo cards, obviously, but to help set up a nice amount of cards for play. If you require a free space somewhere on the board, you should probably tweak the output, ...
true
3371d5a3c9317697fa5c7125abb7500759a31fe3
PHP
DEco-DUCS/D.Eco_ServerSide
/jsonPHP/RnDphp/db_function.php
UTF-8
822
3
3
[]
no_license
<?php /** * DB operations functions */ include_once 'config.php'; class DB_Functions { private $db; private $con; //put your code here // constructor function __construct() { $this->con = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD); /* check connection */ if (mysqli_co...
true
3760393e55714baa58f6a9cd94318d16ffe3a11e
PHP
RomanDrevs/homeworks
/homeworks/arrays_loops_tasks/13.php
UTF-8
208
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Roma_Drevs * Date: 19.11.2016 * Time: 1:29 */ for ($b = 1; $b < 10; $b++){ for($k = 1; $k < 10; $k++){ echo ($b * $k)." | "; } echo "<br/>"; }
true
42df8c9fde96d1dcc227e8da3c2683dff4f4c32f
PHP
MohmdMHR/Laravel-Blog
/routes/web.php
UTF-8
4,930
2.53125
3
[]
no_license
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
true
3716068b6164aa9a29c4960558502f756412b25b
PHP
phlexible/bundler
/Filter/LineSeparatorContentFilter.php
UTF-8
773
2.71875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the phlexible bundler package. * * (c) Stephan Wentz <sw@brainbits.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Phlexible\Component\Bundler\Filter; /** * Line separator filter. ...
true
4bf2e253278bf48fe7ea3704cf525eaa86314189
PHP
Nazmul96/Object-Oriented-PHP
/multiple_inheritance_using_interfacee.php
UTF-8
694
4.09375
4
[]
no_license
<?php class Father{ public $mark=101; //properti always const at interface } class Father1 extends Father{ public $mark1=102; } interface Mother{ const mark2=103; public function display(); public function display1(); } interface Mother1{ ...
true
14f443f2f797193bdccdd418bcc669a39ed7e846
PHP
xp3ctr0/invsoftic
/backend/models/Interfaces.php
UTF-8
1,038
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "interfaces". * * @property int $INTEID * @property string $INTENOM * @property string $INTEDESC * * @property Intecoma[] $intecomas */ class Interfaces extends \yii\db\ActiveRecord { /** * @inheritdoc */ publi...
true
9d67f80c8427c8a86f879890e9410f30b06d50f5
PHP
GFG/bloom-filter
/src/BloomFilter/DynamicBloomFilter.php
UTF-8
1,520
2.90625
3
[ "MIT" ]
permissive
<?php namespace RocketLabs\BloomFilter; /** * @author Igor Veremchuk igor.veremchuk@rocket-internet.de */ class DynamicBloomFilter extends BloomFilterAbstract { /** * @inheritdoc */ protected function doAdd(string $value) { $this->persister->setBulk($this->getBits($value, floor($this->...
true
7085ce0703424018bbd6e431187194af0812f2ba
PHP
Viras-/jacq-code
/protected/models/legacy/TaxClassification.php
UTF-8
3,323
2.609375
3
[]
no_license
<?php /** * This is the model class for table "tbl_tax_classification". * * The followings are the available columns in table 'tbl_tax_classification': * @property integer $classification_id * @property integer $tax_syn_ID * @property integer $parent_taxonID * @property string $number * @property integer $orde...
true
5b2df79dc5d7280905de76a3b0f681d7c78f5f20
PHP
Matheus-Cardoso/pmweb_orders
/GETtester.php
UTF-8
524
2.71875
3
[]
no_license
<?php include 'order_stats.php'; //caso seja nulo, $start_date recebe um valor "zerado" if(is_null($start_date = $_GET["start_date"])) { $start_date = '0000-00-00'; }; //caso seja nulo, $end_date recebe a data mais recente (dia atual) if(is_null($end_date = $_GET["end_date"])) { $end_date = date('Y-m-d'); ...
true
e74e7aa35582e6b8b0227039303cea558c26a404
PHP
Charu91/Wowtables1
/app/Http/Models/Eloquent/ReservationAddonsVariantsDetails.php
UTF-8
812
2.515625
3
[ "MIT" ]
permissive
<?php namespace WowTables\Http\Models\Eloquent; //use DB; //use Config; use Illuminate\Database\Eloquent\Model; /** * Model class ReservationAddonsVariantsDetails. * * @package wowtables * @version 1.0.0 * @since 1.0.0 * @author Parth Shukla <parthshukla@ahex.co.in> */ class ReservationAddonsVariantsDeta...
true
034f6350b574be0d2f1edc62531b20044c0d4af4
PHP
sayyllg/klmw
/module/Api/src/Api/Db/PushDb.php
UTF-8
1,570
2.703125
3
[]
no_license
<?php /** * Api AddresslistDb * * @author lingxiao * @copyright Immortal bird Team * @version 1.0 */ namespace Api\Db; use Api\Db\YlDb; class PushDb extends ApiDb { const PUSH = 'push'; // 用户表 /** * @brief 构造函数 * * @retval null */ public function __construct(){ parent::__construct()...
true
4acb3c1f1112e5884c7b599dda52ae053f003fbc
PHP
richmont/Controle_Entrada_Saida
/db/db_criar_banco.php
UTF-8
3,158
2.875
3
[]
no_license
<?php set_include_path($_SERVER['DOCUMENT_ROOT'] . "/Controle_Entrada_Saida/") ; include("db/ler_json.php"); # elementos a serem verificados se existem no json $index_keys = array("usuario","senha","db_hostname","db_port","database"); # lê o arquivo json com as credenciais de conexão ao banco $db_credenciais = jso...
true
9db3ab1cc9bd3bf645ea63d377b25090b4703c6a
PHP
JackHarley/SportsMatchAdministrator
/app/models/Permission.php
UTF-8
3,529
3.125
3
[]
no_license
<?php /** * Sports Match Administrator * * Copyright © 2014-2015, Jack P. Harley, jackpharley.com * All Rights Reserved */ namespace sma\models; use sma\Database; use sma\query\DeleteQuery; use sma\query\InsertQuery; use sma\query\SelectQuery; /** * Permission * * @package \sma\models */ class Permission { ...
true
b76dd8725498253dc403b6ef9cb9a3149e157e30
PHP
infinity-next/sleuth
/src/Traits/DetectiveTrait.php
UTF-8
7,072
3.140625
3
[ "MIT" ]
permissive
<?php namespace InfinityNext\Sleuth\Traits; use InfinityNext\Sleuth\Exceptions\CaseNotSolved; trait DetectiveTrait { /** * Is the case closed? * * @var boolean */ protected $caseClosed = false; /** * Extenson string derived from a closed case. * * @va...
true
5c7113efa079943175d4feff819e35793b93128b
PHP
LaBanHSPO/MVC-PHP0
/index.php
UTF-8
1,081
2.515625
3
[]
no_license
<?php if (isset($_GET['controller'])){ include_once('controllers/StudentController.php'); include_once('controllers/AuthController.php'); $controller= $_GET['controller'].'Controller'; $action = $_GET['action']; $controller = new $controller(); switch ($action) { case "getListStudent": { $controller->list...
true
7f3751f2ad613a43ce3e8b6c7d80189dbb746ae1
PHP
gzim324/library-system
/src/Entity/Category.php
UTF-8
1,689
2.515625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\CategoryRepository") * @ORM\Table(name="category") */ class Category { /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValu...
true
eb5c0df0ae0fd4d8807df82fd2f045af188e26b7
PHP
jsrekrutacja/rekrutacja
/app/Repository/PostFileRepository.php
UTF-8
738
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Repository; use App\Models\Post; use App\Models\PostFiles; use App\Models\User; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; use Symfony\Component\HttpFoundation\File\File; class PostFileRepository implements PostFileRepositoryInterface { private $disk = 'public'; ...
true
f72e3fc00dcdb17144686be5f1af8c4663339233
PHP
serajam/lasfy
/library/Core/View/Helper/DateFormatter.php
UTF-8
893
2.90625
3
[]
no_license
<?php /** * Date formatter * * @author Petryk Fedor * @copyright Copyright (c) 2013-2014 Studio 105 (http://105.in.ua) */ class Core_View_Helper_DateFormatter { /** * * Returns formmated date * * @param String $date * @param boolean $time | with or without time string * ...
true
a172ec56a5795e5c74a46c938b93837b65d0146c
PHP
Saboor-Hamedi/IqbalPKL
/login/Untitled-1.php
UTF-8
5,900
2.6875
3
[]
no_license
<?php session_start(); require_once('../app/database/config.php'); require_once('../app/database/database.php'); require_once('../app/loginScript/loginScript.php'); $db = new database(); $login = new loginScript($db); ?> <?php $email = ''; $password = ''; $message = ''; $errors = array(); $errors1 = array(); ?> <?php...
true
71b8b527854a1db945b366e5e61bfe173233eb26
PHP
silinternational/addressbook
/application/simplesamlphp/lib/SimpleSAML/Metadata/MetaDataStorageSource.php
UTF-8
6,943
3.25
3
[ "BSD-3-Clause", "LGPL-2.1-or-later", "LGPL-2.1-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * This abstract class defines an interface for metadata storage sources. * * It also contains the overview of the different metadata storage sources. * A metadata storage source can be loaded by passing the configuration of it * to the getSource static function. * * @author Olav Morken, UNINETT AS. *...
true
09d999c65a9fd59e641755c78aee2f9a6f402faa
PHP
phacility/phabricator
/src/applications/harbormaster/controller/HarbormasterBuildableActionController.php
UTF-8
4,608
2.515625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class HarbormasterBuildableActionController extends HarbormasterController { public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $id = $request->getURIData('id'); $action = $request->getURIData('action'); $buildable = id(new HarbormasterBuildableQuer...
true
53ac1b051635b71414338b9e19d44eebcab7028d
PHP
SousaLuis/heracles-3
/php-poo-heracles-labour-3/src/Arena.php
UTF-8
1,448
3.734375
4
[]
no_license
<?php namespace App; class Arena { private array $monsters = []; private Hero $hero; private int $size = 10; public function __construct(Hero $hero, array $monsters){ $this->hero = $hero; $this->monsters = $monsters; } /** ...
true
58f2ee45383a5117c2cc9fc9702f13f2ff7a16a3
PHP
php-zen/web-application
/lib/Cookies/Cookie/ExIllegalDomain.php
UTF-8
773
2.640625
3
[]
no_license
<?php /** * 定义当作用域不合法时抛出地异常。 * * @author Snakevil Zen <zsnakevil@gmail.com> * @copyright © 2016 SZen.in * @license LGPL-3.0+ */ namespace Zen\Web\Application\Cookies\Cookie; /** * 当作用域不合法时抛出地异常。 * * @version 0.1.0 * * @since 0.1.0 * * @method void __construct(string $name, string $domain, \E...
true
5ea12a75d5fb35c62b673866fc0c38930dc00856
PHP
apoorv-247/product_options
/app/Core/Utility/UserPath.php
UTF-8
874
2.875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: wayne.jacobsen * Date: 1/9/17 * Time: 2:25 PM */ namespace App\Core\Utility; use Exception; class UserPath { public static function calculate($date, $lastDirPrefix, $lastDirOverride=null) { if (empty($date)) { throw new Exception( ...
true
b99eb46451d7e2a5c56dee195bc2a0563e2fd0ac
PHP
dragostinova/php7-design-patterns
/Creational/AbstractFactory/JsonReportFactory.php
UTF-8
352
2.703125
3
[]
no_license
<?php namespace DesignPatterns\Creational\AbstractFactory; final class JsonReportFactory implements ReportFactoryInterface { public function createCarrierReport(): ReportInterface { return new JsonCarrierReport(); } public function createShipperReport(): ReportInterface { return n...
true
5ed05cf13d812b1f47165f7f52d0f6f76466c77a
PHP
siper92/clippings-invoice-command
/tests/CommandTest.php
UTF-8
2,429
2.734375
3
[]
no_license
<?php declare(strict_types=1); use App\Command; use PHPUnit\Framework\TestCase; final class CommandTest extends TestCase { protected $args = [ './console', 'import', './data.csv', 'EUR:1,USD:0.987,GBP:0.878', 'GBP', '--vat=123456789', ]; protected function ...
true