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
e4dc00c6b365ca16552e813fd9c7cedd70fd78e9
PHP
ryotak/book
/app/Http/Controllers/ReadingRecordController.php
UTF-8
2,207
2.578125
3
[ "MIT" ]
permissive
<?php namespace book\Http\Controllers; use book\Book; use book\Reader; use book\ReadingRecord; use Illuminate\Http\Request; class ReadingRecordController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
05ed728a7dd5cea32ca08992d1915cea4016aa0a
PHP
khanoass/quickMVC
/controller/exampleController.php
UTF-8
1,638
3.03125
3
[]
no_license
<?php require_once('../constants.php'); require_once('baseController.php'); require_once(ROOT_DIR.'/model/exampleRepository.php'); /* * Class inherited from BaseController */ class ExampleController extends BaseController { private $repo = new ExampleRepository(); // The repository /* * Defining th...
true
0637bd3fe86b685b21cd4cbb35f79b0e52ef5484
PHP
Fguangfu/Redis
/voting/swap.php
UTF-8
1,356
2.75
3
[]
no_license
<?php //连接数据库 $pdo = new PDO('mysql:host=39.98.81.13;dbname=try', 'try', 'yn3emW6ksYhwwseh'); $pdo->query('set names utf8'); //连接redis $redis = new Redis(); $redis->connect('127.0.0.1', 6379); $redis->auth('123456'); $redis->select(1);//选择数据库1 $time = time() + 3600;//时间设置到一小时后 //死循环 while ($time > time()) { $vid =...
true
e8e6a2de2b2bbda066ed6c7d4f6e3a29584d369b
PHP
salonigoyal2309/social_networking
/database_connection.php
UTF-8
3,006
2.75
3
[]
no_license
<?php //database_connection.php include("includes/connection.php"); function fetch_user_chat_history($from_user_id, $to_user_id) { global $con; $query = " select * from chat_message where (from_user_id = '$from_user_id' AND to_user_id = '$to_user_id') OR (from_user_id = '$to_user_i...
true
c0e61bc072295ba63a022516c48937295d738bdf
PHP
zidan161/submission2
/index.php
UTF-8
4,243
2.875
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <head> <title>Upload File</title> <style> table { width:100%; } table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 15px; text-align: left; } </style> </head> <body> <h1> Upload File! </h1> <form action="" method="post" enctype="multipart/...
true
043e73d3f7687b7065849f3a1142447d03d442b8
PHP
fgleizes/popup
/classes/Database.class.php
UTF-8
1,147
3.109375
3
[]
no_license
<?php require "Configuration.class.php"; class Database extends Configuration { private $pdo; public function __construct() { $configuration = new Configuration(); $this->dbname = $configuration->dbname; $this->dbhost = $configuration->dbhost; $this->dbuser = $configuration->dbuser; $this...
true
cc5a17e82e239e7b4e7cb473c3475a48689f8369
PHP
inetstudio/admin-panel
/src/Http/Controllers/Back/Traits/DatatablesTrait.php
UTF-8
1,940
2.546875
3
[]
no_license
<?php namespace InetStudio\AdminPanel\Http\Controllers\Back\Traits; /** * Trait DatatablesTrait. */ trait DatatablesTrait { /** * @param $entity * @param $type * * @return mixed * * @throws \Exception */ private function generateTable($entity, $type) { $table =...
true
bf7aa91eee54891420e028e6e77fb791da706b3a
PHP
amirmojiry/gravity-pdf-amir-cert
/config/amir-cert.php
UTF-8
4,550
2.53125
3
[]
no_license
<?php namespace GFPDF\Templates\Config; use GFPDF\Helper\Helper_Interface_Config; /** * Amir Cert configuration file * * This configuration file can be overridden by being placed in the PDF_EXTENDED_TEMPLATES/config/ folder * * If running a multisite that would be the PDF_EXTENDED_TEMPLATES/:id/config/ folder, ...
true
9ea83b7abe253dd044d0ce339ea54adbb2a98a28
PHP
keyus/cms-admin-php
/app/Http/Controllers/Api/ChannelController.php
UTF-8
4,942
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class ChannelController extends Controller { /** * 栏目列表 */ function list(Request $request) { $request->validate([ 'model' => 'nullable|i...
true
00f8bbe207183fb83fd617fc298947341272f4fa
PHP
pierlon/PHPUnit-Polyfills
/tests/Helpers/Fixtures/ClassWithProperties.php
UTF-8
722
2.90625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Yoast\PHPUnitPolyfills\Tests\Helpers\Fixtures; /** * Fixture to test the AssertAttributeHelper. */ class ClassWithProperties { /** * Public property. * * @var string|null */ public $public_prop = null; /** * Protected property. * * @var int|null */ protected $protected_prop; ...
true
baeb236dc0a696b8159a3a9e356a48c4888ff24a
PHP
mashaelym/finalProject
/pages/RegisterView.php
UTF-8
1,330
2.84375
3
[]
no_license
<?php namespace view; class RegisterView extends View implements iPage { public function output() { $register = <<<REGISTER <h1>Registration</h1> <form action="index.php?page=accounts&action=create" method="post"> <div><h3>Req...
true
dbfcb7b50dcea59e22557e35d54a75bfc4c0e92b
PHP
pedrochaves/tdd-developer-week
/tests/unit/Calculator/Parser/ParserTest.php
UTF-8
1,510
2.9375
3
[]
no_license
<?php namespace Calculator\Parser; use Calculator\Factory\OperationFactory; use Codeception\Util\Stub; class ParserTest extends \Codeception\TestCase\Test { private $parse = null; public function _before() { $factory = Stub::make('Calculator\Factory\OperationFactory'); $normalizer = Stub...
true
148503d4178fdb71ce2202ed4f919999af5cffe2
PHP
chemisus/graphql
/src/main/TyperTrait.php
UTF-8
481
2.6875
3
[]
no_license
<?php namespace Chemisus\GraphQL; use Exception; trait TyperTrait { /** * @var Typer */ private $typer; public function setTyper(Typer $typer) { $this->typer = $typer; } public function type(Node $node, $value): Type { if ($this->typer === null) { t...
true
fe5057971ed187ee757a3ac64a38a640484b71f9
PHP
liubint/2.16
/17.02.16/1.php
UTF-8
1,881
2.84375
3
[]
no_license
<?php // $db=new mysqli("localhost","root","","lianxi"); //// 链接数据库 地址 账户 密码 操作的库 // $db->query("set names utf8"); // $result=$db->query("select * from stude"); // echo "<pre>"; // $str="<table>"; // while($row=$result->fetch_assoc()){ //// 循环的取出每一行 // $str.="<tr>"; // $str.="<td>".$row["姓名"]."</td>"; // $str.="<...
true
a6ff0fbb4fbac9fe67ffb7874f1ae7ac45f6786d
PHP
hirurgk/2-Berega-API
/v2.0/Slim/Helper/Log.php
UTF-8
3,433
2.9375
3
[]
no_license
<? /** * Created by y.alekseev */ namespace Slim\Helper; /** * Class Log * @package Slim\Helper */ class Log { /** * Количество дней хранения логов */ const COUNT_DAYS = 7; /** * Сохраняет логи в папку /api/logs * * @param string $additional_message */ public static f...
true
ae4ef3015d23a5aad1182b2ca0e33d8f1a6905be
PHP
ZnaidiMahdi/api-jti
/src/Entity/Zone.php
UTF-8
2,122
2.515625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\ZoneRepository") */ class Zone { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type=...
true
d054783030ea0866f4595de1f196814a428b3ea2
PHP
CybearTechnologies/api_inmuebles
/src/logic/Agency/CommandInactiveAgency.php
UTF-8
493
2.84375
3
[]
no_license
<?php class CommandInactiveAgency extends Command { /** * CommandInactiveAgency constructor. * * @param Agency $entity */ public function __construct ($entity) { $this->_dao = FactoryDao::createDaoAgency($entity); } /** * @throws AgencyNotFoundException * @throws DatabaseConnectionException */ pub...
true
8c8d42af87960f15536faa2620a2dfcff1108a11
PHP
tpcwre/fang
/mysqltools.php
UTF-8
2,825
2.90625
3
[]
no_license
<?php $mysql=new Mysql(); class Mysql{ public $link; function __construct(){ $host='localhost'; $user='root'; $pass='xiaOdonGsIguO32906802'; $db='fang'; $this->link=mysql_connect($host,$user,$pass)or die("数据库连接失败!"); mysql_select_db($db)or die("数据库选择失败!"); mysql_set_charset('utf8'); ...
true
0552c88046a49785cc676483f909d23b38082ba7
PHP
buberwa88/iLMS_Repayment
/backend/modules/allocation/models/SectorDefinition.php
UTF-8
1,210
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\modules\allocation\models; use Yii; /** * This is the model class for table "sector_definition". * * @property integer $sector_definition_id * @property string $sector_name * @property string $sector_desc * * @property SectorProgramme[] $sectorProgrammes */ class SectorDefinition exte...
true
62c3bbbbf87730fb842918b847762acd86075950
PHP
Tahongpao/Server-local
/domains/localhost/public_html/construct.php
UTF-8
239
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: oneFORall * Date: 29.05.2015 * Time: 23:45 */ require_once "lib/config.php"; require_once "Math/Complex2.php"; $a = new Math_Complex2(314, 101); $a->add(new Math_Complex2(303, 6)); echo $a; ?>
true
43f1b48528f087469887d123d95a6fb1c574dc32
PHP
OnrampLab/laravel-transcription
/src/Contracts/TextRedactor.php
UTF-8
435
2.53125
3
[ "MIT" ]
permissive
<?php namespace OnrampLab\Transcription\Contracts; use Illuminate\Support\Collection; use OnrampLab\Transcription\Models\Transcript; use OnrampLab\Transcription\ValueObjects\EntityText; interface TextRedactor { /** * Redact the text content of transcript for PII entities. * * @param Collection<Ent...
true
ad0599f13298faa23468340fa5c59d545af1fcbb
PHP
kavinkumarkv6/tickete-system
/common_functions.php
UTF-8
1,785
2.625
3
[]
no_license
<?php session_start(); include_once 'db_connect.php'; class crud extends DBconfig { public function __construct() { parent::__construct(); } public function getData($query) { $rows = array(); if($result = $this->connection->query($query)) { while ($row = $result->fetch_assoc()) { $rows[] =...
true
90fcba91a8fa3655db4dada5bc67cf45d4d1224c
PHP
Catfeeds/BDlove
/application/vmall/models/Store_model.php
UTF-8
21,266
2.53125
3
[]
no_license
<?php class Store_model extends CI_Model { public function __construct() { $this->load->database(); } /** * 获取导购信息 * @param int $flag 1按spg_store_id(门店id) 查询 , 2 按spg_id(导购id)查询 * @param int $id 查询id * @param char $field 查询字段 */ public function getGuid...
true
dc01f91d856d24e45dd04a8a9d984e2a0542f01c
PHP
mtodd/canvas
/library/View.php
UTF-8
2,815
2.734375
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php // @role View // @title View Class // @author Matt Todd // @date 2005-12-28 // @desc Handles rendering the results to the user, possibly with Smarty include_once('stdexception.php'); // classes class View { // should implement the IView interface // render public static function render($respo...
true
bbc52843bcf414fd45206f472e6e817e979504dc
PHP
unikec/tienda
/garzoncastan_cristina/problema1/app/models/funcionesUsuarios.php
UTF-8
2,982
2.875
3
[]
no_license
<?php use Problema1\app\models\Conexion; /** Incluimos el fichero de la clase Conf*/ require_once 'Configuration.php'; /*Incluimos el fichero de la clase Conexion*/ require_once 'Conexion.php'; /** * * la función insert usuario es igual que la nueva oferta pero usando bindParadm * */ function nuevoUsuario($id,$...
true
e17c87c662b71cb29e58c43babfcff65f89720b5
PHP
dkulyk/query
/src/Types/Amount.php
UTF-8
1,250
2.953125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DKulyk\Eloquent\Query\Types; /** * Class Amount * * @package DKulyk\Eloquent\Query\Types */ class Amount extends AbstractType { /** * @var int */ protected $precision; /** * @var int */ protected $multiplier; /** * @var array ...
true
9db2d0f5d1de6cbee75adef1caaa7362943cafd2
PHP
Paazl/magento2-checkout-widget
/Api/Data/Quote/QuoteReferenceInterface.php
UTF-8
1,505
2.734375
3
[]
no_license
<?php /** * Copyright © Paazl. All rights reserved. * See COPYING.txt for license details. */ namespace Paazl\CheckoutWidget\Api\Data\Quote; /** * Interface QuoteReferenceInterface * * @package Paazl\CheckoutWidget\Api\Data\Quote */ interface QuoteReferenceInterface { /**#@+ * Indexes of fields ...
true
b72d735dc987523a5ec9889a28a1effe57ba4f6b
PHP
Ricman0/sanitapp
/SanitAppCod/Entity/EMedico.php
UTF-8
19,905
2.84375
3
[]
no_license
<?php /** * La classe EMedico si occupa della gestione in ram dei medici. * * @package Entity * @author Claudia Di Marco & Riccardo Mantini */ class EMedico extends EUser { //attributi della classe EMedico /** * @var string $_codFiscale Il codice fiscale del medico */ private $_codFiscale; ...
true
48a3f707b39ce70016376390f6a2672d94d56c90
PHP
RcSmith/FileFoundry
/db_connect.php
UTF-8
542
2.546875
3
[]
no_license
<?php $hostname = "db530243879.db.1and1.com"; $database = "db530243879"; $username = "dbo530243879"; $password = "apollo18"; $link = mysql_connect($hostname, $username, $password); if(!$link) { die('Connection failed: ' .mysql_error()); } else { echo "Connection to MySQL server " .$hostname . " successful!" . PHP_...
true
3055e1a5a71816a47a0f7c5fe2daade2153978e7
PHP
jgresl/cosc449
/lorax_website/sql/select_samples_filtered.php
UTF-8
838
2.65625
3
[]
no_license
<?php $node_ID = $_GET['node']; $sensor_type = $_GET['sensor']; // Prepare SQL statement $sql = "SELECT sample_ID, node_ID, CASE WHEN sensor_type = 'H' THEN 'Humidity' WHEN sensor_type = 'T' THEN 'Temperature' ...
true
74b8ef211cd5f038a97129b6158f0118c4a50bfc
PHP
ReCodEx/api
/app/exceptions/JobConfigLoadingException.php
UTF-8
887
2.53125
3
[ "BSD-3-Clause", "GPL-2.0-only", "MIT", "Apache-2.0" ]
permissive
<?php namespace App\Exceptions; use Nette\Http\IResponse; /** * General exception used in all job configuration helpers in case * of loading error. Usually concerning bad structure or bad value type. */ class JobConfigLoadingException extends ApiException { /** * Create instance with further description....
true
76d6e85fd121e2ef503a1ecacbc9ce2829f87771
PHP
Ajaxel/AjaxelCMS
/inc/Image.php
UTF-8
23,348
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php /** * Ajaxel CMS v8.0 * http://ajaxel.com * ================= * * Copyright (c) 2007-2016, Alexander Shatalov <ajaxel.com@gmail.com>. All rights reserved. * * The software, this file and its contents are subject to the Ajaxel CMS * License. Please read the license.txt file before using, installing, copying, * ...
true
1784c9c71ac22357acc75e8b0e5b0e2437a3122e
PHP
lostinfo/jos-open-api
/src/request/VcItemAttrApplyUpdate.php
UTF-8
4,940
2.515625
3
[]
no_license
<?php namespace Lostinfo\JosOpenApi\request; /** * 更新驳回的颜色尺码申请 * 供应商API-京东供应商系统API,包含检索待出库客单信息、检索售前退款的客单、获取销量库存汇总、创建采购单等功能。 * url: http://open.jd.com/home/home#/doc/api?apiCateId=86&apiId=1667&apiName=jingdong.vc.item.attr.apply.update * Class VcItemAttrApplyUpdate * @package Jd\request */ class VcItemAttrApply...
true
16b61cdbcc64939ea4361605ed55907836d8a3d8
PHP
agroviva/egroupware-api
/src/Api/Timesheet.php
UTF-8
2,179
2.546875
3
[ "MIT" ]
permissive
<?php namespace AgroEgw\Api; use AgroEgw\Api\Timesheet\TimesheetSchema; use AgroEgw\DB; use EGroupware\Api; class Timesheet { public static function Get($ts_id) { $ts_id = (int) $ts_id; $timesheet = (new DB(" SELECT * FROM egw_timesheet WHERE ts_id = $ts_id; "))->Fetch(); ...
true
91df0854841873b38cde8424e38170f7f3772bf3
PHP
TorbenKoehn/lok
/models/knowledge_base_article.php
UTF-8
5,192
2.609375
3
[]
no_license
<?php class knowledge_base_article extends model { public $id; public $category_id; public $key; public $text; public static function create( $key, $text, $parent = null ) { $article = new static(); $article->key = $key; $article->text = $text; $arti...
true
ee13feb24c8e26ba48479084fa6a3d88fdba7674
PHP
Phaeon/App-Web
/AppWeb_final3/models/ConnexionModel.php
UTF-8
729
2.78125
3
[ "CC0-1.0" ]
permissive
<?php require_once('models/Model.php'); class ConnexionModel extends Model { public function checkConnexion($login, $mdp) { $sql = "select login, mdp from Utilisateurs where login=?"; $utilisateur = $this->executeRequest($sql, array($login)); if ($utilisateur->rowCount() == 1) { ...
true
f0c524043c3cfc1cf99d1448b951322dc6fa4334
PHP
XTishka/crm_usiz_zf3
/module/Application/src/Application/Domain/PersonValueObject.php
UTF-8
1,679
3.40625
3
[]
no_license
<?php namespace Application\Domain; use Application\Exception; class PersonValueObject extends AbstractValueObject { /** * @var string */ protected $firstName = ''; /** * @var string */ protected $middleName = ''; /** * @var string */ protected $lastName = '';...
true
6d2d4b1e43ce12ad70baa5b7b129d867d20503f2
PHP
Taras-Holyk/coax_php_test
/pages/parsing.php
UTF-8
601
2.90625
3
[]
no_license
<?php require_once '../vendors/StringParser.php'; $string = trim(strip_tags($_REQUEST['text'])); $stringParser = new StringParser(); ?> <html> <head> <title>Parse some string</title> <link rel="stylesheet" href="../style.css"> </head> <body> <header> <a href="/index.html...
true
e2fb4d7a97744aa3c90a1c79ce39c7096a63ddfe
PHP
NicoAlves/Exercices-LAMANU
/index.php
UTF-8
1,419
2.640625
3
[]
no_license
<?php //constante vers la racine du projet define('ROOT', str_replace('index.php', '', $_SERVER['SCRIPT_FILENAME'])); require_once(ROOT . 'Core/DataBase.php'); require_once(ROOT . 'Core/Controller.php'); //tableau contenant les paramètres de l'url en lien avec la règle de réecriture $params = explode('/', $_GET['param'...
true
31365557f4c643c9e7e4b3887701d15a433ba249
PHP
carlosasjr/Treinamentos-PHP
/PHPZERO/PHP_AVANCADO/CRUD/Usuarios/Usuario.class.php
UTF-8
3,476
3.1875
3
[]
no_license
<?php /** * .class [ TIPO ] * * @copyright (c) 2018, Carlos Junior */ namespace CRUDD\Usuarios; use PDO; use PDOException; class Usuario { private $id; private $email; private $senha; private $nome; private $pdo; /* * ************************************************ */ /* *...
true
6e3ce1325c84d51bd9b22f7bca4f355bac895cc7
PHP
lucascourot/fooscore
/src/Gaming/Match/VersionedEvent.php
UTF-8
588
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace Fooscore\Gaming\Match; final class VersionedEvent { /** @var int */ private $aggregateVersion; /** @var DomainEvent */ private $domainEvent; public function __construct(int $aggregateVersion, DomainEvent $domainEvent) { $this->aggregateVersio...
true
1adfd318cead9feadfff3477792e6ba886d253a3
PHP
satyaaec/satya1
/module/ZfcAdmin/src/ZfcAdmin/Model/Entity/AllCountries.php
UTF-8
635
2.546875
3
[]
no_license
<?php namespace ZfcAdmin\Model\Entity; class AllCountries { public $id; public $country_name; public $dial_code; public $country_code; public function exchangeArray($data) { $this->id = (!empty($data['id'])) ? $data['id'] : null; $this->country_name = (!empty($data['country_nam...
true
b1ca65309f856b67eb77445b7748b38b8cdb8d87
PHP
robocoder/solublecomponents
/src/Soluble/Japha/Interfaces/JavaClass.php
UTF-8
542
2.875
3
[ "MIT" ]
permissive
<?php namespace Soluble\Japha\Interfaces; interface JavaClass extends JavaObject { /** * Returns the name of the entity (class, interface, array class, primitive type, or void) * represented by this Class object, as a String. * * @return JavaObject Java(java.lang.String) */ public fun...
true
739c1ef65d6747d52672d6c949b858b307e50bd8
PHP
louise-decombe/ToDoList
/class/list.php
UTF-8
7,171
2.890625
3
[]
no_license
<?php class lists { private $db; private $connect; public function __construct($db) { $this->db = $db; $this->connect = $this->db->connect(); } public function addlist($name, $id_user) { try { $req_list = $this->connect->prepare("SELECT * FROM `list`...
true
415fb5dc529d1762c86950f8671f854604d39f11
PHP
PhoxPHP/Auth
/src/Uses/ActivateAccount.php
UTF-8
1,709
2.578125
3
[]
no_license
<?php /** * @author Peter Taiwo <peter@phoxphp.com> * @package Kit\Auth\Uses\ActivateAccount * @license MIT License * * 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...
true
478c287ddf61929696cba6d0a6e9ef592f3067de
PHP
ricardoperovano/ebanx-test-project
/app/Services/StoreService.php
UTF-8
528
3.0625
3
[]
no_license
<?php namespace App\Services; /** * This is a fake store service * It stores data in a json file temporarlly */ class StoreService { public function getStore() { $jsonString = file_get_contents("store.json"); return json_decode($jsonString); } public function createStore($data = ...
true
b358ad9416bb24796166a25f665da1a9d9768192
PHP
oLeVanBan/reports_php
/work_cookie_session.php
UTF-8
831
2.671875
3
[]
no_license
<?php $isset_cookie = false; $isset_session = false; setcookie("name_cookie1","Name khoi tao boi cookie<br>",time()+1800); if(!isset($_COOKIE['name_cookie1'])) { echo "<br>Cookie name_cookie1 is not set!<br>"; } else { $isset_cookie = true; echo "<br>".$_COOKIE['name_cookie1']."<br>"; } if ($isset_cookie...
true
712c1bdc23ba409960adb75120d03c54acfb77a3
PHP
royalhackaway/attendee_stickers
/dedupe.php
UTF-8
1,349
3.140625
3
[ "CC-BY-3.0", "MIT" ]
permissive
<?php $dinnerChoices = readCSV("data/choices.csv"); $output = createOutput("data"); $deduped = []; foreach ($dinnerChoices as $key => $row) { $matches = []; foreach ($dinnerChoices as $key1 => $value) { if($value[1] == $row[1]){ array_push($matches, $value); } } echo $matc...
true
4395cb6c1d0d8ae220bc140d4e1d81eabc97f97b
PHP
fajaramaulana/mnc-test-backend-php
/STEP2/CRUD/index.php
UTF-8
3,387
2.734375
3
[]
no_license
<?php // Include database file include 'connection.php'; $article = new Article(); $s_keyword = ""; if (isset($_POST['search'])) { $s_keyword = $_POST['s_keyword']; } // Delete record from table if (isset($_GET['deleteId']) && !empty($_GET['deleteId'])) { $deleteId = $_GET['deleteId']; $article->deleteArt...
true
082e533d61ddb933ad6f3cbe9ff376d987f0f8a9
PHP
Sgraffito/A-Test-Forum
/index.php
UTF-8
1,264
2.765625
3
[]
no_license
<?php include 'connect.php'; include 'header.php'; $sql= 'SELECT cat_id, cat_name, cat_description FROM categories'; $stmt = $pdo->query($sql); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); $row_count = count($result); if(!$result) { echo 'The categories could not be displayed, ...
true
88a6d0d51b3db641aa79f0d2de8e769023e4fb4e
PHP
medieteknik/Medieteknik.nu
/application/models/user_model.php
UTF-8
15,781
2.953125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class User_model extends CI_Model { function __construct() { // Call the Model constructor parent::__construct(); } /** * Validates if the user credentials is correct * * @param string $lukasid The lukas-id of the user, for example abcde123 * @param string $p...
true
665da93e86ca26902381083ae7a2640c796e395e
PHP
Tanzim06/PHP-projects
/E_Commarce_Site_with_PHP_OOP_&_MYSQLi (1)/E_Commarce/classes/ClassCustomer.php
UTF-8
5,279
2.8125
3
[]
no_license
<?php include_once dirname(__DIR__) . '/lib/ec_Database.php'; include_once dirname(__DIR__) . '/helpers/ec_Format.php'; Class ClassCustomer{ private $db; private $fm; public function __construct() { $this->db= new ec_Database(); $this->fm= new ec_Format(); } public function Cus...
true
9ebb5beffbca429cf54dc3a7bbe8aeb1adfe9412
PHP
akvara/PokerHands
/Poker_hands.php
UTF-8
13,811
3.15625
3
[]
no_license
<?php include_once __DIR__.'/vendor/autoload.php'; use PHPUnit\Framework\TestCase; $RANK = '23456789TJQKA'; $RANKED_FUNCTIONS = [ 'highest_value_card', 'one_pair', 'two_pairs', 'three_of_a_kind', 'straight', 'pocker_flush', 'full_house', 'four_of_a_kind', 'straight_flush', 'roy...
true
9f4a64298564f4c8d93ed1b4b3b1bedd079f5369
PHP
maurodepascali/webPhp
/config/funciones.php
UTF-8
373
2.984375
3
[]
no_license
<?php function ultimoId($array){ usort($array, function ($a, $b) { return $b['id'] - $a['id']; }); $primerRegistro = $array[0]; $ultimoId = $primerRegistro["id"]; return $ultimoId; } date_default_timezone_set( "America/Argentina/Buenos_Aires" ); function obtenerFechaYHora(){ $time ...
true
2c1529387700499b302f0d8e2c21debad0340e78
PHP
enlacee/subingleslyrics
/application/modules/cron/controllers/cron06.php
UTF-8
2,882
2.65625
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Setting number view in youtube (id_youtube_metadata) * * */ class Cron06 extends MY_Controller { public $tb_video = 'ac_videos'; public function __construct() { parent::__construct(); $this->load->mod...
true
1a26902d4781fa892b3f143cc3d2686e9902893d
PHP
marcovianna/procuradoria
/app/Data/Repositories/Users.php
UTF-8
749
2.75
3
[]
no_license
<?php namespace App\Data\Repositories; use App\Data\Models\User; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; class Users { public function findUserByEmail($email) { return User::where('email', $email)->first(); } public function loginUser($credentials, $remember...
true
f3f9dee992ce3bacc82fcf80b301bbe306b6de23
PHP
rohillion/melivery
/app/App/Service/Form/Order/OrderForm.php
UTF-8
8,288
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Service\Form\Order; use Illuminate\Support\MessageBag; use App\Service\Validation\ValidableInterface; use App\Repository\Order\OrderInterface; use App\Repository\BranchDealer\BranchDealerInterface; use App\Service\Form\OrderCash\OrderCashForm; use App\Service\Form\Customer\CustomerForm; use App\Se...
true
c653656b4f70c7184bb7dc53359aa48ef8ecf9f9
PHP
mathijshenquet/mqWorks
/src/FunctionStack/standard/toString.array.php
UTF-8
356
2.796875
3
[]
no_license
<?php $glue=', '; $wrap='[ %s ]'; $self = function($pieces)use(&$self, $glue, $wrap){ foreach( $pieces as $r_pieces ) { if( is_array( $r_pieces ) ) { $retVal[] = $self($r_pieces); } else { $retVal[] = $r_pieces; } } return sprintf($wrap, implode($g...
true
6354826fb5a0c7d95ba8e246ec4e429a8c4a7018
PHP
danieanwar77/arkademy-test
/2.php
UTF-8
1,920
3.375
3
[]
no_license
<?php function tes($user,$pass){ $countuser = strlen($user); $countpass = strlen($pass); if($countuser == 7 && $countpass == 7) { $number = 0; $max = 2; $pieces = explode("*", $pass); $str1 = $pieces[0]; $str2 = $pieces[1]; if (preg_match("/^[A-Z]+$/", $user) && is_numeric($str1) ...
true
517004a218363df9b6c566eae08b02e5ac3135e1
PHP
Jaume007/large1JPM
/story.php
UTF-8
1,916
2.734375
3
[]
no_license
<?PHP include_once "init.php"; include_once "model.php"; $id=$_REQUEST['id']; if(isset($_REQUEST['like'])) { addLike($id); $story=searchStory($id); if($story['status']==1) setStatus(0,$story['id']); } $story=searchStory($id);?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta na...
true
373c164c1d8f8e63a54d5480a714a2e91424b949
PHP
ikramadjissa/Yii2Immo
/advanced/frontend/models/Prestataire.php
UTF-8
1,286
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "prestataire". * * @property string $num_reg * @property string $designation * @property string $adresse * @property string $tel * @property string $fax * @property string $email * @property string $natureprestation */ class Prest...
true
2da0d7c74a1b4d75bed4498facbf05519c931918
PHP
cari1928/TAPW_PROYECTO2_2
/src/Proyecto2Bundle/Entity/Avion.php
UTF-8
1,101
2.59375
3
[]
no_license
<?php namespace Proyecto2Bundle\Entity; /** * Avion */ class Avion { /** * @var integer */ private $idavion; /** * @var string */ private $marca; /** * @var integer */ private $capacidad; /** * Get idavion * * @return integer */ p...
true
d7c920d7b0f3ca49f886793a2f2d0541060c4486
PHP
chao-hu/19fenbei
/app/helper/Sms.php
UTF-8
3,394
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: huchao * Date: 14-4-28 * Time: 上午11:37 */ class Sms { const CODE_TPL = "您好!您的验证码是: %s, 【19分贝】"; const SEND_URL = "http://dx.10659com.com:83/ApiService.asmx/Send"; const QUERY_URL = "http://dx.10659com.com:83/ApiService.asmx/GetYuE"; const ACCOUNT = "104841...
true
85030192943edb4bf109e93394e1ebf9e3b8a64e
PHP
csmith1201/franklin
/lib/franklin/test/Battlefield3/Score/test/ScoreTest.php
UTF-8
970
2.625
3
[ "MIT" ]
permissive
<?php namespace Franklin\test\Battlefield3\Score\test; use Franklin\test\Battlefield3\Score\Score, Franklin\test\Battlefield3\Score\Config ; /** * @group Tests * @group Battlefield3 */ class ScoreTest extends \PHPUnit_Framework_TestCase { public function setUp() { $config = new Config(array( 'platform' ...
true
bba0c7ce9158a34d216b278a692071b67ddbd092
PHP
wagnert/concurrency
/src/ExecutorService/Entities/Factory.php
UTF-8
1,516
2.53125
3
[]
no_license
<?php /** * AppserverIo\Concurrency\ExecutorService\Entities\Factory * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * * PHP version 5 * * @author Johann Z...
true
eecedf875d989823d1e57d9857272fb1e6c71c9e
PHP
PPE-CFA/DragonEye
/Bull's eye/modele/AnnonceModele.php
UTF-8
3,586
2.515625
3
[]
no_license
<?php class AnnonceModele { private $pdo, $table; public function __construct($serveur, $bdd, $user, $mdp) { $this->pdo = null; try{ $this->pdo = new PDO ("mysql:host=".$serveur.";dbname=".$bdd,$user,$mdp); } catch (PDOException $exp) { echo "erreur de connexion à la base de...
true
0f57b7e9a356945bbce1c536523ca8068981dfe9
PHP
fracz/refactor-extractor
/results/Behat--Behat/89588e47d181caa28145fe1fd2603c5c12c0160c/after/PHPLoader.php
UTF-8
3,387
2.671875
3
[]
no_license
<?php namespace Everzet\Behat\Hooks\Loader; /* * This file is part of the Behat. * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Plain PHP Files Hooks Loader. * * @au...
true
9af383259d8b9e2c12674445c2836eb94596d127
PHP
Mara133/PHP_login_reg_shoppinglist
/PHP_login_reg_shoppinglist/registration.php
UTF-8
2,644
2.609375
3
[]
no_license
<?php include_once 'include/user.php'; $user = new User(); // Checking or user is alrdy loged in or not if (isset($_POST['submit'])){ extract($_POST); $register = $user->reg_user($fullname, $uname, $upass, $uemail); if ($register) { // Registration Success echo "<div st...
true
0c2947e1926f5546791e8903db189e0d8d6ce29f
PHP
wilfort/exercice-SQL
/exercice 4/update.php
UTF-8
5,563
2.859375
3
[]
no_license
<?php $tf=""; $f=""; $m=""; $d=""; $td=""; $message=""; if(isset($_POST['buttonU'])) { $errors = array(); $name = filter_var($_POST['name'],FILTER_SANITIZE_STRING); $available = filter_var($_POST['available'],FILTER_SANITIZE_STRING); $difficulty = $_POST['...
true
30a78957a12c5a782756cce4a47d4dcc1212babb
PHP
IsabelVallejoUam/PetHERO
/app/Http/Controllers/api/v1/PetController.php
UTF-8
2,191
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\api\v1; use App\Http\Controllers\Controller; use App\Models\Pet; use App\Models\User; use Illuminate\Http\Request; use App\Http\Requests\PetRequest; use App\Http\Resources\pets\PetsCollection; use App\Http\Resources\pets\PetsResource; class PetController extends Controller { ...
true
d46afc7d3196d7c00b2e7287034759572eb88787
PHP
Swiffers/TmsMediaBundle
/Media/ImageMedia.php
UTF-8
4,447
2.828125
3
[]
no_license
<?php namespace Tms\Bundle\MediaBundle\Media; use Tms\Bundle\MediaBundle\Exception\ImagickException; use Tms\Bundle\MediaBundle\Entity\Media; class ImageMedia { private $media; private $sourcePath; private $imagick; /** * Constructor * * @param Media $media * @param string $sourc...
true
4675d41ebca0e3131e41e207fe24e1b38f396890
PHP
romaxa83/wp-ocean
/www/backend/modules/filter/models/Filter.php
UTF-8
2,104
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\modules\filter\models; use Yii; use yii\db\ActiveRecord; use backend\modules\referenceBooks\models\City; class Filter extends ActiveRecord { public static function tableName() { return 'filter'; } public function rules() { return [ [['alias', 'name', ...
true
3ff205165936c86fb7f664df6fd9c51557abf491
PHP
ephotovideo/ePhotoVideo
/models/UserLock.php
UTF-8
726
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Krager * Date: 21.05.2019 * Time: 13:44 */ namespace app\models; use yii\db\ActiveRecord; use yii\db\Expression; class UserLock extends ActiveRecord { public static function tableName() { return 'UserLock'; } public function rules() { r...
true
f32c983a8d9438bd8274c9394dad6c42923e3236
PHP
jmfeurprier/perf-form
/lib/perf/Form/Field/SelectField.php
UTF-8
1,927
2.96875
3
[ "MIT" ]
permissive
<?php namespace perf\Form\Field; /** * * */ class SelectField extends FieldBase { /** * * * @var SelectOption[] */ private $options = array(); /** * * * @param SelectOption[] $options * @return Select Fluent return. */ public function setOptions(array ...
true
a57996c6a80184815028990dcbc8c18ee4787dc9
PHP
Sharparam/KFS
/include/KFS/Markdown.php
UTF-8
212
2.71875
3
[]
no_license
<?php namespace KFS; class Markdown { private static $parser; public static function parse($content) { if ($parser === NULL) $parser = new \Parsedown(); return $parser->text($content); } }
true
9aea0ab957478a5442b9e8acb0ce5284b96edd52
PHP
danystad/courier
/courier/controllers/Courier_DeliveriesController.php
UTF-8
1,539
2.546875
3
[ "MIT" ]
permissive
<?php /** * @link http://therefinery.co.nz * @copyright Copyright (c) 2017 The Refinery * @license https://github.com/therefinerynz/courier/blob/master/LICENSE.txt */ namespace Craft; /** * Courier_DeliveriesController * * @author The Refinery * @package Courier * @since 1.0.0 */ class Cour...
true
59a99ecba7cf44fea223b23278b4f6f91a0b5b5f
PHP
rhays816/Timer_Class
/class/timer.php
UTF-8
2,332
3.390625
3
[ "MIT" ]
permissive
<?php /**************************************************** * Timer Class - Collection of timer Utilities * * Created By: Rick Hays * Date: 2011-09-12 * * Revisions: * 2011-09-12 RLH Added "udate" * *****************************************************/ class timer { var $startTimer; var $endTimer; /** * ...
true
1f9869866577895702797fc04e872f96e2c41f36
PHP
kamaroly/project-manager-laravel
/app/Http/Controllers/ProjectTaskController.php
UTF-8
1,344
2.546875
3
[]
no_license
<?php namespace ProjectManager\Http\Controllers; use Illuminate\Http\Request; use ProjectManager\Repositories\ProjectTaskRepository; use ProjectManager\Services\ProjectTaskService; use ProjectManager\Http\Controllers\Controller; class ProjectTaskController extends Controller { protected $repository; protec...
true
31715c22574520d1935b47251dcd785fe98a49a6
PHP
aeroio/php-client
/test/unit/engines/CurlTest.php
UTF-8
1,319
2.765625
3
[]
no_license
<?php require_once 'src/engines/Curl.php'; class CurlTest extends PHPUnit_Framework_TestCase { public function testExecute() { $request = 'request'; $expected = 'response'; $curl = $this->getMock('Curl', array('createProcess', 'fetch')); $curl->expects($this->once()) ...
true
9540e1fe8aa298f64f0791edeac463ec67880f39
PHP
Dmutryk/Code-Alchemy-MVC-Framework-for-PHP-and-PostgreSQL
/framework/classes/Code_Alchemy/Filesystem/Utilities/Remove_Files.php
UTF-8
887
2.796875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: dgreenberg * Date: 11/12/15 * Time: 8:29 PM */ namespace Code_Alchemy\Filesystem\Utilities; use Code_Alchemy\Core\Array_Representable_Object; use Code_Alchemy\Filesystem\Directory_API; /** * Class Remove_Files * @package Code_Alchemy\Filesystem\Utilities * * Utility...
true
8bdc7b3317d095db657eb174d69914caadb7c256
PHP
flauschi/MCStatsPlus
/includes/class.Registry.php
UTF-8
792
3.203125
3
[]
no_license
<?php final class Registry { protected static $instance; protected $vars = array(); protected function __construct() { } public function __destruct() { } public function __clone() { trigger_error('Not allowed to clone class', E_USER_ERROR); } public static function instance() { if (! isset(self::$i...
true
43089e08ee1757616239b407b426d06ec3b8cc19
PHP
Aleksa1996/shopsy
/src/Shopsy/IdentityAccess/Main/Domain/Model/Auth/Client.php
UTF-8
4,535
3.015625
3
[]
no_license
<?php namespace App\Shopsy\IdentityAccess\Main\Domain\Model\Auth; use DateTime; use App\Common\Domain\Id; class Client { /** * @var Id */ protected $id; /** * @var string */ protected $name; /** * @var string */ protected $secret; /** * @var string ...
true
8942af18f3b69388a1e73e18eb0ef94fc4fdea37
PHP
FranciscoFolguera/DWES
/todo/Saanti/recibe.php
UTF-8
860
2.921875
3
[]
no_license
<!DOCTYPE html> <html lang="ES"> <head> <title>Actividades 2 PHP</title> <meta name="author" content="Francisco Folguera "> <meta charset="UTF-8"> </head> <body> <?php echo "<h1>Francisco Folguera Sánchez</h1>"; $Err= false; $nombre= $pwd= $edad= ""; $ErrNomb...
true
94113af8068365a5b1b79c9d650b16badaed654f
PHP
adnid34/Nutrition-management-expert
/Nutrition-management-expert/forgot_password.php
UTF-8
3,752
2.765625
3
[]
no_license
<?php require_once 'PHP/dbconfig.php'; include 'header.php'; // HEADER if(isset($_POST['btn_submit'])){ $inputEmail = $_POST['email']; //check if email exists on db $checkEmail = $DB_con->query("SELECT COUNT(*) FROM user WHERE username = '$inputEmail'")->fetchColumn(); if(em...
true
8abc90dabd0410b2561677ebe195b2a9b9bc837e
PHP
BradenJCampbell/Portfolio
/PHP-BClib/Primes.php
UTF-8
1,163
3.265625
3
[]
no_license
<?php namespace BClib; class Primes { public function __construct($limit = 2) { $this->known = [2]; $this->next = 3; $this->Fill($limit); } public function Factors($value) { $this->Fill($value); return $this->_fact($value, []); } public function IsPrime($value) { $this->Fill...
true
0b74e03031119d95fa185accf4a76a8b0c67c777
PHP
CloudCityNG/Eportal
/module/Property/src/Property/Form/PropertyValueFieldset.php
UTF-8
1,739
2.515625
3
[]
no_license
<?php namespace Property\Form; use Property\Model\PropertyInterface; use Property\Model\PropertyValue; use Zend\Form\Fieldset; use Zend\InputFilter\InputFilterProviderInterface; /** * * @author imaleo * */ class PropertyValueFieldset extends Fieldset implements InputFilterProviderInterface { publ...
true
dd3290fe65b7205984fdc4a32bd2402974c2499d
PHP
shimura9/freetuts
/bai7.php
UTF-8
608
3.59375
4
[]
no_license
<?php //ke thua long trong php class A { private $private_a = "Private"; protected $protected_a = "Protected"; public $public_a = "Public"; private function showPrivate() { echo $this->private_a; } protected function showProtected() { echo $this->protected_a; } public function showPublic() { echo $thi...
true
d4fc24bb05bf889b7def26e9480da796945059b4
PHP
PEEL-php/peel-builder
/src/Nodes/BoolLiteral.php
UTF-8
265
3.0625
3
[]
no_license
<?php namespace Peel\Builder\Nodes; class BoolLiteral extends Node { public bool $value; public function __construct(bool $value) { $this->value = $value; } function toPhp(): string { return (string)$this->value; } }
true
c6ad649936c9e7e5c1943732389b6734798d8bca
PHP
EDataScriptware/ServerProgramming
/Amina/day5/session02.php
UTF-8
1,108
3.09375
3
[]
no_license
<?php session_name('Amina'); session_start(); ?> <html> <head> <title>Session Example Page 2</title> </head> <body> <?php //Check whether session variable 'username' is set if (isset($_SESSION['username'])) { echo "Hi, {$_SESSION['username']} f...
true
4417324239faa2984389880d380ece746f84bd49
PHP
jiangkool/wxapp
/app/Models/Article.php
UTF-8
2,007
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; // use Actuallymab\LaravelComment\Commentable; class Article extends Model { // use Commentable; // protected $mustBeApproved = true; protected $fillable = [ 'title','category_id','thumb','new_price...
true
4f24350e5f292473c7cd7ee1b3a9aa5f90d9d921
PHP
johnnyeven/operation.php.find
/Extend/Helpers/Repo.php
UTF-8
6,990
2.640625
3
[]
no_license
<?php /** * Link Platform * * PHP Version 5.4 * * @category Foundation * @author johnnyeven <liyiwen@huoyunren.com> * @copyright 2015 Chinaway ltd. * @version Alpha: $Id * @link */ use Foundation\Support\Facades\Request; use Foundation\Support\Facades\View; if(!function_exists('fetchRepoIdentifier')) ...
true
0732eb5b021eef13de7351725944aa6aa25f1a45
PHP
tan-tan-kanarek/github-php-client
/client/objects/GitHubCommit.php
UTF-8
1,669
2.6875
3
[ "MIT" ]
permissive
<?php require_once(__DIR__ . '/../GitHubObject.php'); require_once(__DIR__ . '/GitHubUser.php'); require_once(__DIR__ . '/GitHubCommitCommit.php'); require_once(__DIR__ . '/GitHubCommitParents.php'); class GitHubCommit extends GitHubObject { /* (non-PHPdoc) * @see GitHubObject::getAttributes() */ protected fu...
true
66b7684519e4dd4a2a11da35c12c3b1c7697772c
PHP
GSIL-Monitor/er
/Application/Platform/SDK/jos/request/logistics/EtmsWaybillSendRequest.php
UTF-8
16,011
2.609375
3
[]
no_license
<?php /** * User: wangshengyong */ class EtmsWaybillSendRequest { /** * @var 运单号 */ private $deliveryId; /** * @var 销售平台(京东快递物流系统维护的数据字典) */ private $salePlat; /** * @var 商家编码 */ private $customerCode; /** * @var 商家发货商品的唯一标识 ...
true
2940353fe1e0a8259bf4306008e2755f7f7b11c2
PHP
darenc/zwift-php
/src/ZwiftPHP/Profile.php
UTF-8
2,561
2.578125
3
[ "MIT" ]
permissive
<?php namespace ZwiftPHP; class Profile extends Base { public function profile() { return json_decode( $this->request->json("/api/profiles/{$this->userId}"), true ); } public function profiles(array $profileIds) { $profilesRequestUri = '/api/profile...
true
1fda14b9ddf825ec98e081f96b2e09a7ae061780
PHP
felipevboas/VirtualLibrary
/Engine/CategoriasClass.php
UTF-8
1,573
2.75
3
[]
no_license
<?php require_once ("DatabaseClass.php"); Class Categorias { public function __construct() { $bd = Database::singleton("localhost", "root", "", "biblioteca"); $_SESSION['categoriasImagePrefix'] = "Imagens_categorias/"; } public function AdicionaCategoria($_nome, $_imagem) { $bd = Database::singleton(); ...
true
4a6608d493b54cd330ae8c714e15a9aeb5da3262
PHP
geffen007/Receipt
/classes/Receipt.php
UTF-8
1,304
2.828125
3
[]
no_license
<?php /** @license * Copyright 2020 Guido Amodio * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
true
fcf69d76654758f673bfb51f59b440d929d5ee0e
PHP
fukuma-dev/rss-getter
/tests/Serivce/UrlParser/Fc2UrlParserTest.php
UTF-8
877
2.59375
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; include 'Service/UrlParser/Fc2UrlParser.php'; use Service\UrlParser\Fc2UrlParser; class Fc2UrlParserTest extends TestCase { public function testGetDateByParsingUrl() { $service = new Fc2UrlParser(); $url = 'http://user5.blog50.fc2.com/blog-entry-1000.html...
true
181c195781b460395276856bf21bbd54d7e782fa
PHP
anti3mac/php-oop
/triats/multipleTraits.php
UTF-8
672
3.953125
4
[]
no_license
<?php trait Student{ public $name; function name($name): string{ return $this->name = "Welcome : ".$name."<br>"; } } trait Teacher{ public $Tname; function Tname($Tname): string{ return $this->Tname = "<br>Teacher Name : ".$Tname."<br>"; ...
true
8109e37c3a0c9dbf2a188f3da280e99a0bc35828
PHP
git-lm/emergency
/app/models/model_student.php
UTF-8
2,144
2.625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of model_student * * @author Administrator */ class model_student extends CI_Model { /* * 获取小组的所有问题 * g_id 小组ID * prd_id 流程ID * c_id 课程ID */ public fun...
true
524f1f781e373b3cb3421d0a227d92cae1cb3b9a
PHP
Fincallorca/HitchHikerApi
/src/Wsdl/v3_1_388_1/StructType/AllotmentResponse.php
UTF-8
13,618
2.609375
3
[ "MIT" ]
permissive
<?php namespace Fincallorca\HitchHikerApi\Wsdl\v3_1_388_1\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for AllotmentResponse StructType * Meta informations extracted from the WSDL * - nillable: true * - type: tns:AllotmentResponse * @subpackage Structs */ class AllotmentRe...
true