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
6bcb2ca604d3fa792873f6f96048ec41b3024096
PHP
MGatner/phpstan-error
/src/Five.php
UTF-8
134
2.734375
3
[ "MIT" ]
permissive
<?php namespace MGatner\PHPStan; class Five { protected $number = 5; public function getNumber() { return $this->number; } }
true
6b19c115392a93bbb24129220c61322fd295c64f
PHP
Innmind/Math
/tests/Algebra/SignumTest.php
UTF-8
6,234
2.921875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Tests\Innmind\Math\Algebra; use Innmind\Math\Algebra\{ Signum, Power, Operation, Number, Addition, Subtraction, Multiplication, Division, Round, Floor, Ceil, Modulo, Absolute, SquareRoot, Exponential, BinaryLoga...
true
f6612b75a30f99e1eda713e832a73d4f6430996c
PHP
p5chi-auf/PentaBee-api
/src/Transformer/FeedbackTransformer.php
UTF-8
1,126
2.921875
3
[ "MIT" ]
permissive
<?php namespace App\Transformer; use App\DTO\FeedbackDTO; use App\Entity\Activity; use App\Entity\Feedback; use App\Entity\User; class FeedbackTransformer { /** * @param FeedbackDTO $dto * @param User $authenticatedUser * @param Activity $activity * @param User $userTo * @return Feedback...
true
cb288ed57b66163cb0cc12691fc432b14c8340ec
PHP
simpart/simplinerot-php
/src/SimpLineRot.php
UTF-8
1,117
2.5625
3
[ "MIT" ]
permissive
<?php /** * @file SimpLineRot.php * @author simpart * @note MIT License */ namespace mod\SimpLineRot\src; require_once(__DIR__ . '/synxCheck.php'); require_once(__DIR__ . '/genSource.php'); class SimpLineRot implements \fnc\gen\InfGen { private $cnf = null; private $prm = null; /** * set con...
true
7e30cc1b44e888105947ded334a16ac41ccbc2dc
PHP
ertuo-php/ertuo
/tests/KitTest.php
UTF-8
615
2.640625
3
[ "MIT" ]
permissive
<?php namespace Ertuo\Tests; use Ertuo\Kit; use PHPUnit\Framework\TestCase; class KitTest extends TestCase { /** * @dataProvider provider_explode_path * @covers Ertuo\Kit::quickExplode() */ function test_quickExplode($path, $result) { $source = Kit::quickExplode($path); $this->assertEquals(array_values($so...
true
f946e1d413ae52ce95f5a0aea31aaaf167778784
PHP
bigbag/archive_mobispot-yii
/protected/extensions/eauth/custom_services/CustomTumblrAuthService.php
UTF-8
1,228
2.53125
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php require_once dirname(dirname(__FILE__)) . '/EOAuthService.php'; class CustomTumblrAuthService extends EOAuthService { protected $name = 'tumblr'; protected $type = 'OAuth'; protected $jsArguments = array('popup' => array('width' => 900, 'height' => 550)); protected $key = ''; protected $sec...
true
fba9b18d911ebf06e3e18b4980c87f1f2dfab33e
PHP
mikaelmattsson/elasticsearch-persistence
/src/Document/DocumentInterface.php
UTF-8
214
2.671875
3
[]
no_license
<?php namespace Seek\Document; interface DocumentInterface { public static function create(array $properties, $id = null); public function getId() : string; public function getProperties() : array; }
true
7a6b9bbc7e28f253102be8a0b74c154ffd0bfefe
PHP
AhmedElshall/cafeteria
/models/category_model.php
UTF-8
1,167
3.21875
3
[]
no_license
<?php class Category { function connectDb (){ $servername = "localhost"; $username = "root"; $dbname = "cafeteria"; try{ $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, "root"); // set the PDO error mode to exception ...
true
577464815b5beda1a4a0a51e569010f063d44f3a
PHP
tolaky94/attt
/helper/function.php
UTF-8
1,157
2.84375
3
[]
no_license
<?php function render($text) { echo $text; } function connectMysql() { $servername = "localhost"; $database = "attt"; $username = "root"; $password = ""; // Create connection $conn = mysqli_connect($servername, $username, $password, $database); ...
true
074ce12f37b8d52dbc9c05243992c6d0cc9595ac
PHP
coyotetracks/PiutePonds
/src/php/species_info.php
UTF-8
1,261
3.0625
3
[ "MIT" ]
permissive
<?php class species_info { private $id = -1; private $common_name = ""; private $scientific_name = ""; private $anatidae = ""; private $taxonomy_order = ""; private $taxonomy_family = ""; function _constructor() { } public function setId($newId) { $this->id = $newId; } public fun...
true
bac20b2fbda286dd1b9c074729719c278f042c7e
PHP
Sepuka/academy
/src/task/UniqueRandomValues.php
UTF-8
1,310
3.234375
3
[]
no_license
<?php namespace sepuka\academy\task; /** * Из массива чисел нужно извлекать случайное число без повторов и без выделения дополнительной памяти. */ class UniqueRandomValues { public function getValue(array $sequence): iterable { $start = 0; $stop = \count($sequence); while ($stop > $s...
true
8200f1ffff308ffe9d85fc3f46d9902fb1488b39
PHP
hermanbth/maveric
/tags/v0.2.01/src/CCGuestbook/CCGuestbook.php
UTF-8
1,606
2.65625
3
[]
no_license
<?php /** * A guestbook controller as an example to show off some basic controller and model-stuff. * Index-metoden ska visa innehållet i gästboken och visar även ett formulär där det går att göra ett nytt inlägg i gästboken. * Formuläret postar till metoden Handler() som skapar ett nytt inlägg och add-metoden gör där...
true
41a0f7f84951389658d48419b2fab576b396be48
PHP
johnmauduit/Epitech_Coding_Academy
/05_PHP/pool_php_d09/ex_03/index.php
UTF-8
274
2.75
3
[]
no_license
<?php session_start(); if(isset($_GET["name"])) $_SESSION["name"] = $_GET["name"]; if (!isset($_SESSION["name"])) { echo "Hello platypus"; } else { echo "Hello " . htmlspecialchars($_SESSION["name"]); } //session_destroy(); ?>
true
7c12de72d06ec27da7fc61d6d0bca56ad779f13d
PHP
KantaPaul/php-practise
/libarey/function.php
UTF-8
455
3.625
4
[]
no_license
<?php function isEven($n) { // $n ekahne parameter if ($n % 2 == 0) { return true; } return false; } function factorial ($n) { if (gettype($n) != "integer") { return "Invalid "; } $result = 1; for ($i=$n; $i > 1; $i--) { $result *= $i; } return $result; } ...
true
6257de7b5b40e05ada0c5b8ed32770f7900724b3
PHP
kev-cabrerar/opp-course-platzi
/PHP/cash.php
UTF-8
176
2.53125
3
[]
no_license
<?php require_once('Payment.php'); class Cash extends Payment{ public $ammount; public function __construct($ammount){ $this->$ammount = $ammount; } } ?>
true
f0051a3b72aa6cbf751d0f4d8e79303dd9f1ee22
PHP
msinan52/lara_cms
/app/Rules/PhoneNumberRule.php
UTF-8
919
3.046875
3
[]
no_license
<?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; use function GuzzleHttp\Psr7\str; class PhoneNumberRule implements Rule { private $_phone; /** * Create a new rule instance. * * @return void */ public function __construct($phone) { $this->_phone = $pho...
true
6aaa5493562a6486d601293ed8d6efc37f706e77
PHP
CartThrob/omnipay-paytrace
/src/Message/Token/ClientTokenRequest.php
UTF-8
1,523
2.578125
3
[ "MIT" ]
permissive
<?php namespace Omnipay\Paytrace\Message\Token; use Omnipay\Paytrace\Message\AbstractRequest; use Omnipay\Paytrace\Message\Response; /** * PayPal REST Token Request * * With each API call, you’ll need to set request headers, including * an OAuth 2.0 access token. Get an access token by using the OAuth * 2.0 cli...
true
d0b168bac84585c5a5091e00962ce6ee9a184271
PHP
AMASP-workbench/LastForumEntries
/include.php
UTF-8
1,475
2.875
3
[]
no_license
<?php /** * * @module LastForumEntries * @version 0.4.2 * @authors Herr Rilke, Dietrich Roland Pehlke (last) * @license GNU General Public License * @platform 2.8.x * @requirements PHP 5.4.x and higher * */ /** * function LastForumEntries() * function to display last forum entries ...
true
49420df61c4fbcf7a116e9cf6e84c8a4eaa22607
PHP
kroony/squealing-funicular
/site/location/location.php
UTF-8
3,201
3.015625
3
[]
no_license
<?php class Location { public $ID; public $Name; public $Description; public $RequiredExploration; public $MinLevel; public $MaxLevel; public $RewardType; public $RewardChance; public $NPCFightChance; public $NPCList; public $Distance; //distance from guild hall in minutes public $Cost; public $CostChance;...
true
68fa8ccf671fdf7b3537ec765963bd8147ddab6f
PHP
Morti911/Homework_Rep
/Bookmarks Apps/Домашнее задание - angularBookmarksApp/model/bookmarksModel.php
UTF-8
800
2.640625
3
[]
no_license
<?php $request = file_get_contents("php://input"); $model = file_get_contents("bookmarks.json"); if($request) { if (json_decode($request)->action == "remove"){ $index = (int)json_decode($request)->index; $bookmarkList = json_decode($model); unset($bookmarkList->bookmarks[(int)$index]); ...
true
07f45c4c652065f62c9ec200a3d27b5151887738
PHP
CarlosMarcel/SICH
/app_core/controllers/ctr_alimentos.php
UTF-8
2,727
2.71875
3
[]
no_license
<?php require_once("../models/mdl_alimentos.php"); class ctr_Alimentos { private $postdata; public function __construct(){ $this->postdata = new mdl_alimentos(); } public function registrar_alimento($nombre,$puntoReorden,$cantidad,$cantidadPedido,$tipoMedida){ return $this->postdata->...
true
4fbc05dfe7fde996fd93c9c8eaa72992680c549a
PHP
evonsmy/ende
/index.php
UTF-8
242
2.75
3
[]
no_license
<?php require "lib.class/class.ende.php"; $ende = new ENDE(); $hecho = $ende->encode("It's Encode by team evonsmy"); echo "<b>Encode ---- : </b>" . $hecho . "<br>"; echo "<b>Text -------- : </b>" . $ende->decode($hecho) . "<br>"; ?>
true
2703abb34dc9b81a591d426997d100df754b8fd7
PHP
drod3663/newsite.dev
/app/controllers/PostsController.php
UTF-8
4,089
2.765625
3
[ "MIT" ]
permissive
<?php class PostsController extends \BaseController { public function __construct() { parent::__construct(); $this->beforeFilter('auth', array('except' => array('index', 'show'))); } /** * Display a listing of the resource. * * @return Response */ public function index() //FIX THE SEARCH { // $posts =...
true
86650e28bc832c8aeed78c8116105f594313b4b8
PHP
LBDistrictScouts/DistrictLeaders
/src/Controller/IssuesController.php
UTF-8
3,687
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Controller; use Cake\Controller\Controller; use Cake\Datasource\ModelAwareTrait; /** * Issues Controller * * @method \App\Model\Entity\Issue[]|\App\Controller\ResultSetInterface paginate($object = null, array $settings = []) * @property \Cake\ORM\Table $Issues */ cla...
true
6ad1f3c4fd3b0d8aaccf73a06be298cd2793288f
PHP
robsonash/Projeto-mvc
/App/models/User.php
UTF-8
578
2.984375
3
[]
no_license
<?php use App\Core\Model; class User extends Model { public $nome; public $email; public $senha; public function save(){ $sql = "insert into users (nome, email, senha) values (?, ?, ?)"; $stmt = Model::getConn()->prepare($sql); $stmt->bindValue(1, $this->nom...
true
27562efac700f5a3272c061317ce6caeda5f2872
PHP
zhseasm/openvpn-webui
/view/rbac/backend/AccessList.php
UTF-8
1,360
2.703125
3
[]
no_license
<?php $pdo = new PDO("mysql:host=127.0.0.1;dbname=rbac","root","toor"); $stmt = $pdo->prepare("select * from access"); $stmt->execute(); $access_arr = $stmt->fetchAll(PDO::FETCH_ASSOC); function print_json($data){ $arr = json_decode($data,true); foreach($arr as $v ){ echo...
true
99bc0a10318540a8b113cac20aeb504d44e2cf35
PHP
stephanecombes/ProjetS4
/src/controller/ControllerBenevole.php
UTF-8
18,023
2.59375
3
[]
no_license
<?php //essai /* contient le code source des actions. C’est donc ici qu’est présente la logique du site Web : on y appelle le modèle pour récupérer/enregistrer des données, on traite ces données, on appelle les vues pour écrire la page Web… */ require_once (File::build_path(array('model','ModelBenevole.php'))...
true
a728598f2fdab80959cd2f4fe84ae4c8a552697c
PHP
Emmathedev/Exercices-PHP
/partie7/index.php
UTF-8
4,920
2.765625
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Partie 7 </title> <style> h2 { color: red; } ...
true
7fa7834916866392d713a5149656c609e009902e
PHP
yuka0216/johnnys
/app/Adapter/Repository/ArtistRepository.php
UTF-8
2,113
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Adapter\Repository; use App\Artist as ArtistModel; use Domain\Model\Factory\ArtistFactory; use Domain\Service\Repository\ArtistRepositoryInterface; use Illuminate\Http\Request; final class ArtistRepository implements ArtistRepositoryInterface { const NAME_LABEL = "na...
true
a5e85021777df0254301da5e80af14c2d854113a
PHP
git-developers/Tianos-Backend
/src/Component/Client/Repository/ClientRepositoryInterface.php
UTF-8
774
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Component\Client\Repository; use Component\Client\Model\ClientInterface; use Component\Core\Repository\RepositoryInterface; interface ClientRepositoryInterface extends RepositoryInterface { // /** // * @return array // */ // public function gatazo(): array; ...
true
6505da42a557e50ebdadbabc1280e1ec01f3df83
PHP
RonaldoMoraes/PHP-padroes-de-projeto-e-boas-praticas
/DESIGN_PATTERNS/state/processo/Concluido.php
UTF-8
697
3.28125
3
[]
no_license
<?php class Concluido implements EstadosProcesso { public function informar(Processo $processo) { return "O processo: $processo está finalizado."; } public function criar(Processo $processo) { throw new Exception("Este processo já foi criado"); } public function aprovar(Pr...
true
8e4e60802b6aeaf54f5376768ea4be00862ee935
PHP
MillieOfzo/ArctosFramework
/app/classes/language.class.php
UTF-8
696
2.953125
3
[ "MIT" ]
permissive
<?php /** * ARCTOS - Lightweight framework. * * Language class */ namespace App\Classes; use \Config; class Language { private $file_location = '../Src/lang/'; /** * @return mixed array|language file content */ public function getLanguageFile() { return json_decode(file_get_conte...
true
8fd84181bcfb4e94e71a97d8af0244f8ad7a951f
PHP
PhilippGrashoff/secondarymodelforatk
/tests/SecondaryModelRelationTraitTest.php
UTF-8
10,987
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace secondarymodelforatk\tests; use Atk4\Data\Exception; use atkextendedtestcase\TestCase; use secondarymodelforatk\tests\testmodels\Admin; use secondarymodelforatk\tests\testmodels\Company; use secondarymodelforatk\tests\testmodels\Email; use secondarymodelforatk\tests\testmodels...
true
43f13e34b2cd4e103719096d08956c36f1ff3b2b
PHP
lukeokane/Web-Programming-Blog
/Blog.php
UTF-8
5,117
3.0625
3
[]
no_license
<?php require_once 'CONSTANTS.php'; require_once 'methods_library.php'; require_once 'login_and_register_library.php'; require_once 'QuickToString.php'; class Blog { use QuickToString; private $title; private $ID; private $userName; private $content; private $date; private $likes; pr...
true
34bacbfaed38a9e3e31904ada9ef0ca44d07dfcb
PHP
hirokazu0013/IESO
/signup.php
SHIFT_JIS
4,636
2.984375
3
[]
no_license
<?php session_start(); $db['host'] = "localhost"; // DBT[oURL $db['user'] = "root"; // [U[ $db['pass'] = "pass"; // [U[̃pX[h $db['dbname'] = "loginManagement"; // f[^x[X // G[bZ[WAo^bZ[W̏ $errorMessage = ""; $SignUpMessage = ""; // OC{^ꂽꍇ if (isset($_POST["signUp"])) { // 1. [UID̓̓`FbN if ...
true
5ceb1dcb2b14158b46f1b15a89c56ee2435f341f
PHP
jspkay/giuseppegalvagno
/src/php/gestisciPrenotazioni.php
UTF-8
3,911
2.875
3
[ "0BSD" ]
permissive
<?php function connect(){ $server = "localhost"; $user = "giuseppegalvagno"; $pswd = ""; $db = "my_giuseppegalvagno"; $c = new mysqli($server, $user, $pswd, $db); if($c->connect_error){ return null; die("Can't connect"); } return $c; } function trovaPrenotazione($id){ ...
true
c8ba38fc70db8877bd04a561e4d630c3d8ea780f
PHP
josecldjr/CRUD_CI
/application/models/people_model.php
UTF-8
1,462
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class people_model extends CI_Model { public function __construct(){ parent::__construct(); } public function list ($filters, $format = 'json'){ // construção da query $this->db->where('deleted = 0');// (apenas elementos que não f...
true
c99673eda48b5741b7d539b6ce4d0d7c35666c82
PHP
kavindasilva/is2006group
/admin/funs1.php
UTF-8
4,541
3.125
3
[]
no_license
<?php //this file has functions only /* delete student * delete teacher reset passwords * view students * view teachers */ require "../dbcon.php"; //update if(isset($_POST['update'])){ require_once 'funs3.php'; //update function contains here if($_POST['actor']=="ss") updateStd($_POST['sid']); elseif($_POS...
true
8e9865940d2c6be71feb2be52a2f6ec453fd8aac
PHP
texdc/Momento
/src/HandlerQueue.php
UTF-8
3,121
3.140625
3
[ "MIT" ]
permissive
<?php /** * HandlerQueue.php * * @copyright 2017 George D. Cooksey, III * @license http://www.opensource.org/licenses/mit-license.html MIT License */ namespace texdc\momento; use Countable; use IteratorAggregate; use SplPriorityQueue; use texdc\momento\exception\HandlerException; /** * A reusable, prioriti...
true
e1842310fc850c51c072f99e7cf73be35a3e90ab
PHP
Thasfeela/WPL-Lab
/Q7_viewitem.php
UTF-8
670
2.5625
3
[]
no_license
<html> <head></head> <body> <table> <tr> <th>Item code</th> <th>Item Name</th> <th>Item Type</th> <th>Available</th> <th>Expiary Date</th> </tr> <?php include("connection.php"); $query="select * from item"; $res=mysqli_query($con,$query); while($f=mysqli_fetch_array($res)) ...
true
eeda5992821c39ac8568629a3f86667e05143db4
PHP
National-Chung-Cheng-University/ecourse.ccu.edu.tw
/php/backup_grade/backup_grade.php
BIG5
11,464
2.515625
3
[]
no_license
<?php require 'fadmin.php'; ?> <html> <head> <title>Ƥ~צZ</title> <meta http-equiv="Content-Type" content="text/html; charset=big5"> </head> <body background = "/images/img/bg.gif"><center> <div><table> <tr> <td> <div> <font color=#000000>Ƥ~צZ!</font> </div> </td> </tr> </...
true
8d1971a8b5d8dfe181fa382e3876c31b11ce6c77
PHP
appDuoBao/duobao
/app/demoshop/Ewshop/Control/Model/GoodsDataModel.class.php
UTF-8
1,134
2.53125
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | Copyright (c) 2014 www@ewangtx.com All rights reserved. // +---------------------------------------------------------------------- // | author 一网天行_xiaochuan <www@ewangtx.com> // +-------------------------------------------------...
true
1ff64adbc6d76f36dcda38aa22b2342376784c49
PHP
bitweaver/upstall
/BitUpstall.php
UTF-8
4,539
2.8125
3
[]
no_license
<?php /** * $Header$ * $Id$ */ /** * Upstall class to illustrate best practices when creating a new bitweaver package that * builds on core bitweaver functionality, such as the Liberty CMS engine * * date created 12/12/2009 * @author walter <walterwoj@yahoo.com> * @version $Revision$ * @class BitUpstall */ class Bit...
true
796b3b073b67f0f213de75fb1b610fdcadb21e57
PHP
vacho/calculator
/src/Tests/CalculatorTestPhpUnit.php
UTF-8
724
2.515625
3
[]
no_license
<?php /** * @file * Test cases for Calculator Module. */ namespace Drupal\calculator\Tests; use Drupal\Tests\UnitTestCase; // /tests/src/MyClassTest.php /** * @ingroup MyExample * @group MyExample */ class CalculatorTestPhpUnit extends UnitTestCase { /** * {@inheritdoc} */ public static function g...
true
a4fbdddcb5089bef45e808410e09b2014239565c
PHP
AbidarYassine/e-commBackEnd
/app/Service/CommandService.php
UTF-8
266
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Service; interface CommandService { public function getAllCommands(); public function save($command); public function findById($id); public function deleteCommand($command); public function updateCommand($command); }
true
b9f9dd480952726b5a9cc24f0db477a20cef61f7
PHP
karenlin2207/cms
/app/Http/Controllers/MailController.php
UTF-8
815
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Validator; use Mail; class MailController extends Controller { public function send(Request $request){ $validator = Validator::make($request->all(), [ 'name' => 'required', 'contact_person' => 'required', 'contact_phone...
true
f5e90bafd037c31115bb9dced3e4aac2befccdfd
PHP
retroban/mvcphp
/modules/mvcphp/models/model_mvcphp.php
UTF-8
16,276
2.53125
3
[]
no_license
<?php /** * MVCPHP Framework * * @copyright Copyright (c) 2013, Alexey Novitskiy * @author Alexey Novitskiy * @link http://mvcphp.ru/ * */ class Model_Mvcphp extends Model { private $mvcphp_type; private $mvcphp_controller; private $mvcphp_action; private $mvcphp_file_m; private $mvcp...
true
b21a99d2e7b4b465e1638719837cede81cdbc645
PHP
jdomenechb/openapi-class-generator
/src/CodeGenerator/Nette/NetteAbstractSchemaCodeGenerator.php
UTF-8
1,296
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of the openapi-class-generator package. * * (c) Jordi Domènech Bonilla * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Jdomenechb\OpenApiClassGenerator\CodeGenerat...
true
1bd4760901e0ec7daea72847f3d1197facb01511
PHP
yaghobieh/Find-Me-project
/Includes/editStore.php
UTF-8
950
3.046875
3
[]
no_license
<?php function getItemName($itemID){ global $databaseConnection; $query = "SELECT name FROM items WHERE itemid = ?"; $statement = $databaseConnection->prepare($query); $statement->bind_param('d', $itemID); $statement->execute(); $statement->store_result(); $statement->bind_result($itemName); while ($s...
true
45a04aa52748cdf7d0b3631d417e3ee201becd39
PHP
zuchaoyang/php
/Control/Api/VistiorImpl/Vistior.class.php
UTF-8
1,231
2.578125
3
[]
no_license
<?php class Vistior{ //统计所有访客 public function total_count($client_account) { $wheresql = array( 'uid = ' . $client_account, 'timeline <= ' . time(), ); $mPersonVistior = ClsFactory::Create('Model.PersonVistior.mPersonVistior'); $vistior_list ...
true
972430f677c18c551e7261f5cafee9e7f35ec556
PHP
developers-of-athens/cloudwatch2influxdb
/getMetrics.php
UTF-8
4,056
2.546875
3
[ "Apache-2.0" ]
permissive
<?php if (!file_exists(__DIR__.'/vendor/autoload.php')) { echo "Error: composer autoload file not found. Run 'composer install'\n"; exit; } require_once __DIR__.'/vendor/autoload.php'; if (file_exists(__DIR__.'/awsCreds.php')) { include __DIR__.'/awsCreds.php'; } if (!$awsAccount) { echo "Error: \$a...
true
5454c32a1b759fb42fde05a259930f67e69d417c
PHP
sluangraj/CIT31300ex2
/index.php
UTF-8
1,048
2.703125
3
[]
no_license
<?php ini_set('display_errors',1); error_reporting(E_ALL); include_once('classes/users.class.php'); include_once('classes/registered_user.class.php'); include_once('classes/admin.class.php'); $registered = new Registered(); $admin = new Admin(); echo "User Level: $registered->user_level<br/>"; echo "Registered User I...
true
65810383c4c5d8a5421888c65c5f1220363f06d8
PHP
jamesAppello/php-mvc
/app/controllers/Users.php
UTF-8
7,403
2.890625
3
[]
no_license
<?php class Users extends Controller { //*view is part of the base controller public function __construct() { // load our model $this->userModel = $this->model('User'); // will check models folder for User.php } // register|signUp public function signUp() { ...
true
4903757b87f146b3b24a2aa4a4270d56510bd731
PHP
danielhookins/rifka
/app/Http/Controllers/CaseDetail/RujukanController.php
UTF-8
1,006
2.546875
3
[]
no_license
<?php namespace rifka\Http\Controllers\CaseDetail; use rifka\Http\Controllers\CaseDetail\CaseDetailController; use rifka\Http\Requests; use rifka\Rujukan; use Illuminate\Http\Request; use rifka\Library\InputUtils; use rifka\Library\ResourceUtils; class RujukanController extends CaseDetailController { /* |---------...
true
85a94609fcee4671ba75c5d4d40b75df0f27a6d8
PHP
stesie/phpstan-doctrine-checker
/src/Rules/FetchJoinCheckerRule.php
UTF-8
1,476
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace PHPStanDoctrineChecker\Rules; use PHPStan\Analyser\Scope; use PHPStan\Rules\Rule; use PHPStanDoctrineChecker\Type\QueryBuilderObjectType; use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; class FetchJoinCheckerRule implements Rule { /** * @return string Class...
true
069f2412c5e6488c2e8e30f5f9887ebf1185333c
PHP
petko-dimitrov/SoftUni
/PHP Web 09.2018/PHP Basics/16.InterfacesAndAbstraction-Exc/05.BorderControl/index.php
UTF-8
459
3
3
[]
no_license
<?php spl_autoload_register(); $creatures = []; $input = explode(' ', readline()); while ($input[0] !== 'End') { $creature = null; if (count($input) === 2) { $creatures[] = new Robot($input[0], $input[1]); } else { $creatures[] = new Citizen($input[0], intval($input[1]), $input[2]); } ...
true
660bc8d57bbb232c1352fd2591ce7902abbc69bc
PHP
erngkung01/Stusystem
/Home.php
UTF-8
7,667
2.703125
3
[]
no_license
<?php require_once('Connections/stusystem.php'); ?> <?php if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = "111,222,333,444"; $MM_donotCheckaccess = "false"; // *** Restrict Access To Page: Grant or deny access to this page function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { // ...
true
84eacc2fced80ed941fb2bf3b01899695e1b58a7
PHP
renatotn7/multinivel
/cgi-bin/system/libraries/VerificacaoBonusPl.php
UTF-8
5,718
2.65625
3
[]
no_license
<?php /** * Description of VerificacaoBonusPl * * @author Ronyldo12 */ class VerificacaoBonusPl { private $db; private $dia; private $distribuidor; public function __construct() { @header('Content-Type: text/html; charset=utf-8'); $this->db = get_instance()->db; } public ...
true
a1180c1d066865d7097fe38d6e4805eb2718f9fc
PHP
damejidlo/message-bus
/src/Middleware/GuardAgainstNestedHandlingMiddleware.php
UTF-8
952
2.78125
3
[ "BSD-3-Clause-Clear" ]
permissive
<?php declare(strict_types = 1); namespace Damejidlo\MessageBus\Middleware; use Damejidlo\MessageBus\IMessage; use Damejidlo\MessageBus\IMessageBusMiddleware; /** * Do not allow nested handling of messages. */ class GuardAgainstNestedHandlingMiddleware implements IMessageBusMiddleware { /** * @var IsCurrentl...
true
3ba97da78fdc46145c694cd7f03514995ed735fd
PHP
robkub/tc-tools
/bs/index.php
UTF-8
1,585
2.84375
3
[ "Apache-2.0" ]
permissive
<? require_once("lib/header.php"); ?> <?php $this_site = "index.php"; $runden = alle_runden(); if(isset($_GET["rundenID"])) { $rundenID = $_GET["rundenID"]; if($rundenID === "all") $head = "Allianzen aus allen Runden"; else $head = "Ausgew&auml;hlte Runde: ". runde_by_rundenid(intval($rundenID)); $allies = alli...
true
53ffe35b1f47f93fa1d2ed9ee6753297fc2b041b
PHP
locomotivemtl/charcoal-validator
/src/Rule.php
UTF-8
2,085
3.0625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Charcoal\Validator; /** * */ abstract class Rule implements RuleInterface { /** * Every validator can be used as a function. * * @param mixed $val The value to test / validate. * @return Result */ final public function __invoke($val): Result...
true
cc8d00ecc3a754f476b8034446c375c615278f3b
PHP
itcreator/custom-cmf
/Module/Data/src/Cmf/Data/Validator/Range.php
UTF-8
1,764
2.921875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of the Custom CMF. * * @link https://github.com/itcreator/custom-cmf for the canonical source repository * @copyright Copyright (c) 2011 Vital Leshchyk <vitalleshchyk@gmail.com> * @license https://github.com/itcreator/custom-cmf/blob/master/LICENSE */ namespace Cmf\Data\Valid...
true
d904f34c17a135090b0ff270bdaa91ef6332124f
PHP
lyub4ak/php-form-factory
/factory/SaverAbstract.php
UTF-8
796
3.390625
3
[]
no_license
<?php namespace app\factory; /** * Manages of data save in different storages. * * @package app\factory */ abstract class SaverAbstract { /** * Creates instance of storage. * * @return StorageInterface Instance of storage. */ abstract protected function getStorage(): StorageInterface; ...
true
dcc6cbfae2891a64d5fb0864a4cbe3e689294bff
PHP
mtasca/CurrencyConverter
/src/Domain/Model/Currency/CurrencyCollection.php
UTF-8
481
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CurrencyConverter\Domain\Model\Currency; use CurrencyConverter\Domain\Foundation\Entity\EntityCollection; use CurrencyConverter\Domain\Foundation\Entity\EntityInterface; class CurrencyCollection extends EntityCollection { public function addEntity(EntityInterface $entity)...
true
49c4593ad203641be58471f57b2ec2329cf5e49d
PHP
vvmax/model
/httpdocs/lib/data/model.php
UTF-8
864
2.71875
3
[]
no_license
<?php /** * Работа с таблицей моделей * * @author Maxim Vorobyev * @version 1.0 * @changed 2015.10.14 */ class Data_Model extends Data_Table { /** * Стандартный метод для создания объекта */ function __construct() { $this->tableName = 'model'; $this->arFields = array( 'ID' =>...
true
c56f37c98c2ffa44b8528ef664fa5d55ef457745
PHP
TJack5on/Senior-Project
/addTransaction.php
UTF-8
5,706
2.578125
3
[]
no_license
<!--Use the requre functions to use the session php code and the functions available in the included_functions php file. Verify the login so only users logged in may access the page--> <?php require_once("session.php"); require_once("included_functions.php"); verify_login(); $mysqli = db_connection(); ?> <!DOCTYP...
true
d9b85d8166c5b01970208c7e18abf88dc50585d3
PHP
mcdollano/PHP---MYSQL-Database
/edit.php
UTF-8
1,919
2.546875
3
[]
no_license
<?php function get_title(){ echo 'Edit Page'; } function display_content(){ require 'connection.php'; $id = $_GET['id']; $sql = "SELECT * FROM products WHERE id='$id'"; $result = mysqli_query($conn,$sql); while ($row = mysqli_fetch_assoc($result)) { extract($row); echo " <h4>EDIT ITEM</h4> ...
true
b8f8e425180f496ad49c68fb5aadcb990922bcbe
PHP
anabadi/practica-10
/index.php
UTF-8
207
2.765625
3
[]
no_license
<?php //comentarios /*comentarios multilineas*/ #comentarios echo "hola mundo php"; ?> <html> <head> <title>Practica10</title> </head> <body> <h1> Hola mundo html</h1> </body> </html>
true
ca4c8fa9b0f704e1491403c4824d2f10f828d086
PHP
forestLoop/Learning-EE101
/Web Version/application/models/Paper_info_model.php
UTF-8
5,080
2.75
3
[ "MIT" ]
permissive
<?php class Paper_info_model extends CI_Model{ public function __construct() { $this->load->database(); } public function get_number_papers_cited_by_this($paperID=NULL) { $queryForNum=$this->db->query( "SELECT count(*) AS num FROM paper_reference WHERE paperid='$paperID';"); return (int)($quer...
true
30224d4da3f0f1fb8ff9f312dfb866f92c134f30
PHP
myagoo/Hello-PHP
/controllers/posts.controller.php
UTF-8
2,155
2.78125
3
[]
no_license
<?php class posts extends controller { public $models = array('post', 'category', 'user'); public $helpers = array('session', 'html', 'form'); //Liste les 5 derniers articles public function index() { $data['posts'] = $this->post->getLast(); $this->set($data); } //Récupère un article public function view...
true
37f88a7fd8fee60ea1f1841be8345725b6e95bf3
PHP
rajwanraju/bitm-blog
/blog/app/classes/Database.php
UTF-8
386
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Web App Develop-PHP * Date: 1/7/2018 * Time: 12:41 PM */ namespace App\classes; class Database { //private $link; public function dbConnection(){ $hostName = "localhost"; $username ="root"; $password = ""; $dbName = "blog"; $link = mysqli_conne...
true
d3f86932d2f9964c329d79efc4e35338ce2db699
PHP
A2U8C/Laravel_Project-Car_Rental_System
/wtApp/app/Http/Controllers/PostsController.php
UTF-8
5,798
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Post; use DB; class PostsController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth',['except'=>['index']]); ...
true
0a1f84f194caa1b24ec5cb2b532f0d0b80261daf
PHP
gprsls/ND_Alphabank
/app/code/local/ND/Alphabank/Model/System/Config/Source/Language.php
UTF-8
851
2.515625
3
[]
no_license
<?php class ND_Alphabank_Model_System_Config_Source_Language { /** * Options getter * * @return array */ public function toOptionArray() { return array( array('value' => 'el', 'label'=>Mage::helper('alphabank')->__('Greek')), array('value' ...
true
2d4bb04138ed1eb7e05a28fd1d833725b91d61dd
PHP
zeeshan-kiyani/tailorMS
/application/models/tailor_model.php
UTF-8
776
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Tailor_model extends CI_Model{ public function __construct() { parent::__construct(); } public function tailor_all_data(){ $tailor_type = 1; $this->db->where('type',$tailor_type); $output=$this->db->get('users')->result(); return $output; ...
true
35afede28c13fa60fc90020b220e56e44892bbfb
PHP
ekarincodizm/backofficeAccount
/protected/models/RelateInvoiceTax.php
UTF-8
2,786
2.640625
3
[]
no_license
<?php /** * This is the model class for table "relate_invoice_tax". * * The followings are the available columns in table 'relate_invoice_tax': * @property integer $relate_invoice_taxId * @property integer $taxId * @property integer $invoiceId */ class RelateInvoiceTax extends CActiveRecord { /...
true
d210f02e230eddcc72a361a36617efabc38c8a70
PHP
communityus-llc/StarShip
/utils.php
UTF-8
218
2.84375
3
[ "MIT" ]
permissive
<?php function dashedCamelCase($string, $capitalizeFirstCharacter = false) { $str = str_replace('-', '-', ucwords($string, '-')); if (!$capitalizeFirstCharacter) { $str = lcfirst($str); } return $str; } ?>
true
cd97cf8b29a3603026dd0fd0fa875d0c2dc83942
PHP
Rammslise/Exercices-PHP-partie-5
/Exercice9/index.php
UTF-8
573
3.09375
3
[]
no_license
<!DOCTYPE html> <html lang="fr" dir="ltr"> <head> <meta charset="utf-8" /> <title>Les tableaux, exercice 9</title> </head> <!-- Avec le tableau de l'exercice 5, afficher toutes les valeurs de ce tableau. --> <body> <?php $county = array( '02' => 'Aisne', ...
true
817232369dfdc9ad0a9aee0688cb506461081c52
PHP
scholarslab/FedoraConnector
/models/FedoraConnectorServer.php
UTF-8
2,472
2.640625
3
[ "Apache-2.0" ]
permissive
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 cc=80; */ /** * @package omeka * @subpackage fedora-connector * @copyright 2012 Rector and Board of Visitors, University of Virginia * @license http://www.apache.org/licenses/LICENSE-2.0.html */ class FedoraConnectorServer extends Omek...
true
aed72336b52c8b87b267c6c6e7bbc1d0516223d0
PHP
ipf/HeyneRipper
/Classes/Ipf/HeyneRipper/Utility/CommandLineArgumentUtility.php
UTF-8
1,596
3.046875
3
[]
no_license
<?php namespace Ipf\HeyneRipper\Utility; /* * ************************************************************* * Copyright notice * * (c) 2013 Ingo Pfennigstorf <pfennigstorf@sub-goettingen.de> * Goettingen State Library * * All rights reserved * ************************************************************...
true
d14e66470537fe8c3e5c9b7741d192f449cbeb85
PHP
asraquem00110/Laravel-Simple-Inventory
/app/Models/Client/getClient.php
UTF-8
225
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Models\Client; use App\Models\Client\Client; Class getClient { public function __construct(){ } public function execute(int $idno): Client { $Client = Client::find($idno); return $Client; } }
true
b60ca2feff3b01cbf9d4a61e404ef09f042f2c4c
PHP
justinticktock/small-groups
/includes/class-capabilities.php
UTF-8
5,767
2.6875
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * SG_Capabilities class. */ class SG_Capabilities { /** * __construct function. * * @access public * @return void */ public function __construct( ) { // Add Meta Capability Handling add_filter( 'map_meta_cap', array...
true
fd8296dacb51ea759a6c4ea994bce390fbf63a9d
PHP
leeminkan/send-mail
/test/test-read-excel.php
UTF-8
947
2.546875
3
[]
no_license
<?php require_once './vendor/autoload.php'; use leeminkan\SendMail\SwiftMail; $inputFileName = './src/data/data.xlsx'; $Reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx(); $spreadSheet = $Reader->load($inputFileName); $excelSheet = $spreadSheet->getActiveSheet(); $spreadSheetAry = $excelSheet->toArray(); $sheetCo...
true
1143400c3019d47fc66ba5f9c0fa90d8578f84f9
PHP
imos/icfpc2017
/bin/library/battle.php
UTF-8
3,326
2.53125
3
[ "MIT" ]
permissive
<?php $keep_alive = 0; function KeepAlive($interval = 10) { global $battle, $keep_alive; if (time() + $interval * 0.3 < $keep_alive) { return; } $keep_alive = time() + $interval; $result = file_get_contents( "http://proxy.sx9.jp/api/keep_alive_battle.php?battle_id={$battle['battle_id']}&interval=...
true
5702651caa955ff25dc56357d6e2c69942fc6c20
PHP
cloudsthere/walker
/src/Foundation/DB.php
UTF-8
887
2.84375
3
[]
no_license
<?php namespace Walker\Foundation; class DB { private static $pdo; public static function connect() { if (is_null(self::$pdo)) { $dsn = 'mysql:dbname=' . \Walker\config('db_name') . ';host=' . \Walker\config('db_host') . ';port' . \Walker\config('db_port'); self::$pdo = new \PDO($dsn, \Walker\...
true
01ad413fa23162c2452471df6f86ea0139de1c70
PHP
rogsilva/DesignPatterns
/src/CODE/Form/Elements/AbstractElement.php
UTF-8
1,808
3.125
3
[]
no_license
<?php namespace CODE\Form\Elements; use CODE\Form\Elements\Interfaces\ElementsInterface; abstract class AbstractElement implements ElementsInterface { protected $attributes; protected $type; protected $name; protected $value; protected $label; public function __construct($type, $name, $val...
true
13df5898b4d4d027e39bc51b4f5c4ff85309728a
PHP
422050125/test
/admin.test.com/application/module/UserModule.php
UTF-8
1,552
2.6875
3
[]
no_license
<?php /** * User: fangjinwei * Date: 2017/06/03 16:56 * Desc: 用户模型 */ namespace application\module; use db\module; class UserModule extends Module { protected $table = 'sys_user'; public function __construct() { parent::__construct(); } //获取用户及用户组的数据 public function getUser(){ return $this->table('sys_...
true
db0cc746eec3ad978bc6f3edfc1a658206e35d37
PHP
irtyamine/functional-php
/src/Builder/NodeBuilder.php
UTF-8
839
2.796875
3
[]
no_license
<?php namespace FunctionalPhp\Builder; use FunctionalPhp\ClosureFactory\ClosureFactoryInterface; use FunctionalPhp\Graph\Graph; class NodeBuilder implements NodeBuilderInterface { private Graph $graph; private ClosureFactoryInterface $closureFactory; private \Closure $closure; public function __cons...
true
9dfd62539642c787d6019a2bc4b4ed3bfb82ae0e
PHP
apleroy/p2.visualedgedev.com
/controllers/c_users.php
UTF-8
7,534
2.71875
3
[]
no_license
<?php class users_controller extends base_controller { public function __construct() { parent::__construct(); } public function index() { } public function signup($signup_error = NULL) { $this->template->content = View::instance('v_index_index'); $this->template->content->signup_error = $signup_...
true
b4892224bcb20c9190dd674ef461cfc7353bcfca
PHP
GuardsmanPanda/CodeWars
/php/7kyu/Alternate capitalization.php
UTF-8
285
2.59375
3
[ "MIT" ]
permissive
<?php function capitalize($s) { return [implode("",array_map(function ($c) use (&$i) {return $i++ % 2 == 0 ? strtoupper($c) : strtolower($c);},str_split($s))),implode("",array_map(function ($c) use (&$j) {return $j++ % 2 == 1 ? strtoupper($c) : strtolower($c);},str_split($s)))]; }
true
182e2bd1cf77cfe7d9c3648423b22614a76c2052
PHP
Abdelhadi92/yii2-toast
/ToastBlock.php
UTF-8
1,915
3.046875
3
[ "MIT" ]
permissive
<?php namespace abushamleh\toast; use Yii; use yii\base\Widget; use yii\helpers\ArrayHelper; /** * Alert widget renders a message from session flash. All flash messages are displayed * in the sequence they were assigned using setFlash. You can set message as following: * * ```php * Yii::$app->session->setFlash('...
true
20cf3f020e80f11647921a2a45fb630b0c29f951
PHP
douglashall/Tygra
/app/modules/people/PeopleAPIModule.php
UTF-8
7,750
2.578125
3
[ "Apache-2.0", "MIT" ]
permissive
<?php Kurogo::includePackage('People'); class PeopleAPIModule extends APIModule { protected $id = 'people'; protected $vmin = 1; protected $vmax = 1; private $fieldConfig; protected $contactGroups = array(); protected function getContactGroup($group) { if (!$this->contactGroups) {...
true
95e9293bdcbee8af78b705d0dca93fc0f654124c
PHP
MarioCarlosChita/Sistema-de-Automoveis-
/AllClasses/Carro.php
UTF-8
1,988
3.15625
3
[]
no_license
<?php class Carro{ private $id_Carro ; private $Nome_Carro; private $Image_Carro; private $Marca_Carro; private $Descricao_Carro; private $Preco_Carro; private $Cor_Carro; private $Quantidade_Carro; private $Data_Carro; public function...
true
6ee48358aa1c3fef5af4c54a1dbba62c5b059596
PHP
metashock/Jm_Console
/examples/Jm/Console/colors.php
UTF-8
1,040
2.578125
3
[]
no_license
<?php require_once 'Jm/Autoloader.php'; $fcolors = array ( Jm_Console_TextStyle::BLACK, Jm_Console_TextStyle::RED, Jm_Console_TextStyle::GREEN, Jm_Console_TextStyle::YELLOW, Jm_Console_TextStyle::BLUE, Jm_Console_TextStyle::PURPLE, Jm_Console_TextStyle::CYAN, Jm_Console_TextStyle::WHIT...
true
a1d4e95508e78b8c0345d5e9417534e8786d0b7d
PHP
muhammetakkus/TestCIProject
/patterns/Strategy/PaymentInterface.php
UTF-8
237
2.53125
3
[]
no_license
<?php namespace Pattern\Strategy; // bu arada interface methodları overwrite edilmek zorunda olduğu için public olmak zorunda // + iki interface birbirini extends alabilir interface PaymentInterface { public function payment(); }
true
31e0427dfbad1156ed5b81e9f051c1a1f9e4454e
PHP
jsacksick/commerce_license_billing
/plugins/usage_group/CommerceLicenseBillingCounterUsageGroup.class.php
UTF-8
2,191
2.9375
3
[]
no_license
<?php /** * Counter usage group. * * Aggregates and charges the total for each plan in a billing cycle. */ class CommerceLicenseBillingCounterUsageGroup extends CommerceLicenseBillingUsageGroupBase { /** * Implements CommerceLicenseBillingUsageGroupInterface::currentUsage(). */ public function currentUs...
true
409dfc13985bef47a2f9b74a3f2ed67bfba917ba
PHP
picoss/mangopay2-php-sdk
/tests/cases/idempotency.php
UTF-8
1,781
2.546875
3
[ "MIT" ]
permissive
<?php namespace MangoPay\Tests; require_once 'base.php'; /** * Tests methods for idempotency support * See https://docs.mangopay.com/api-references/idempotency-support/ */ class Idempotency extends Base { // if post request called twice with no idempotency key, act independently function test_NoIdempotencyKe...
true
db6ae5a5760fa45f1dbc118df54efda43f894ccb
PHP
Razerting/phpCours
/core/Helpers.class.php
UTF-8
725
3.03125
3
[]
no_license
<?php class Helpers{ //Vérification en amont de l'existance d'un fichier et dossier de log public static function createLogExist(){ if (is_dir('log')){ if (file_exists('log/log.txt')){ return true; }else { $g = fopen("log/log.txt", "x+"); } }else { mkdir("log"); $f = fopen("log/log.t...
true
bb9130ab72961a8810a7fc64cdea70ba2970a90b
PHP
annsemm/wordpress2
/thrive-visual-editor/thrive-dashboard/inc/functions.php
UTF-8
8,733
2.625
3
[]
no_license
<?php if (!function_exists('thrive_dashboard_url')) { /** * This function returns the URL to thrive dashboard * @return string URL with / appended */ function thrive_dashboard_url() { return plugins_url() . '/thrive-visual-editor//thrive-dashboard/'; } } if (!function_exists('th...
true
bceec81678e1a061f1906818b86df761646633fd
PHP
zjjzjw/web_fangquan
/fangquan/app-hulk/app/Src/Forms/Information/InformationSearchForm.php
UTF-8
2,413
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Hulk\Src\Forms\Information; use App\Src\Information\Domain\Model\InformationSpecification; use App\Hulk\Src\Forms\Form; use Illuminate\Http\Exceptions\HttpResponseException; use Illuminate\Support\MessageBag; class InformationSearchForm extends Form { /** * @var InformationSpecification ...
true
4fd2e4d80b14e084fb3aaaeddb41b05a8493ec09
PHP
cdy07341/leetcode
/23.合并k个排序链表.php
UTF-8
1,601
3.484375
3
[]
no_license
/** * Definition for a singly-linked list. * class ListNode { * public $val = 0; * public $next = null; * function __construct($val) { $this->val = $val; } * } */ class Solution { /** * @param ListNode[] $lists * @return ListNode */ function mergeKLists($lists) { if (e...
true