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
431c0b501b0678cf0b01801c2940773596efd781
PHP
alexzer0/inkatours
/mkt/admin/functions/api/triggeremails.php
UTF-8
67,638
2.828125
3
[]
no_license
<?php /** * TriggerEmails API. * * @author Hendri <hendri@interspire.com> * * @package API * @subpackage TriggerEmails_API */ /** * Load up the base API class if we need to. */ require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'api.php'); /** * This class provide an abstraction layer for interacting to t...
true
9c24fe51b821285fe58636745e6f45e49237ca8e
PHP
JocelynB1/oil-company-stock-management-system
/database/migrations/2018_02_24_170233_create_status_table.php
UTF-8
1,095
2.546875
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateStatusTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('status', functio...
true
e2038a56045f9aebf8a0e73ee43eec1d05d046ba
PHP
abcsite/modul-4
/lib/functions.php
UTF-8
739
2.59375
3
[]
no_license
<?php function deb($data, $stop = 1) { var_dump($data); if ($stop) {die;} } function comments_recurs($comm_arr, $id = 0, $data = null) { $arr = []; foreach ($comm_arr as $row) { if ($row['id_parent_comment'] == $id) { $arr[$row['id_comment']] = $row; $arr[$row['id_comme...
true
afaaee97b4b77ed8cab23ed20bbf0c208387b8ff
PHP
phacility/arcanist
/src/lint/linter/xhpast/rules/ArcanistPlusOperatorOnStringsXHPASTLinterRule.php
UTF-8
960
2.828125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class ArcanistPlusOperatorOnStringsXHPASTLinterRule extends ArcanistXHPASTLinterRule { const ID = 21; public function getLintName() { return pht('Not String Concatenation'); } public function process(XHPASTNode $root) { $binops = $root->selectDescendantsOfType('n_BINARY_EXPRESSION'); ...
true
196b6407b7515b914d3e52b5062b7ba698cb1042
PHP
pakuyuya/name-manager
/src/main/curry/core/request.php
UTF-8
9,255
2.984375
3
[ "MIT" ]
permissive
<?php /** * Request * * Copyright (c) 2011 Curry PHP Framework developers. * This software is released under the MIT License. * * @category Curry * @package core * @copyright Copyright (c) 2011 Curry PHP Framework developers * @link http://www.curryfw.net * @license MIT License (http://www.ope...
true
158ef5869ba586f6ad3c76f63d3da20d739b7797
PHP
felicast/FxFileStoreBundle
/Doctrine/DBAL/Types/FxFileType.php
UTF-8
1,996
2.59375
3
[ "MIT" ]
permissive
<?php namespace Felicast\Bundle\FxFileStoreBundle\Doctrine\DBAL\Types; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\JsonArrayType; use Felicast\Bundle\FxFileStoreBundle\HttpFoundation\File\FxFile; use Felicast\Bundle\FxFileStoreBundle\Service\AssetsManager; use Symfony\Component\HttpFoundati...
true
b8ce618dad3b943c454bf02a357998240ebd114e
PHP
gpopoteur/duplicate-finder
/app/Http/Controllers/CustomersController.php
UTF-8
2,864
2.765625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Customer; use App\Http\Requests; use Illuminate\Http\Request; use App\Contracts\CustomerRepository; use App\Http\Requests\CreateCustomerRequest; use App\Http\Requests\UpdateCustomerRequest; class CustomersController extends Controller { /** * @var CustomerRepos...
true
c98a9e8d12ebc361ceecb4fec0eab4903bc1cc94
PHP
JensCaenenPXL/les4-php-date-wonm3
/src/util/DateException.php
UTF-8
348
2.984375
3
[]
no_license
<?php namespace util; use Exception; class DateException extends Exception { protected $details; public function __construct($details) { $this->details = $details; parent::__construct($details); } public function __toString() { return 'The date has not been entered correctly...
true
80a3e686bcc0da46f8180b717f292e39fd379579
PHP
sajadtorkamani/php-katas
/src/vowel-count/solution.php
UTF-8
92
2.90625
3
[]
no_license
<?php function getCount(string $str): int { return preg_match_all('/[aeiou]/i', $str); }
true
5e5345a92ba05e0a5d32e8a37a93acd2f2993c71
PHP
sunminming/CVM
/Mininet_subnet/topo/mininet_topo.php
UTF-8
2,264
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: root * Date: 18-3-8 * Time: 下午7:34 */ require_once "httpRequest.class.php"; require_once "get_request.php"; require_once "open_flie.php"; function mininet_topo() { //get students' links $students_links = get_request(); // if($problem_links == null){ // r...
true
2e4e8670d56fb060b473bde77af62233bd715159
PHP
nataliegroeneboom/birds
/public/playground/test.php
UTF-8
1,483
3.15625
3
[]
no_license
<?php // create a generic query function function query($pdo, $sql, $parameters=[]){ $query = $pdo->prepare($sql); foreach($parameters as $name => $value){ $query->bindValue($name, $value); } $query->execute(); return $query; } //another way of writing this function // the execute funct...
true
2b17186c9d984a353013fa2d705e6d3c1777a2a0
PHP
ankuradhey/laundry
/api/module/Usertrack/src/Usertrack/V1/Rest/Offer/OfferResource.php
UTF-8
3,435
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace Usertrack\V1\Rest\Offer; use ZF\ApiProblem\ApiProblem; use ZF\Rest\AbstractResourceListener; class OfferResource extends AbstractResourceListener { protected $mapper; public function __construct($mapper){ $this->mapper = $mapper; } /** * Create a resource * ...
true
36b0fe2bd4a507c3b04e56239915e7ffa4f90295
PHP
NLitissia/formation_PHP-POO
/basedonneeSec.php
UTF-8
1,100
2.84375
3
[]
no_license
<?php require 'db-config.php'; try{ $option = [ PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8', PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_EMULATE_PREPARES => false, ]; $PDO = new PDO($DB_DSN,$DB_USER,$DB_PASS,$option); //$sql =$PDO->prepare('SELECT * FROM users...
true
8e932bd0f9490ff70088b1d4a70e0f678c7c5fe5
PHP
rafal1999/IO
/class/Database.php
UTF-8
1,114
3
3
[]
no_license
<?php defined("MAIN") or die("brak dostepu"); namespace Util; class Database { private $conn; private $settings; function __construct() { $this->settings = [ "adress" => "localhost" ,"port" => "5432" ,"dbname" => "postgres" ,"user" => "postgre...
true
001dab3f6a303c4a8fa04531e3ebee7e2f7562c1
PHP
flashoverm/ffla-intranet
/html/users/import.php
UTF-8
2,523
2.65625
3
[]
no_license
<?php require_once realpath ( dirname ( __FILE__ ) . "/../../resources/bootstrap.php" ); require_once TEMPLATES_PATH . "/template.php"; define("DELIMITER", ";"); $engines = $engineDAO->getEngines(); // Pass variables (as an array) to template $variables = array ( 'app' => $config["apps"]["users"], 'template' => ...
true
fd6685b261fa596a29055019d67030f3698abda3
PHP
V-Paranoiaque/vca
/www/libs/Socket.class.php
UTF-8
2,113
3.015625
3
[ "MIT" ]
permissive
<?php /** * The Socket class used to communicate between servers * @author V_paranoiaque */ class Socket { private $link=false; /*!< Store Socket connection */ private $iv; /*!< IV */ private $key; /*!< Secret Key */ /** * Connect by socket to a host * @param string $address host ip or name * @param nu...
true
84a067fa2bf1818457b9b3b05ecd5e8bb1974a98
PHP
prathapswathi/php
/php-form-ajax-validate/wr.php
UTF-8
669
2.578125
3
[]
no_license
<?php $name = filter_input(INPUT_POST,'username'); $age = filter_input(INPUT_POST,'userage'); $course =filter_input(INPUT_POST,'usercourse'); $host = 'localhost'; $user = 'root'; $pass = '123456'; $db = 'demo'; $conn=new mysqli($host, $user, $pass, $db); if (mysqli_connect_error()) { die('Could not connect:( ' ....
true
2ae156c66236a58ed2f7e4c1b8f35fb469ad8f3f
PHP
maestro21/marniskari_dev
/engine/class.filemanager.php
UTF-8
3,128
2.8125
3
[]
no_license
<?php define('THUMB_PREFIX', 'thumb_'); define('FMPATH', 'data/uploads/'); define('BASEFMDIR', BASE_PATH . FMPATH); define('BASEFMURL', BASE_URL . FMPATH); class filemanager { function dloop($path = '') { $dirs = array(); $_dirs = scandir(BASEFMDIR . $path); $_dirs = array_diff($_dirs, array('.', '..')); ...
true
3711f9eff2688284179fedf6c74ed772088a4727
PHP
aabizri/g3c
/website/Queries/Sensors.php
UTF-8
2,027
3.03125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Bryan * Date: 25/01/2018 * Time: 15:27 */ namespace Queries; class Sensors extends Query { /* COMMON CONSTANTS */ private const table = "sensors"; private const columns = ["id" => ["id", "gen-on-insert"], "num_code" => [], ...
true
ee6062c2c3c3410c237bb56e110e735b5f3cf68c
PHP
SylvainSimon/Metinify
/core/helpers/EmpireHelper.php
UTF-8
1,281
2.90625
3
[]
no_license
<?php class EmpireHelper { const ROUGE = 1; const JAUNE = 2; const BLEU = 3; const ROUGE_DEFAULT_X = 488774; const ROUGE_DEFAULT_Y = 955480; const JAUNE_DEFAULT_X = 64305; const JAUNE_DEFAULT_Y = 186753; const BLEU_DEFAULT_X = 963684; const BLEU_DEFAULT_Y = 285235; ...
true
8e19a63f96bce2d4815b93cfaa32a3bfcaf84053
PHP
openstate/Wiekiesjij-old
/classes/email_class.php
WINDOWS-1252
2,817
3.171875
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php /*** Email Class - Copyright Elit 2006 - id: _9_5_1_5e60209_1150903209218_239145_516 ***/ /** + Class Description + * **/ class Email { /*+*+*+*+*+*+*+*+* attributes *+*+*+*+*+*+*+*+*/ /** - type: string * The email address. **/ var $address; /** - type: boolean * This attribute i...
true
2b7b15889984c8545908b64beb37c47b22409aa4
PHP
labelexe/app-keeper
/app/src/Controller/AuthController.php
UTF-8
1,863
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * This file is part of Spiral package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace App\Controller; use App\Request\Auth\LoginRequest; use App\Request\Auth\LogoutRequest; use Psr\Ht...
true
4dc006e38649384380f14047c8b09aaf63aad9eb
PHP
pablocollova/laimpactante
/DAO/ProductoDAO.php
UTF-8
11,210
3.015625
3
[]
no_license
<?php namespace DAO; use \Exception as Exception; use DAO\Connection as Connection; use Models\Producto as Producto; use DAO\CategoriaDAO as CategoriaDAO; class ProductoDAO{ private $connection; private $tableName = "productos"; public function Add(Producto $producto...
true
b4a548c0a672e6c9f6181669dbd4b30d05c61e76
PHP
issei-m/simple-job-dev
/src/SimpleJobQueue/ProcessFactoryInterface.php
UTF-8
449
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Issei\SimpleJobQueue; use Symfony\Component\Process\Process; /** * @author Issei Murasawa <issei.m7@gmail.com> */ interface ProcessFactoryInterface { /** * Returns the process to run the given command with arguments. * * @param string $command * @...
true
1ed81f4d8fc08ed1f708dc97559333be18dca77e
PHP
J4CKP0T/4131
/HW08/Result.php
UTF-8
2,006
2.953125
3
[]
no_license
<?php session_start(); /* Check if a user is in session */ if(!isset($_SESSION['name'])){ header('Location: credentials.php'); } ?> <!DOCTYPE html> <html> <head> <meta charset = "utf-8"> <title>Result</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <h1>Resul...
true
f8792bab653d856fa7d09a2ec0d9bf2266e60286
PHP
cem0s/cemos-portal-webshop
/app/Entity/Realestate/Object.php
UTF-8
7,425
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Entity\Realestate; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; /** * This class represents an Object item, either a Residential or a Commercial. * It is abstract because we never have an Object entity, it's either a residential or a commercial. * @ORM\Entity(reposi...
true
164af6fde746e6ec4edf2a09109a470990c1a202
PHP
jasim-k/career_guidance
/app/Controller/CourseRanksController.php
UTF-8
5,758
2.53125
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * CourseRanks Controller * * @property CourseRank $CourseRank * @property PaginatorComponent $Paginator */ class CourseRanksController extends AppController { public $uses=array('CourseRank','RankingAuthority'); /** * Components * * @var array */ public $co...
true
073e22aa66517f0a3fe5c7a7f9f4ae5b7277ea12
PHP
qtmi-code-monkeys/QTMI-Machine-Manager
/dev/model/AlarmViewer.php
UTF-8
1,660
2.890625
3
[]
no_license
<?php class AlarmViewer extends QtmiBaseClass { public $sort = "ASC"; function __construct($link) { parent::__construct($link); // print "In SubClass constructor\n"; } function __destruct() { // parent::__destruct(); // print "In SubClass deconstructor\n"; } ...
true
07364fb9a73b019605057e242351e73f741bc3b6
PHP
trakos/planets-journey-log
/starbound_log/StarboundLog/Model/Database/Entities/Entity_users.php
UTF-8
397
2.53125
3
[]
no_license
<?php namespace StarboundLog\Model\Database\Entities; use StarboundLog\Library\Security\MyAcl; use StarboundLog\Model\Database\Rows\Row_users; class Entity_users extends Row_users { public function getRole() { return MyAcl::ROLE_USER; } public function isAllowed($resourceName) { ...
true
d7126d2905aa14aa48223d8150a1251be7cb2b54
PHP
cla55ik/mag
/objects/material_cat.php
UTF-8
397
3.0625
3
[]
no_license
<?php class MaterialCat{ private $conn; private $table_name = "materials_cat"; public $id; public $name; public function __construct($db){ $this->conn = $db; } public function getAll(){ $query = "SELECT * FROM " . $this->table_name; $stmt = $this->conn->query($query); $array_cat_mat...
true
1a7ae47477518813979b42a140b5fc4385157927
PHP
Seltaeb87/php-from-scratch
/basics/07-arrays.php
UTF-8
358
3.8125
4
[]
no_license
<?php //array = a list of items (keys and values). //create an array where the key is the name and the value is the age(integer). $aNames = array('Bastiaan'=>27, 'Gerrit'=>56, 'Benjamin'=>18); //output all the array keys and values print_r($aNames); //Output only the Name and Age you specify. Specified the key 'Bas...
true
c9bf0ebde81d95b26967894eec1702a42bfdc247
PHP
grueneschweiz/weblingservice
/tests/Unit/Repository/Group/GroupRepositoryTest.php
UTF-8
4,784
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: adrian * Date: 18.11.18 * Time: 22:34 */ namespace App\Repository\Group; use App\Exceptions\GroupNotFoundException; use App\Exceptions\WeblingAPIException; use Tests\TestCase; class GroupRepositoryTest extends TestCase { /** * @var GroupRepository */ p...
true
e5302bfc0e088bbf80f44010efbac6ca42ef0d1e
PHP
2Lamaga4/prueba-tracs
/cassius/Modulo/Contabilidad/php/entities/afecta.php
UTF-8
714
2.828125
3
[]
no_license
<?php // Object represents table 'descripcion' class afecta{ private $id; private $iddocumentos; private $idpuc; private $tipo; public function getId(){ return $this->idafecta; } public function setId($id){ $this->idafecta = $id; } public function getIddocumentos(){ re...
true
e6d592a110a6b610d8c9e8d1e058b30d50f2f182
PHP
dvsa/olcs-internal
/module/Olcs/src/Service/Permits/Bilateral/ApplicationFormPopulator.php
UTF-8
2,126
2.65625
3
[ "MIT" ]
permissive
<?php namespace Olcs\Service\Permits\Bilateral; use Laminas\Form\Element\Hidden; use Laminas\Form\Factory as FormFactory; use Laminas\Form\Fieldset; use Laminas\Form\Form; /** * Application form populator */ class ApplicationFormPopulator { /** @var FormFactory */ protected $formFactory; /** @var Coun...
true
f9bd29af14d57d70cfa40ab79b58bdef80c470ae
PHP
kamil-imielowski/ask4me
/classes/Payment/Payment.php
UTF-8
3,277
2.609375
3
[]
no_license
<?php namespace classes\Payment; require_once dirname(dirname(dirname(__FILE__))).'/config/config.php'; class Payment{ protected $order; function __construct($orderId=null){ if($orderId != null){ $order = new \classes\Order\Order(null, $orderId); $this->setOrder($order); } } function...
true
0d5bff5712c807b598069a226c2e19a377959b8d
PHP
shuramita/backoffice
/src/Middleware/BackOffice.php
UTF-8
475
2.609375
3
[]
no_license
<?php namespace Shura\BackOffice\Middleware; use Closure; class BackOffice { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $user = $reque...
true
b4fd5724b05eb00a4b67d62550e25508d02f2b9b
PHP
xiaowuhuo/tice
/basic/models/FitnessRoom.php
UTF-8
1,361
2.796875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "fitness_room". * * @property int $id * @property string $name * @property string $add * @property string $tel * @property string $type * @property string $area * @property string $location * @property string $head * @property st...
true
b15b63c48cf3d3d6b938227a50c335659426b61a
PHP
TomasVotruba/unused-public
/src/Utils/Arrays.php
UTF-8
506
2.703125
3
[]
no_license
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Utils; final class Arrays { /** * @param mixed[] $array * @return mixed[] * * @license nette/utils, where exactly copied from */ public static function flatten(array $array): array { $result = []; ...
true
fe0f377fbf14e7d5bf2f9d3907a5446abe3d20c6
PHP
Hack-ademy-5/notebook-nico
/app/Http/Controllers/NoteController.php
UTF-8
4,064
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Note; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class NoteController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { if...
true
5be30eec753a37dbb357ec5e863acc570ab69e6a
PHP
elegant-bro/money
/src/JustMoney.php
UTF-8
1,053
3.4375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ElegantBro\Money; use InvalidArgumentException; use function bcadd; use function is_numeric; final class JustMoney implements Money { /** * @var string */ private $amount; /** * @var Currency */ private $currency; /** * @var in...
true
aa8212c56dfc773fd9a62c7854481569bf3688aa
PHP
thebiggive/mailer
/src/Application/HttpModels/SendResponse.php
UTF-8
785
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace Mailer\Application\HttpModels; /** * @OA\Schema( * type="object", * title="Send Response", * ) */ class SendResponse { /** * @var string 'queued' on success * @OA\Property(property="status", format="string", example="queued") */ public stri...
true
566a36653e925139bff8c6c9cbdd190748b510b9
PHP
Captoweb/php_stage2
/php_blank_08/function.php
UTF-8
1,439
3.8125
4
[]
no_license
<?php function t1() { $a = ['1', 2, true, false, 'hello']; return $a; } function t2() { $a = [true, false]; return $a; } function t3() { $a = []; for($i = 1; $i <= 100; $i++){ array_push($a, $i); } return $a; } function t4() { $a = [ 10 => 5, 15 => 11 ...
true
387aecaa8eafbd0cd5a986fdc8747d61e874e65e
PHP
Bhuman-Patel/Login-Register
/connect.php
UTF-8
482
3.140625
3
[]
no_license
<?php class connect { public function connection(){ $user = "root"; $password = ""; $pdo = "mysql:host=localhost;dbname=project"; try{ $conn = new PDO($pdo, $user, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo 'Connect...
true
01425bafed92843252c9d0ecfc90db89d5f9cae0
PHP
cbestrada1996/laravelCrudRestExample
/app/Services/ItemService.php
UTF-8
1,895
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Http\Requests\ItemRequest; use App\Http\Resources\Item as ResourceItem; use App\Http\Resources\ItemCollection as ResourceItemCollection; use App\Repositories\Interfaces\ItemRepositoryInterface; use App\Services\Interfaces\ItemServiceInterface; use Illuminate\Http\JsonResponse; c...
true
87c2b8b95759c4f0d16650a852f97aecbffd11e5
PHP
SungDiYen/summer_235
/_check_0523/admin/include/class/PageShow_old.php
UTF-8
9,679
2.859375
3
[]
no_license
<? class PageShow{ var $allcount; var $shownum; var $shownum_page; var $nowpage; var $url; var $totalpage; function PageShow($_allcount,$_shownum,$_nowpage,$_url){ $this->allcount = $_allcount; $this->shownum = $_shownum; $this->nowpage = $_nowpage; $this->url = $_url; $t...
true
389f1d86a629cb5a6e232289343fecc88d824dd6
PHP
mikedon/damlab
/system/application/models/model_session_info(NOSHAPEBUILDER).php
UTF-8
5,561
3.03125
3
[]
no_license
<?php class Model_session_info extends Model{ /** * Table: session_info * * Stores session information for every user who has to complete sessions. * */ public $user_id; //Participant ID public $curr_session; //Current session # (e.g. 1.10) public $max_...
true
0be0e2dbe047f40c3367deb6548fb76f53cedcf7
PHP
redadrehim/dlcBlog
/app/Controller/CommentsController.php
UTF-8
3,062
2.515625
3
[]
no_license
<?php class CommentsController extends AppController { public $helpers = array('Html', 'Form', 'Session'); public $components = array('Session'); /* public function isAuthorized($user) { // All registered users can add Comments if ($this->action === 'add') { return true; } // T...
true
36fc7d2ae27275c5624a75bd880c1d72af2c68e7
PHP
Unkn0wnCat/KevinK.dev
/src/Twig/l10nExtension.php
UTF-8
1,071
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Twig; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; use App\Utils\Localize; class l10nExtension extends AbstractExtension { private $localize; private $requestStack; publi...
true
6e6e0286eb214f3c748b8c7ae230b8d0c174f600
PHP
rapidadress/hetic-p2017
/exercices/exercice-silex/serrano-bouhanna/web/models/contact.class.php
UTF-8
517
2.90625
3
[]
no_license
<?php /** * CONTACT */ class Contact_Model { function send($form){ $to = 'webmaster@snippets.com'; $subject = $form['subject']; $message = 'Message send by '.$form['name'].'<br/>'; $message .= 'Email sender '.$form['to'].'<br/>'; $message .= 'Message '.$form['message'].'<br/>'; $headers = 'From: web...
true
2c876ad46dbebc807ccf710c1ee4c20cae978019
PHP
CoderFetch/fetch404-l51
/app/Fetch404/Core/Repositories/BaseRepository.php
UTF-8
1,470
2.875
3
[ "MIT" ]
permissive
<?php namespace Fetch404\Core\Repositories; abstract class BaseRepository { protected $model; protected $itemsPerPage = 0; public function getFirstBy($index, $value, $with = array()) { $model = $this->model->where($index, '=', $value)->with($with)->first(); return $model; } p...
true
abaea22a1f211773c873e2b373c543e53bb471e6
PHP
moomoo-agency/moomoo-plugin-platform
/src/Bundle/CronBundle/Checker/CronSchedule/Chain/Element/AbstractCronScheduleCheckerChainElement.php
UTF-8
1,253
2.734375
3
[ "MIT" ]
permissive
<?php namespace MooMoo\Platform\Bundle\CronBundle\Checker\CronSchedule\Chain\Element; use MooMoo\Platform\Bundle\CronBundle\Checker\CronSchedule\CronScheduleCheckerInterface; use MooMoo\Platform\Bundle\CronBundle\Model\CronScheduleInterface; abstract class AbstractCronScheduleCheckerChainElement implements CronSched...
true
09be9c9f3134f9c31dc4a0709f5b6d3a70024914
PHP
Zhannyhong/ICT1004-Project
/edit_profile.php
UTF-8
4,769
2.703125
3
[ "MIT" ]
permissive
<?php session_start(); // Checks if the user is logged in if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"]) { // Initialise input variables $userID = $_SESSION["userID"]; $success = true; require "connect_database.php"; // Retrieves user info from database $stmt = $conn->prepare("SEL...
true
eea62c528461186defa2e570f38aa42143371776
PHP
trevormorse/web2project-api
/src/Action/Project.php
UTF-8
8,355
2.875
3
[]
no_license
<?php /** * Action Project * * Handles request for projects. * * @link http://getfrapi.com * @author Frapi <frapi@getfrapi.com> * @link /projects/:project_id */ class Action_Project extends Frapi_Action implements Frapi_Action_Interface { /** * Required parameters * * @var An array of requi...
true
9386e8b1ca1fe88418c834e08cb6b8bec37cd7b6
PHP
pedroamorimufg/moe
/app/Controllers/Login.php
UTF-8
1,894
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use CodeIgniter\Controller; use App\Models\UserModel; class Login extends Controller { public function index() { helper(['form']); echo view('login'); } public function auth() { $session = session(); $model = new UserModel(); ...
true
4ecbc8e9c86a4a2b5fba8a7e867656eb27a72542
PHP
coderInCape/LetsConnect-website
/checkusername.php
UTF-8
2,272
2.609375
3
[]
no_license
<?php $key2 = $_GET['keyword']; // echo ("'"."mark"."%'"); /* First, get the maximum order id from the database */ //get the maximum order id from the database // alert("Key word is:"+$key); $query = "SELECT * FROM USER where username='$key2'"; //echo ($query); //in...
true
ce7d559563debe0c1f22e0a72229c6427f115476
PHP
dasuos/Sql
/Tests/Unit/Update.phpt
UTF-8
1,199
2.515625
3
[]
no_license
<?php declare(strict_types = 1); namespace Dasuos\Sql\Unit; use Dasuos\Sql; use Tester; require __DIR__ . '/../bootstrap.php'; /** * @testCase */ final class Update extends Tester\TestCase { public function testReturningUpdateWithSingleColumn(): void { Tester\Assert::same( 'UPDATE foo SET foo = :foo WHERE ...
true
eb704efbcf3f774555c0e27eeb72988c35b47e72
PHP
MagnusLj/ramverk1-module
/src/IPChecker/IPJsonController.php
UTF-8
7,926
2.78125
3
[ "MIT" ]
permissive
<?php namespace Malm18\IPChecker; use Anax\Commons\ContainerInjectableInterface; use Anax\Commons\ContainerInjectableTrait; // use Anax\Route\Exception\ForbiddenException; // use Anax\Route\Exception\NotFoundException; // use Anax\Route\Exception\InternalErrorException; /** * A sample JSON controller to show how a...
true
d25c159bc4c0e74ee7c2306a6cfd8d8153aaed72
PHP
StrathHACK16/Team13
/application/models/Votes.php
UTF-8
1,999
2.71875
3
[]
no_license
<?php Class Votes extends CI_Model { public function voted($user_id, $location_id) { $this -> db -> select('*'); $this -> db -> from('votes'); $this -> db -> where('user_id', $user_id); $this -> db -> where('location_id', $location_id); $query = $this -> db -> get(); if($query -> num_rows() == 0) ret...
true
755da58f645ccd3e5247a2fb6021f4eaf3bcfba9
PHP
PradhiptaBagaskara/skbg
/application/core/MY_Model.php
UTF-8
2,964
2.5625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class MY_Model extends CI_Model { protected $table; protected $cols; protected $prefix = ''; protected $tblAdmin = 'admin'; protected $tblCerita = 'cerita'; protected $tblKategori = 'kategori'; protected $tblMasukan = 'masukan';...
true
ac1fef61cad0c863382d4cd2c7ebe0726e18c03f
PHP
lightSAML/lightSAML
/tests/LightSaml/Tests/Builder/Action/CompositeActionBuilderTest.php
UTF-8
2,780
2.53125
3
[ "MIT" ]
permissive
<?php namespace LightSaml\Tests\Builder\Action; use LightSaml\Action\ActionInterface; use LightSaml\Action\CompositeAction; use LightSaml\Builder\Action\CompositeActionBuilder; use LightSaml\Context\ContextInterface; use LightSaml\Tests\BaseTestCase; use LightSaml\Tests\Mock\Action\FooAction; class CompositeActionBu...
true
dd342bf8620e2dc8680ea9d684b42b7b782d0d32
PHP
mfn/cakephp2-magic-properties
/lib/Logger/SymfonyConsoleOutput.php
UTF-8
2,097
2.59375
3
[ "MIT" ]
permissive
<?php /** * The MIT License (MIT) * * Copyright (c) 2014 Markus Fischer <markus@fischer.name> * * 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 without l...
true
64864a9cb78230f877a5c27119ad3640ced2d7b0
PHP
aydancoskun/octobercms
/plugins/responsiv/campaign/updates/create_lists_table.php
UTF-8
1,044
2.546875
3
[ "MIT" ]
permissive
<?php namespace Responsiv\Campaign\Updates; use Schema; use October\Rain\Database\Updates\Migration; class CreateListsTable extends Migration { public function up() { Schema::create('responsiv_campaign_lists', function($table) { $table->engine = 'InnoDB'; $table->incre...
true
a6ff9698e48c47c298109959d4907d60a01abd01
PHP
dream-group/dream-apply-sdk
/src/Models/ApplicantCollection.php
UTF-8
787
2.5625
3
[]
no_license
<?php namespace Dream\DreamApply\Client\Models; /** * Class ApplicantCollection * @package Dream\DreamApply\Client\Models * * @property-read TrackerCollection|Tracker[] $trackers * @property-read Collection|Consent[] $consents */ class ApplicantCollection extends Collection { use CollectionPlugins\Collectio...
true
efd6c0e77bfc3c10ce464e728e32a5a725dfe2b0
PHP
FlashW1W/TalkALot
/phpregister.php
UTF-8
4,575
2.65625
3
[]
no_license
<?php session_start(); //Variaveis $idnumber = ""; $datanascimento = ""; $curso = ""; $password = ""; $username = ""; $email = ""; $name = ""; $cargo = ""; $errors = array(); //Conexão a Base de Dados $db = mysqli_connect('localhost', 'root', '', 'lrm_v2'); // Registo if (isset($_POST['reg_user'])) { //Recebe os...
true
15a5dd270ae21189c520c088ac20672242943eca
PHP
SociallyDev/Spaces-API
/SpacesAPI/File.php
UTF-8
7,431
3.09375
3
[ "MIT" ]
permissive
<?php namespace SpacesAPI; use SpacesAPI\Exceptions\FileDoesntExistException; use function PHPUnit\Framework\isNull; /** * Represents a single file * * You wouldn't normally instantiate this class directly, * Rather obtain an instance from `\SpacesAPI\Space::list()`, `\SpacesAPI\Spaces::file()`, `\SpacesAPI\Spa...
true
9dea6362f886845f6a45017d6859181c8553461e
PHP
doaaAbdelfatah/Be3ly
/app/Http/Middleware/CheckAPIKey.php
UTF-8
721
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class CheckAPIKey { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $nex...
true
5d838081621df840aedf9ca0182d38dba00ada31
PHP
victoquen/market
/sistema/agrupacion_inventario/class/producto.php
UTF-8
3,623
2.671875
3
[]
no_license
<?php class Producto { private $id_producto; private $codigo; private $nombre; private $iva; private $stock; private $costo; private $pvp; private $fecha_caducidad; private $observacion; private $proveedor; private $total; public function __construct() { $th...
true
8fc8db41049061cbd99018c10083632a0f80b4bf
PHP
awssat/laravel-kabsa
/src/Traits/Kabsa.php
UTF-8
1,122
2.59375
3
[ "MIT" ]
permissive
<?php namespace Awssat\Kabsa\Traits; use Illuminate\Database\Eloquent\Collection; trait Kabsa { /** * @var Collection */ protected static $kabsaCollection; public static function bootKabsa() { self::unguard(); } public function getRows() { return $this->rows; ...
true
8a60d448c33ba1051b4db6faed046dc2b15452cd
PHP
frisbeesport/frisbeesport.nl
/vendor/bolt/common/src/Str.php
UTF-8
5,457
3.40625
3
[ "MIT" ]
permissive
<?php namespace Bolt\Common; class Str { /** * Replaces the first occurrence of the $search text on the $subject. * * @param string $subject * @param string $search * @param string $replace * @param bool $caseSensitive * * @return string */ public static function...
true
56ea9044fdec4314a27013160d2475e5adb83373
PHP
patfranciso/silicon
/use_cases/delete_user.php
UTF-8
1,925
2.625
3
[ "MIT" ]
permissive
<?php // bindables function remove_user_record($request) { $ci = &get_instance(); $id = $request->post; $ci->db->delete('users', $id); if ($ci->db->affected_rows() > 0) { return right('Delete user success!'); } else { return left(__FUNCTION__); } } class Delete_user_usecase { public $check_activ...
true
827a109a132df0693c6a24f9df53dd329823bf3c
PHP
AlexisBattagli/VirtualDemande
/model/DAL/Guacamole_ConnectionDAL.php
UTF-8
9,941
2.8125
3
[]
no_license
<?php /** * Description of Guacamole_ConnectionDAL * * @author Alexis * @author Aurelie */ //import require_once('BaseSingletonGuacamole.php'); require_once($_SERVER['DOCUMENT_ROOT'] . '/VirtualDemande/model/class/Guacamole_Connection.php'); class Guacamole_ConnectionDAL { /* * Retourne ...
true
702f20bc2108a924ece28854674f25448ba04936
PHP
fankvaster/Buylist
/Buylist-Alpha/bd.php
UTF-8
446
2.65625
3
[]
no_license
<?php /** * Подключение к базе данных */ include 'config.php'; //Подключение к базе данных mySQL с помощью PDO try { $db = new PDO('mysql:host=127.0.0.1;dbname='.$DATABASE, $DBUSER, $DBPASSWORD, array( PDO::ATTR_PERSISTENT => true )); } catch (PDOException $e) { print "Ошибка сое...
true
f7e3e910ad4e6c70d195dfa5dc440f4515b8dfbc
PHP
Eritzin/FORK
/actions/jFetch.php
UTF-8
964
3.234375
3
[]
no_license
<?php class DB { private $con; private $host = "localhost"; private $dbname = "fullstackproject"; private $user = "root"; private $password = ""; public function __construct() { $dsn = "mysql:host=" . $this->host . ";dbname=" . $this->dbname; try { $this->con = new PDO($dsn, $this->user, $this->pa...
true
63e2a4e417933e9f345d7d30f3bbba7cc522d1b9
PHP
camido/projetpiscine
/vendrevendeur1.php
UTF-8
673
2.53125
3
[]
no_license
<?php $categorie = isset($_POST["categorie"]) ? $_POST["categorie"] : ""; echo "$categorie"; $error = ""; if($categorie == "") { $error .= "Categorie d'achat non choisie<br />";} if ($error !== "") { header('Location: vendrevendeur.php'); } if ($categorie == "Enchere") { ...
true
785b08f2327389e7cd6748696135aed067e49590
PHP
guitimoteo/N3Script
/testeVeiculo.php
UTF-8
683
2.75
3
[ "MIT" ]
permissive
<?php include './Persistencia/Veiculo.php'; include './Persistencia/VeiculoDao.php'; include './Persistencia/Datasource.php'; $datasource = new Datasource('localhost', 'estacionamento', 'root', ''); $veiculo = new Veiculo(); $veiculoDao = new VeiculoDao(); //inserindo tudo de uma vez //$veiculo->setTudo("222222", "CHE...
true
b5cd810e977a1af62b3b2dffc326eacc9e01a094
PHP
RowlandOti/ooglee-blogmodule
/src/OoGlee/Application/Entities/Post/Services/APostBaseService.php
UTF-8
1,859
2.90625
3
[ "MIT" ]
permissive
<?php namespace Ooglee\Application\Entities\Post\Services; use Ooglee\Domain\Entities\ABaseRepository; use Ooglee\Domain\Contracts\IBaseService; use Helpers\Response\MyResponse; use Ooglee\Domain\Entities\Post\Contracts\IPostRepository; //Each service class would extend a APostBaseService class which //imple...
true
7e8f5b741d113fc811d43fe23fe5d5912fda5fa5
PHP
FreeDSx/LDAP
/src/FreeDSx/Ldap/Protocol/LdapQueue.php
UTF-8
5,293
2.734375
3
[ "MIT" ]
permissive
<?php /** * This file is part of the FreeDSx LDAP package. * * (c) Chad Sikorra <Chad.Sikorra@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FreeDSx\Ldap\Protocol; use FreeDSx\Asn1\Encoder\EncoderInterface;...
true
1e189f1cbd8b3197906d3c92220410f1c642faaf
PHP
AlDyZar/fp-backend
/app/Http/Controllers/AuthController.php
UTF-8
4,825
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Validator; use App\Models\User; use JWTAuth; use Tymon\JWTAuth\Exceptions\JWTException; class AuthController extends Controller { /* Register User */ public function register(Request $request){ try { $validato...
true
4da021d7f2171897d2e79cddf4dcc42e3888b088
PHP
andreymaznyak/FamilyFinances
/src/Ibw/FamilyFinancesBundle/Entity/User.php~
UTF-8
5,975
2.546875
3
[ "MIT" ]
permissive
<?php namespace Ibw\FamilyFinancesBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * User */ class User { /** * @var integer */ private $id; /** * @var string */ private $name; /** * @var string */ private $status; /** * @var string */ p...
true
e87a9fb1bb8af33578b76c3f5efbc5ba51a8dfdf
PHP
epcjc/PAP14_i11896
/TrabalhoPAP/trabalho/BD/12-GravarLerImag.php
UTF-8
1,225
2.78125
3
[]
no_license
<?php $mysql_id = mysql_connect('localhost', "Diana", "1234"); mysql_select_db('trabalhofinal',$mysql_id); // Ficheiro de imagem a guardar na base de dados $arquivo = "image/sorriso.jpg"; //Abre o fichei para leitura $Abrir = fopen ($arquivo, "r"); //Lê toda a imagem $Ler = fread ($Abrir, filesize ($arquivo)); // a...
true
9da31605d34e71317adf17266fd52d7eba80c6c6
PHP
matthewclayton/ANoGoodPiggy
/classes/authorize.php
UTF-8
1,571
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: matthew * Date: 7/22/2016 * Time: 7:51 PM */ class Authorize { protected $database; protected $passwordCrypt; private $username; private $userPassword; private $authorizeArray; public function __construct(Database $database) { $thi...
true
21ecf0b7d3e170b61dc3aa399a7305aaf2df8b56
PHP
carlosenricproyecto/PHP-DAO
/model/PersistentLayer/daoRepair.php
UTF-8
1,331
2.640625
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. */ Class daoRepair{ public function insertRepair($repair){ try{ $con = new DatabaseIns(); $non...
true
b865761d55c8b00e7e90e8b1ae0f68e7e1b52800
PHP
jvinezof-viaconsulting/fiscalizape
/Autoload.php
UTF-8
2,514
3.046875
3
[]
no_license
<?php namespace fiscalizape; require_once 'util/Util.php'; require_once 'util/Script.php'; use \fiscalizape\util\Util; use \fiscalizape\util\Script; /** * Classe que dar require_once nos diretorios usando caminhos absolutos. * * Obs: Recomendo apenas carregar (dar require) esta classe nos controllers e views, para...
true
45e42e058babbee922ab7a03a0970304718af97a
PHP
dyutiman-c/phonebook
/ciapp/application/models/Contact.php
UTF-8
2,341
2.71875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Contact extends CI_Model { public $id; public $name; public $phone; public $note; public function exists($id) { $query = $this->db->query( 'SELECT name FROM entries WHERE id='.$id.' LIMIT 0,1' ); $result = $query->result_array(); if(isse...
true
6203aaae2067ee504c3a9966eae5dfd2975e6015
PHP
veniva/zcms
/logic/src/Core/Admin/Language/LanguageBase.php
UTF-8
1,458
2.53125
3
[]
no_license
<?php namespace Logic\Core\Admin\Language; use Veniva\Lbs\BaseLogic; use Doctrine\ORM\EntityManager; use Veniva\Lbs\Adapters\Interfaces\ITranslator; use Logic\Core\Admin\Services\FlagCodes; use Logic\Core\Form\Language as Form; abstract class LanguageBase extends BaseLogic { /** @var EntityManager */ protect...
true
8a404413617503d7fef3ae4a89ada1321f8db1b6
PHP
lloricode/ci-capstone
/application/migrations/20170420223732_sample_data.php
UTF-8
27,555
2.578125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * @author Lloric Mayuga Garcia <emorickfighter@gmail.com> */ class Migration_Sample_data extends CI_Migration { private $user_ids; private $education_ids; private $course_ids; private $subject_i...
true
68de3d6b418445fddce32770c8b711915fa8cdae
PHP
abdulrehman97/ynz
/wp-content/plugins/wp-lister-for-amazon/classes/table/StockLogTable.php
UTF-8
13,956
2.9375
3
[ "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /*************************** LOAD THE BASE CLASS ******************************* ******************************************************************************* * The WP_List_Table class isn't automatically available to plugins, so we need * to check if it's available and load it if necessary. */ if(!class_e...
true
eecbd38570cf2c05308a468d5826899eae2845f8
PHP
erimexhs/cartera
/src/Entity/CarteraLog.php
UTF-8
1,843
2.53125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\CarteraLogRepository") */ class CarteraLog { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer") ...
true
393ecd048d2ac915e0ff1982a68b0973a8821e4a
PHP
yovanychb/codeigniter_api
/application/controllers/api/UsuariosRest.php
UTF-8
1,976
2.828125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); require APPPATH . 'controllers/api/RestController.php'; /** * Clase controladora para el REST de Usuarios */ class UsuariosRest extends RestController { /** * Metodo de inicio por defecto */ public function index() { ...
true
61c19d57868de366275abc8da7c7e0bb7b9bd709
PHP
grrr-amsterdam/garp-functional
/functions/pick.php
UTF-8
924
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); /** * @package Garp\Functional * @author Harmen Janssen <harmen@grrr.nl> * @license https://github.com/grrr-amsterdam/garp-functional/blob/master/LICENSE.md BSD-3-Clause */ namespace Garp\Functional; /** * Create a new array containing only the keys from the original that you w...
true
b0f3f59ff3f275695413532448964607ea8b5335
PHP
irunguh/sfa
/api/retrieveNotification.php
UTF-8
642
2.703125
3
[]
no_license
<?php require_once("../db_connection/database_connect.php"); // For database connection try { //working if we select all $stmt = $db->query("SELECT COUNT(message) as number, message,date as time FROM notifications where status = 1") ; $stmt->execute(); if($stmt->execute()) { ...
true
4bef425065da821f387341b7854492779d5d9375
PHP
wassen1/dbwebb-htmlphp
/admin/form-process.php
UTF-8
545
2.546875
3
[]
no_license
<?php // Get incoming values from posted form $tablechooser = $_POST["tablechooser"] ?? null; $redirect = $_POST["redirect"] ?? "?page=index"; // Update the current selected style, if it is a valid style. // The array $tables of valid tables is defined in config.php $table = $tables[$tablechooser] ?? null; if ($table)...
true
f6159531d8ca4c9b6ae817b30706a1fb1a63b2f6
PHP
asiqkhan/dmodule
/sna_blocks/sna_blocks_plugin_style_snablocks.inc
UTF-8
4,937
2.515625
3
[]
no_license
<?php /** * @file * Contains the list style plugin. */ /** * Style plugin to render simple node archive. * * @ingroup views_style_plugins */ class sna_blocks_plugin_style_snablocks extends views_plugin_style { // Set default options. function option_definition() { $options = parent::option_definition();...
true
934049d42395c52749725aad9be0f6e5679303f3
PHP
matkozikowski/weather-app
/app/src/Application/Query/Model/Weather.php
UTF-8
717
3.3125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Application\Query\Model; class Weather { /** * @var string */ private $country; /** * @var string */ private $city; /** * @var string */ private $temperature; public function __construct(string $country, string ...
true
38103c4c384b60f1870a4c3323521d6de2f8525c
PHP
AfrikuS/adventure
/app/Modules/Npc/Domain/Entities/NpcDeal.php
UTF-8
1,146
2.734375
3
[]
no_license
<?php namespace App\Modules\Npc\Domain\Entities; use Carbon\Carbon; class NpcDeal { const STATUS_STARTED = 'started'; const STATUS_NO_STATUS = 'no_status'; const STATUS_FINISHED = 'finished'; public $id; public $hero_id; public $npc_char; public $task; public $reward; public $dea...
true
d8f8876f2aa39d0b37f74a350dbdb57e532785b7
PHP
RaptorLab/veloci
/src/Veloci/Core/Configuration/PackageConfigurationDefault.php
UTF-8
595
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: christian * Date: 08/04/16 * Time: 15:04 */ namespace Veloci\Core\Configuration; use MongoDB\Database; class PackageConfigurationDefault implements PackageConfiguration { /** * @var DatabaseConfiguration */ private $database; /** * @return mi...
true
93eed83770d1f7a3ce2d2cfa216840a31565b885
PHP
teovanmeo111/GitHub-Back_Endxx
/manufacture.php
UTF-8
496
2.765625
3
[]
no_license
<?php class Manufacture extends Db{ //Lay sn pham theo id function getItem($id) { $sql=self::$connection->prepare(" SELECT mf.name FROM manufatures AS mf WHERE mf.id = ?;"); $sql->bind_param("i",$id); ...
true
7c75612d905c0be3f0486a4c7d842bc96dc4f766
PHP
Lkskwlkr1/simple-prepaid-card
/src/SimplePrepaidCard/CoffeeShop/Model/CannotRefundMoreThanCaptured.php
UTF-8
437
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace SimplePrepaidCard\CoffeeShop\Model; use Ramsey\Uuid\UuidInterface; final class CannotRefundMoreThanCaptured extends \DomainException { public static function with(UuidInterface $customerId): self { return new self( sprintf( 'Can no...
true
8207558325c4ecc4aa8ba360082a082a7c29b340
PHP
hixio-mh/mariesartwork
/Pub/login/old/BMAStuff/recipebook/classes/Units.class.php
UTF-8
5,507
3.140625
3
[ "Fair" ]
permissive
<?php require_once ("includes/unitdef.php"); //Unit conversion definitions require_once ("classes/DBUtils.class.php"); /** This class provides functions to convert between different units and to functions to deal with different unit systems */ class Units { /** Gets the ID's of the units that someone would use loc...
true
7fd4bb0900954a201fa682374eea779c1acf2c23
PHP
digitalequation/knowledge-base
/src/Services/KnowledgeBaseService.php
UTF-8
6,721
2.515625
3
[]
no_license
<?php namespace DigitalEquation\KnowledgeBase\Services; use Cache; use DigitalEquation\KnowledgeBase\Exceptions\KnowledgeBaseJsonException; use Exception; use GuzzleHttp\Client; use GuzzleHttp\Pool as GuzzlePool; use GuzzleHttp\Psr7\Request as GuzzleRequest; use Illuminate\Support\Collection; use Psr\Http\Message\Str...
true