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
eed0342e5fc08d6fc9c10a5213d87d93964508f0
PHP
JesusMGF/laravelVueLibrary
/app/Http/Controllers/Api/CategorieController.php
UTF-8
3,062
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use App\Categorie; use App\Item; use Illuminate\Http\Request; use App; use App\Http\Controllers\Controller; use Illuminate\Http\Response; class CategorieController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\R...
true
e08149f8aaef000d8ffe87afdd9b4f2c80fa790a
PHP
smartthingsro/emagmarketplace
/Api/VatRepositoryInterface.php
UTF-8
427
2.65625
3
[]
no_license
<?php namespace Zitec\EmagMarketplace\Api; use Zitec\EmagMarketplace\Model\Vat; /** * Interface VatRepositoryInterface * @package Zitec\EmagMarketplace\Api */ interface VatRepositoryInterface { /** * @param array $data * * @return bool */ public function updateData(array $data): bool; ...
true
14392c240935e97793cec842a5c9f5ebedf54012
PHP
NiranjanBadgujar/phpmysqlworkshopiitbniranjan
/Day_6-7/Student_login.php
UTF-8
1,550
2.828125
3
[]
no_license
<?php include('connect1.php'); session_start(); if (isset($_SESSION['email']) && $_SESSION['type'] == "student") { header("Location: Student_result.php"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title...
true
27341cd0ef195f50338e03d107928ea53f7be5cd
PHP
tcesarusa/mm-e-commerce
/vendor/omnipay/eway/src/Message/RapidCaptureRequest.php
UTF-8
2,101
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * eWAY Rapid Capture Request */ namespace Omnipay\Eway\Message; /** * eWAY Rapid Capture Request * * This is a request to capture and process a previously created authorisation. * * Example - note this example assumes that the authorisation has been successful * and that the Transaction ID returned...
true
9fb088e84d6eeb10e1391a63ba6b77c7609750c4
PHP
ngitimfoyo/Nyari-AppPHP
/Source/vendor/symfony/process/Tests/NonStopableProcess.php
UTF-8
761
2.984375
3
[ "MIT" ]
permissive
<?php /** * Runs a PHP script that can be stopped only with a SIGKILL (9) signal for 3 seconds. * * @args duration Run this script with a custom duration * * @example `php NonStopableProcess.php 42` will run the script for 42 seconds */ function handleSignal($signal) { switch ($signal) { case SIGTERM : $na...
true
96f5c50923a796de09782400b6664607f7e080a6
PHP
postoor/line-notify-sdk
/src/LineNotify/Auth.php
UTF-8
3,208
2.734375
3
[]
no_license
<?php namespace postoor\LineNotify; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; class Auth { const AUTHORIZE_URI = '/oauth/authorize'; const TOKEN_URI = '/oauth/token'; const REVOKE_URI = '/api/revoke'; protected $config = []; public function __construct(array $config) ...
true
05ff9b4202d337bf079588e59e7273e84bcd202d
PHP
rra-am1a-2017/blok2-web-crud
/functions/functions.php
UTF-8
434
3.09375
3
[]
no_license
<?php function sanitize($data) { // Het weghalen van alle spaties links en rechts van de string en meerdere spaties in het midden $data = trim($data); // addslashes escaped (onschadelijk maken) een enkele quote', een dubbele quote " en // backslashes \ $data = addslashes($data); // Deze fu...
true
190c2480d43178bce62cdb668c5e68e468938133
PHP
Chocobann986/umitest
/classes/components/emarket/classes/delivery/Address/iAddressFactory.php
UTF-8
959
2.875
3
[]
no_license
<?php namespace UmiCms\Classes\Components\Emarket\Delivery\Address; /** * Интерфейс фабрики адресов доставки * @package UmiCms\Classes\Components\Emarket\Delivery\Address */ interface iAddressFactory { /** * Создает адрес доставки на основе объекта-источника данных адреса доставки * @param \iUmiObje...
true
864afe56d387f33858063132027ec48681476849
PHP
olasesi/obejorlocal
/system/library/nitropackio/core/domain.php
UTF-8
1,896
2.859375
3
[]
no_license
<?php namespace nitropackio\core; use nitropackio\core\exception\Domain as DomainException; class Domain { public static function identify() { $result = null; if (empty($_SERVER['HTTP_HOST'])) { throw new DomainException("Cannot identify current host."); } if (empty(...
true
d22adcb66af8fa2a43a94ac681474a4931d394a5
PHP
esatapedico/tdd
/tests/CalculatorSubtracaoTest.php
UTF-8
1,504
2.84375
3
[]
no_license
<?php namespace Vox\Treinamento\Tdd\Tests; use Vox\Treinamento\Tdd\Tests\AbstractCalculatorTestCase; class CalculatorSubtracaoTest extends AbstractCalculatorTestCase { public function testSubtracaoInteirosCorreta() { $this->assertEquals($this->calculator->subtrai(1,2), -1); } public funct...
true
5f362fdac555ecad4d92605033e3f9887b608ee5
PHP
bono-cms/Quiz
/Storage/AnswerMapperInterface.php
UTF-8
1,337
2.84375
3
[ "CC-BY-3.0" ]
permissive
<?php /** * This file is part of the Bono CMS * * Copyright (c) No Global State Lab * * For the full copyright and license information, please view * the license file that was distributed with this source code. */ namespace Quiz\Storage; interface AnswerMapperInterface { /** * Checks whether answer...
true
b5103534c946cc7134520cccaa6be368eed878c0
PHP
nehulyadav/LaraMail
/forgot.php
UTF-8
2,070
2.578125
3
[]
no_license
<?php //error_reporting(0); if(isset($_POST['rp'])) { $email=$_POST['e']; $fmn=$_POST['fmn']; $newp=$_POST['np']; $conp=$_POST['cp']; if(file_exists("User_Data/$email") && file_exists("User_Data/$email/$fmn")) { if($newp==$conp) { //$fo=fopen("User_Data/$email/"); $op=opendir("Use...
true
5e806a50bfd1544155313cf3d1f28a48b697adcc
PHP
inthinks/barbek-restful-api
/migrations/m160904_132618_create_provinsi_table.php
UTF-8
1,364
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; use League\Csv\Reader; /** * Handles the creation for table `provinsi`. */ class m160904_132618_create_provinsi_table extends Migration { /** * @inheritdoc */ public function safeUp() { $this->createTable('provinsi', [ 'id' => $this->primaryKey(), ...
true
aea84d90d5c275e1cba1981f34d2a26570bdcca3
PHP
dev-softwarehouse/digitalprint
/backend/app/Models/Mongo/MgCart.php
UTF-8
799
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lenovo * Date: 16.01.19 * Time: 11:44 */ namespace DreamSoft\Models\Mongo; use DreamSoft\Core\MongoModel; use Exception; use MongoCollection; /** * Class MgCart * @package DreamSoft\Models\Mongo */ class MgCart extends MongoModel { /** * @var MongoCollection...
true
30f5f21e9f59ef94f4a0bcc6c97d657d39b55625
PHP
adsr/mkcstubs
/mkcstubs
UTF-8
8,681
2.625
3
[]
no_license
#!/usr/bin/env php <?php $m = new Mkcstub(); $m->run(); /** * A tool for creating and maintaing C function stubs given an authoritative * set of header files */ class Mkcstub { const FUNCTION_REGEX_FMT = '@^([A-Za-z0-9_]+) ([A-Za-z0-9]+)_([A-Za-z0-9_]+)\(([A-Za-z0-9_\*, ]+)\)%s@m'; const DIVIDER = '// ===...
true
f4a23ed24ade63be004dc3fdfa81b21c74537e7b
PHP
ijsepro/System-Rest-House-Managment-DEV15
/BackEnd/application/controllers/mealcatagory.php
UTF-8
780
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Created by IntelliJ IDEA. * User: USER * Date: 5/15/2018 * Time: 3:24 PM */ header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods:GET,POST'); header('Access-Control-Allow-Headers, Content-Type'); class Mealcatagory extends CI_Controller{ public function __construct() { p...
true
321366c19f153b838c066e64c6f13e7d64046e15
PHP
ThunderID/SHOP-API
/app/Models/Traits/HasBillAmountTrait.php
UTF-8
435
2.578125
3
[]
no_license
<?php namespace App\Models\Traits; use App\Models\Scopes\BillAmountScope; /** * Apply scope to get bill of sales transaction * * @author cmooy */ trait HasBillAmountTrait { /** * Boot the Has Amount scope for a model to get amount of transaction hasn't been paid. * * @return void */ ...
true
e4e04cd8fbbee657e1ead066d9c5c6d724cc1c7b
PHP
mastuyink/traviora
/frontend/models/JenisDestinasi.php
UTF-8
1,976
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "v_jenis_destinasi". * * @property integer $id * @property integer $id_destinasi * @property string $gbr_thumbnail * @property string $judul_content * @property string $content * @property integer $id_author * @property string $cre...
true
a0c467be2fd7a84a8fc1c4e20ff338e467431074
PHP
yiisoft/yii
/framework/caching/CDbCache.php
UTF-8
9,719
2.734375
3
[]
permissive
<?php /** * CDbCache class file * * @author Qiang Xue <qiang.xue@gmail.com> * @link https://www.yiiframework.com/ * @copyright 2008-2013 Yii Software LLC * @license https://www.yiiframework.com/license/ */ /** * CDbCache implements a cache application component by storing cached data in a database. * * CDbCa...
true
85f84de696f522fd46138d2a3c15833b042e1ac8
PHP
tkcmuzrepo/muz_repo
/htdocs/classes/form_base/selectbox.php
UTF-8
2,634
2.796875
3
[]
no_license
<?php require_once(CLASS_DIR."form.php"); # 通常TEXT 郵便番号 電話番号 をカバーできる class SelectBox extends Form{ function __construct($form_id,$field_id){ $this->formType='select'; parent::__construct($form_id,$field_id); } # ■Styleを設定 # @author Kiyosawa # @date public function setStyleAttr($style=''){ $style...
true
81e3f998751ce1afb042a15233146f478b2be989
PHP
mhas97/TennisLadder-Backend
/ChallengeRequest.php
UTF-8
16,238
3.3125
3
[]
no_license
<?php /** * Class ChallengeRequest * * Handles database queries corresponding to challenge related requests. Allows the user to create challenges, * modify their status (accept, decline, cancel) and finally post a result. */ class ChallengeRequest { /* The connection object. */ private $connection; ...
true
e7bb2fab96f27327f1a5d8e450913b4f98aef9b1
PHP
libreforce/zend-glib
/src/DocBlock/AbstractDocBlock.php
UTF-8
767
2.59375
3
[]
no_license
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ...
true
c5d70b2b2016232ed886defb472c709e393df8e9
PHP
josAlba/packlink
/src/Model/PostalCodeModel.php
UTF-8
2,388
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace packlink\Model; use JMS\Serializer\Annotation\Type; use Symfony\Component\Serializer\Annotation\SerializedName; class PostalCodeModel { /** * @var string * @Type("string") * @SerializedName("id") */ private $id; /** * @var string * @Type("string") * @Se...
true
a2d92953723d929f4180df579fd14ff76f75429c
PHP
daoyazi/cos-php-sdk
/samples/Common.php
UTF-8
2,498
2.6875
3
[ "MIT" ]
permissive
<?php if (is_file(__DIR__ . '/../autoload.php')) { require_once __DIR__ . '/../autoload.php'; } if (is_file(__DIR__ . '/../vendor/autoload.php')) { require_once __DIR__ . '/../vendor/autoload.php'; } require_once __DIR__ . '/Config.php'; use COS\CosClient; use COS\Core\CosException; /** * 断言回调函数,抛出异常 */ fu...
true
01b948230ff58a6382538b218ea679f461063cac
PHP
nidhinvaishnavam/Tasks
/app/Http/Controllers/ProjectTaskController.php
UTF-8
2,469
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Task; use App\Beverage; use Illuminate\Http\Request; class ProjectTaskController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** ...
true
72cab79e44e0d68064acf024721e7958273c71ef
PHP
ExaByt3s/yueyue_repo
/mobile_app/protocol_methods.func.php
GB18030
4,905
2.65625
3
[]
no_license
<?php /** * APIӿ * * @author willike <chenwb@yueus.com> * @since 2015/10/12 9:56 */ if (!function_exists('interface_content_replace_pics')) { /** * 滻 ͼеͼƬ * * @param string $contents * @param int $size ߴ * @return string */ function interface_content_replace_pics($content...
true
b3ccb8fb6558f62634385f46dad9622cd723e364
PHP
oscarotero/letrag
/www/includes/comun/include_erros.php
UTF-8
1,114
3.109375
3
[]
no_license
<?php defined('OK') or die(); /* CONTROL DE ERROS Almacena todos os erros que haxa nas distintas clases v.1.0 */ class Erros { var $erros = array(); var $arquivo; //Engade un novo erro function erro ($texto) { $rexistro = debug_backtrace(); $rexistro[1]['erro'] = $texto; $rexistro[1]['data'] = date('Y/...
true
0704a9fda64edac49b52f20f0ad0b098bfd65146
PHP
BetsyMcPhail/CDash
/tests/test_localheader.php
UTF-8
2,896
2.5625
3
[]
no_license
<?php // // After including cdash_test_case.php, subsequent require_once calls are // relative to the top of the CDash source tree // require_once dirname(__FILE__) . '/cdash_test_case.php'; require_once 'include/common.php'; require_once 'include/pdo.php'; class OverrideHeaderTestCase extends KWWebTestCase { publ...
true
f5be01c552d74cbcfb41db48f3cedff3d4d88c41
PHP
Genotroid/Yii2Blog
/console/migrations/m200323_145059_add_admin_and_roles.php
UTF-8
1,790
2.53125
3
[]
permissive
<?php use yii\db\Migration; /** * Class m200323_145059_add_admin_and_roles */ class m200323_145059_add_admin_and_roles extends Migration { /** * {@inheritdoc} */ public function safeUp() { //Роль для автора, может добавлять и редактировать статьи $this->insert('auth_item', [ ...
true
cbc0f824939e8528c2b5e99aa1faf055abff1fb8
PHP
phpgears/event
/src/AbstractEmptyEvent.php
UTF-8
2,668
2.859375
3
[ "MIT" ]
permissive
<?php /* * event (https://github.com/phpgears/event). * Event handling. * * @license MIT * @link https://github.com/phpgears/event * @author Julián Gutiérrez <juliangut@gmail.com> */ declare(strict_types=1); namespace Gears\Event; use Gears\Event\Exception\EventException; use Gears\Event\Time\SystemTimeProvi...
true
b451cd59a4d1abcf16339af71d9e91f4af13f3f2
PHP
AndrewTachilin/Paysera-test
/tests/Unit/Services/Wallet/MathOperationsTest.php
UTF-8
1,379
2.890625
3
[]
no_license
<?php declare(strict_types=1); namespace Tests\Unit\Services\Wallet; use App\Services\Wallet\MathOperations; use Tests\TestCase; class MathOperationsTest extends TestCase { private MathOperations $mathOperations; public function setUp(): void { parent::setUp(); $this->mathOperations = ...
true
b21b3eda09408fc3ccf79145386c0c94607db864
PHP
marneicardoso/Agenda-PHP-MVC
/controller/contatoController.php
UTF-8
1,963
3.234375
3
[]
no_license
<?php // Sempre devemos verificar se um objeto // ou variável NÃO é null, antes de utilizá-los if (isset($_POST['btnCadastrarContato'])) { cadastrar(); } elseif (isset($_POST['editar'])) { editar(); } elseif (isset($_POST['excluir'])) { excluir(); } elseif (isset($_POST['btnBuscarContato'])) { busca...
true
b77bb8178d788566e26da9415c137765489e4d60
PHP
ChrisStyles99/php-library-app
/class/bookClass.php
UTF-8
1,254
2.90625
3
[]
no_license
<?php include('dbClass.php'); class Book extends DB { public function getBooks() { $sql = 'SELECT * FROM books'; $stmt = $this->connect()->prepare($sql); $stmt->execute(); $books = $stmt->fetchAll(); return $books; } public function getProfileBooks($user_id) { $sq...
true
c59ac083378c09891323f68d99dc6f7dcfc077a5
PHP
noxeternal/vgi-jsonrpc
/public/api/styles.php
UTF-8
564
2.890625
3
[]
no_license
<?php header("Content-type: text/css; charset: UTF-8"); require_once('../../lib/init.php'); $sql = "SELECT * FROM style ORDER BY styleName"; $result = $db->query($sql); function formatClassName ($s) { return str_replace(' ', '_', $s); } function formatStyle ($s) { $split = explode(';', $s); $style = []; fo...
true
7a6452a23015a07cb88995da41f134a876e8ebe2
PHP
Jean-BaptisteL/PHP
/partie3/exo6/index.php
UTF-8
282
3.140625
3
[]
no_license
<?php $number = 20; ?> <!DOCTYPE html> <html lang="fr" dir="ltr"> <head> <meta charset="utf-8"> <title>Exercice 6</title> </head> <body> <?php for ($number = 20; $number >= 0; $number--) { ?> <p>C'est presque bon</p> <?php } ?> </body> </html>
true
e0c9abbc3bbb316a4f9d7f965ce99e60c0b4de55
PHP
Deeptirajput59/Functions-and-Control-Structures
/ConditionalScript.php
UTF-8
576
3.0625
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>ConditionalScript</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body> <p> <?php $I...
true
c228f08b91726ba7b21693314efb000b4323343f
PHP
Yasaminm/ajax_cities
/insertCity.php
UTF-8
1,464
2.71875
3
[]
no_license
<?php //sleep(10); //echo 1; require_once './config.php'; require_once './classes/DbClass.php'; require_once './classes/FilterForm.php'; require_once './classes/DbClassExt.php'; require_once './data.php'; try { //DB connection: $db = new DbClassExt('mysql:host=' . HOST . ';dbname=' . DB , U...
true
d9e15bb7b6b645f34a7586c93d9e7bdd1ae601fc
PHP
Stolz/DockerLumen
/lumen/app/Models/Route.php
UTF-8
4,953
3.421875
3
[ "MIT" ]
permissive
<?php namespace App\Models; class Route extends Model { /** * Possible status of the route. * * @const string */ const STATUS_UNPROCESSED = 'pending'; const STATUS_PROCESSING = 'in progress'; const STATUS_SUCCESSFUL = 'success'; const STATUS_FAILED = 'failure'; /** * ...
true
d5d278729d7737d9ce90882094744b305510aa80
PHP
NickKalar/database_project
/helpers.php
UTF-8
8,402
2.734375
3
[]
no_license
<?php // //CONNECT_TO_DATABASE/////////////////////////////////// $server = 'localhost'; $user = 'nkalar'; $password = 'edwinblue'; $database = 'nkalar'; $db = new mysqli($server, $user, $password, $database); if($db->connect_error) { exit("Bad Connection\n"); } else { // DEVELOPMENT // echo "We're connect...
true
f5c43ac9e6a952910ed7b5843598984da4cb4756
PHP
james9909/PracticeCTF
/ccse-ctf-2016/The-Future_100/solution.php
UTF-8
270
2.984375
3
[]
no_license
<?php $first = 391220580; $time = 1477459467; while (true) { mt_srand(($time - 42) ^ 42); $rand0 = mt_rand(); if ($rand0 === $first) { $rand1 = mt_rand(); $rand2 = mt_rand(); print $rand2; break; } $time += 1; } ?>
true
281d50e80cd7cfe7e63e8543cbf9581330d64803
PHP
ivanfadh/jgtc_epl
/app/SuitEvent/Models/Kecamatan.php
UTF-8
3,981
2.578125
3
[]
no_license
<?php namespace App\SuitEvent\Models; use RichanFongdasen\EloquentBlameable\BlameableTrait; use Suitcore\Models\SuitModel; /* |-------------------------------------------------------------------------- | all_kecamatan Table Structure |-------------------------------------------------------------------------- | * id ...
true
1fb4d568e505c0bcde059a5b49570131e54bc7d2
PHP
Ocramius/PSR7Csrf
/test/PSR7CsrfTest/Exception/InvalidRequestParameterNameExceptionTest.php
UTF-8
893
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PSR7CsrfTest\Exception; use InvalidArgumentException; use PHPUnit\Framework\TestCase; use PSR7Csrf\Exception\ExceptionInterface; use PSR7Csrf\Exception\InvalidRequestParameterNameException; /** * @covers \PSR7Csrf\Exception\InvalidRequestParameterNameException */ final cla...
true
f761ae0b9d0397cb319296cd51576604c334e552
PHP
chenke91/MyForms
/validator.php
UTF-8
2,181
3.1875
3
[]
no_license
<?php abstract class Validator { protected $msg; public function __construct($args) { $this->msg = isset($args[0]) ? $args[0]:null; } abstract function run($form, $field); } class Required extends Validator { public function run($form, $field) { if (empty($field->data)) { ...
true
52141b6bd9890410387bcde3092bb7d4c2023da7
PHP
leemour/Parcels
/src/LocaleLocales.php
UTF-8
415
2.84375
3
[]
no_license
<?php /** * Контент страницы * */ namespace Parcels; class LocaleLocales { public $uri = ''; public $class = ''; public function __construct($name, $active) { //не добавляем раздел 'ru' в URI if ($name != 'ru') $this->uri = '/' . $name; if ($active...
true
e6c1b5078ed285a8082ef608272d4a71dd394ba7
PHP
SergeyVityazev/resumePHP
/InheritanceAndIntrfeys/index.php
UTF-8
3,012
3.125
3
[]
no_license
<?php abstract class Product { private $weight; private $type; private $color; private $price; private $namemarket='MyMarket'; abstract public function Discount(); public function Comment(){ echo "<br>"; echo "<br>"; return 'Name - '.$this->namemarket; } publ...
true
6568d03b4ecf7fa9476b3ea639bf9943035aa6fd
PHP
OUTRAGElib/psr7-file-stream
/lib/FileInterface.php
UTF-8
1,033
3.203125
3
[ "MIT" ]
permissive
<?php /** * Value object representing a file uploaded through an HTTP request. * * Instances of this interface are considered immutable; all methods that * might change state MUST be implemented such that they retain the internal * state of the current instance and return an instance that contains the * changed s...
true
8855a9227b636d1b7340b2163d15d48c5dec2177
PHP
wearesho-team/wearesho-notifications-repository-message-delivery
/tests/PushTest.php
UTF-8
1,688
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Wearesho\Notifications\MessageDelivery\Tests; use Wearesho\Notifications; use Wearesho\Delivery; use PHPUnit\Framework\TestCase; /** * Class PushTest * @package Wearesho\Notifications\MessageDelivery\Tests */ class PushTest extends TestCase { public function testNoRec...
true
478a6210231a7fcf83d4ef19c7dd18cb49755419
PHP
Nydareld/ProjetVoxel
/src/ProjetVoxel/EconomyBundle/Entity/BankAccount.php
UTF-8
1,650
2.53125
3
[]
no_license
<?php namespace ProjetVoxel\EconomyBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * bankAccount * * @ORM\Table() * @ORM\Entity */ class BankAccount { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ priva...
true
fa9f2111d5a6e5718816e25951355de1be53b948
PHP
emtiazzahid/php-ndjson
/test/ParserTest.php
UTF-8
785
2.65625
3
[ "MIT" ]
permissive
<?php namespace EmtiazZahid\Ndjson\Test; use PHPUnit\Framework\TestCase; use EmtiazZahid\Ndjson\Parser; class ParserTest extends TestCase { protected $file = 'test_sample.ndjson'; public function testDecode() { $base_path = dirname(__FILE__); $decode = Parser::decode($base_path . '/' . $...
true
771150a3eb4182ba0a1ba929f5e2852812c3866f
PHP
DylanBaine/teamup
/app/Notifications/Markup/MailMarkup.php
UTF-8
364
2.59375
3
[]
no_license
<?php namespace App\Notifications\Markup; use Illuminate\Notifications\Messages\MailMessage; abstract class MailMarkup { public abstract function from(); public function markup($type){ return call_user_func([$this, $type.'Markup']); } protected function mailMessage(){ return (new...
true
e4fe61b0bee6461246dd6f08267c966aa684f40a
PHP
jamesk14022/Spotify-Widget
/sw_db.php
UTF-8
1,440
2.625
3
[]
no_license
<?php //pull latest auth and refresh tokens from the db - if they don't exist - //return false function sw_get_latest_tokens(){ global $wpdb; $table_name = $wpdb->prefix . 'sw_creds'; $row = $wpdb->get_row("SELECT * FROM $table_name ORDER BY id DESC LIMIT 1"); if(!isset($row)){ return false; }else{...
true
fd7cf33b79a9e22334095cf6f47b1f1c3c00fcb8
PHP
duocircle/remoteauth-php-sdk
/src/HttpClient.php
UTF-8
6,100
2.703125
3
[]
no_license
<?php namespace RemoteAuthPhp; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\ClientException; use Psr\SimpleCache\CacheInterface; use Carbon\Carbon; class HttpClient { /** @var array */ private $options; /** @var GuzzleClient */ private $http; /** @var CacheInterface */ pr...
true
50b90311c1c2ac9f74e6e7297c104718447c2e37
PHP
leifos-gmbh/4_2_lm_overlay
/Services/Form/classes/class.ilNestedListInputGUI.php
UTF-8
2,752
2.734375
3
[]
no_license
<?php /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */ include_once 'Services/UIComponent/Toolbar/interfaces/interface.ilToolbarItem.php'; /** * This class represents a (nested) list of checkboxes (could be extended for radio items, too) * * @author Alex Killing <alex.killing@gmx.de> ...
true
c9be834b0945c99c3571c832428de9dfb0bcc2b8
PHP
Qaweeds/Homework
/04-08/OCP/Format/WithDateFormat.php
UTF-8
181
2.75
3
[]
no_license
<?php namespace Format; use Interfaces\ILogFormat; class WithDateFormat implements ILogFormat { public function getFormat() { return date('Y-m-d H:i:s '); } }
true
bb8afae8bb7e49c662745b91dca63acf3f33e6b1
PHP
liangf/www
/ZBACKUP/tomatoink/add_rabchicken.php
UTF-8
2,110
2.515625
3
[]
no_license
<?php header('Access-Control-Allow-Origin: http://www.tomatoink.com'); header('Access-Control-Allow-Methods: POST, GET, OPTIONS'); require_once 'database.php'; $username = "DBCOMPANDSAVE"; $password = "CAS123cas!"; $hostname = "DBCOMPANDSAVE.db.11475010.hostedresource.com"; $databasename = "DBCOM...
true
da5976a76483539b503030a6f927a454f0f3384c
PHP
builderprofessional/clients
/src/Clients/TurnKeyBundle/Controller/GalleryController.php
UTF-8
1,413
2.6875
3
[]
no_license
<?php /** * This controller publishes an API that will pull the right images to display in a turn-key gallery. * * @copyright 2016 Third Engine Software */ namespace Clients\TurnKeyBundle\Controller; use ThirdEngine\PropelSOABundle\Http\PropelSOASuccessResponse; use ThirdEngine\PropelSOABundle\Controller\ServiceC...
true
2b1d8bfaf9434fe1027eb205621f9fbca6d32f46
PHP
ASUPortal/ASUPortalPHP
/_core/_framework/CUtilNumberToWords.class.php
UTF-8
5,001
2.734375
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: Aleksandr Barmin * Date: 12.10.14 * Time: 20:38 * * URL: http://mydesignstudio.ru/ * mailto: abarmin@mydesignstudio.ru * twitter: @alexbarmin */ class CUtilNumberToWords { private static $def = array ( 'forms' => array(2, 0, 1, 1, 1, 2, 2, 2, 2, ...
true
289f58df0c9d321041a69cc19b6c17db52183668
PHP
Yosh244/toisute
/goodAjax.php
UTF-8
2,279
2.53125
3
[]
no_license
<?php require_once __DIR__ . '/../app/config/database.php'; require_once __DIR__ . '/../app/functions/review.php'; session_start(); if(!empty($_SESSION['user_id'])) { $user_id = (int)$_SESSION['user_id']; } // いいねボタンが押されたときの処理(追加・削除→全いいね数表示) // ログインユーザーのいいね情報を取得 if(!empty($_POST['postId'])){ $review_id = (int)$_PO...
true
ac23331da15b16c30c509e89fe77c3c0f0f11c53
PHP
Greg0ryj/OSF-Kiosk
/Kiosk Server/PHP Scripts/encoder.php
UTF-8
804
3.0625
3
[ "Apache-2.0" ]
permissive
<?php function jsEscape($str) { $output = ''; $str = str_split($str); for($i=0;$i<count($str);$i++) { $chrNum = ord($str[$i]); $chr = $str[$i]; if($chrNum === 226) { if(isset($str[$i+1]) && ord($str[$i+1]) === 128) { if(isset($str[$i+2]) && ord($str[$i+2]) === 168) { $output .= '\u2...
true
696ab19ab344c6f60ad9ab22e51043a6d7a18d48
PHP
rositatisor/gradebook
/src/Entity/Lecture.php
UTF-8
2,343
2.734375
3
[]
no_license
<?php namespace App\Entity; use App\Repository\LectureRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity(repositoryClass=LectureRepository::class) */ class...
true
627f7c4d45c355f657403dcf44807ce835ffb039
PHP
prybudko/Contact_Book
/update/Update.php
UTF-8
1,065
2.6875
3
[]
no_license
<?php require_once '../classes/DBConnect.php'; error_reporting(0); class Update { public function updateInformation(){ $db = new DBConnect(); $db->connectToDataBase(); $data_json = json_decode($_POST['json'],true); $name = mysqli_real_escape_string($db->mysqli, $data_...
true
881c7614b150e0dacf45ec3d6b4a7054a77411d5
PHP
Lemurro/api-core
/src/Helpers/DataChangeLog.php
UTF-8
1,504
2.796875
3
[ "MIT" ]
permissive
<?php namespace Lemurro\Api\Core\Helpers; use Lemurro\Api\Core\Abstracts\Action; /** * Добавление записи в лог действий */ class DataChangeLog extends Action { /** * @var string */ public const ACTION_INSERT = 'insert'; /** * @var string */ public const ACTION_UPDATE = 'update'...
true
af93650cb94886fc5b9ca9303653e8f4a9d0f6f6
PHP
confile/Malware-Sample
/CnC.Pony/panel/includes/Smarty-3.1.15/libs/plugins/modifier.items.php
WINDOWS-1251
400
2.578125
3
[]
no_license
<?php function smarty_modifier_items($value = 0) { $reminder = $value % 10; if ($value === null || $reminder == 0 || $value == 0 || ($reminder >= 5 && $reminder <= 9) ) return ''; if ($reminder == 1) return ''; if ($reminder == 2 || $reminder == 3 || $reminder == 4) return '...
true
f1460a98555e47ac3ea6f677d691561abf892482
PHP
kimhyonseong/phptest
/php/test3.php
UTF-8
3,797
3.84375
4
[]
no_license
<?php /** * Created by PhpStorm. * User: KimHyonSeong * Date: 2018-10-29 * Time: 오후 4:32 */ $object = new User; print_r($object); echo "<br>"; $object -> name = "Joe"; $object -> password = "ypass"; print_r($object); echo "<br>"; $object -> save_user(); class ...
true
c09ee882a175d6c946524167151880da36fda44d
PHP
nicolassnider/herramientas
/herramientas_api/Service/FacturaService.php
UTF-8
956
2.6875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: nicol * Date: 08/10/2018 * Time: 12:23 AM */ require_once '../Repository/FacturaRepository.php'; class FacturaService { private $repository; public function __construct() { $this->repository = new FacturaRepository(); } public function getAl...
true
a908f8dade8b4781a34678672323794a7e3cbb4d
PHP
xtompie/cqa
/app/Core/Util/Serialization/SerializationInterface.php
UTF-8
208
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Core\Util\Serialization; interface SerializationInterface { public static function fromSerialization(string $serialization): static; public function toSerialization(): string; }
true
4e44cde238f1addb5dab315f4be8bc2081a5b7c8
PHP
Alcatraz1907/academy_Ivan_Dudka
/oop/site/controler.loc/www/page/addproducer/index.php
UTF-8
2,389
2.625
3
[]
no_license
<?php require "../models/Studios.php"; require "../models/Nationalities.php"; ?> <form action="" method="post" name="form1" > <table border="2"> <tr><td>Last name</td> <td><input type="text" ID="lastName" name="last_name" ></td></tr> <tr><td>Name </td> <td><input type=...
true
eaa481a8e179e3ecf18ecf79e2ff3ae06b71ad02
PHP
StereoFlo/simple-mvc
/src/Core/Request/ServerBag.php
UTF-8
745
2.734375
3
[ "MIT" ]
permissive
<?php namespace Core\Request; use App\Utils; /** * Class ServerBag * @package Core\Request */ class ServerBag extends Bag { /** * @return string */ public function getMethod(): string { return \strtolower(Utils::getProperty($this->stack, 'REQUEST_METHOD', '')); } /** *...
true
1e18b6aa7cd6eae4b637d7808cf8b6d4d6c337b1
PHP
SuperPignouf/ProjAParcels
/ConsolePHP/seeOrders.php
UTF-8
2,375
2.828125
3
[]
no_license
<?php if(!isset($_SESSION)) session_start(); ?> <!DOCTYPE html> <html> <head> <?php include("head.php"); ?> </head> <body> <header> <!--En-tête--> <h1>Nos Ordres de Transport</h1> </header> <section> <!--Zone centrale--> Pour chaque colis nous affichons de gauche à droite: l'id de l'ordre, l...
true
1a8a4b5a0b2160264d6a2e34d6a9a6d2907923b7
PHP
joshuaruesweg/de.voolia.news
/files/lib/system/attachment/NewsAttachmentObjectType.class.php
UTF-8
1,594
2.703125
3
[]
no_license
<?php namespace news\system\attachment; use news\data\news\News; use wcf\system\attachment\AbstractAttachmentObjectType; use wcf\system\WCF; use wcf\util\ArrayUtil; /** * Attachment object type implementation for news entries. * * @author Florian Frantzen * @copyright 2013 voolia.de * @license Creative Commons C...
true
5e2d301f6222f52359fe26418bed4d7670ca121c
PHP
dwfriends/dokuwiki-plugin-gitlivesync
/conf/settings.class.php
UTF-8
14,827
2.703125
3
[]
no_license
<?php /** * Fieldset to Display a Section for each Repository */ class setting_fieldset2 extends setting_fieldset { function prompt(&$plugin) { return $this->_text; } } /** * gitlivesync_newrepo setting class for adding a new Repository to Configuration */ class setting_gitlivesync_newrepo extends setting_stri...
true
4aece201b33a0227c2accbc8fa76657abc9ab520
PHP
firassleibi/firassleibi
/ghm/post.php
UTF-8
1,639
2.546875
3
[]
no_license
<?php $error=false; if(!isset($_POST['name'])||!isset($_POST['email'])||!isset($_POST['text_area'])||!isset($_POST['radio_selected'])||!isset($_POST['check_boxs'])){ $error=true; } else{ include("include/db.php"); //Backend Validation $name = $_POST["name"]; $email = $_POST["email"]; $text_are...
true
f917772907e4f2e85cce4a2dc7555a95936ef85a
PHP
Sirgalas/parserYiiRss
/repositories/admin/NewsRepository.php
UTF-8
956
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\repositories\admin; use app\entities\News; use app\entities\NewsCategory; use yii\helpers\ArrayHelper; class NewsRepository { public function get($id):News { if(!$news=News::findOne($id)) throw new \RuntimeException('Ссылка не найдена'); return $news; } ...
true
8fe89026ba7068e7c72596398442e00c3ce69fdd
PHP
cosnicsTHLU/cosnics
/src/Chamilo/Core/User/Storage/Repository/UserRepository.php
UTF-8
5,882
2.609375
3
[ "MIT" ]
permissive
<?php namespace Chamilo\Core\User\Storage\Repository; use Chamilo\Core\User\Storage\DataClass\User; use Chamilo\Core\User\Storage\DataClass\UserSetting; use Chamilo\Core\User\Storage\DataManager; use Chamilo\Core\User\Storage\Repository\Interfaces\UserRepositoryInterface; use Chamilo\Libraries\Storage\DataClass\DataCl...
true
ae0ccab67c6f345008807e425e50f70710d04716
PHP
Th3Mouk/coding-standard-php
/YoudotAdditional/Sniffs/Classes/PsalmImmutableSniff.php
UTF-8
3,644
2.796875
3
[]
no_license
<?php declare(strict_types=1); namespace YoudotAdditional\Sniffs\Classes; use PHP_CodeSniffer\Files\File; use PHP_CodeSniffer\Sniffs\Sniff; use SlevomatCodingStandard\Helpers\AnnotationHelper; use SlevomatCodingStandard\Helpers\DocCommentHelper; use SlevomatCodingStandard\Helpers\TokenHelper; /** * @psalm-immutabl...
true
0473759015b526d3c768b22d828430e6949c2d1f
PHP
Jamaludin-Sanur/reserved-backend
/database/seeders/UserTableSeeder.php
UTF-8
742
2.875
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\User; class UserTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Let's truncate our existing records to start from scratch. User::t...
true
da569b88e9310f901bb5b8a510c4a2c9e3edbf93
PHP
Anisasundarti/aplikasi_skripsi
/app/Models/LokasiKejahatan.php
UTF-8
1,796
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class LokasiKejahatan * @package App\Models * @version February 24, 2021, 10:57 am UTC * * @property integer $id_jenis_kejahatan * @property string $alamat * @property string $gambar * @property string $des...
true
158f4d84c041d7684999e412fbb096bc18f6a710
PHP
JojoLgenius/Projet_Dev_Web
/Webetu/ConnexionGestion/enregistrer.php
UTF-8
2,110
2.84375
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8"> <title>Enregistrement</title> <link rel="stylesheet" type="text/css" href="StylePartieConnexion.css"> </head> <body> <center> <?php /* recupere le nom l'id et le mdp envoyés par le formulaire de m...
true
933bebf0d3a406bf43a54d72d2edfb531398f0c0
PHP
rjilimarwa/a-sample--PHPUnit
/src/AppBundle/Entity/Serialiser.php
UTF-8
1,408
2.578125
3
[]
no_license
<?php namespace AppBundle\Entity; namespace JMS\Serialiser; use Metadata\MetadataFactoryInterface; use JMS\Serializer\Construction\ObjectConstructorInterface; use PhpCollection\MapInterface; use JMS\Serializer\EventDispatcher\EventDispatcherInterface; use JMS\Serializer\Handler\HandlerRegistryInterface; use JMS\Seri...
true
8c4dc5269a3f4e8b65697ce5c41b8aa8004391e9
PHP
pitch7900/BlindTest
/app/Authentication/Authentication.php
UTF-8
18,969
2.78125
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace App\Authentication; use App\Database\User; use Carbon\Carbon; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; /** * @author: Pierre Christensen * Manage authentication */ class Authentication { /** * IsAuthentified * * @return b...
true
1c2f31319ba42b603ff5d9b4ed92a9bc3cb94dee
PHP
Markcial/fs-wrapper
/src/Socket.php
UTF-8
484
2.828125
3
[ "MIT" ]
permissive
<?php namespace Fs; use Fs\Socket\Client; use Fs\Socket\Server; class Socket extends File { /** @var Server|Client|null */ protected $socket; /** * @return Client|null */ public function client() { $this->socket = new Client($this->path); return $this->socket; } ...
true
73b455c369927b7b644c45c47ec294582bf6dcdf
PHP
yeka/Stringy
/src/Stringy/Stringy.php
UTF-8
23,068
3.59375
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Stringy; class Stringy { /** * Converts the first character of the supplied string to upper case. * * @param string $str String to modify * @param string $encoding The character encoding * @return string String with the first character being upper case ...
true
64e61858381b87b9734c3eaedf1c621a268b3cdc
PHP
xiaochong0302/cphalcon
/tests/unit/Assets/Filters/Jsmin/FilterCest.php
UTF-8
4,182
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ declare(strict_types=1); namespace Phalcon\Test\Unit\Assets\Filters\Jsmin; use P...
true
165fd0fc6d3df52de92ad3743e669303d6148df5
PHP
iqbalbaharum/rivilTool
/api/v1/Models/Oauth.class.php
UTF-8
839
2.84375
3
[]
no_license
<?php require('Models/ApiKey'); class Oauth extends API { protected $User; /*** * * @param $request * Authorization : Bearer <APIKey> */ public function __construct($request, $origin) { parent::__construct($request); $APIKey = Models/ApiKey(); if (!array_key_exists('apiKey', $...
true
f96d9d214416111f90ec77366c985ec140e0de05
PHP
herbrich/Jenni-CMS
/setupx.php
UTF-8
3,104
2.515625
3
[]
no_license
<?php $table = "rootLevel_Sites"; $rootTable = ' CREATE TABLE IF NOT EXISTS `' . $table . '` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Title` varchar(94) DEFAULT NULL, `Content` text, `Parrent` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=big5 AUTO_INCREMENT=12 ;'; function...
true
77e0ef3be544c36d3784f2a28da8eccd53bde962
PHP
LucasVSCS/bees-plants-api
/app/Interfaces/BeeInterface.php
UTF-8
198
2.53125
3
[]
no_license
<?php namespace App\Interfaces; use App\Http\Requests\Api\CreateBeeRequest; interface BeeInterface { public function getAllBees(); public function storeBee(CreateBeeRequest $request); }
true
1e0193207101520f77ce4ca84c555abe15fc1384
PHP
parsica-php/parsica
/src/sideEffects.php
UTF-8
1,217
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of the Parsica library. * * Copyright (c) 2020 Mathias Verraes <mathias@verraes.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Parsica\Parsica; /** * If the ...
true
457919a6df158a00a322252a3ad3e4cff6bf5e1e
PHP
tgozo19/laravel-codegen
/src/Console/Commands/Migrations/Traits/MethodsTrait.php
UTF-8
2,435
2.609375
3
[ "MIT" ]
permissive
<?php namespace Tgozo\LaravelCodegen\Console\Commands\Migrations\Traits; trait MethodsTrait { public function getStubName($migrationName) { return $this->stub_names[$this->checkStart($migrationName)]; } public function getFieldNamesString($fields): string { if (empty($fields)) ret...
true
62a8bf946f53f2ffd96ab83757425491c89bae6d
PHP
ICanBoogie/HTTP
/lib/FileOptions.php
UTF-8
744
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /* * This file is part of the ICanBoogie package. * * (c) Olivier Laviale <olivier.laviale@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ICanBoogie\HTTP; /** * Options to create {@link File} instanc...
true
1581c4dffb924b748998a5cccfabe2668433add3
PHP
guillaumemonet/Rad
/src/Rad/Build/DatabaseBuilder/Elements/BaseElementTrait.php
UTF-8
1,892
2.765625
3
[ "MIT" ]
permissive
<?php /** * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file) * @author Guillaume Monet * @link https://github.com/guillaumemonet/Rad * @package Rad */ namespace Rad\Build\DatabaseBuilder\Elements; /** * Description of BaseElementTrait * * @author guillaume ...
true
a322f16fc5e3f946b8585f9d1ed93d9d23d8f9b3
PHP
posiyans/pim
/app/Modules/User/Classes/CreateUserTwoFactorCodeClass.php
UTF-8
579
2.515625
3
[]
no_license
<?php namespace App\Modules\User\Classes; use App\Models\User; use App\Modules\Telegram\Classes\TelegramDeleteLoginCodeMessage; class CreateUserTwoFactorCodeClass { private $user; public function __construct(User $user) { $this->user = $user; } public function run() { $cod...
true
8dfd017cdd1f2223b418776922ea345227bd7595
PHP
dotienduc/MVC
/app/model/TimeServing.php
UTF-8
608
2.65625
3
[]
no_license
<?php namespace App\model; use \InvalidArgumentException; use App\core\Model; class TimeServing extends Model { public $id_timeserving; public $weeksday; public $work_time; public function __construct( $row = [] ) { if($row != []) { $this->id_timeserving = $row['id_timeserving']; $this->weeksday ...
true
8cd620a33d20fba89254e49bd46d7d9209b5c18c
PHP
poojakarthik/my-work
/html/ui/classes/Validation.php
UTF-8
17,723
3.40625
3
[]
no_license
<?php //----------------------------------------------------------------------------// // Validation //----------------------------------------------------------------------------// /** * Validation * * The Validation class * * The Validation class - encapsulates all validation rules * It can also handle validat...
true
efdc82b710b2eb1ca6f3dd9bb4ace6c63295730f
PHP
Farrien/sanity.net
/server/Superior/Tool/ImageResource.php
UTF-8
364
3.03125
3
[]
no_license
<?php namespace Superior\Tool; class ImageResource { public $path; public $dir; public $name; public $mimetype; public function __construct(string $path, string $name, string $dir, string $mimetype) { $this->path = $path; $this->dir = $dir; $this->name = $name; $this->mimetype = $mimetype; } public...
true
0235b996f2ffa5ca65db4763aaf768ed81ec19d0
PHP
boekkooi/tactician-amqp
/src/Publisher/Publisher.php
UTF-8
442
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Boekkooi\Tactician\AMQP\Publisher; use Boekkooi\Tactician\AMQP\Message; use Boekkooi\Tactician\AMQP\Exception\FailedToPublishException; interface Publisher { /** * Publish a message to a AMQP exchange. * * @param Message $message * * @throws FailedToPublishException *...
true
9890e9d4802f7a6782044b4bdeae0ca58d8fae31
PHP
gooddream-hub/PurePHP
/logic/db.class.php
UTF-8
728
2.765625
3
[]
no_license
<?php class DB extends MySQLi { private static $instance = null; // private static $_host = "localhost"; // private static $_uname = "mjtren5_user2"; // private static $_pass = "XLgf;E0uWz_#"; // private static $_database = "mjtren5_mjtrends"; private static $_host = "localhost"; private static $_uname = "root...
true
a7d9139617402748d10393bf9f02168931dad94f
PHP
mvtenorio/mico
/app/Mico/Repositories/Interfaces/TagRepositoryInterface.php
UTF-8
235
2.578125
3
[ "MIT" ]
permissive
<?php namespace Mico\Repositories\Interfaces; use Mico\Models\Tag; interface TagRepositoryInterface extends BaseRepositoryInterface { public function getTagById($id); public function save(Tag $tag); public function destroy($id); }
true
2a5722262836ae1f08f2ee22aa1a1568c6db1e29
PHP
azhang57/sinkd
/main/create.php
UTF-8
891
3.1875
3
[]
no_license
<?php /* //=================================================================================================== // File: create.js // Description: This file is used to create a new folder in the server. //=================================================================================================== */ $path = $_P...
true
89d73c4b8ab60f981dc9471199a202bee527f552
PHP
TangoToCoding/my-homepage
/BD_2018/Anmelde-Formular/index.php
ISO-8859-1
8,816
2.859375
3
[]
no_license
<?php // GammaGroup Kontaktscript // All rights by Moosa (Klaus Mooser) // Support gibts hier: (http://www.Neandertaler.net) (Moosa@web.de) // Version 2.7. // E-Mail Adresse des Empfngers (Im Normalfall Ihre eigene) einfach zwischen den beiden "" einfgen. $adresse = "IhrName@IhreDomain.de"; // Soll als Absenderadress...
true
9085ca00fcba94c33b74ebec89add6b375db5b70
PHP
berlianafd/simple_api
/CekIdUser.php
UTF-8
1,193
2.5625
3
[]
no_license
<?php require_once 'include/DB_Functions.php'; $db = new DB_Functions(); // json response array $response = array("error" => FALSE); // check for post data if (isset($_POST["nohp"]) && isset($_POST['name'])) { $nohp = $_POST['nohp']; // get the user poin $user = $db->getUserId($nohp); if ($user != fal...
true