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
b3348c652c6617df68899f688882797633bff33d
PHP
TonikX/ITMO_FSPO_DataBases_2020-2021
/students/y2334/Panaiot_Roman/lections/Laba6/queries.php
UTF-8
6,588
2.65625
3
[ "MIT" ]
permissive
<!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>Запросы</title> </head> <body> <?php require_once "config.php"; try { $d...
true
1c77b7838d10e1fe02e0851de16d872a30708f83
PHP
louise-decombe/ToDoList
/traitement/todolist_process.php
UTF-8
2,755
2.765625
3
[]
no_license
<?php $date = new datetime('now', new DateTimeZone('Europe/Paris')); //on inclut le fichier de config qui charge les classes require "../class/config.php"; // si on souhaite ajouter une tâche à la todolist if (isset($_GET['ajouter'])) { if ($_POST["nom_tache"]) { $id_utilisateur = $_SESSION['id']; ...
true
f40dcb354134d89962f3819455935834d863b279
PHP
fademar/barmiton
/app/Controller/OutilsController.php
UTF-8
542
2.515625
3
[]
no_license
<?php namespace Controller; use \W\Controller\Controller; use Model\Outils\OutilsModel; class OutilsController extends Controller { public function showOutils() { $outilsdb = new OutilsModel(); $outils = $outilsdb->getOutils(); $this->show('outils/outils', ['outils' => $outils]); } public functio...
true
20a90994d3c058e78af7dda41a5e16d367490982
PHP
Ervin11/SymfonyApiRest
/src/DataFixtures/AppFixtures.php
UTF-8
1,732
2.703125
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Category; use App\Entity\Movie; use App\Entity\Actor; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; use Faker\Factory; class AppFixtures extends Fixture { public function load(ObjectManager $manager) { $faker = Fact...
true
c51b074d3ffe47a809a153562b7ba85b2cb4461c
PHP
comptech-soft/crv-reproplant
/app/Models/Animals/Characteristics/Traits/Actions.php
UTF-8
2,110
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Animals\Characteristics\Traits; use App\Models\Animals\Parameters\Parameter; use Sentinel; use Exception; trait Actions { public static function saveCharacteristic($animal_id, $category, $caption, $value, $calculation_base, $percent = NULL) { $parameter = Parameter::where('...
true
9280902d4ae35e63f6854e6d48a00244bb518ef0
PHP
floraLam/TopViewPHP
/demain/Article.php
UTF-8
2,666
3.390625
3
[]
no_license
<? /* * 定义了 Content接口. * 和子类 Article,Book, Group 公有属性: (public)title 文章标题/书名/讨论组名 userId 文章作者编号/推荐人编号/讨论组长 created 创建时间 state 状态 image 题图 summary 摘要 contents 内容 contentId 文章编号 */ //Content接口,定义了三个抽象方法. interface Content{ /*public function getTitle(...
true
c884707c63c1f5ff8e4cc7843acba767d229d9f2
PHP
zhengb302/LumengPHP
/src/LumengPHP/Console/Commands/Job/Listen.php
UTF-8
7,307
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace LumengPHP\Console\Commands\Job; use LumengPHP\Components\Queue\JobQueueInterface; use LumengPHP\Kernel\AppContextInterface; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; /** * 任务监听 * * 要求安装并启用了<b>PCNTL</b>扩展 * * CRON定时调用(每分钟)任务监听入口,根据任务队列配置,会为每一个任务队列开启一个工作进程(worker), * 一个队列对应一个工作进程,多个任...
true
36d28e60dab6c388b8803a6de85f126771e6e2cb
PHP
cubeupload/image-processor
/src/CubeUpload/ImageProcessor/ImageProcessor.php
UTF-8
2,466
3.109375
3
[]
no_license
<?php namespace CubeUpload\ImageProcessor; use \SplFileInfo; class ImageProcessor { private $fileInfo; private $handler; public static $handlers = [ 'jpg' => 'CubeUpload\ImageProcessor\Handlers\JpgImageHandler', 'jpeg' => 'CubeUpload\ImageProcessor\Handl...
true
eb3624be4be6c3c3fea2501545834ee5001f2a09
PHP
Kanti/local-https
/src/Helper/DataJsonReader.php
UTF-8
1,758
2.984375
3
[]
no_license
<?php declare(strict_types=1); namespace Kanti\LetsencryptClient\Helper; use Kanti\LetsencryptClient\Dto\Domain; use Kanti\LetsencryptClient\Dto\DomainList; use Symfony\Component\Console\Output\OutputInterface; use function Safe\file_get_contents; use function Safe\json_decode; final class DataJsonReader { pub...
true
d1084dc645333c278799b29c0c9bb459f1a25048
PHP
aelnemr/Full-Stack-Tutorials
/session10/session1/1_echo.php
UTF-8
531
3.15625
3
[]
no_license
<?php ############################################# # PHP Syntax Overview # ############################################# # Single-line comment style 1 # This is a comment, and # This is the second line of the comment // Single-line comment style 2 /* This is a comment with multil...
true
c6fe750e40daa74aa4b0e5ed7066718215e76537
PHP
erdosenn/codeception_project
/tests/acceptance/RegistrationCest.php
UTF-8
1,901
2.625
3
[]
no_license
<?php namespace acceptance; use AcceptanceTester; use Exception; use Faker\Factory; use Mapper\Errors; use Page\AccountPage; use Page\MainPage; use Page\RegistrationPage as Reg; class RegistrationCest { /** * @var Reg */ private $registrationPage; /** * @var string */ private $e...
true
2117bf9ac2368fb81f0c8aa0456b0a60c9a39164
PHP
rooslunn/jubilant-dcom
/app/Http/Controllers/RegisterUser.php
UTF-8
999
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * Created by PhpStorm. * User: russ * Date: 23.08.17 * Time: 14:40 */ namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use App\Http\Response\{ Success as SuccessResponse, Fail as FailResponse }; class RegisterUser extends Controller { ...
true
733c2710e37d8d955f4596b3cf4fd26ce226ed32
PHP
timostrating/Snowmans_world_forum_website
/news.php
UTF-8
802
2.71875
3
[]
no_license
<?php include 'templates/header.php'; ?> <?php include 'connect.php'; session_start(); if(@$_SESSION["username"]) { include 'navbar.php'; echo "<center> <h1> News </h1>"; ?> <h4> we take your security seriously </h4> <p> for example:</p> <ul> <li> we have strong password rules </li> ...
true
1672fb36de4ac10021e8e36240e6e12039459192
PHP
freepascal/novblog
/app/Http/Controllers/EntryController.php
UTF-8
3,683
2.546875
3
[]
no_license
<?php namespace Novblog\Http\Controllers; use Illuminate\Http\Request; use Novblog\Entry; use Novblog\Tag; use Validator; use Log; class EntryController extends AuthController { public function index() { return response()->json(Entry::with(['author', 'tags'])->orderBy('id', 'desc')->paginate(5)); ...
true
5e99203cc6539f5e9d5c94984553f400fecf59ef
PHP
boekenier/boekenier
/config/changeUser.php
UTF-8
1,200
2.625
3
[]
no_license
<?php require_once('db.php'); $sql = "SELECT * FROM users WHERE id = '$_POST[id]'"; $result = $conn->query($sql); $row = $result->fetch_assoc(); $pass = hash('sha256', $_POST['oldPasswd']); switch ($_POST['type']) { case 'password': if($pass == $row['password']){ if($_POST['pass'] == $_POST['pass2']...
true
4c2d00c92ed27e28dc81d741d13cda42ae8015f0
PHP
zerofault-cn/zerofault
/bokee/CMS/smarttemplate/smarttemplate_extensions/smarttemplate_extension_config.php
UTF-8
430
2.53125
3
[]
no_license
<?php /** * SmartTemplate Extension config * Print Content of Configuration Parameters * * Usage Example: * Content: $_CONFIG['webmaster'] = 'philipp@criegern.com'; * Template: Please Contact Webmaster: {config:"webmaster"} * Result: Please Contact Webmaster: philipp@criegern.com * * @author ...
true
8e570699dbe3d56ff462595915f9061178c3f83a
PHP
RaptorII/prommu.loc
/protected/models/MenuTree.php
UTF-8
3,065
2.703125
3
[]
no_license
<?php /** * This is the model class for table "menu_tree". * * The followings are the available columns in table 'menu_tree': * @property integer $id * @property string $module * @property integer $menu_id * @property integer $parent_id * @property integer $page_id * @property string $link * @property intege...
true
eca036e97e5dcf4e16656751d5c74b47212b768e
PHP
252114997/ourshow
/app/controllers/login/LoginController.php
UTF-8
1,904
2.53125
3
[]
no_license
<?php class LoginController extends BaseController { public function login() { if (Request::isMethod('get')) { $company = DB::table('tb_global_settings') ->where('name', 'company') ->first(); $product = DB::table('tb_product') ->join('tb_global_settings', function($join) { $joi...
true
586c79ce7d0556ae2dd388072a4115c9d6922721
PHP
TechAle/scuola
/2020-2021/informatica/dicembre/03)_EsamiEmatici/index.php
UTF-8
2,183
2.625
3
[]
no_license
<?php $elencoesami = array(); $f = fopen("esami_ematici.txt", 'r') or die("errore apertura esami ematici"); while(! feof($f)) { $values = explode("|", fgets($f)); $elencoesami[$values[0]] = array(intval($values[1]), intval($values[2])); } fclose($f); $codiciFiscali = array(); $files = scandir("./esami/"); forea...
true
08f6b02f253d379495adc86f29a638dff1f8132c
PHP
Gap1512/ecommerce
/user-validation.php
UTF-8
1,357
2.6875
3
[]
no_license
<?php session_start(); function validadeUser($adminOnly=FALSE){ if(!isset($_SESSION['admin'])){ echo 'You cannot access this without <a href="/ecommerce/login.php">login</a><br>'; die(); } else { if(!$_SESSION['admin'] and $adminOnly){ echo 'You do not have permission to a...
true
c28770767e2a5da8cf525d171f93a25d0907434b
PHP
dev-nstecnologia/NSNFePHPLib
/v4_00/src/ICMS60.php
UTF-8
1,465
2.765625
3
[]
no_license
<?php namespace br\ns\newssystems\nfe\struct; class ICMS60 { public $orig; public $CST; public $vBCSTRet; public $pST; public $vICMSSTRet; public $vBCFCPSTRet; public $pFCPSTRet; public $vFCPSTRet; function getOrig() { return $this->orig; } ...
true
0a6ee02fb277fb7c9d3b173f6bff1849c2f6a662
PHP
ubicompgithub/Rehabdiary_web
/test/TestResult2.php
UTF-8
4,870
2.625
3
[]
no_license
<?php // Update old data or Insert new data and file. $uid = $_POST['uid']; $result=$_POST['data'][2]; $deviceId=$_POST['data'][1]; $cassetteId=$_POST['data'][3]; $timestamp = $_POST['data'][0]; $isPrime = $_POST['data'][4]; $isFilled= $_POST['data'][5]; $score = $_POST['data'][6]; $fileNum = $_POST['data'][8];...
true
072a8dfee2cb41d1165ee190ac470c3d66912da5
PHP
axrs/Knowledge-Management
/includes/PDOX.class.php
UTF-8
4,683
3.3125
3
[]
no_license
<?php /** * PDOX Class * Author: Alexander Scott * Date: April 2012 * Revision: * 20120409 - Initial Release */ class PDOX extends PDO { private $userTableSQL = "CREATE TABLE `user` (userID INTEGER PRIMARY KEY AUTOINCREMENT, userName TEXT NOT NULL UNIQUE, userFirstName TEXT NOT NULL, userSurname TEX...
true
e66b4908add562b69117c986786e2db58f3ff9f8
PHP
fozeutakoudjou/patate
/core/generator/html/Command.php
UTF-8
2,276
2.734375
3
[]
no_license
<?php namespace core\generator\html; abstract class Command extends Element{ protected $customContent; protected $showHide; protected $targetToShow; protected $targetToHide; protected $confirmText; protected $confirm; protected $autoConfirm; protected $ajaxEnabled = false; public function __construct($label,...
true
7577c05a50161167807277d815720f551e3a14c3
PHP
aptyp88/mvc-project
/controllers/reviewsController.php
UTF-8
1,106
2.515625
3
[]
no_license
<?php require_once 'models/reviews.php'; class ReviewsController extends Controller { public function __construct() { } public function index() { } public function reviews() { $reviewsMethod = new Reviews(); $reviews = $reviewsMethod -> allReviews(); ...
true
46fdca27c08a65e0ab8fe292dc403fc961006307
PHP
mazux/Slim-ETL
/tests/Loaders/LoaderExceptionTest.php
UTF-8
941
2.625
3
[]
no_license
<?php namespace Tests\Loaders; use ETL\Models\Loader; use Tests\TestCase; class LoaderExceptionTest extends TestCase { protected $data = []; protected $headingFields = []; protected $Loader; public function setUp() { $this->data = [ [1, 'PHP Developer', 'Mazen Kenjrawi'], ...
true
c9d52c4ccfff33291d71d0282f84773d7cfa5485
PHP
viewbrasil/teste
/html/webhook.php
UTF-8
361
2.78125
3
[]
no_license
<?php try { $output = shell_exec("cd /var/www; git pull"); var_dump($output); } catch (Exception $e) { echo 'Exceção capturada: ', $e->getMessage(), "\n"; } /*echo "<pre>$output</pre>"; die("...
true
80439af1be6f16e8f2c7f572001b473856c5c9ac
PHP
MillersvilleCS/DockingAtHome
/public_html/src/php/request_types/next_molecule.php
UTF-8
7,352
2.8125
3
[]
no_license
<?php /* Example Request: * <client_request> * <userid>15</userid> * <request_type>next_molecule</request_type> * <wu_name>lg1c1_345</wu_name> * <pdb_name>first_name.pdb</pdb_name> * <answer>2</answer> * <time>100<time> <!-- in ms --> * </client_request> * * Example response: * <serv...
true
1f55694676a8798912973f84ac68903aea48a04b
PHP
AlyseeGugler/TDD-Exercices
/Chapter7/Franc.php
UTF-8
250
2.859375
3
[]
no_license
<?php namespace App\Chapter7; /** * Author: algugler * Date de création: 17.09.2021 * Description: **/ class Franc extends Money { public function times(int $multiplier) :Franc{ return new Franc($this->amount * $multiplier); } }
true
05d525e3ffca84301dc97f7df1fb61ebf4951de2
PHP
Chipster2018/QuizMaster
/display/answer.php
UTF-8
1,695
2.984375
3
[]
no_license
<?php // Make sure we have have booted if(!defined("QM_BOOT")) { require_once("boot.php"); } // get the quizID $quizID = filter_input(INPUT_POST,"quizID"); // if we have data if(isset($_POST["answer"])) { // first, get the answers $answers = $_POST["answer"]; } else { // we don't have data to work...
true
ec528fafeb0ca922d102b3743fba6cb4fae40473
PHP
budougumi0617/php-go
/src/PhpGo/Token/FuncType.php
UTF-8
181
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PhpGo\Token; final class FuncType extends TokenType { public function __construct() { $this->type = self::T_FUNC; } }
true
1ab1a9321b9f62178b32adb79330c2d34eb9d0da
PHP
tuttemob/TutteMob
/module/Application/src/Api/Imagem/BrImageRed.php
UTF-8
3,591
3.171875
3
[]
no_license
<?php namespace Application\Api\Imagem; /** * Redimensionamento de Imagem */ class BrImageRed { protected $imagem; // imagem atual protected $newImagem; // nova imagem a ser criada protected $alvoNome; // Nome do Alvo protected $alvoTamanho; // Tamanho em pixels do Alvo protected $x_Atu...
true
6d92b07a78c362c5052981ec2ee5cc89f4b8fd16
PHP
fadhiloffical/Online-Library
/book_index.php
UTF-8
1,967
2.734375
3
[]
no_license
<!DOCTYPE html> <?php require_once('connection.php'); ?> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Book Details</title> <link rel="stylesheet" type="text/css" href="loginstyle.css"> <link href="https://fonts.googleapis.com/css?family=Raleway&display=swap" rel="stylesheet">...
true
ca127b1fa4e75dc1dcec8af0f84a0fcb076d1a80
PHP
antonovgit/cabinet
/controllers/IndexController.php
UTF-8
3,244
3.046875
3
[]
no_license
<?php //В IndexController мы определим indexAction() метод, в котором запустим метод класса View — render(). Этот метод отрисовывает html в браузер, принимая два параметра — шаблон для отрисовки и массив с динамически данными страницы — заголовок страницы, сообщения и прочее. // Отслеживает действия на главной страниц...
true
5de1b0a3f51c389ecaf3649dc31092628bcaa2e5
PHP
Aarya03/Career_Crawler
/AndroidMysqlPHP/Main.php
UTF-8
669
3.125
3
[]
no_license
<?php require "conn.php"; $stmt = $conn->prepare("SELECT id,name,home_page,type FROM records;"); if(mysqli_connect_errno()) die('Unable to connect to database '.mysqli_connect_error()); //executing the query $stmt->execute(); //binding results to the query $stmt->bind_result($id, $name, $home_pag...
true
fdaf7c5b8ca590f3a54fd9c281cb46fdd7ee2d76
PHP
richardghirst/RPi_Cam_Web_Interface
/www/pipan.php
UTF-8
4,679
2.6875
3
[ "MIT" ]
permissive
<?php define('BASE_DIR', dirname(__FILE__)); define('SERVO_CMD', '/dev/servoblaster'); define('SERVO_DATA', 'servo_on'); // // pipansettings // $min_pan = 50; $max_pan = 250; $min_tilt = 80; $max_tilt = 220; // // servo default settings // $servoData = array( 'x' => 165,...
true
1d2608942796edaf124bb7ca9ae3c68cb8531a16
PHP
webignition/basil-worker-manager
/src/Services/MachineRequestFactory.php
UTF-8
2,161
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Entity\Machine; use App\Message\CheckMachineIsActive; use App\Message\CreateMachine; use App\Message\DeleteMachine; use App\Message\FindMachine; use App\Message\GetMachine; use App\Message\MachineRequestInterface; class MachineRequestFactory { public function createFindThenC...
true
dffe372c87361c821d09fdf31b5faad023c5237d
PHP
thomadeus/graphical-image-password-authenticator
/graphical_pass/create-password.php
UTF-8
7,886
2.578125
3
[]
no_license
<?php include 'common.php'; include 'db_controller.php'; session_start(); $error=''; if(isset($_GET['err'])){ $error="You didn't choose enough images"; //$error = $_GET['err']; } if($error == 1){ } $foodnames = file_get_contents("food_names.txt"); $animalnames = fil...
true
1c2a2f0708cbf3f7409b8e0d1eb8b14807f37e5b
PHP
Adomas202/nfq_php2
/src/BookingManager.php
UTF-8
285
2.671875
3
[]
no_license
<?php namespace Nfq\Akademija; class BookingManager { public static function bookRoom(Room $room, Reservation $reservation) { $room->addReservation($reservation); echo $room . "room successfully booked for " . $reservation->getGuest() . $reservation; } }
true
7b5bd265f623799b75fe5e97b72dc24293ed6634
PHP
uberkie/netdevicelib
/tests/Unit/Auth/SnmpCredentialsTest.php
UTF-8
2,349
2.59375
3
[ "MIT" ]
permissive
<?php /** * NetDeviceLib Tests <https://github.com/pronique/netdevicelib/wiki/Testing> * Copyright (c) PRONIQUE Software (http://pronique.com) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyrig...
true
6eb694cfa239a74af0460d41828583430cec7ba2
PHP
Michelle-A/charm-project
/public/pages/pro/pro_editform.php
UTF-8
807
2.59375
3
[]
no_license
<?php //** EDIT BUSINESS NAME ** if (isset($_POST['edit_businessname'])) { //get input values from registration form and assign them to local variables $edit_businessname = ($_POST['edit_businessname']); $output = $edit_businessname; $select_query_name = "SELECT * FROM businesses WHERE businesses_id ...
true
7336342dcc22860ec71492b789e06b23369dd590
PHP
almazmumi/Patient-Appointment-Management-System
/website/assets/php/addNewClinic.php
UTF-8
1,799
2.515625
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', 1); require_once('index.php'); $clinicman_ID=$website=$location=$services=$email=$clinic_profile=""; $status_ID=13; if(isset($_REQUEST['clinic_profile']) && isset($_REQUEST['services']) && isset($_REQUEST['location']) && isset($_REQUE...
true
67866edc589569ec6092ca6b7cee868f4988afb5
PHP
fmagnan/pirates
/src/Ethmael/Domain/Player.php
UTF-8
311
3.046875
3
[]
no_license
<?php namespace Ethmael\Domain; class Player { protected $name; public function __construct($name='John Doe') { $this->rename($name); } public function rename($name) { $this->name = $name; } public function showName() { return $this->name; } }
true
f0dff55c470e0ce9896c15ea709a4131c1edf0f4
PHP
csmith/Nagios-Status
/FileParser.php
UTF-8
931
3.296875
3
[]
no_license
<?PHP abstract class FileParser { protected abstract function parse_line($line); protected function parse_blockname($block) { return $block; } protected function analyse() {} public function __construct($file) { $contents = file($file); $block = ''; $lines = array(); foreach ($contents as $lin...
true
26ab24f6a294fd496bc279af95b5271ea38c212d
PHP
hanna-zahorodnia/791217-yeticave
/login.php
UTF-8
2,170
2.515625
3
[]
no_license
<?php require_once('init.php'); require_once('functions.php'); require_once 'mysql_helper.php'; session_start(); $sql_category = 'SELECT * FROM categories;'; $categories = getData($con, $sql_category); if (!$con) { $error = mysqli_connect_error(); $page_content = "<p>Ошибка подключения: " . $error . "</p>"; ...
true
5a69c1994ba25bbc95653c0d92a98702ce4d25a3
PHP
amiamiyamamoto/MyFramework
/code/vendor/BaseController.php
UTF-8
2,444
3.375
3
[]
no_license
<?php abstract class BaseController { //描画するhtmlを格納するプロパティ private $html = ''; private $statusCode = '200'; //route.phpからコントローラにアクセスするための抽象メソッド abstract protected function action(); /** * templateを取得するメソッド * * @param $fileName string テンプレートのファイル名 * @return string */ ...
true
f449a62caed0e3f53d797c5cacb1a77b736499b6
PHP
azjezz/psl
/tests/benchmark/Type/IntTypeBench.php
UTF-8
1,818
2.578125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Psl\Tests\Benchmark\Type; use PhpBench\Attributes\Groups; use Psl\Tests\Benchmark\Type\Asset\ExplicitStringableObject; use Psl\Tests\Benchmark\Type\Asset\ImplicitStringableObject; use Psl\Type; /** * @extends GenericTypeBench<Type\TypeInterface<int>> */ #[Groups(['type'])]...
true
16727a35c011a061f32d8f18168d20474be28835
PHP
samuelbond/WEBBudgetApp
/controller/TransactionHelper.php
UTF-8
1,118
2.953125
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: samuel * Date: 08/12/14 * Time: 17:26 */ namespace controller; trait TransactionHelper { public function getCurrencyCode($code) { if(strtoupper($code) === "GBP") { $code = "<span class='icon-gbp'></span>"; } elseif(str...
true
6486c720ed88f03ac44333e9256abaaebb235e79
PHP
617203748/scorpion_v1
/scorpion/system/include/IdGenerate.class.php
UTF-8
3,412
3.125
3
[]
no_license
<?php /*** * 没有数据中心 * 用法: * header("Content-Type: text/html; charset=utf-8"); * ini_set('memory_limit','3072M'); // 临时设置最大内存占用为3G * set_time_limit(0); // 设置脚本最大执行时间 为0 永不过期 * * require 'FileLock.class.php'; * 加锁 是为了防止并发的时候产生 重复的 id * $lock = FileLock::getInstance(); * $lock->lock(); * * $work = new Id...
true
b67e5ed786b2108ead8e6837708eea63972617d1
PHP
mdratanhossein/vue-laravel-ketodietstudio
/database/factories/RecipeFactory.php
UTF-8
937
2.671875
3
[]
no_license
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Recipe; $faker = \Faker\Factory::create(); $faker->addProvider(new \FakerRestaurant\Provider\en_US\Restaurant($faker)); $factory->define(Recipe::class, function () use ($faker) { $prepare_options = [1, 5, 10, 20, 30, 31, 60, 61, 90, 91, 12...
true
9fbe75d53ded6c01c0cbb56d48861d91720ca5a7
PHP
copernicoalavista84/iapbasel
/functions.php
UTF-8
9,882
2.796875
3
[]
no_license
<?php /* * Random key generate for Registration * @param mixed What page to login * @access public */ function str_rand($length = 8, $output = 'alphanum') { // Possible seeds $outputs['alpha'] = 'abcdefghijklmnopqrstuvwqyz'; $outputs['numeric'] = '0123456789'; $outputs['alphanum'] = 'abcdefghijklmnopq...
true
be97df9a2dabf61e5cbfb54187c4eaa28abd85e5
PHP
fabiojaniolima/WebUpload
/app/Helpers/Converter.php
UTF-8
746
3.515625
4
[ "MIT" ]
permissive
<?php namespace App\Helpers; class Converter { /** * Converte um valor numérico em uma capacidade "legível" * * @param float|int $valor * @return string */ public static function bytes($valor) { $capacidade = (float) $valor; if ($capacidade >= 1000000000)...
true
df8986abe2048b76a9a7d17818614b0ecd05202f
PHP
windywany/SQLParser
/tests/AllTest.php
UTF-8
6,061
2.5625
3
[ "MIT" ]
permissive
<?php use SQLParser\Stmt\Expr; use SQL\Writer; class AllTest extends PHPUnit_Framework_TestCase { public static function provider() { $data = include __DIR__ . '/tests.php'; $args = []; $parser = new SQLParser; foreach ($data as $sql => $next) { $args[] = [$parser, ...
true
d7f4ab3e04dae5b6bb0195d5ec0496a81028b0eb
PHP
naylonkessler/eventy-proto
/Plugins/Products/Listeners/UI.php
UTF-8
2,964
2.828125
3
[]
no_license
<?php namespace Plugins\Products\Listeners; use Lib\App; use Lib\Model; use Plugins\Products\Models\Product; use Plugins\Products\Models\SaleItem; /** * Products listener for UI events. */ class UI { /** * Main data mapper. * * @var \Lib\DataMapper */ protected $mapper; /** * ...
true
408c58585b8030bcd08c187ac38ae05a7b825faf
PHP
Dheia/quickpresse-to-laravel-oc-v1
/plugins/logimonde/slider/models/Slider.php
UTF-8
1,360
2.546875
3
[]
no_license
<?php namespace Logimonde\Slider\Models; use Model; /** * Slider Model */ class Slider extends Model { /** * @var string The database table used by the model. */ public $table = 'logimonde_slider_sliders'; /** * @var array Guarded fields */ protected $guarded = ['*']; /** ...
true
84ff6788480ab29f3773dedc18fcdb91497c14de
PHP
csc450ajz/htdocs
/client/messages/messageAJAX.php
UTF-8
2,926
2.59375
3
[]
no_license
<?php require_once('../../util/db-config.php'); require_once('message-utility.php'); session_start(); if (isset($_POST['chatId'])) { $output = ''; $chatId = $_POST['chatId']; $sql = "SELECT * FROM ChatMessages WHERE chatId= '$chatId' "; $result = $conn->query($sql); $output .= ' ...
true
14d899c8c253b56b4e5504b9c74f59f9a367bf5f
PHP
gsamaras/iCage
/php/update_suggest.php
UTF-8
2,923
2.828125
3
[]
no_license
<?php include("../db-api/txt-db-api.php"); $data = json_decode(file_get_contents('php://input'), true); $hour = $data['hour']; $day = $data['day']; $month = $data['month']; $db = new Database("cage"); $rs=$db->executeQuery("SELECT * FROM suggest WHERE player = '".$data['player']."'"); while($rs->next()) { l...
true
7f6f7d3f5d0f63b9e8f2f25ec7a6b12734314d66
PHP
amocrm/amocrm-api-php
/src/AmoCRM/Models/Interfaces/HasIdInterface.php
UTF-8
296
2.671875
3
[ "MIT" ]
permissive
<?php namespace AmoCRM\Models\Interfaces; /** * Interface HasIdInterface * Необходим сущностям, у которые есть id * * @package AmoCRM\Models\Interfaces */ interface HasIdInterface { /** * @return null|int */ public function getId(): ?int; }
true
23eb05d5889d5bc3886c5b6e6ff333cb428239e0
PHP
maximzh/Blog
/src/AppBundle/Command/CreateAdminCommand.php
UTF-8
5,007
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: fumus * Date: 06.02.16 * Time: 14:09 */ namespace AppBundle\Command; use AppBundle\Entity\User; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Sym...
true
f72e6764496c04962e2eb6a8944c3e482ee5f1f0
PHP
kaung-san-hein/simple-crud-php-mysql
/index.php
UTF-8
2,226
2.703125
3
[]
no_license
<?php require_once 'utils/menu.php'; require_once 'config/connection.php'; if (isset($_POST['submit'])) { $search = $_POST['search']; $sql = "SELECT * FROM `students` WHERE name LIKE :search OR roll_no LIKE :search OR major LIKE :search"; $query = $conn->prepare($sql); $query->bindValue(':search', '%' ...
true
88607ffd5ad4b5418ec9ef00e563a61e933646f7
PHP
aboleon/metaframework
/src/Casts/ForceInteger.php
UTF-8
531
2.671875
3
[]
no_license
<?php namespace MetaFramework\Casts; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; class ForceInteger implements CastsAttributes { /** * @throws \Exception */ public function get($model, $key, $value, $attributes) { return $this->toInteger($value); } public funct...
true
bd47e35ebd76dea1048572385a16414227aa370a
PHP
dougan88/rpn
/src/Operation/PlusOperation.php
UTF-8
314
3.15625
3
[]
no_license
<?php namespace App\Operation; class PlusOperation implements TwoOperandsOperationInterface { /** * @param float $operand1 * @param float $operand2 * @return float */ public function execute(float $operand1, float $operand2): float { return $operand1 + $operand2; } }
true
db89245b75c86f7ed8f8a0421a73f7e7356e942c
PHP
muratsplat/Acme-E-Shop
/app/Services/ProductSrv/ProductServiceImpl.php
UTF-8
1,357
2.796875
3
[]
no_license
<?php namespace App\Services\ProductSrv; use App\Exceptions\NotFoundException; use App\Repositories\ProductRepo; use App\Services\ProductSrv\Contracts\ProductService; use App\Services\ProductSrv\Dto\Product as ProductDTO; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Foundation\Application; use Illuminat...
true
725c43c04bb379a54bccac8790ffc0c984f221f1
PHP
braceyourself/spa-quickstart
/app/Rules/IsValidFrequency.php
UTF-8
1,023
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; class IsValidFrequency implements Rule { private $frequency; private const OPTIONS = [ "everyMinute", "everyFiveMinutes", "everyTenMinutes", "everyFifteenMinutes", "everyThirtyMinutes", "hourly", "hourlyAt",// (hour) "daily" //dailyAt (time...
true
03b09682848a5d590a60045657ccd5ca66156f14
PHP
AxelUrbain/espace_membre
/class/Database.php
UTF-8
653
3.109375
3
[]
no_license
<?php class Database{ private $pdo; public function __construct($login, $pass, $db_name, $host="localhost") { $this->pdo = new PDO("mysql:dbname=$db_name;host=$host", $login, $pass); $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->pdo->setAttribute(PDO::...
true
6d63ad89afab320c0aef72dcfb0fe86bb2a8036f
PHP
oliverspryn/student-government-association-book-exchange-first-generation
/admin/statistics/data/index.php
UTF-8
3,441
2.65625
3
[ "MIT" ]
permissive
<?php require_once("../../../Connections/connDBA.php"); ?> <?php if (privileges("viewStatistics") == "true") { loginCheck("User,Administrator"); } else { loginCheck("Administrator"); } ?> <?php //Export as XML file header("Content-type: application/xml"); if (isset($_GET['type'])) { switch ($_GET['type']) ...
true
c7994d079dc9908a155bcad678ef5fc6dbcbf137
PHP
romilj/ZFPlanet
/application/modules/zfplanet/models/EntryTable.php
UTF-8
973
2.546875
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php class Zfplanet_Model_EntryTable extends Doctrine_Table implements Zend_Paginator_Adapter_Interface { /** * Returns an collection of items for a page. * * @param integer $offset Page offset * @param integer $itemCountPerPage Number of items per page * @return array */ ...
true
6aa4e2bfe75e337a99bb138baca57b3bb78b852f
PHP
bunsha/equipment
/app/EquipmentType.php
UTF-8
1,462
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\SoftDeletes; use Laravel\Lumen\Auth\Authorizable; use Illuminate\Database\Eloquent\Model; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\Access\Authorizable as Authorizab...
true
5eefb079d625a29f9811d5c395fe9ae0036db65a
PHP
fabeat/fastbill
/lib/Fastbill/Invoice/Invoice.php
UTF-8
2,882
2.671875
3
[]
no_license
<?php namespace Fastbill\Invoice; class Invoice extends \Fastbill\Base\Model { protected $customer = null; protected $data = array( 'ITEMS' => array() ); protected $readonly_data = array( 'INVOICE_ID' ); /** * Set a customer for this invoice */ public function setCustomer(\Fastbill\Cus...
true
f7e76456b8c12a4e6ef4a47e0da6a17237b78f95
PHP
tomiperez/truco
/truco.php
UTF-8
1,109
3.5
4
[]
no_license
<?php function random(){ return array( rand (1,12), rand (1,12), rand (1,12) ); } $a = random(); $b = random(); $totalA=20; $totalB=20; echo 'Mano a: ' . "\n"; foreach ($a as $value){ global $a; if ($value == 8 or $value == 9 or $value == 10 or $value == 11...
true
be5b23f2b8a6a6cda2315a8451fa10b7a71bd6bc
PHP
Pixelcheck/WCF
/wcfsetup/install/files/lib/action/AbstractSecureObjectAction.class.php
UTF-8
2,612
3.015625
3
[]
no_license
<?php namespace wcf\action; /** * Abstract handler for object-actions using the AJAX-API. * * @author Alexander Ebert * @copyright 2001-2011 WoltLab GmbH * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> * @package com.woltlab.wcf * @subpackage action * ...
true
b4d0bb9e0583dd5b197e38283b185cd9685498c7
PHP
osoweb/PhpProject1
/src/Oso/OsoWebBundle/Resources/public/DirectReduc/content/.svn/text-base/actu_modif.php.svn-base
UTF-8
1,892
2.515625
3
[ "MIT" ]
permissive
<script type="text/javascript" src="fonctions/formulaire.js"></script> <p> <center> <h1>Modif Actu</h1> </center> </p> <?php //session_start(); $id=$_SESSION['ID']; global $actu_id; $actu_id=$_GET['id_annonce']; include('fonctions/connexion.php'); include('fonctions/fonctions.php'); if(isset($_POST['titre'])) { in...
true
0e655ffa0d5b52c37cab82076e72310744c21e01
PHP
paulinamunoz0907/trabajo2
/eliminarProductos.php
UTF-8
424
2.609375
3
[]
no_license
<?php include("BaseDatos.php"); //0.Recibir el dato del id a eliminar $id=$_GET["id"]; //1.Crear objeto de la clase BaseDatos $operacionBD= new BaseDatos(); //2.Crear una consulta SQL para que eliminar datos $consultaSQL="DELETE FROM productos WHERE codigoProducto='$id'"; //3. ...
true
8d3aac8b4df81b5b42407d29415715f9f0dc8237
PHP
frankkoornstra/elastic-apm-agent
/src/Client/PromiseCollection.php
UTF-8
2,188
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace TechDeCo\ElasticApmAgent\Client; use Countable; use Http\Promise\Promise; use Psr\Http\Message\ResponseInterface; use Psr\Log\LoggerInterface; use TechDeCo\ElasticApmAgent\Exception\ClientException; use Throwable; use function array_filter; use function count; final class Pro...
true
91f1a862c5b0eacd6a022f7a464f540bff1b398b
PHP
samira237/jerico
/register_action.php
UTF-8
1,994
2.59375
3
[]
no_license
<?php session_start(); include 'db.php'; if(isset($_POST['confirmer'])) { $name = htmlspecialchars($_POST['name']); $email = htmlspecialchars($_POST['email']); $date_of_birth = htmlspecialchars($_POST['date_of_birth']); $place_of_birth = htmlspecialchars($_POST['place_of_birth'])...
true
9d4159ec9890373b930618e586788810f181b1af
PHP
digitick/uploader
/src/Digitick/Foundation/FileManager/FileResolver/FileResolverInterface.php
UTF-8
484
2.734375
3
[ "MIT" ]
permissive
<?php namespace Digitick\Foundation\FileManager\FileResolver; /** * Interface FileResolverInterface * @package Digitick\Foundation\FileManager\FileResolver */ interface FileResolverInterface { /** * @param int $fileType Le type de fichier à trouver * @param string $fileName Le nom du fichier ...
true
fcdef9a4658f6a63e6eb9c21b7353810327cc201
PHP
jayceazua/ngy
/includes/classes/medialibrary.class.php
UTF-8
11,724
2.734375
3
[]
no_license
<?php class MediaLibraryclass { private $default_selected_media_text = '<span class=\'initialtext\'>Please select media to get details</span>'; public function get_media_path(){ global $cm; $media_root_folder = "cmsfile"; $image_folder = "contentimages"; $files_folder = "contentfiles"; $start_pat...
true
16302bc27ce293c2bbee7c82b240759336a08e83
PHP
justdevsio/big-register-check
/src/Client/ArticleRegistrationExtApp.php
UTF-8
3,510
2.78125
3
[]
no_license
<?php namespace JustDevs\BIGRegister\Client; class ArticleRegistrationExtApp { /** * @var float $ArticleRegistrationNumber */ protected $ArticleRegistrationNumber = null; /** * @var \DateTime $ArticleRegistrationStartDate */ protected $ArticleRegistrationStartDate = null; /*...
true
418bd4d4e57cd9d3345fce9ba8249aeeb26295d4
PHP
wxinheb/uenty
/vendor/aabcsoft/aabc2/base/Event.php
UTF-8
3,100
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace aabc\base; class Event extends Object { public $name; public $sender; public $handled = false; public $data; private static $_events = []; public static function on($class, $name, $handler, $data = null, $append = true) { $class = ...
true
961e0a797bd72a815d9ebdbab53c4ef48a3ad9d8
PHP
taco272730-dot/taco-git-newst
/test/a20200331-04-array.php
UTF-8
360
3.125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <pre> <?php $ar1 = array(2,3,4,5); $ar2 = [2,3,4,5]; $ar1[] = "Hello"; print_r($ar1); var_dump($ar2); ...
true
95bdf921061875592a01d7cb3d391ebd7da0ac4b
PHP
widya22/Kel5_Smt4-TIFD
/suratjti/application/views/v_mhs/v_coba.php
UTF-8
3,220
2.828125
3
[ "MIT" ]
permissive
<html> <head> <title>Multiple Insert</title> <!-- Load File Jquery --> <script src="<?php echo base_url("js/jquery.min.js"); ?>" type="text/javascript"></script> </head> <body> <h1>Form Tambah Siswa</h1> <form method="post" action="<?php echo base_url("index.php/siswa/save"); ?>"> <!-- B...
true
988ed158b9a56ce0322b06497f692be1ffe6fccd
PHP
benjaminhansen/workday-wsdl
/src/ServiceType/Update.php
UTF-8
8,556
2.65625
3
[]
no_license
<?php namespace WorkdayWsdl\\ServiceType; use \WsdlToPhp\PackageBase\AbstractSoapClientBase; /** * This class stands for Update ServiceType * @subpackage Services */ class Update extends AbstractSoapClientBase { /** * Sets the Workday_Common_Header SoapHeader param * @uses AbstractSoapClientBase::se...
true
02570434940c3b541a9e91e0c921563d961a47ad
PHP
lakovicj/vivify-imdb-backend
/app/Http/Controllers/Api/ReactionController.php
UTF-8
756
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Http\Requests\ReactionRequest; use App\Services\ReactionService; class ReactionController extends Controller { protected $reactionService; public function __construct(ReactionService $rs) { $this->reactionSer...
true
3c8715ce6d32b5491342e7cba723cdcc6dad8738
PHP
maximaam/alamouriska
/src/Entity/Liking.php
UTF-8
1,690
2.578125
3
[]
no_license
<?php namespace App\Entity; use App\Entity\Traits\Timestampable; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\LikingRepository") * @ORM\HasLifecycleCallbacks */ class Liking { use Timestampable; /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\Genera...
true
68c996f07b74ff7a25c3de310207dbac0256832f
PHP
fofaprof/Todo
/src/Controller/TodoController.php
UTF-8
1,543
2.578125
3
[]
no_license
<?php namespace App\Controller; use App\Form\TodoType; use Symfony\Component\HttpFoundation\Request; use App\Entity\Todo; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; class TodoController extends AbstractController { /** * @Route("/crea...
true
476e35ae740e2b609f7b5f7dcfa1cb3e7345944f
PHP
safaridato/travelite
/travadmin/application/helpers/my_additional_helper.php
UTF-8
4,386
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Created by JetBrains PhpStorm. * User: safari * Date: 7/11/13 * Time: 10:59 PM * To change this template use File | Settings | File Templates. */ if (!function_exists('cropText')) { function cropText($text, $size) { if...
true
43aa454cb61ff827eca69517732cb890b0ef8eca
PHP
wdaweb/invoice-chang180
/lottery.php
UTF-8
371
3.078125
3
[]
no_license
<?php function bingo($num){ $roll=[1]; $count=0; $special=0; while(array_diff($num,$roll)!=[]){ $roll=array_rand(range(1,49),6); //$special = array_rand(array_diff(range(1,49),$roll)); //print_r(array_diff($num,$roll)); //$money=sort($roll); //print_r($roll)."<br>"; //echo $special."<br>"; $count++; } echo number_...
true
cea5e09eabd7e9acd192a5d05b5b3e31a7792b72
PHP
taisukef/Chacha20Poly1305
/php/tests/Chacha20Poly1305.php
UTF-8
1,783
2.671875
3
[]
no_license
<?php include '../Chacha20.php'; include '../Poly1305.php'; include '../Chacha20Poly1305.php'; // testVectors from http://tools.ietf.org/html/draft-agl-tls-chacha20poly1305-04#page-11 $testVectors = array( '4290bcb154173531f314af57f3be3b5006da371ece272afa1b5dbdd1100a1007', '86d09974840bded2a5ca', 'cd7cf67be39c794a...
true
0931dc64af1fad0f1284ade87c9ec4ca7f35605d
PHP
jetfirephp/jetbuilder
/src/App.php
UTF-8
1,750
2.703125
3
[]
no_license
<?php namespace Jet; /** * Class App * @package Jet */ class App { /** * @var \JetFire\Framework\App */ private $systemApp; /** * App constructor. */ public function __construct() { $this->systemApp = new \JetFire\Framework\App(); } ...
true
57137a0aab6b5062d37af6c5d6e9777fabf248a6
PHP
lundco/silvershop-stock
/src/Forms/GridFieldProductStockField.php
UTF-8
1,390
2.671875
3
[ "BSD-2-Clause" ]
permissive
<?php namespace SilverShop\Stock\Forms; use SilverStripe\Forms\GridField\GridField_SaveHandler; use SilverStripe\Forms\GridField\GridField; use SilverShop\Stock\Model\ProductWarehouse; use SilverStripe\Core\ClassInfo; use SilverStripe\ORM\DataObjectInterface; /** * Handles inline editing / creation of the {@link Pr...
true
a45c058cb659a2e409c318734077dcb26d2cf622
PHP
MarcelWeidum/cws-twill-base
/app/Models/Menu.php
UTF-8
665
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use A17\Twill\Models\Behaviors\HasSlug; use A17\Twill\Models\Model; class Menu extends Model { use HasSlug; protected $fillable = [ 'published', 'title', ]; public $slugAttributes = [ 'title', ]; public function menu_items() { ...
true
10b62528bfff07505dfb073af398a77f342f4bb3
PHP
LiLong112233/MyFistGith
/test/PHP3object-oriented/11-14/jobdo.php
UTF-8
105
2.671875
3
[]
no_license
<?php include ('job.php'); $job=new Job(); echo $job->name; echo $job::Age; echo $job::$sex; ?>
true
4b400832bb7ba2efd3b15d33ac1539d4d0764959
PHP
javiermvaldecantos/learn-online-php
/project/components/default/controller.php
UTF-8
1,226
2.53125
3
[ "MIT" ]
permissive
<?php // //to avoid direct access // if(!defined('true-access')) { die('Direct access not permitted'); } include_once('model/common.php'); include_once('view/common.php'); function get_view_enabled($view) { switch($view) { case 'default': return 'execute_default'; break; case 'login': ...
true
87285e642854c8548be542f180054595dc57a476
PHP
varshasaha/hobbies-hub
/CHCInstituteListM.php
UTF-8
4,204
2.53125
3
[]
no_license
<?php ///Provides service to create TP category log. /** * @files * @startcomment * File: < CHCInstituteListM.php> * * * Current Owner: <Saransh Agrawal> (09-FEB-2014) * * * Purpose: * 1. Create tp category log. * 2. * 3. * * Dependencies: * Refer to the File inclusion for File Dependenc...
true
dbe326ab05385ec2db1c29010769167442a8728d
PHP
zesk/zesk
/src/zesk/HTML.php
UTF-8
45,020
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); /** * @package zesk * @subpackage core * @author kent * @copyright Copyright &copy; 2023, Market Acumen, Inc. */ namespace zesk; use zesk\Exception\NotFoundException; use zesk\Exception\SemanticsException; /** * Abstraction of HTML markup language, with tools for generating and ...
true
8dea39ded596f6cca78c7af00bcfc25eca48448b
PHP
Kudlaty01/agrest-client
/src/ApiCalls/AbstractApiCallResult.php
UTF-8
474
2.765625
3
[ "MIT" ]
permissive
<?php namespace Qdt01\AgRest\ApiCalls; use Qdt01\AgRest\Modules\ISystems\Models\ModelInterface; /** * Class AbstractApiCallResponse * * @package \Qdt01\AgRest\ApiCalls */ abstract class AbstractApiCallResult implements ApiCallResultInterface { /** * @var ModelInterface */ protected $model; /** * Abstr...
true
df306d41c8575968cea941550a3feb1954c47886
PHP
oohoo/moodle-format_course_menu
/lib.php
UTF-8
21,939
2.59375
3
[]
no_license
<?php /** * ************************************************************************* * * Chairman ** * ************************************************************************* * @package mod ** * ...
true
dac6775eace30e10fc2945bd47886ee8d69e1d19
PHP
tsmith512/routenotfound
/wp-content/plugins/rnf-meta/rnf-meta.php
UTF-8
3,295
2.65625
3
[]
no_license
<?php /* * Plugin Name: RNF Metatags and Social Sharing Support * Description: Provides super minimal metatags for slightly better sharing * Version: 0.1 * Author: Taylor Smith */ function rnf_meta_add_header_tags() { // Figure out where we are so we can tell the map where to start $object = get_queried_objec...
true
c4ca4c16cebd8f36d47e52227e0a559b70a1ea99
PHP
killbus/jd-kepler
/kepler/src/KeplerApi.php
UTF-8
352
2.515625
3
[]
no_license
<?php /** * 基础 * User: smallsea * Date: 2018/8/27 * Time: 11:27 */ namespace Jd\Kepler; interface KeplerApi { /** * 接口方法 * @return string|array|mixed */ public function getApiMethod(): string; /** * 接口参数 * @return string|array|mixed */ public function getApiParams(...
true
665e035aff7b840cfbea5951b81f9dbbdc74e72a
PHP
marscore/hhvm
/hphp/test/zend/good/Zend/tests/026.php
UTF-8
171
2.796875
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php class foo { public function a() { } } <<__EntryPoint>> function main() { $test = new foo; $test->a()->a; print "ok\n"; $test->a()->a = 1; print "ok\n"; }
true