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
a417f7d0082a7d50540f4a821e13671342cb8589
PHP
htmlacademy-yii/598165-task-force-1
/src/utils/FixtureLoader.php
UTF-8
3,305
2.96875
3
[]
permissive
<?php declare(strict_types=1); namespace TaskForce\utils; use http\Exception\RuntimeException; use TaskForce\exceptions\SourceFileException; use TaskForce\exceptions\FileFormatException; class FixtureLoader { private string $filename; private string $tableName; private array $columns; private \SplFi...
true
3127ff6b45088b7a8a8eaf0808d6095b0ea1cebc
PHP
xiaoshitou-xiaoshitou/ex
/ex-server/vendor/jianyan74/rageframe-basics/backend/controllers/CurdController.php
UTF-8
2,380
2.59375
3
[]
no_license
<?php namespace jianyan\basics\backend\controllers; use Yii; use yii\base\InvalidConfigException; /** * 快速创建增删改查基类 * * Class CurdController * @package jianyan\basics\backend\controllers */ class CurdController extends \backend\controllers\MController { /** * 基础属性类 * * @var */ public $...
true
6d300c91277e1f2891750cefc6ada2a441977d17
PHP
happychips/inventory
/src/model/ProductIdentifier.php
UTF-8
211
2.671875
3
[]
no_license
<?php namespace happy\inventory\model; class ProductIdentifier extends Identifier { public static function fromNameAndUnit($name, $unit) { return new ProductIdentifier($name . '_' . $unit); } }
true
d4ec84c5dcf50967b7e89ed8fc8301a5d88dee44
PHP
sigmadesarrollo/logisoft
/logisoft/logisotfintranet.net/web_capacitacion/carteraMorosa/imprimirActividad.php
UTF-8
3,257
2.703125
3
[]
no_license
<?php require('../fpdf/fpdf.php'); // require('../Conectar.php'); class PDF extends FPDF{ function Header(){ //Logo $this->Image('logo.jpg',10,8,33); //Arial bold 15 $this->SetFont('Arial','B',15); //Movernos a la derecha $this->Cell(80); //Titulo $this->Cell(30,10,'ACTIVIDADES DEL USUARIO',0,0,'C')...
true
c5175d261bdc631520557f6df2775736afa4ef71
PHP
perfumer/contracts
/example/generated/src/Example7.php
UTF-8
695
2.75
3
[ "MIT" ]
permissive
<?php namespace Generated\Barman\Example; abstract class Example7 implements \Barman\Example\Contract\Example7 { /** * @var \Barman\Example\Context\Math */ private $_context_math = null; final public function sum(int $foo, int $bar): int { $_return = null; $_return = $this-...
true
4356d3a43e583be371fbe506102ab18e6d6f2106
PHP
Luminee/canal_client
/lib/Driver/MySQL/MySQL.php
UTF-8
2,145
2.734375
3
[ "MIT" ]
permissive
<?php namespace Lib\Driver\MySQL; use PDO; use Exception; use Lib\Core\Driver; use Lib\Driver\Columns; class MySQL extends Driver { /** * @var PDO */ protected $pdo; /** * @var SQL */ protected $sql; /** * @var Columns */ protected $column; protected funct...
true
e852b708487818033b87bfa820ee86db687f2d80
PHP
Kraekar/site-saas-project
/www/model/user/get_user_data.php
UTF-8
549
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: knregnier * Date: 09/01/15 * Time: 10:05 */ function get_user_data($userId) { //database connexion has already been, get here the given object global $bdd; //get user data for regarding email and password $reponse = $bdd->prepare('SELECT * FROM users WHERE...
true
a076f019d2cee1d01fced73ab81e38379a3f80b4
PHP
tufanbarisyildirim/fbgroup
/application/models/Vocabulary_model.php
UTF-8
2,015
2.703125
3
[ "Apache-2.0" ]
permissive
<?php /** * @method Vocabulary_model get_by_id(int $id) */ class Vocabulary_model extends MY_Model { public function __construct($result = null) { parent::__construct($result); } public function get_random() { $vocabs = $this->db->order_by('RAND()...
true
069acff111c0e54b8734bc6c954b8d6caf9d714a
PHP
ShaneMcC/phprouter
/src/Implementations/HasCanary.php
UTF-8
355
2.546875
3
[ "MIT" ]
permissive
<?php namespace shanemcc\PhpRouter\Implementations; /** * Interface to show that a device type supports "Canary" lines. * * These are lines that can be sent to the device for tracking purposes * but that won't actually do anything. */ interface HasCanary { /** * Get a device-compatible canary. */...
true
51e7068183f72dcdea987dc69e6b2106b1ce4455
PHP
esmcrezosis/esmc_php
/mcnp/application/models/EuCompteGeneralMapper.php
UTF-8
3,058
2.640625
3
[]
no_license
<?php class Application_Model_EuCompteGeneralMapper { protected $_dbTable; public function setDbTable($dbTable) { if (is_string($dbTable)) { $dbTable = new $dbTable(); } if (!$dbTable instanceof Zend_Db_Table_Abstract) { throw new Exception('Invalid table data ...
true
383c65cac8c8a38cf85ecbc642cfa2e0fa89ec00
PHP
phproad/phpr-framework
/modules/db/classes/model_dynamic.php
UTF-8
3,176
2.765625
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Db; use SimpleXMLElement; use Phpr\Extension; use Phpr\Xml; /** * Dynamic Column Extension * * Adds a special field type dynamic_data that stores flexible data. * * Usage: * * public $implement = 'Db\Model_Dynamic'; * */ class Model_Dynamic extends Extension { protected $_model; protecte...
true
2b591d9a07c54cac3d89640e0e8b51b9b50e6814
PHP
Lukzat/decin-voting
/www/js/scripts/mainMenu/getPersonsBySessions.php
UTF-8
1,365
2.5625
3
[ "MIT" ]
permissive
<?php use Manager\AddPageManager; header('Content-Type: application/json'); require __DIR__ . '/../../vendor/autoload.php'; $APM = new AddPageManager(); $info = json_decode(file_get_contents("php://input")); $persons =$APM->getPersonsBySessions($info); $chartCluster = []; foreach ($persons as $cluster) { $a...
true
afeb85de38e939fa802b0e8ad6e2f4f0db15e43d
PHP
domsnmin/cert-4-web
/class examples/03-forms/confirm.php
UTF-8
1,426
3.046875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Confirmation Page</title> </head> <body> <?php // init variables (check the mail) $name = $_POST["na...
true
19002b0076c31b94a2fb839a0925e9284d5c8e79
PHP
worksolutions/bitrix-module-tools
/lib/orm/db/request/select.php
UTF-8
3,438
2.84375
3
[ "MIT" ]
permissive
<?php namespace WS\Tools\ORM\Db\Request; use WS\Tools\ORM\Db\Pager; use WS\Tools\ORM\Db\Request; use WS\Tools\ORM\Entity; use WS\Tools\ORM\EntityCollection; /** * Select definititon * * implementation of sorting and pagination * * @method Select equal(string $attr, mixed $value) * @method Select notEqual(stri...
true
4b6038b1462d3a1e77ac2e69a2e1674f2551e309
PHP
szpadlicho/cms
/css/font-css.php
UTF-8
459
2.609375
3
[]
no_license
<?php header("Content-type: text/css; charset: UTF-8"); ?> <?php $files = glob('../fonts/*.*'); //$files = glob('data/*.*'); //$time = time(); foreach ($files as $file) { if (is_file($file)) { //echo $file //echo basename($file); $ext3 = pathinfo($file, PATHINFO_EXTENSION); ?> @...
true
86d696b5c3656b20be31777cf0ecd9d987f7ab24
PHP
gnat/super-score
/src/Library/Database.php
UTF-8
1,288
3.265625
3
[ "MIT" ]
permissive
<?php namespace SuperScore\Library; /** * Lightweight database layer on top of PDO. * When instanced, sets up a sane PDO connection. */ class Database { var $db = 0; var $host = ""; var $user = ""; var $password = ""; var $name = ""; var $prefix = ""; /** * Attempt to connect to database using the given conf...
true
9f1751a356ac63b4f6ef4ff7d348e44f78f25558
PHP
omusico/elasticTwitter
/app/class/HtmlController/Page.class.php
UTF-8
484
2.59375
3
[]
no_license
<?php namespace HtmlController; class Page { public $header = "<html><head><link type='text/css' rel='stylesheet' href='app/css/style.css'></head><body><form method='POST' action='index.php?pagetype=Search'><textarea name='searchQuery' rows='5' cols='30'></textarea><br><br><input type='submit'></form>"; p...
true
a9735c2df29dc8b4e6d6601c92164e033d8e0012
PHP
BKcore/Orion
/orion/core/tools.php
UTF-8
7,760
3.171875
3
[ "MIT" ]
permissive
<?php namespace Orion\Core; /** * \Orion\Core\Tools * * Orion tools class. * * Various function helpers used internally * * This class is part of Orion, the PHP5 Framework (http://orionphp.org/). * * @author Thibaut Despoulain * @version 0.11.12 * * @static */ class Tools { /** * Regex stynta...
true
2373fbfc21ce7b35fb7335e5217119f03de4eca1
PHP
SStalker/EVOS
/app/Http/Controllers/ShareController.php
UTF-8
3,610
2.578125
3
[]
no_license
<?php namespace EVOS\Http\Controllers; use Auth; use EVOS\Category; use EVOS\Quiz; use EVOS\Share; use Illuminate\Http\Request; /* use EVOS\Http\Requests; */ class ShareController extends Controller { public function __construct() { $this->middleware('auth'); } /** * Display a listing ...
true
d7c4f351584d52158c4c4c441c1d051ee038d9dc
PHP
Aaron46/HomeWork
/hw-67/views/housesTableView.php
UTF-8
2,886
2.9375
3
[]
no_license
<?php function getTd($value, $houseId) { $it = "<td><a href=\"index.php?action=details&houseId=$houseId\">$value</a></td>"; return $it; } // if not on page 1, don't show back links if ($currentpage > 1) { // show << link to go back to page 1 echo ...
true
2353ba9e90e4681d0f981eece4c4999e66756f7d
PHP
fishingboy/JobFinder
/app/Console/Commands/FreshMrtLocation.php
UTF-8
925
2.734375
3
[]
no_license
<?php namespace App\Console\Commands; use App\Services\MrtService; use Illuminate\Console\Command; class FreshMrtLocation extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'mrt:fresh'; /** * The console command descr...
true
0122656585368d1f69f11eea2f668db7cd19aa17
PHP
mario6391/peaKey
/includes/signup.inc.php
UTF-8
6,741
2.640625
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'phpmailer/src/Exception.php'; require 'phpmailer/src/PHPMailer.php'; require 'phpmailer/src/SMTP.php'; if(isset( $_POST['submit'])) { include_once 'dbh.inc.php'; $benutzername = mysqli_real_escape_string($ver...
true
f7646bac2fc9493e30bd85d6e442e8d983a3d5a4
PHP
summertreechina/iMooc.Notes
/PHP/PHP_D_P/3-chapter/mvcDemo/IMooc/DrawDecorator.php
UTF-8
277
2.671875
3
[]
no_license
<?php // 装饰器模式 接口文件 namespace IMooc; interface DrawDecorator { function beforeDraw(); function afterDraw(); } 接口还可以定义更多的功能。 在画布绘制之前和之后来调用接口所设定的功能。 结构上有点像观察者模式 ?>
true
c90f8f57e4699bb06f82cb13c44554848d6b6493
PHP
xsaroz/javra-test
/app/Listeners/CountUserLesson.php
UTF-8
1,306
2.515625
3
[]
no_license
<?php namespace App\Listeners; use DB; use App\Events\LessonWatched; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; use App\Events\BadgeUnlocked; use App\Events\AchievementUnlocked; // Models use App\Models\Badge; use App\Models\User; use App\Models\Lesson; use App\Models\Achie...
true
fc2ffa09f9190e0c1619f804f91f296ef08ff829
PHP
bionoir/livrederecettes.com
/src/FD/LivrederecettesBundle/Entity/Ingredient.php
UTF-8
3,633
2.546875
3
[ "MIT" ]
permissive
<?php namespace FD\LivrederecettesBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Context\ExecutionContextInterface; /** * Ingredient * * @ORM\Table() * @ORM\Entity(repositoryClass="FD\LivrederecettesBundle\Entity\IngredientR...
true
46e35c222dbc993f95f9670c89d265232c9c5e3c
PHP
tianyayoucao/dbpedia
/trunk/extraction_php/php/mapping/PropertyMapping.php
UTF-8
1,073
2.5625
3
[]
no_license
<?php namespace dbpedia\mapping { abstract class PropertyMapping implements Mapping { public static function load($node, $ontology, $context) { switch($node->getTitle()->decoded()) { case SimplePropertyMapping::TEMPLATE_NAME: return SimplePropertyMapping::load($node, $ontolog...
true
dbed5cd920bc283408ffdfd401d9d9c5dccc7aae
PHP
wpdavis/minify
/minify.php
UTF-8
9,313
2.625
3
[]
no_license
<?php /* Plugin Name: Minify Plugin URI: http://emusic.com/ Description: A minimal yet powerful CSS / JS minification plugin for WordPress Version: 0.3 Author: Scott Taylor and William P. Davis Author URI: http://scotty-t.com License: GPLv2 or later */ /* * @TODO: Cache headers (make sure this works with Batcache) *...
true
69823b535ec137998d977753198b3185b0fa0e8a
PHP
marekdan/coders_lab
/week_2/oop/src/wheel.php
UTF-8
881
3.5625
4
[]
no_license
<?php require_once ("form.php"); class Wheel extends Form{ protected $r; public function __construct($newX, $newY, $newCol, $newR) { echo "Konstruktor Wheel<br>"; parent::__construct($newX, $newY, $newCol); $this->setR($newR); } public function __destruct() { echo "D...
true
7829b03ec6d036f778e63e796e60339e215fcf26
PHP
jakub-frajt/comparison-of-PHP-testing-tools
/src/Mailing/MailerInterface.php
UTF-8
130
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Mailing; interface MailerInterface { public function send(string $from, string $to, string $message); }
true
90cb6cff44ea6996fb418f34a9f31e499ea3efea
PHP
AbdollahGhasemi71/Nexmo
/modules/Nexmo/Info/repositories/InfoRepo.php
UTF-8
818
2.5625
3
[ "MIT" ]
permissive
<?php namespace Nexmo\Info\repositories; use Nexmo\Info\Models\Info; class InfoRepo { public function infoIndex() { return Info::paginate(5); } public function infoCreate($value) { Info::create([ 'phone' => $value->phone, 'email' => $value->email, ...
true
6b74f70d3b5bb313cf780d4ce46531e0ede58666
PHP
kimhyonseong/basic
/poketmon/app/Helpers/helper.php
UTF-8
8,294
3.34375
3
[]
no_license
<?php function Type($param) { if (is_numeric($param)) { return numToType($param); } else { return typeToNum($param); } } function typeToNum($str): int { switch (trim($str)) { case '노멀' : case '노말' : $ty...
true
573a00bdf61d27358a89ab2393e25cdd56869b2b
PHP
nizamcse/bookingon24
/core-files/app/Model/Ta/Auth/TaUser.php
UTF-8
760
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Model\Ta\Auth; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; class TaUser extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var arr...
true
57cd1896abd9a08c394659be6c091f3ab3b7eb14
PHP
JavierTibi/queue-api
/src/ApiV1Bundle/ApplicationServices/VentanillaServices.php
UTF-8
4,986
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jtibi * Date: 23/10/2017 * Time: 10:51 AM */ namespace ApiV1Bundle\ApplicationServices; use ApiV1Bundle\Entity\Factory\VentanillaFactory; use ApiV1Bundle\Entity\Sync\VentanillaSync; use ApiV1Bundle\Entity\Validator\VentanillaValidator; use ApiV1Bundle\Repository\ColaReposi...
true
adaf690451d2315b790fa4f553bbaeb6e0ee5657
PHP
zjjzjw/web_fangquan
/fangquan/core/app/Src/Category/Domain/Interfaces/AttributeValueInterface.php
UTF-8
514
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Src\Category\Domain\Interfaces; use App\Foundation\Domain\Interfaces\Repository; use App\Src\Category\Domain\Model\AttributeValueSpecification; interface AttributeValueInterface extends Repository { /** * @param AttributeValueSpecification $spec * @param int $per_...
true
19a3400219d6b6da119ff6b83faf6d92e5d009b7
PHP
bqevin/redcross-foodrelief-ussd-dashboard
/app/Enum/RequestType.php
UTF-8
1,237
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Enum; final class RequestType { const HEALTH = 'health'; const GARBAGE_COLLECTION = 'garbage_collection'; const OTHER_EMERGENCY = 'other_emergency'; const COVID_TESTING = 'covid_testing'; const COVID_INCIDENT = 'covid_incident'; const FOOD = 'food'; const MISC = 'misc';...
true
d618ef6cf56299e2dcc77bfef83060830a6d5de4
PHP
abomb07/CST256-CLCProject
/app/Http/Controllers/JobRestController.php
UTF-8
3,854
2.828125
3
[ "MIT" ]
permissive
<?php /* * CLC Project version 6.0 * Job REST Controller version 6.0 * Adam Bender and Jim Nguyen * April 17, 2020 * Job REST Controller handles Job REST API */ namespace App\Http\Controllers; use App\Model\DTO; use App\Services\Business\JobBusinessService; use App\Services\Utility\ILoggerService; use Illuminate...
true
a5aba3bd7f5df08dd5fcb7b03c07691d1ffef3c6
PHP
siavasham/server
/app/Models/Referral.php
UTF-8
641
2.5625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use DB; class Referral extends Model { protected $table = 'referral'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'user_id','referral' ]; /** * The att...
true
bf9e89bc4b17c4cadf9ee738a8f02f05fca76ab2
PHP
yuraigle/classifieds
/library/Pike/Grid/DataSource/Solarium.php
UTF-8
13,708
2.640625
3
[]
no_license
<?php /** * Copyright (C) 2011 by Pieter Vogelaar (pietervogelaar.nl) and Kees Schepers (keesschepers.nl) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including...
true
50a5aa4ff10bd11b0ecb0607d7ee97d7b626a752
PHP
3713Luis/8itic1
/CerrarSesion.php
UTF-8
593
2.53125
3
[]
no_license
<?php include('Conexion.php'); //incluimos la conexion que creamos en otro archivo que asi nombramos con include $conexion = conectar(); //creamos una variable tipo conexion con la que almacenamos nuestra funcion conectar del archivo conexion.php session_start(); $nombre = $_SESSION['user']; $update =pg_query($cone...
true
c541c6edaf87f7d9a784de4de51d25b9b3b7901a
PHP
arnauddri/Silversmoke
/src/Svk/WelcomeBundle/Controller/WelcomeController.php
UTF-8
4,260
2.5625
3
[ "MIT" ]
permissive
<?php namespace Svk\WelcomeBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request, Symfony\Component\HttpFoundation\JsonResponse; use Svk\WelcomeBundle\Entity\Subscriber; class WelcomeController extends Controller { private function count() ...
true
536b752f50fdbcf449e48568808c4dd1d92c0209
PHP
timuster/tempnet
/GUI : Web Interface/form_submit.php
UTF-8
1,372
2.640625
3
[ "Apache-2.0" ]
permissive
<?php header( "refresh:3;url=http://sumitk.me/eceproject/index.php" ); $servername = "localhost"; $username = "timuster_ece4564"; $password = "netApps4564"; $dbname = "timuster_ece4564"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) ...
true
fe120b60aa2cf89fa9a76924a0010182b8d510c2
PHP
dinhmq1/waanoo
/php/load_events_by_popularity.php
UTF-8
4,580
2.859375
3
[]
no_license
<?php require("cxn.php"); require("HTML_output_lib.php"); session_start(); // RESTRICTION ON ONLY NEW EVENTS PULLED $date_search = date("Y-m-d", time() - 60*60*24); // 24 HOURS EARLIER $distance_tolerance = 50; // miles function main($lat, $lon, $offset, $date_search, $distance_tolerance) { $rows_per_page = 10; ...
true
f7ca5901dd0cbdbd4a64e8f9fd70eb7fd8578b75
PHP
StarkyBlk/uframework
/tests/Status/StatusFinderTest.php
UTF-8
1,985
2.71875
3
[]
no_license
<?php class StatusFinderTest extends TestCase { private $con; private $finder; public function setUp(){ $this->con = new \Model\Connection('sqlite::memory:'); $this->con->exec(<<<SQL CREATE TABLE IF NOT EXISTS Users( id INT PRIMARY KEY, username VARCHAR(30) UNIQUE NOT NULL, password VAR...
true
073348e868bc5f9bc3e3bb2ab6aa502f09ba4c3a
PHP
gaokewoo/gaojie
/app/biz/classes/Business/Role.php
UTF-8
3,609
2.8125
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); /** * 管理员角色业务逻辑层 */ class Business_Role extends Business { /** * 创建角色 * @param array $values * @return boolean */ public function create(array $values){ $fields = array ( 'name' => '', 'create_time' => time(), 'update_time' => time() ...
true
813e57cffdf277e756a89b766da5cb4d03ab9716
PHP
Yalm/huiza
/app/Http/Requests/OrderRequest.php
UTF-8
1,077
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class OrderRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the ...
true
fe816a3f4ab4222a7fd185d8b397d7d5000da1cc
PHP
zixiaomu/NetBeansProjects
/PhpProject2/index.php
UTF-8
2,437
2.578125
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php $action =...
true
d64c6cf5d31b655991c6e7d0337ae01167c9d643
PHP
tabalt/platter
/src/Component/File.php
UTF-8
1,708
2.90625
3
[]
no_license
<?php namespace Platter\Component; class File { public static function isExist($filePath) { if ($filePath && file_exists($filePath)) { return true; } return false; } public static function requireFile($filePath, $returnResult = false) { if (self::is...
true
d8debd065deb3e5144d01f1f5d39c802b6ab5e55
PHP
Guikingone/MeiliSearchBundle
/src/Metadata/IndexMetadataRegistry.php
UTF-8
3,586
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace MeiliSearchBundle\Metadata; use MeiliSearchBundle\Exception\InvalidArgumentException; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; use Symfony\Component\Serializer\SerializerInterface; use function count; use function file_get_contents; us...
true
13800e4fea8fe5298db29fd2da05a599c1a71611
PHP
mithra62/mojitrac-2
/module/PM/src/PM/View/Helper/Breadcrumb.php
UTF-8
6,439
2.6875
3
[]
no_license
<?php /** * mithra62 - MojiTrac * * @author Eric Lamb <eric@mithra62.com> * @copyright Copyright (c) 2014, mithra62, Eric Lamb. * @link http://mojitrac.com/ * @version 2.0 * @filesource ./module/PM/View/Helper/Breadcrumb.php */ namespace PM\View\Helper; use Base\View\Helper\BaseViewHelper; /** * PM - B...
true
9763c3977e53fcc6344391deb1254d9bd97b6ad0
PHP
dimabresky/Ajax
/Ajax.php
UTF-8
1,301
2.671875
3
[]
no_license
<?php namespace travelsoft; /** * Класс для подгрузки динамических областей * @author dimabresky * @copyright (c) 2017, travelsoft */ class Ajax { public static function start ($label, $arrAttributes) { self::checkException($label, "Start"); global $APPLICATION; ...
true
cff3466029f91b70ba2062fcfa3ece90fc02c9e3
PHP
eventuallyc0nsistent/kodelearn
/modules/dynamicmenu/classes/dynamicmenu/menu.php
UTF-8
3,242
3.078125
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php defined('SYSPATH') or die('No direct script access.'); class DynamicMenu_Menu { private $position; private $links = array(); /** * These will be used as the html attributes for all * anchor tags for this link */ private $attributes = array(); /** * @param String $posi...
true
3cd5882d281480919d2c185748df5e2019b02cc5
PHP
firstsheep1984/PHP
/Project - A todo list/includes/function.php
UTF-8
905
2.59375
3
[]
no_license
<?php require('../vendor/autoload.php'); session_start(); DB::$user='ipd'; DB::$password='ipdipd'; DB::$dbName='ipd16'; //twig configuration $loader = new \Twig\Loader\FilesystemLoader('templates'); $twig = new \Twig\Environment($loader); function pr($arr) { echo '<pre>'; print_r ($arr); echo '</p...
true
81bf93fb738248c85608f2d3bf1cbdabb3dd2b83
PHP
CodeGymC1019i1/M2_SS4_404
/HaiTran/Baitap/ManagerPersonel/index.php
UTF-8
1,676
2.953125
3
[]
no_license
<?php session_start(); include_once "Class/UserManager.php"; if ($_SERVER["REQUEST_METHOD"] == "POST") { $username = $_POST["username"]; $password = $_POST["password"]; $usersJson = new FileJson("DataFileJson/Users.json"); $users = $usersJson->readFileJson(); foreach ($users as $index => $user) ...
true
2a93de009be11c1e0c4ab3ccd41d7fce670f64c0
PHP
hugolacerda/RateMyWeather
/mvc_site_v2/controllers/formSubmit.php
UTF-8
395
2.671875
3
[]
no_license
<?php // echo 'hello'; include '../models/DBConnector.php'; var_dump($_POST); if (empty($_POST["good"])){ $good = false; } else { $good = true; } if (empty($_POST["bad"])){ $bad = false; } else{ $bad = true; } if($bad == true){ $post = 2; }else{ $post = 1; } $date = date("m.d.y"); var_dump($date); //== C...
true
2e5e3bc7cf5da9241c01019da470b9e5c7194ae8
PHP
cyangbo/newcode
/contacts/model/contacts.php
UTF-8
2,015
2.5625
3
[]
no_license
<?php class contacts { var $db; var $base; function __construct(&$base) { $this->contacts($base); } function contacts(&$base) { $this->base = $base; $this->db = $base->db; } /* */ function get_cts($sql) { $arr = $this->db->fe...
true
ed10a3f9baf4ce91d26ff5849f7e7fc013786b87
PHP
himanshu-web/purchase-laxyo
/app/Http/Controllers/UserController.php
UTF-8
625
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use Auth; class UserController extends Controller { public function index(){ $id = Auth::user()->id; $data = User::find($id); return view('profile',compact('data')); } public function store(Request $request, ...
true
3215a360e8158253c439cdf2f728f380ae8d07ab
PHP
adilimudassir/laravel-template
/app/Domains/Auth/Models/User.php
UTF-8
3,100
2.625
3
[]
no_license
<?php namespace Domains\Auth\Models; use Altek\Accountant\Contracts\Recordable; use Domains\Auth\Notifications\ResetPasswordNotification; use Domains\Auth\Notifications\VerifyEmail; use Illuminate\Auth\MustVerifyEmail as MustVerifyEmailTrait; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Au...
true
f8a6d5f6bf5741cb06997583ad4c265a59589e22
PHP
matargueye/JEERE
/BJeere/src/Controller/PasswordController.php
UTF-8
1,939
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Bundle\FrameworkBundle\Controller\Abstra...
true
c66838624ce309cdf7442c3a07de653ec032adbd
PHP
JadeLuanyM/Exercicios-WEB
/PHP/detalhes-produtos.php
UTF-8
426
2.6875
3
[]
no_license
<?php $item = $_GET['id_produto']; // A variavel tem que ser de acordo com o metodo; $produtos = array(); $produtos[1] = "Detalhes da Cadeira <br>Preço: R$340,00"; $produtos[2] = "Detalhes do Fogão <br>Preço: R$1.149,69"; $produtos[3] = "Detalhes do Roteador wi-fi <br>Preço: R$98,10"; $produtos[4] = "Detalhes da TV ...
true
bd58a6e8088ec2a5097c40731f74548ad4fb256a
PHP
Juliu51/-test7-Duomen-persiuntimas-ir-Formos
/first.php
UTF-8
8,121
2.796875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="./css/app.css"> <title>Document</title> </head> <body> <h1> UZDUOTIS</h1> <form...
true
a9da2ee0d954dd790e36204cf6775129621b3b0d
PHP
inviqa/spryker-debug
/src/Zed/SprykerDebug/Communication/Console/DebugQueuesPeekConsole.php
UTF-8
2,575
2.71875
3
[ "MIT" ]
permissive
<?php namespace Inviqa\Zed\SprykerDebug\Communication\Console; use Inviqa\Zed\SprykerDebug\Communication\Model\Cast; use RuntimeException; use Spryker\Zed\Kernel\Communication\Console\Console; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\...
true
851f60b52fe9c9d0a930570e3d1f1284c4ff0de1
PHP
Red-Studio/SmartTabler
/test/example/controller.php
UTF-8
1,318
2.890625
3
[ "MIT" ]
permissive
<?php /** * Created by Dmitry Kmita. */ namespace test; use core\SmartTable; use model\tableUnit; require("../../SmartTable.php"); class simpleTest { public function __construct() { $table = new SmartTable(); $array = array( 'name' => 'Sample Table', 'class' =...
true
891b1f9491ba35ebbfe5e36dd7cb26160481ab98
PHP
vijaytilak/Projects
/formwizard/table/costingEngine/class.Component.inc
UTF-8
9,601
2.8125
3
[]
no_license
<!-- begin of generated class --> <?php /* * * ------------------------------------------------------- * CLASSNAME: Component * GENERATION DATE: 25.06.2014 * CLASS FILE: C:\xampp\htdocs\sqlclassgenerator/generated_classes/class.costing.php * FOR MYSQL TABLE: fresco_costing_array_primary * FOR MYSQL DB: ...
true
99189051094a24dbdb01bb40ca8edc752ccdc2d6
PHP
OrangeClement/PHP_R-seauxSociaux
/ConfirmationInscription.php
UTF-8
5,524
2.734375
3
[]
no_license
<?php //charger le fichier des fonctions require("Fonctions.php"); //exécuter la fonction de connexion $cx=connexionbd(); //récupérer les valeurs saisis dans le formulaire à la page Inscription $nom = filter_input(INPUT_GET, "txtnom", FILTER_SANITIZE_SPECIAL_CHARS); $prenom = filter_input(INPUT_GET, "txtpren...
true
7bfd8c601e3e3b9a2b689aa51c7fefcf184d529e
PHP
alexica3000/about_php
/code/3_objects_extended/04_home/03_animal_world/camel.php
UTF-8
145
2.875
3
[]
no_license
<?php namespace AnimalWorld; class Camel extends Animal { public function move() { echo 'the camel goes...' . PHP_EOL; } }
true
170538b3492af5eed66b5c6bdd9eb25726be4a92
PHP
joker92/php
/form.php
UTF-8
153
2.625
3
[]
no_license
<?php if (isset($_POST["nomeutente"])){ echo "Ciao " . $_POST ["nomeutente"]; } else { echo "nome non specificato " ; } ?>
true
71169d73b46909191668446c7dc64da0c771ea75
PHP
jtlai0921/AEL008400
/chap05/Chap05-05.php
GB18030
364
3.1875
3
[]
no_license
<html> <title> LPBIഫ </title> <body> <?php $a = true; $b = (int) $a ; // true ഫ 1 echo $b . "<br>" ; $a = false; $b = (int) $a ; // fasle ഫ 0 echo $b . "<br>" ; $a = 3.14; $b = (int) $a ; // 3.14 I 3 echo $b . "<br>" ; ?> </body> </html>
true
333200d554a865c777156610bda360394d8801b8
PHP
guyt101z/taxi-director
/library/Dis/Resource/Doctrine.php
UTF-8
4,321
2.515625
3
[]
no_license
<?php /** * Doctrine resource for DIST 3 * * @package Dis * @subpackage Resource * @category Dist * @author Victor Villca <victor.villca@people-trust.com> * @copyright Copyright (c) 2013 Gisof A/S * @license Proprietary */ class Dis_Resource_Doctrine extends Zend_Application_Resource_ResourceAbstract { /** ...
true
0682f7b60b0e1c42dda0fd55ccb0ff29408af558
PHP
JorgePiaggio/Exercises
/Php/gamingArray.php
UTF-8
1,559
4.15625
4
[]
no_license
<?php function gamingArray($arr) { $moves = 0; while(sizeof($arr) > 0){ $max = max($arr); $i = array_search($max, $arr); array_splice($arr, $i); //print_r($arr); $moves++; } return $moves % 2 == 0 ? "ANDY" : "BOB"; } /* function gamingArray($arr) { $moves ...
true
17413e8275bb7a9bc783d5387b14a539c4c238a1
PHP
unknownforce/mtm1531-homework-7
/includes/db.php
UTF-8
522
2.953125
3
[]
no_license
<?php //Gets an environment variable we created in the .htaccess file //This is the best way to keep username and passwords out of public GitHub repos $user = getenv('DB_USER'); // echo $user; // Check if it works $pass = getenv('DB_PASS'); $dsn = stripslashes(getenv('DB_DSN')); // Opens a connection ...
true
0292f3a2e5fe5824e22d2c7cf170a8ef4ff240d7
PHP
wearenucleus/payments
/src/Constants/Currency.php
UTF-8
129
2.546875
3
[]
no_license
<?php namespace Nucleus\Constants; class Currency { public const BritishPound = "GBP"; public const Euro = "EUR"; }
true
9fec5e2e5371f1f5f0467e768b00b6890b4e4d45
PHP
RentCeisy/task-mesh
/app/Repositories/ProductQuery.php
UTF-8
880
2.78125
3
[]
no_license
<?php namespace App\Repositories; use App\Product; use App\Repositories\Impl\ProductRepository; class ProductQuery implements ProductRepository { protected $product; public function __construct(Product $product) { $this->product = $product; } public function getById($id): Product { ...
true
7a9668c049533717f222556855eb7ea750fe9ef3
PHP
mwolkowi17/phpworkshop
/dbconnection.php
UTF-8
355
2.640625
3
[]
no_license
<?php $dbhost = "localhost"; $dbname = "marcin_test"; $dbuser = "root"; $dbpassword = ""; $db_conn = new PDO("mysql:host=".$dbhost.";dbname=".$dbname, $dbuser, $dbpassword); $sql = "SELECT name, description, year FROM movies"; $stmt = $db_conn->prepare($sql); $stmt->execute(array( //"movie_id" => 1 ) ); $movie =...
true
f558d5afa3da49fda7995e49252a60f43b8cfc3b
PHP
hubgitse/html_articles_automatic_creator
/generator.php
UTF-8
878
2.515625
3
[]
no_license
<?php require __DIR__.'/app/bootstrap.php'; use \app\Model\Paragraph; use \app\Model\Line; use \app\Model\Header; use \app\Model\Image; use \app\Model\ListItem; use \app\Model\Youtube; /** * get article builder */ $articleBuilder = \app\Helper\Registry::getServiceOrParam('article_builder'); /** * get needed quan...
true
8ee1fdf551f78442b675708d1a69da3171d2c022
PHP
antropophagus/framefraud.framework
/application/core/Model.php
UTF-8
318
2.671875
3
[]
no_license
<? namespace application\core; use application\lib\db; abstract class Model { public $db; function __construct() { $this->db = new db; // var_dump($this->db); } public function getStates() { $params = []; $states = $this->db->query("SELECT * FROM `states`"); return $states; } }
true
822be3d54672fe43dcd7461c3ba3a9ec402b5afc
PHP
e-ponimash/php-tiny-orm
/src/App/DB/SelectQueryBuilder.php
UTF-8
636
2.8125
3
[]
no_license
<?php namespace App\DB; class SelectQueryBuilder extends QueryBuilder { use Where; /** * @param $fields */ function getColumns(){ $str = ''; foreach ($this->fields as $value){ $str .= ' ' . $value['column'].','; } return trim($str, ','); } ...
true
1c1dad26ad20783485990995c6bd78ef166d05be
PHP
AlexDenver/lab-box
/php/gcd.php
UTF-8
464
3.5
4
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php if(!$_POST){ ?> <form method="POST"> <input type="number" name="n1"> <input type="number" name="n2"> <input type="submit"> </form> <? }else{ function gcd($a, $b) { if($a==$b) return $a; else if($a > $b) retur...
true
f10de6e85c5c5ad58aa3e893aa49b8ed956fc184
PHP
jaksterrP/site-balance
/balance/src/Method/UserBalanceMethod.php
UTF-8
1,406
2.53125
3
[]
no_license
<?php namespace App\Method; use App\Entity\BalanceHistory; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\Collection; use Symfony\Component\Validator\Constraints\Positive; use Symfony\Component\Validator\Constraints\Required; use Yoanm\...
true
1b99eb13953dbec969746291ed2f123a81b7460f
PHP
matthijsthoolen/Slacky
/src/Model/Model.php
UTF-8
2,494
2.890625
3
[ "MIT" ]
permissive
<?php namespace MatthijsThoolen\Slacky\Model; use Exception; use MatthijsThoolen\Slacky\Exception\SlackyException; use MatthijsThoolen\Slacky\Slacky; use MatthijsThoolen\Slacky\SlackyFactory; // TODO: add annotations functionality with https://github.com/doctrine/annotations abstract class Model { /** @var stri...
true
a84010008c346a590e04d217224cd367c13b3704
PHP
mouse-over/storage
/src/MouseOver/Storage/IReader.php
UTF-8
988
2.921875
3
[ "MIT" ]
permissive
<?php /** * This file is part of MouseOver Framework (http://mouse-over.net) * * @copyright Copyright (c) 2011-2014 Vaclav Prokes */ namespace MouseOver\Storage; interface IReader { /** * Set read range * * @param int $rangeStart * @param int|null $rangeEnd * * @return void ...
true
f6cf0cfec7d750c15c75098c1be2603ca2800a19
PHP
mehedi4475/bubt
/database/migrations/2016_08_21_104831_student.php
UTF-8
1,016
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Student extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('students', function(Blueprint $table) { //Basic entry $table->increme...
true
40b4067efbae647e1816d5b8166d59a5f70866a4
PHP
srisar/libman
/core/helpers/UploadedFile.php
UTF-8
2,391
2.984375
3
[]
no_license
<?php class UploadedFile { private $data; private $uploaded_file_path, $full_uploaded_file_path; private $uploaded_filename; private $is_saved; public function __construct($files_image_array) { $this->data = $files_image_array; $this->is_saved = false; } public funct...
true
7a06e8897fab065249496ea2e1e7034e7f8cd7d1
PHP
EmilyFitzlaff/CursoHCode
/Exercícios/Exercícios PHP (lista 01)/ex06.php
UTF-8
362
3.46875
3
[]
no_license
<form> <label for="raio">Informe o raio do círculo: </label> <input type="text" name="raio"> <input type="submit" value="Enviar"> </form> <?php // Faça um programa que peça o raio de um círculo, calcule e mostre sua área. if (isset($_GET['raio'])) { $raio = $_GET['raio']; $pi = 3.14; $area = $pi*($raio**2); e...
true
ded8ebb2731a9dcbd75f20a1afba20b94262c337
PHP
bogiesoft/booking-tours
/models/Tours.php
UTF-8
1,239
2.75
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "tours". * * @property integer $tour_id * @property string $title * @property integer $max_adults * @property integer $max_children * @property integer $max_babies */ class Tours extends \yii\db\ActiveRecord { const FIELD_TOUR_I...
true
fc053d107a5168609531d7b61882058b3f3ad07b
PHP
businessprocess/translation-storage
/src/Contracts/TranslationStorage.php
UTF-8
1,069
2.8125
3
[ "MIT" ]
permissive
<?php namespace Translate\StorageManager\Contracts; interface TranslationStorage { /** * @param string $key * @param string $value * @param string $lang * @param string $group * @return bool */ public function insert(string $key, string $value, string $lang, string $group): bool;...
true
9884770edc88df77f7b036c86ada32e46b396d2f
PHP
cha63506/ora
/src/library/Ora/User/User.php
UTF-8
4,911
2.609375
3
[]
no_license
<?php namespace Ora\User; use Zend\Permissions\Acl\Role\RoleInterface; use Doctrine\ORM\Mapping AS ORM; use Doctrine\Common\Collections\ArrayCollection; use Rhumsaa\Uuid\Uuid; use BjyAuthorize\Provider\Identity\ProviderInterface; use Ora\ReadModel\OrganizationMembership; use Ora\ReadModel\Organization; /** * @ORM...
true
f3cc9defc2aa10140f1c96f90eb664699db034c4
PHP
onibusiness/minha_oni
/includes/processamento/processa_projetos_class.php
UTF-8
2,864
2.734375
3
[]
no_license
<?php /* * Processa Projetos * Função de processamento de dados de projetos */ class processa_projetos{ public $projetos;//Todos os projetos vigentes //Iniciando a classe public function __construct(){ $this->pegaProjetos(); } /** * Busca todos os projetos do minha.oni * * @r...
true
d6ec20defd466ecf17fae3dc04fb539b8c1376c9
PHP
calks/cc_core
/libraries/url_rewriter/url.php
UTF-8
2,465
3.375
3
[]
no_license
<?php class URL { protected $raw_url; protected $address; protected $params; protected $get; public function __construct($raw_url) { $this->raw_url = $raw_url; $tmp = explode('?', $raw_url); $this->address = $tmp[0]; ...
true
6e72f5529c0f43dc48cc958792a4b00c069a2997
PHP
work-shop/newport-art-museum-website
/wp-content/plugins/flexible-checkout-fields-pro/vendor/wpdesk/wp-builder/src/Storage/StaticStorage.php
UTF-8
774
2.96875
3
[ "MIT" ]
permissive
<?php namespace WPDesk\PluginBuilder\Storage; use WPDesk\PluginBuilder\Plugin\AbstractPlugin; class StaticStorage implements PluginStorage { protected static $instances = []; /** * @param string $class * @param AbstractPlugin $object */ public function add_to_storage( $class, $object ) { if ( isset( self...
true
be4bd474ad063ffd99b9212155c13880ae531ffb
PHP
elfcorreia/forms
/src/Fields/CharField.php
UTF-8
1,697
3.1875
3
[ "MIT" ]
permissive
<?php namespace Forms\Fields; use Forms\Field; use Forms\Widget; use Forms\Widgets\TextInputWidget; /** * @ A char field */ class CharField extends Field { private int $minLength = -1; private int $maxLength = -1; private bool $strip = true; public function __construct() { $this->...
true
d3a9ae362f9240fe318225f7661f3970de81260d
PHP
yy0821/shy-swocloud
/src/Supper/Arithmetic.php
UTF-8
544
3.03125
3
[]
no_license
<?php namespace SwoCloud\Supper; /** * 算法类 * @package SwoCloud\Supper */ class Arithmetic { protected static $roundListLast = 0; /** * 轮巡算法 * @param array $list * @return mixed */ public static function round(array $list) { $index = self::$roundListLa...
true
94a3dfd00e5b002be65520e9b671d70eae8bcf2e
PHP
xZyph/School
/Development of Interactive Websites/uin/functions/product-handling.php
UTF-8
3,696
3.046875
3
[]
no_license
<?php include('db-connection.php'); include('filter-functions.php'); //--------------------------------------------------------// // product-handling.php // //--------------------------------------------------------// // File to get called whenever the filter is changed. // // Will do a datab...
true
abd9e77e4b744813289e171fab9c8782fb25b9ee
PHP
BeautyFastCode/patterns
/PHP/Behavioral/Command/Player.php
UTF-8
1,285
2.890625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * (c) BeautyFastCode.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHP\Behavioral\Command; use PHP\Behavioral\Command\Commands\CommandInterface; use PHP\Behavioral\Command\Command...
true
9635ef19a533d15abd68716c59f0b76b9138a567
PHP
canhigher/summercodeswithphp
/yazubi/soloexamples/18.07/dogrulama.php
UTF-8
417
2.609375
3
[]
no_license
<?php if (!_$POST){ ?> <form method="post" action=""> Cep Telefonunuz:<br/> <input type="text" name="tel" value="" /><br /> <input type="submit" value="gonder" /><br /> </form> <?php } else{ $tel=ltrim($_POST['tel']),'0'; if (!is_int($tel) && (strlen($tel>10))|| (strlen($tel<10))) { echo "Telefonunuzun n...
true
2be4bf41d3f5f169013a38b7c25d2ddc1c390723
PHP
appserver-io-lab/storage
/StaticGlobalStorage.php
UTF-8
5,410
2.78125
3
[]
no_license
<?php /** * StaticGlobalStorage.php * * This is a proof of concept how to handle and make use of an global storage * object where is able to share multiple stores automatically between threads. * * It's solved by using static functions and php globals via global statement * with pthreads v2.0.10. It should also...
true
cad9d6fa98e5b2a201907bbe31f5f3abc696316a
PHP
nqdung1/magpie-challenge
/src/Scrape.php
UTF-8
612
2.890625
3
[]
no_license
<?php namespace App; require 'vendor/autoload.php'; class Scrape { private array $products = []; const TARGET_URL = 'https://www.magpiehq.com/developer-challenge/smartphones'; public function run(): void { // $hrt = hrtime(true); $document = ScrapeHelper::fetchDocument($this::TARGET...
true
93bc799a34447e5f8b2dd3e1da9fc55101cd755d
PHP
arodiss/prisonersDilemma
/src/PrisonersDilemma/Cache/Cache.php
UTF-8
4,090
3.078125
3
[]
no_license
<?php namespace PrisonersDilemma\Cache; use PrisonersDilemma\Game; use PrisonersDilemma\Strategy\StrategyInterface; class Cache { /** @var CacheItem[][] */ protected $items; /** * @param StrategyInterface $strategy * @param StrategyInterface $competitorStrategy * @return bool */ ...
true
c8d9670470d0c21856e5696cd89f1d02c5276866
PHP
sagas1416/hhvm
/hphp/test/zend/good/ext/gmp/tests/gmp_jacobi.php
UTF-8
648
2.953125
3
[ "Zend-2.0", "MIT", "PHP-3.01" ]
permissive
<?php for ($i = -1; $i < 10; $i++) { var_dump(gmp_strval(gmp_jacobi(($i*$i)-1, 3))); } var_dump(gmp_strval(gmp_jacobi(7, 23))); var_dump(gmp_strval(gmp_jacobi("733535124", "1234123423434535623"))); var_dump(gmp_strval(gmp_jacobi(3, "1234123423434535623"))); $n = "123123"; $n1 = "1231231"; var_dump(gmp_strval(gmp_j...
true
076debd01e26879c790daaf5d1c1c5e4f8ba0a8c
PHP
KamiloF/Twitter_2
/sites/messages.php
UTF-8
5,823
2.609375
3
[]
no_license
<?php require_once ('../autoloader.php'); session_start(); $client = false; $message = null; if (isset($_SESSION['id']) && isset($_SESSION['email'])) { $client = user::loadById($_SESSION['id']); } else { header('Refresh: 0; url= ../index.php'); exit ; } // Setting of message to show if ($_SERVER['REQUEST_METHOD'...
true
a57d62250487f4e576b932c36d94c51baeb2b3fb
PHP
G03-Fend19/webshop
/confirm_page.php
UTF-8
16,208
2.953125
3
[]
no_license
<?php session_start(); if($_SERVER['REQUEST_METHOD'] == 'POST') { require_once "./db.php"; $cartJSON = $_POST['cart']; $decodedCartJSON = json_decode($cartJSON, true); $soldOutProducts = []; $productsToReduce = []; foreach ($decodedCartJSON as $key => $product) { $productId = $product['id']; $cu...
true