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
a0d390b1cae37b3292cc121da7d81ae6fc5c203a
PHP
ag-php/ascoder.ru_laravel_rebing
/app/GraphQL/Mutations/Category/CategoryPush.php
UTF-8
1,569
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace App\GraphQL\Mutations\Category; use App\Models\Category; use Closure; use GraphQL\Type\Definition\Type; use GraphQL\Type\Definition\ResolveInfo; use Rebing\GraphQL\Support\Facades\GraphQL; use Rebing\GraphQL\Support\Mutation; class CategoryPush extends Mutation { protect...
true
398bc54543406988214dfba9d5283ccd85acb80d
PHP
metalx-yan/Gats
/app/Models/User.php
UTF-8
2,031
2.5625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Facades\Hash; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assign...
true
0d8fa6a247d2167b0676a2640a99e771794155a9
PHP
Weissheiten/htl3r.GITLinks
/console.php
UTF-8
172
3.09375
3
[]
no_license
<?php echo output("Hello awesome people!", "--", "--" ); function output($mystring, $wrapfront, $wrapback) : string { return $wrapfront.$mystring.$wrapback; }
true
d4b734d82fcf316695e8c5d5e012eb224710e74e
PHP
Olejek88/mtm-server
/common/models/mtm/MtmDevLightConfig.php
UTF-8
4,234
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\mtm; /** * * @property mixed $base64Data * @property array $binaryData */ class MtmDevLightConfig extends MtmPktHeader { // автоматический режим по заданным параметрам public static $MTM_DEV_LIGHT_CONFIG_MODE_AUTO = 0x01; // режим по командам от промкомпа астрономических ...
true
1f05e4a07066c691d27d67ea17017cfb00c76bd3
PHP
fxmlrpc/serialization
/features/bootstrap/ParserFeatureContext.php
UTF-8
329
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php use Behat\Behat\Context\Context; /** * Defines parser features from the specific context. */ class ParserFeatureContext implements Context { use ParserContext; /** * @param string $parserClass */ public function __construct($parserClass) { $this->parser = new $parserClass();...
true
20ba6c1d57c83ac76907e86baebcc07a2eefcf5b
PHP
YOUDYPARRA/clases
/database/migrations/2021_03_20_221009_create_alumnos_table.php
UTF-8
1,192
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAlumnosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('alumnos', funct...
true
4a8fe4a25c3c74ca33b018904032ba03226d8b6f
PHP
000407/BITProject2019
/controller/UserController.php
UTF-8
4,047
2.609375
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: LocalAdmin * Date: 3/9/2019 * Time: 5:29 PM */ class UserController extends BaseController { public function login($postBack = null) { if(isset($_SESSION["user"]["name"])){ $url = APPROOT . "/home/index"; header("location:$url")...
true
aed728d399d5e300cdcebc65863a9e9877fc73d7
PHP
scotthughestech/phpbook
/functions.php
UTF-8
362
3.46875
3
[ "MIT" ]
permissive
<?php include 'myfunctions.php'; ?> <!doctype html> <html> <head> <title>Functions</title> </head> <body> <?php // Set numbers $number1 = 100; $number2 = 200; // Get sum $sum = sum($number1, $number2); echo bold($sum...
true
5f4a48189cc4668d11180a6f66f427fe27d10e28
PHP
mars102/oven-auto-present
/app/models/company.php
UTF-8
19,678
2.65625
3
[]
no_license
<?php namespace app\models; Class company extends \app\core\Model { public $table = 'company'; public function getCompanyByCar($car) { $sql = "SELECT c.* FROM company as c JOIN company_car as a on c.id = a.id_company WHERE (a.vi...
true
9118dbfd038221e8d50047a1b2c824630a7c005e
PHP
cebay/cambodia-tour
/config/Operation.php
UTF-8
1,561
2.96875
3
[ "MIT" ]
permissive
<?php require("Connection.php"); Class Operation extends Connection { public $contact; public $gallery; public $about; public $tour; public $homeNews; public $homeSlide; function __construct() { $conn = new Connection; } function upload_file($file, $path) { $allowedExts = array("gif", "jpe...
true
d374af4887f11d16b43d039fa2479935bda6624d
PHP
exegeses/oopphp-49163
/clase1/vistaPersona.php
UTF-8
820
3.171875
3
[ "MIT" ]
permissive
<?php require 'Persona.php'; ### instanciación $Persona = new Persona; ## asignación pública //$Persona->nombre = 'jtrdhghnfd6857'; $Persona->setNombre('Ronnie'); $Persona->setApellido('Woods'); ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name...
true
57b60c4e4540d4bdc679f1dcada885aea93bcf69
PHP
monemrabai/test_ubitransport
/src/Repository/GradeRepository.php
UTF-8
2,112
2.515625
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Grade; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Grade|null find($id, $lockMode = null, $lockVersion = null) * @method Grade|null findOneBy(array $criteria, array $orderBy = null) * ...
true
4bdfba193daf32243e2f56fbff2fcbfc8e17c4db
PHP
seabird2fr/dane
/src/Controller/SecurityController.php
UTF-8
3,591
2.609375
3
[]
no_license
<?php namespace App\Controller; use App\Entity\User; use App\Form\UserType; use Psr\Log\LoggerInterface; use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Req...
true
491f7599a4adaef18b3b49d74b33aed24e60b0ed
PHP
manGoweb/Monitoring
/vendor/nextras/orm/src/StorageReflection/IStorageReflection.php
UTF-8
1,069
2.75
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Nextras\Orm library. * @license MIT * @link https://github.com/nextras/orm */ namespace Nextras\Orm\StorageReflection; use Traversable; interface IStorageReflection { /** * Returns storage name. * @return string */ public function getStorageName(); /** ...
true
48c0d2397ed3cbe322ce1f917d8debf4e437f51a
PHP
mpiri44/ticket
/src/CanTicket.php
UTF-8
2,266
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: meysam * Date: 3/9/18 * Time: 7:50 PM */ namespace Payamava\Ticket; trait CanTicket { /** * @param $ticketCategory * @param $title * @param $message * @param $priority * @return mixed */ public function newTicket($ticketCategory,$tit...
true
d31f6b5d43ee20727be51ecb952777aa4b42ac21
PHP
LennonSantos/login-facebook-codeigniter
/application/libraries/Facebook.php
UTF-8
1,692
2.59375
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Facebook { public function set_app(){ $fb = new Facebook\Facebook([ 'app_id' => 'APP ID', 'app_secret' => 'APP SECRET', 'default_graph_version' => 'v2.5', ]); return $fb; ...
true
766c925fc4246b09e17927ea0a0603b2c33f253c
PHP
HotelQuickly/ErrorMonitoring
/app/classes/Mail/SmtpMailer.php
UTF-8
919
2.953125
3
[]
no_license
<?php namespace HQ\Mail; /** * Custom Smtp mailer * It send's emails only on production development if not stated differently * * @author Josef Nevoral <josef.nevoral@gmail.com> */ class SmtpMailer extends \Nette\Mail\SmtpMailer { /** @var bool */ private $productionMode; /** @var bool */ private $sendEmai...
true
d79a7bcacb406acab0cf6bc1d489324bd07b16ac
PHP
wpninjas/ninja-docs
/inc/nf-docs-action.php
UTF-8
3,579
2.765625
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) exit; if ( !class_exists( 'NF_Notification_Base_Type' ) ) return FALSE; /** * Class for our custom action type. * * @package Ninja Forms * @subpackage Classes/Actions * @copyright Copyright (c) 2014, WPNINJAS * @license http://opensource.org/licenses/gpl-2.0....
true
3848794885abf197818059713eb0b5a0482bed86
PHP
Noe-Kisungu/Projet-Jarditou
/BACK/SERVEUR/Jarditou_php/tableau.php
UTF-8
5,774
2.96875
3
[]
no_license
<?php include("entete.php"); // Inclure l'en-tête dans le fichier tableau.php // On charge et on utilise la librairie de connexion à la base de données // // On exécute une requête SQL pour obtenir la liste des enregistrements de la table produits // // on stocke le résultat de la requête, qui est un tableau d'objets,...
true
6bddd4d9fb19ef5f86251e496981711b89aa0597
PHP
mirellauta/testppt
/ejemplo_power_point.php
UTF-8
1,677
2.703125
3
[]
no_license
<?php /** * http://php.net/manual/es/book.zip.php */ function delTree($dir) { $files = array_diff(scandir($dir), array('.','..')); foreach ($files as $file) (is_dir("$dir/$file")) ? delTree("$dir/$file") : @unlink("$dir/$file"); return @rmdir($dir); } $tempfolder = '/tmp/temporales/' . hash(...
true
fd9fe1b5cf3ac5945d11ce89142d9f4473f3dd8d
PHP
jaymecd/php-schema.org-model
/examples/full/SchemaOrg/Entity/UpdateAction.php
UTF-8
519
2.515625
3
[ "MIT" ]
permissive
<?php namespace SchemaOrg\Entity; use Symfony\Component\Validator\Constraints as Assert; use Doctrine\ORM\Mapping as ORM; /** * The act of managing by changing/editing the state of the object. * * @see http://schema.org/UpdateAction Documentation on Schema.org * * @ORM\MappedSuperclass */ class UpdateAction...
true
48b1b37e3cbc7b13aec23ded3d5cb29fac4ef42a
PHP
VarsPtz/academy.local
/index - lesson 2.php
UTF-8
1,337
3.8125
4
[]
no_license
<div> <h1>Изучаем синтакси PHP:</h1> <?php echo "Hello, world!"; ?> </div> <? echo "Hi!"; //Это наш комментарий. /* * Это наш многострочный комментарий */ $a = "Abc"; echo $a; $array = ["Audi", "BMW", "Toyota"]; $array2 = [0 => "Audi", 1 => "BMW", "Toyota"]; ech...
true
0cbe476046f3193e9046908d89f7715d15329564
PHP
3150828420/2102-php
/2102/kaoshi/kaoshi.php
UTF-8
1,100
2.84375
3
[]
no_license
<?php //echo '<pre>';print_r($_POST);echo '</pre>'; $sname = trim($_POST['name']); $sage = trim($_POST['age']); $sdz = trim($_POST['dz']); $link = new mysqli("localhost","root","root","php2102"); // var_dump($link);die; $sql = "insert into adds (`name`,`age`,`dz`) values ('{$sname}','{$sage}','{$sdz}')"; // echo $sql...
true
504ebf93895dab44cf72169e4d20b6ca6642582c
PHP
Dymantic/articles
/tests/PublishingTest.php
UTF-8
3,705
2.59375
3
[]
no_license
<?php namespace Dymantic\Articles\Test; use Carbon\Carbon; use Dymantic\Articles\Events\ArticleFirstPublished; use Illuminate\Support\Facades\Event; class PublishingTest extends TestCase { use MakesModels; /** *@test */ public function an_article_can_be_published() { $article = $...
true
822960c6ec918e9f568faacfe1906d1cca1c1222
PHP
zcy91/chanyeyuan
/logics/gateway/Core/LogFactory.class.php
UTF-8
314
2.796875
3
[]
no_license
<?php namespace Kuba\Core; final class LogFactory { /** * 写日志 * @param varchar(5) $msg_type("INFO","WARN","FATAL","DEBUG") * @param MessageBase $msg_obj */ public static function write($msg_type, $msg_obj) { //获取系统配置规则,决定写哪些日志 } } ?>
true
4741f4a73e241129d13928d58426637c5e2ac84a
PHP
RascalTwo/YouTubePlaylistPHPFrontend
/resources/libraries/utility.php
UTF-8
395
2.84375
3
[]
no_license
<?php function generate_id($path){ if (file_exists($path)){ $ids = unserialize(file_get_contents($path)); } else{ $ids = []; } $generated_id = rand(1000, 9999); while (in_array($generated_id, $ids)){ $generated_id = rand(1000, 9999); } $ids[] = $generated_id; ...
true
6940acc32d35a9f7cb22c4f487b7e7bb9fedd35f
PHP
chiragpdesigner/laravel-adminpanel
/app/Http/Requests/Backend/Settings/UpdateSettingsRequest.php
UTF-8
2,017
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\Backend\Settings; use App\Http\Requests\Request; use App\Models\Settings\Setting; /** * Class UpdateSettingsRequest. */ class UpdateSettingsRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ pub...
true
be7c4253f7b62faf0c83ccfbe836d0b7294e4af3
PHP
deadias/schond-backend
/src/Service/AreaComumService.php
UTF-8
2,814
2.859375
3
[ "MIT" ]
permissive
<?php namespace Schond\Service; use Doctrine\ORM\EntityNotFoundException; use http\Exception\InvalidArgumentException; use Schond\Entity\AreaComum; use Schond\Repository\AreaComumRepository; class AreaComumService { private $areaComumRepository; private $condominioService; public function __construct(Ar...
true
3868294edc7daed83078c45b8ee9e3271c7de996
PHP
wawaiguntang/ppdb-online-ci4
/app/Models/PenghasilanModel.php
UTF-8
820
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class PenghasilanModel extends Model { protected $table = 'penghasilan'; protected $primaryKey = 'id'; protected $allowedFields = ['penghasilan']; protected $returnType = 'App\Entities\Penghasilan'; public function getPenghasilanID($id) { re...
true
d4f46e664a480f7d21afef73f86b7810ee3bb130
PHP
ivanmalyi/TelegramBot
/src/System/Entity/Repository/Payment.php
UTF-8
6,401
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace System\Entity\Repository; use System\Util\ConverterClass\ToStringTrait; /** * Class Payment * @package System\Entity\Repository */ class Payment { use ToStringTrait; const CANCEL = -13; const NEW = -5; const WAITING = -1; const HOLD = 1; const OK...
true
d02a208fb3aa3ae227b178eaa08e19f13c36ca2e
PHP
herzcthu/Laravel-HS
/app/Repositories/Frontend/Participant/Role/RoleRepositoryContract.php
UTF-8
828
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Frontend\Participant\Role; /** * Interface RoleRepositoryContract * @package App\Repositories\Role */ interface RoleRepositoryContract { /** * @param $id * @param bool $withPermissions * @return mixed */ public function findOrThrowException($id, $withPermissions = false);...
true
adf413385bf4c495ac1ba96e7fdf0eb8b347784f
PHP
mich220/ddd-and-cqrs-post-example
/src/Infrastructure/Query/MySql/FetchPostByIdQuery.php
UTF-8
1,106
2.78125
3
[]
no_license
<?php namespace App\Infrastructure\Query\MySql; use Doctrine\DBAL\Connection; use App\Domain\ValueObject\PostId; use App\Domain\Query\FetchPostByIdQuery as FetchPostByIdQueryInterface; use App\Infrastructure\TransferObject\DbResult; class FetchPostByIdQuery implements FetchPostByIdQueryInterface { private Connec...
true
a2ee609e3e5bb96d3d67dbc64564e62b03dca217
PHP
bnbwebexpertise/php-ovh-sms
/src/MessageForResponse.php
UTF-8
2,311
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php # Copyright (c) 2013-2016, OVH SAS. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditio...
true
c65ed8192f2aef42207b7455c5bc16d09c4b73a3
PHP
CiroloPEZ/Controlpagos
/Models/Pago_model.php
UTF-8
5,876
2.5625
3
[]
no_license
<?php class Pago_model extends conexion { //A qui heredamos la base de datos function __construct() { parent::__construct(); } //Buscamos los pagos de acuerdo a su estatus function getPago($filter) { $where = " WHERE Id_pago LIKE :Id_pago OR Estatus LIKE :Estatus"; ...
true
086343a111822962427f2f967cede856fb1dc375
PHP
Devaterus/web-2.0
/pages/registrace.php
UTF-8
1,342
2.609375
3
[]
no_license
<h2>Registration</h2> <?php if(isset($_POST["sent"])){ if(isset($_POST["name"]) && $_POST["name"] != "" && isset($_POST["password1"]) && $_POST["password1"] != "" && isset($_POST["password2"]) && $_POST["password2"] != "" && isset($_POST["mail"]) && $_POST["mail"] != ""){ if ($_POST["password1...
true
1f00797216a5f985fca1bbf0f5ea55079867cf8b
PHP
defender11/cli
/src/Basic/Params.php
UTF-8
791
3.234375
3
[]
no_license
<?php namespace Cli\Basic; /** * Class Params * @package Cli/Basic * @license MIT * * @author AlexP007 * @email alex.p.panteleev@gmail.com * @link https://github.com/AlexP007/cli */ class Params { /** * @var array */ private $params; public function __construct(array $params) { ...
true
da487cb30c8cc19512df7933647952b1b42e0fde
PHP
ibsinfos/scat
/db/migrations/20200411021256_add_giftcard_times.php
UTF-8
1,212
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php use Phinx\Migration\AbstractMigration; class AddGiftcardTimes extends AbstractMigration { public function change() { $table= $this->table('giftcard', [ 'signed' => false ]); $table /* Don't use ->addTimestamps() because we use DATETIME */ ->addColumn('created_at', 'datetime',...
true
65ac62d5428af787ff2ed7e29f62e97051fa41b1
PHP
alex2184268/linebot
/app/Http/Controllers/ImportController.php
UTF-8
2,402
2.8125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Reader\Csv; use PhpOffice\PhpSpreadsheet\Reader\Xlsx; use App\Line; class ImportController extends Controller { public function import() { // The user is logged in...
true
29149fcc517c6acfc9297f92972f1a7a11eff318
PHP
GeorgeStrakhov/manifestico
/app/database/seeds/TagsTableSeeder.php
UTF-8
507
2.578125
3
[]
no_license
<?php class TagsTableSeeder extends Seeder { public function run() { // Uncomment the below to wipe the table clean before populating DB::table('tags')->delete(); $tags = array( ['name'=>'art', 'slug'=>'art'], ['name'=>'love', 'slug'=>'love'], ['name'=>'education'...
true
e38911ad831a9357d8eb72ce6f3ccc07466e97f3
PHP
kuztom/product_catalog
/app/Services/Products/EditProductsService.php
UTF-8
436
2.546875
3
[]
no_license
<?php namespace App\Services\Products; use App\Repositories\MysqlProductsRepository; class EditProductsService { private MysqlProductsRepository $productsRepository; public function __construct() { $this->productsRepository = new MysqlProductsRepository(); } public function execute(Edit...
true
84fe62dfba7237e1e850aa9101e356f7380d54e8
PHP
Rijon19-39460-1/SIX-SEASONS-TRAVEL-AGENCY
/SAKIB/Model/dbguideD.php
UTF-8
1,869
2.515625
3
[]
no_license
<?php include 'dbconnect.php'; function reg($guideid, $fullname,$gender, $dob, $religion, $Praddress, $Peaddress, $phone, $email, $country, $region,$type,$timee) { $conn = connect(); $stmt = $conn->prepare("INSERT INTO TGUIDED (guideid, fullname,gender, dob, religion, Praddress, Peaddress, phon...
true
fe89e813f17de0680d2d791d7ea83af4187eb5b4
PHP
tn710617/checkinSystem
/app/Http/Controllers/LoginController.php
UTF-8
1,338
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Token; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Validator; class LoginController extends Controller { public function login(Request $request) { $request->validate(...
true
4be0b80cf3dc6afa801a0648da0b3d1be707b61a
PHP
bigvase/phpSummary
/extend/addons/libs/Cache/RedisList.class.php
UTF-8
6,078
2.859375
3
[ "Apache-2.0" ]
permissive
<?php class RedisList { private $key = ''; private $prefix = ''; private $expire = 3600; private $handler = null; static function getInstance($redisKey,$expire=3600){ return new self($redisKey, $expire); } function __construct($redisKey, $expire, $redis='default'){ ...
true
b6ab3e6bf04369751e90f484450a8c71d0fc907b
PHP
renatinhah/blacklist
/outros/config/dbclass.php
UTF-8
767
2.921875
3
[]
no_license
<?php include '/config.php'; var_dump($DATABASE); die; class DBClass { // private $host = "localhost"; // private $username = "root"; // private $password = "root"; // private $database = "blacklist"; public $connection; public function getConnection(){ var_dump($host); die; $...
true
1a393f231a19af1ff43913ba0c29e926d19dc828
PHP
sjoerdzagema/Sjoerd
/fetch_scores.php
UTF-8
387
2.890625
3
[]
no_license
<?php require_once("config.php"); $sql = "SELECT name,rating FROM standings"; $result = mysqli_query($conn, $sql); if(mysqli_num_rows($result) > 0){ while($row = mysqli_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['name'] . "</td>"; echo "<td>" . $row['rating'] . "</td>"; echo "</tr>"; }...
true
aabc19c8c764ee3653a0ee09f8a6cefcc0cc8f42
PHP
tpapedce/formation
/lib/vendors/Model/MemberManager.php
UTF-8
847
2.875
3
[]
no_license
<?php namespace Model; use \OCFram\Manager; use \Entity\Member; abstract class MemberManager extends Manager { abstract protected function add( Member $member ); public function save( Member $member ) { if ( $member->isValid() ) { $member->isNew() ? $this->add( $member ) : $this->modify( $member ); } els...
true
bd0dc2e06c8ce203119f9365a13fbd24755ef2b5
PHP
luigif/WsdlToPhp
/samples/ebay-trading/Store/Type/EbayTradingTypeStoreOwnerExtendedListingDurationsType.php
UTF-8
2,083
2.59375
3
[]
no_license
<?php /** * Class file for EbayTradingTypeStoreOwnerExtendedListingDurationsType * @date 04/07/2012 */ /** * Class EbayTradingTypeStoreOwnerExtendedListingDurationsType * Documentation : Defines the extended listing durations available to store owners. If the field is present, the corresponding feature applies to ...
true
d1de8ef20de86403940532e8a52591a4be92177e
PHP
FMTCco/php-integrations
/src/Apis/AvantLink/Responses/BaseAvantLinkResponse.php
UTF-8
807
2.875
3
[]
no_license
<?php namespace FMTCco\Integrations\Apis\AvantLink\Responses; abstract class BaseAvantLinkResponse { /** * @param string $value * @return float */ protected function cleanFloat($value) { if (str_contains($value, ["(", ")"])) { echo 'dying in BaseAvantLinkResponse';...
true
a30f71f80ee77358350aa6613df90a6217bd1bf4
PHP
dogcalas/cursoframework
/saue/lib/ZendExt/WF/WFObject/Entidades/Precision.php
UTF-8
647
2.5625
3
[]
no_license
<?php class ZendExt_WF_WFObject_Entidades_Precision extends ZendExt_WF_WFObject_Base_SimpleElement { public function __construct($parent) { parent::__construct($parent); $this->tagName = "Precision"; } public function clonar() { return; } public function getP...
true
6c21e61c6fbdfc5ede50c6ed22cde23008d94fbb
PHP
Bloemkoolsaus/eve-vippy
/modules/eve/classes/controller/Item.php
UTF-8
2,882
2.703125
3
[]
no_license
<?php namespace eve\controller { class Item { protected $db = null; function getFittingInvFlagHighSlotIDs() { $ids = array(); if ($results = \MySQL::getDB()->getRows("SELECT flagid FROM invflags WHERE flagname LIKE 'HiSlot%'")) { foreach ($results as $result) { $ids[] = $result["flagid"]; } ...
true
bca8f92192c8ffda2e331ef73e4e485665c03897
PHP
EwertonHallan/ifal_daa_mcz
/controle_daa/banco/conexao.php
UTF-8
2,401
2.6875
3
[]
no_license
<?php class Conexao { private $user = "root"; private $senha = ""; private $banco = "controle_daa"; private $servidor = "localhost"; //private $servidor = "172.16.5.244"; // claudia //private $servidor = "172.16.26.146"; // ewerton private static $pdo; public function ...
true
f913223d1f05ffa11e28e7dbeedaa4195acf6865
PHP
AntPzk90/380487-doingsdone
/functions.php
UTF-8
4,650
2.875
3
[]
no_license
<?php function include_template($name, $data) { $name = 'templates/' . $name; $result = ''; if (!is_readable($name)) { return $result; } ob_start(); extract($data); require $name; $result = ob_get_clean(); return $result; } /** * ф-ция считает количество задач в конкретн...
true
239c2d2c3e7bdc29040a35488b3bd6e60bc3c99b
PHP
khadizaakhtar/small_application_in_pip
/ideascompany/application_last/controllers/login_controller.php
UTF-8
7,138
2.515625
3
[ "MIT" ]
permissive
<?php class Login_controller extends Controller { public function __construct() { // $model= $this->loadModel('login_model'); } public function index() { $model = $this->loadModel('login_model'); $template = $this->loadView('login_view'); $session = $this->loadHelper('sess...
true
ff57027c738d9aa133a689da01aa5ea89ad76d82
PHP
bkrukowski/searchperience-api-client
/src/Searchperience/Api/Client/System/Storage/RestStopwordTagBackend.php
UTF-8
2,002
2.546875
3
[]
no_license
<?php namespace Searchperience\Api\Client\System\Storage; use Searchperience\Api\Client\Domain\Stopword\StopwordTag; use Searchperience\Api\Client\Domain\Stopword\StopwordTagCollection; use Searchperience\Common\Http\Exception\EntityNotFoundException; /** * Class RestStopwordTagBackend * @package Searchperience\Ap...
true
8004a027f851d872bee8dd9a0516269dbf922e98
PHP
lukes-hemzal/gplusflickr
/app/oauth/OauthBuilder.php
UTF-8
1,557
2.671875
3
[]
no_license
<?php namespace gplusFlickr\oauth; use GuzzleHttp\Client, GuzzleHttp\HandlerStack, GuzzleHttp\Subscriber\Oauth\Oauth1; /** * @author Lukes Hemzal <lukes@hemzal.com> */ class OauthBuilder extends ClientBuilder{ /** @var string */ protected $consumerKey; /** @var string */ protected $consumerSecret; /** @var ...
true
a45f70b0e57d8f81e25ca17bbddba1cd16623589
PHP
zuihouyigemeng/webbackend
/curl_study/curl_xml.php
GB18030
1,014
2.640625
3
[]
no_license
<?php $ch = curl_init(); $timeout = 5; $url="http://www.baidu.com"; curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $contents = curl_exec($ch); echo $contents; /* ...
true
204b708cd78c4dafe7a811d1485bcc9e409548fc
PHP
s3db/s3db
/pearlib/rdfapi-php/api/infModel/InfModel.php
UTF-8
22,359
2.765625
3
[ "MIT" ]
permissive
<?php // ---------------------------------------------------------------------------------- // Class: infModel // ---------------------------------------------------------------------------------- /** * A InfModel Model extends a MemModel , by adding the ability to infer statements from * known statements an...
true
74cca0a3c2bd94d3376f0f4f3be796926922be17
PHP
unnecessaryroughness/tonksdev-chlog
/activate/activate_control.php
UTF-8
1,794
2.578125
3
[]
no_license
<?php namespace chlog; class Activate_Control extends ChlogController { /* ============================================ FUNCTION: __construct PARAMS: (none_ RETURNS: (object) PURPOSE: constructs the class ============================================ ...
true
3a8ff7edcb2be4eebb0b10729f980847ddedfea0
PHP
qyt1988528/shenghuogan
/vendor/maiyuan/services/src/Magento/Modules/Oceanpay.php
UTF-8
970
2.53125
3
[]
no_license
<?php namespace Maiyuan\Service\Magento\Modules; class Oceanpay extends Module { /** * oceanpay order * @param $orderId order id * @param $cardNumber card number * @param $date data [month,year] * @param $cardHolderName card holder name * @param...
true
01d34a36282c9da4d3415bcdbbc5191c11262892
PHP
tony-tran/en-marche.fr
/src/Entity/DonatorIdentifier.php
UTF-8
833
2.6875
3
[ "GPL-3.0-only", "Apache-2.0" ]
permissive
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name="donator_identifier") * @ORM\Entity(repositoryClass="App\Repository\DonatorIdentifierRepository")* */ class DonatorIdentifier { /** * The unique auto incremented primary key. * * @ORM\Id * @ORM\Column(type="...
true
985493dbd310b70ee91fff2be113cfc90713c852
PHP
Synj24/Aurora-borealis
/hello.php
UTF-8
3,389
2.5625
3
[]
no_license
<?php /** * @package Aurora-borealis * @version 1.0 */ /* Plugin Name: Aurora Borealis Plugin URI: https://wordpress.org/plugins/aurora-borealis Description: A delightfully devilish wordpress plugin forked from "Hello Dolly". When activated you will randomly see a line of dialog from Seymour Skinners unforgettable l...
true
ed13d38c3e137799af9568278ff8af4d12a73def
PHP
pierre42100/saisieCours
/pages/login/views/v_login.php
UTF-8
1,637
2.625
3
[]
no_license
<?php /** * Vue principale du gestionnaire de connexion au service * * @author Pierre HUBERT */ isset($_SESSION) OR die('unallowed !'); //Inclusion des feuilles de style echo inc_css_code(path_to_css("login/login")); //On vérifie si il faut afficher une erreur if(isset($loginError)){ echo_erreur_not...
true
a5467c7e91f049b537b0d5adbd31d146253c9618
PHP
VictorCruzM/proyecto2dw
/insertar.php
UTF-8
964
2.828125
3
[]
no_license
<?php //incluyo otros archivos include ("conexion.php"); //Obtiene los datos del formulario $Nombe = filter_input(INPUT_POST, 'Nombre'); $Carnet = filter_input(INPUT_POST, 'Carnet'); $Email = filter_input(INPUT_POST, 'Email'); //Valida que los campos no estén en blanco if (!empty($Nombe) ) { $con = mysqli_con...
true
c48a0f02ee418d539238cd22d8d5bc8c7d01cab5
PHP
Ragavendra123/php
/labsq1.php
UTF-8
675
3.703125
4
[]
no_license
<?php if (isset($_POST['submit'])) { $number = rand(1, 100); $sq = $number * $number; } ?> <!DOCTYPE html> <html lang="en"> <head> <title>Square of a Random Number</title> </head> <body> <div> <form action="" method="post"> <label for="number">Random Number</label...
true
7037f67edda3c6ebab2f82e5a6c69b6e7f89e391
PHP
miguelmjmc/Proyecto-IV
/src/AppBundle/Entity/VehicleCategory.php
UTF-8
2,427
2.640625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace AppBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use MJMC\Bundle\CrudBundle\Core\AbstractCrud; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Validator\Constraints as Assert; /** * VehicleCategory * * @ORM\T...
true
f6b3c8c4b86930c554655d27c33812ce21b0b0ec
PHP
eceon/framework
/src/Eceon/DI/Loader/Json.php
UTF-8
988
2.515625
3
[ "MIT" ]
permissive
<?php /** * Eceon Framework (http://eceon.mezio.nl/) * * @author Ted van Diepen (t.v.diepen@mezio.nl) * @copyright Copyright (c) 2012-2014 Mezio (http://www.mezio.nl) * @version $Id: XML.php 354 2015-06-01 13:44:53Z ted $ * $package Eceon/DI/Loader */ namespace Eceon\DI\Loade...
true
036e6dc832e86e707f8c4cb99ccd0289934b71fd
PHP
fecaps/tire-control-api
/src/Api/Model/Vehicle/Model.php
UTF-8
1,934
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace Api\Model\Vehicle; use Api\Validator\Vehicle\Model as ModelValidator; use Api\Repository\Vehicle as VehiclesRepository; use Api\Exception\ValidatorException; /** * @Entity @Table(name="vehicle_model_brand") **/ class Model { /** * @Id * @Column(type="integer")...
true
698b63d88f56504a8d72b06c45a017243afb01e6
PHP
ParfDesai/DareSoftware
/DARE/view/calc.php
UTF-8
2,641
2.703125
3
[]
no_license
<!DOCTYPE html> <html> <div class="homeBack"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title> Dare | Welcome </title> <link rel="stylesheet" href="view/style.css"> </head> <?php include 'stuNav.php'; ?> <?php $gra...
true
b70bbb1c5219e7d134e1dfb65e98b7709821bbd6
PHP
Seledtsov/edemDikarem
/admin/inc/func/db_structure_edit_post.php
WINDOWS-1251
10,694
2.546875
3
[]
no_license
<? // // id function target_column_info ($conn, $id) { $target_column_info_sql = " select c.name as colname, t.name as tabname, ct.name as type_name from ".TABLE_PRE."...
true
fb9217896dbad16d86b1ac8d84eabc2ff8df043b
PHP
amoking/ebooks_store
/register.php
UTF-8
2,946
2.875
3
[]
no_license
<?php $page_title='Register'; include('includes/header.html'); if ($_SERVER['REQUEST_METHOD']=='POST')#Checks if the Submit Button has been clicked { require('connect_db.php'); $fname=trim($_POST['fname']); $fn=mysqli_real_escape_string($dbc,$fname ); $fn= htmlentities($fn); ...
true
dbca51b05c4713936e3b0558dcddef75218cd9e7
PHP
siggwer/P5.OpenClassRooms
/src/Controllers/AbstractController.php
UTF-8
1,202
2.8125
3
[ "MIT" ]
permissive
<?php namespace app\Controllers; /** * Description of DashboardController. * * @author Sabri Hamda */ abstract class AbstractController { private $request; private $loader; public $user; public $message = []; public function __construct($request) { $this->user = blog()->getIdentit...
true
e3bc1d63d834c04d059ec781c8ffbf68fa2910d3
PHP
drimboat/osivis
/osivis/includes/query.php
UTF-8
6,033
2.703125
3
[]
no_license
<?php // query for section a-c $query = "SELECT sec, sectionid FROM questions NATURAL JOIN section WHERE courseid=$id AND yearid=$y GROUP BY sectionid ORDER BY sectionid ASC"; // execute query $r_sec= mysqli_query($conn, $query); ...
true
c1a341831f1d83bd4025252188f39651dc894b5d
PHP
robertmaxton42/ScryingMirror
/index.php
UTF-8
4,354
2.609375
3
[]
no_license
<?php if (!$_POST) return; //Break if there's no POST. $dom = new DOMDocument(); $dom->formatOutput = true; //Get the webpage by POST from the GreaseMonkey plugin //Parse into a DOM, and grab the head and body tags while we're at it. $PageContents = urldecode($_POST['pageContents']); ...
true
e934cac978b1d3542d31543fb3cc54504fc62fc6
PHP
AlchemistsLab/covalent-php-sdk
/lib/Request.php
UTF-8
1,223
3.078125
3
[]
no_license
<?php namespace Covalent; use GuzzleHttp\Client; class Request { /** * primer syntax * @var string $primer */ protected string $primer; /** * primer match syntax * @var string $match */ protected string $match; /** * Number of results per page. * @var i...
true
b8d82e53b7e320eb986d9ecb1a3592a2a28d3ea7
PHP
sebhtml/inicrond
/inicrond/src/includes/class/Inicrond_mysql_db.class.php
UTF-8
4,400
3
3
[]
no_license
<?php /* $Id$ Inicrond : Network of Interactive Courses Registred On a Net Domain Copyright (C) 2004, 2005 Sébastien Boisvert This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;...
true
3d66abdafd5c8a6970c84d2c8d758b7db5c8fdda
PHP
tweedegolf/swiftmailer-logger-bundle
/src/TweedeGolf/SwiftmailerLoggerBundle/EventListener/SendListener.php
UTF-8
2,362
2.796875
3
[ "MIT" ]
permissive
<?php namespace TweedeGolf\SwiftmailerLoggerBundle\EventListener; use Swift_Events_SendEvent; use Swift_Events_SendListener; use TweedeGolf\SwiftmailerLoggerBundle\Logger\LoggerInterface; /** * Class SendListener * @package TweedeGolf\SwiftmailerLoggerBundle\EventListener */ class SendListener implements Swift_Ev...
true
712721c32b2e3ecff08a8d7bb6ecd6169d276dfc
PHP
stephens2424/php
/testdata/fuzzdir/corpus/Zend_tests_generators_yield_precedence.php
UTF-8
504
3.03125
3
[ "BSD-3-Clause" ]
permissive
<?php function gen() { yield "a" . "b"; yield "a" or die; yield "k" => "a" . "b"; yield "k" => "a" or die; var_dump([yield "k" => "a" . "b"]); yield yield "k1" => yield "k2" => "a" . "b"; yield yield "k1" => (yield "k2") => "a" . "b"; var_dump([yield "k1" => yield "k2" => "a" . "b"]); ...
true
3371d0b6ea062ee7e7f52e0a1f64ec5e43530712
PHP
sbuckpesch/Quiz_App2
/modules/Init.php
UTF-8
3,814
2.53125
3
[]
no_license
<?php /** * this is for init db,fluttery,global varialbes, aut facebook and so on * so in other page can only call method which it needed, but do not init all the things as before */ class Init { /** * init db connection * after that $db=Frd::getDb() can work,or $global->db */ function initDb() { ...
true
f8e7e4be80ede917d6addcc5a2f5ce08d7611ede
PHP
h5n1/capella
/protected/models/Tikitransdet.php
UTF-8
4,474
2.515625
3
[]
no_license
<?php /** * This is the model class for table "tikitransdet". * * The followings are the available columns in table 'tikitransdet': * @property integer $tikitransdetid * @property integer $airwaybillno * @property string $description * @property integer $pieces * @property string $weight * @property integer $...
true
5b70e4ca3696c7935960a35b196478d963a406ac
PHP
xavieremerson/buckingham-tdw2
/eta/includes/cd_win32/phpdemo/clickpie.php
UTF-8
2,659
2.9375
3
[ "IJG" ]
permissive
<?php require_once("../lib/phpchartdir.php"); # Get the selected year and month $selectedYear = (int)($_REQUEST["year"]); $selectedMonth = (int)($_REQUEST["x"]) + 1; # # In this demo, we just split the monthly revenue into 3 parts using random ratios. # In real life, the data probably can come from a database based o...
true
70b26b044de00d19d96a5f9621e20860a94ef04d
PHP
limostr/mvc
/Controlurl.php
UTF-8
965
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: username * Date: 10/07/2017 * Time: 21:15 */ namespace mvc; use Application; //include_once dirname(__FILE__) . "/Application.php"; abstract class Controlurl { static public $_class; static public $_method; static private $data; static public function...
true
756b7da28560e2d180c9ec5d363d7629e37d2f40
PHP
darieldejesus/example-php-project
/app/Helpers/IPLocator.php
UTF-8
1,839
3.375
3
[]
no_license
<?php namespace App\Helpers; /** * @author Dariel de Jesus <darieldejesus@gmail.com> * @version 0.1 * * This Helper contains all necessary functions to get coordinates from an IP. */ class IPLocator { /** * @var string Contain the domain this helper uses to make the requests. * @see http://ip-api.c...
true
ad70c0e3cdc843dcca133f6fc630dd290e4bf8e5
PHP
Chathura-Rathnayake/EXL-Exchange
/application/models/adminDashboardModel.php
UTF-8
4,553
2.84375
3
[]
no_license
<?php class adminDashboardModel extends database { /* check user is a admin or not */ public function adminCheck($userName) { $userName = mysqli_real_escape_string($GLOBALS['db'], $userName); $userCheck = "SELECT * FROM admin WHERE userName='$userName' LIMIT 1"; $result = mysqli_quer...
true
9c09e780aee8082d9df31b9d51f5723b24625ea2
PHP
joseolinda/escritordesoftware
/workspace/escritordesoftware/class/especificas/SoftwareDAO.class.php
UTF-8
4,472
3.25
3
[]
no_license
<?php class SoftwareDAO{ public $conexao; public function setConexao(PDO $conexao){ $this->conexao = $conexao; } /** * Serve para inserir nome, linguagem em uma tabela software, * retorna o id desta insersao * @param Software $software */ public function inserir(Software $software){ //Primei...
true
ebfdd72b428a3972e34e76da1ab33685cab6b1ed
PHP
driebit/prepper
/src/FixtureLoader/ResettableFixtureLoader.php
UTF-8
697
2.65625
3
[ "MIT" ]
permissive
<?php namespace Driebit\Prepper\FixtureLoader; use Driebit\Prepper\Fixture\FixtureSet; use Driebit\Prepper\Resetter\ResetterInterface; class ResettableFixtureLoader extends AbstractFixtureLoaderDecorator { private $resetter; public function __construct( FixtureLoaderInterface $loader, Re...
true
05371aac70fc8e0e6d82585a09326f97d629798b
PHP
SeStep/nette-typeful
/src/Forms/StandardControlsFactory.php
UTF-8
2,821
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SeStep\NetteTypeful\Forms; use Nette\Forms\Controls\MultiSelectBox; use Nette\Forms\Controls\SelectBox; use Nette\Forms\Form; use Nette\Forms\Controls\BaseControl; use Nette\Forms\Controls\TextArea; use Nette\Forms\Controls\TextInput; use Nette\InvalidArgumentException; use Se...
true
548eee77162af37fb40e30b2e890bffda64d10b9
PHP
govwiki/file-library
/src/Repository/UserRepository.php
UTF-8
1,853
2.828125
3
[]
no_license
<?php namespace App\Repository; use App\Entity\User; use Doctrine\ORM\AbstractQuery; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; /** * Class UserRepository * * @package App\Repository */ class UserRepository extends EntityRepository implements...
true
d6e48f3f0b679c31c7923b2711c933f7ce84e7a3
PHP
Shinidoki/PHP-TTT-NeuralNet
/classes/xando/XandO.php
UTF-8
6,366
3.3125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dennis.schnitzmeier * Date: 16.07.2015 * Time: 16:46 */ class XandO { protected $board; protected $currentTurn = 0; protected $currentPlayer = 0; /** @var Player[] $players */ protected $players; protected $boardSize; protected $gameResult; ...
true
b8cd43febe4ef166e1fcde7a1ef42814f91ae1fa
PHP
JasminBektic/ottivo
/src/Entity/Employee/Employee.php
UTF-8
2,529
3.0625
3
[]
no_license
<?php namespace Ottivo\Entity\Employee; class Employee { public const BASE_VACATION_DAYS = 26; public const MIN_AGE = 30; public const STEP_CALCULATING_ADDITIONAL_DAYS = 5; private $name; private $birthdate; private $contractStartDate; private $specialContract; private $vacationDays;...
true
e5d7d3a6043651a29965fe9bbb7a9bb990913be3
PHP
gariev/xref
/lib/XRef/Storage/File.class.php
UTF-8
3,560
2.96875
3
[ "Apache-2.0" ]
permissive
<?php class XRef_Storage_File implements XRef_IPersistentStorage { private $dbDir; private $locks = array(); // key name -> file handle public function __construct() { $this->dbDir = XRef::getConfigValue("xref.data-dir"); XRef::createDirIfNotExist($this->dbDir); } public function s...
true
28bd82aa3efdce7feeaf2c272834699ef73261a9
PHP
sasedev/CommonsHtmlmodel
/src/Sase/Commons/Htmlmodel/Tag/InlineTextSemantic/ATag.php
UTF-8
1,818
2.96875
3
[ "MIT" ]
permissive
<?php /** * ATag * * a element representation Class * * * @category html5 * @author <a href="mailto:seif.salah@gmail.com">sasedev</a> * @license MIT * @copyright <a href="https://sasedev.net">sasedev</a> 2017 */ namespace Sase\Commons\Htmlmodel\Tag\InlineTextSemantic; use Sase\Commons\Htmlmodel\Abs...
true
ab5f1839286417acbc9dbbe7336ffaded12acf55
PHP
nemundo/core
/src/Image/AbstractImage.php
UTF-8
307
2.71875
3
[ "MIT" ]
permissive
<?php namespace Nemundo\Core\Image; use Nemundo\Core\Base\AbstractBaseClass; class AbstractImage extends AbstractBaseClass { /** * @var string */ protected $sourceFilename; public function __construct($imageFilename) { $this->sourceFilename = $imageFilename; } }
true
1f82a2b65cbcae24f90d2ebbfad19cf0d0cde5f9
PHP
KorzhovAlexander/MVCshopPhP
/components/DAO.php
UTF-8
439
2.734375
3
[]
no_license
<?php abstract class DAO { private static $connection; public static function getConnection() { $paramsPath=ROOT.'/config/dbconfig.php'; $params=include($paramsPath); $dsn="mysql:host={$params['host']};dbname={$params['dbname']};charset={$params['charset']}"; ...
true
84467ab47a3825b841c6d35b6d8bfae193e4faa4
PHP
nanabaahgyan/RadioMarche
/library/Voices/Model/Data/Aggregator.php
UTF-8
17,599
2.65625
3
[]
no_license
<?php /** * Class to communique generation and relation functionality * * @package Application */ class Voices_Model_Data_Aggregator { /** * This function accomplishes the following * * to publish communique on voice platform * * notify by emails. * * makes a backup of communque information * * @...
true
961af59576dd38c607349739f9a5cebf9c80a63d
PHP
popovserhii/variably
/src/Helper/FilterGet.php
UTF-8
1,291
2.546875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Andrey * Date: 30.08.2018 * Time: 11:32 */ namespace Popov\Variably\Helper; use __; class FilterGet extends HelperAbstract implements FilterInterface { public function filter($value) { $params = $this->getConfig('params'); $path = $params[0]; ...
true
00fd0f10e1e2838a4150a5beb97e43e39b86c1e1
PHP
vuefront/prestashop
/system/vendor/webonyx/graphql-php/src/Type/SchemaConfig.php
UTF-8
7,285
2.84375
3
[ "MIT" ]
permissive
<?php namespace GraphQL\Type; use GraphQL\Language\AST\SchemaDefinitionNode; use GraphQL\Type\Definition\Directive; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Definition\Type; use GraphQL\Utils\Utils; /** * Schema configuration class. * Could be passed directly to schema constructor. List of options a...
true
26524dca6420679d4c0daf670daa9750bbae2cd5
PHP
patrickagduma/capstone-project
/Teacher_Topic.php
UTF-8
1,729
2.625
3
[]
no_license
<?php require_once('libs/connect.php'); session_start(); $courseId = 0; $subjectId = null; $topicText = ""; $topicSummary = ""; $topicVideoLink = ""; if (isset($_GET['cid'])) { $courseId = $_GET['cid']; } if (isset($_SESSION['topic'])) { $topicDetails = $_SESSION['topic']; if (isset($topicDet...
true
41880d41bf5443cab9645ec31cef616ec9aaa4ff
PHP
jeffsocal/proxy-sci
/src/Omics/Proteomics/PeptideModifications.php
UTF-8
7,313
2.703125
3
[ "MIT" ]
permissive
<?php /* * Written by Jeff Jones (jeff@socalbioinformatics.com) * Copyright (2016) SoCal Bioinformatics Inc. * * See LICENSE.txt for the license. */ namespace ProxySci\Omics\Proteomics; use function BenTools\CartesianProduct\cartesian_product; class PeptideModifications extends Peptide { private $array_uni...
true
8c90c1485bb757e267794929863375edafbb2723
PHP
yiigenius/yii-jobs
/app/components/JobsUser.php
UTF-8
448
3
3
[]
no_license
<?php /** * WikiUser */ class JobsUser implements IJobsUser { /** * @param mixed $id ID of the user. * * @return string name of the user. */ public function getNameById($id) { $user = User::model()->findByPk($id); return $user->name; } /** * @param int $id ID of the user. * * @return string em...
true
2c3a7b2caf702ba3cc8ac297ae79405e921122fe
PHP
jrafael10/complete-phpdev-lesson-files
/chapter-seven/serializing-objects/serializing-objects.php
UTF-8
1,025
3.265625
3
[]
no_license
<?php require_once './vendor/autoload.php'; class Manager { public function __construct(public string $name) { } } class Department implements Serializable { public ?Manager $manager; public function __construct(public string $name) { } public function serialize() { re...
true