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
8741d141028afdb1a490954ba7fb56a3455cae84
PHP
sarkrui/Music-Sharing-Prototype
/Digital Prototype/updatequeue.php
UTF-8
653
2.546875
3
[ "MIT" ]
permissive
<?php require('db.php'); $sql = "SELECT * FROM Queue1 WHERE position_order > 1 ORDER BY position_order ASC "; $users = $connect->query($sql); while ($user = $users->fetch_assoc()) { echo "<tr id='"; echo $user['id']; echo "'>"; echo "<td id=...
true
7220547c6692c981dbc1699eda16bb98200bee1e
PHP
tommy7600/PHPNursery-Exercise
/pbartela/task3/produkt.php
UTF-8
2,171
2.796875
3
[]
no_license
<?php include 'lizak.php'; include 'ser.php'; include 'monitor.php'; include 'zelki.php'; include 'beton.php'; abstract class produkt { private $nazwa; private $producent; private $netto; private $brutto; private $vat; private $ilosc; function __construct($nazwa,$producent,$netto,$i...
true
839f463027f3a5f4d466998502ba9f259271dd3b
PHP
allanroberto18/phpunit-example
/src/Repository/HorseRaceDetailRepository.php
UTF-8
682
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Repository; use App\Entity\HorseRaceDetail; use App\Interfaces\Repository\HorseRaceDetailRepositoryInterface; use Doctrine\ORM\EntityRepository; class HorseRaceDetailRepository extends EntityRepository implements HorseRaceDetailRepositoryInterface { /** * @param ...
true
18c43701eca412ee3be0c7c1098ba9faf3c6ce03
PHP
cgutteridge/manmonth
/app/MMAction/Action.php
UTF-8
1,364
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\MMAction; use App\Fields\Field; use App\Models\Rule; use App\RecordReport; /** * Class AbstractAction * @package App\MMAction */ abstract class Action { /** * @var */ public $name; public $action_type; /** * Has some parameters with an ordered name & type and ...
true
59bdcc5ea0033670f31347980dd8def46ff1d29d
PHP
Gcaufy/Homie
/server/app/Http/Controllers/FrontendController.php
UTF-8
1,049
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\TemparatureHumidity; use Illuminate\Http\Request; class FrontendController extends Controller { public function camera() { return view('camera'); } public function temparature() { $models = TemparatureHumidity::orderBy('time', '...
true
ee33fbdc6f687d9c6a3570d35b698dad06153d30
PHP
AmadeusDelfino/php-leader
/server/src/Services/CacheService.php
UTF-8
1,938
2.59375
3
[ "MIT" ]
permissive
<?php namespace ADelf\LeaderServer\Services; use ADelf\LeaderServer\Cache\Item; use ADelf\LeaderServer\Contracts\Cache\CacheItem; class CacheService { public function get(string $key, callable $alternative = null, $expiresAt = null) { $item = cache()->cachePool()->getItem($key); if(!is_call...
true
220f35c14543edd282554b8d1271c62915313de7
PHP
sledgehammer/orm
/src/ModelConfig.php
UTF-8
4,395
2.78125
3
[]
no_license
<?php namespace Sledgehammer\Orm; use Sledgehammer\Core\Base; /** * Model configuration class, a formal definition of a Repository model. */ class ModelConfig extends Base { /** * The name of the model. * * @var string */ public $name; /** * The name of the model in plural fro...
true
11c06d107d7a5886477c1218b6e3cdbf38fd54a9
PHP
DevBrankov/susan
/dataBase.php
UTF-8
566
2.703125
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $database = "susan"; $connection = mysqli_connect($servername, $username, $password, $database); if (!$connection) { $information = file_get_contents('database.json'); $products = json_decode($information, true); return $products; ...
true
005d36b5cac86dfc863b0c8713f40f32747a42e9
PHP
jamarcer/symfony-messenger-logging
/src/Info/InfoProcessor.php
UTF-8
1,545
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Jamarcer\DDDLogging\Info; use Monolog\Processor\ProcessorInterface; use Jamarcer\Ddd\Util\Message\AggregateMessage; use Jamarcer\Ddd\Util\Message\Message; final class InfoProcessor implements ProcessorInterface { public function __invoke(array $record) { if (f...
true
76f4e033fd8914757daa19c2442ea9db5997010c
PHP
tweetyx/chronopost_chronofresh
/Model/Config/Source/Contract.php
UTF-8
696
2.65625
3
[]
no_license
<?php namespace Chronopost\Chronorelais\Model\Config\Source; use Chronopost\Chronorelais\Helper\Data; class Contract implements \Magento\Framework\Option\ArrayInterface { protected $helper; public function __construct( Data $helper ) { $this->helper = $helper; } /** ...
true
d47a1df49c2cb929fe6d63705272e21c8ea87a99
PHP
Cortez-Maryann/cst336
/project/team9project/inc/functions_antonio.php
UTF-8
2,194
2.625
3
[]
no_license
<?php include '../dbConnection.php'; $dbConn = startConnection(); function displayMovieInfo(){ global $dbConn; if(isset($_POST['infoId'])){ $id = $_POST['infoId']; $sql = "SELECT * FROM `blockbuster` WHERE 1"; $stmt = $dbConn->prepare($sql); ...
true
b37f367045f795022b8f62650ddc9df267b6b001
PHP
bworkman1/Network4Rentals
/application/models/special/promo_codes.php
UTF-8
510
2.625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Promo_codes extends CI_Model { public function __construct() { parent::__construct(); } public function checkPromoCode($code, $type) { $query = $this->db->get_where('p...
true
ca7fba5735f8b35dac120a421ef0c07fcc531e7a
PHP
digitalando/fullstack-nordelta-01
/php/clase-5/repaso/json.php
UTF-8
589
2.84375
3
[]
no_license
<?php // file_get_contents() se puede usar con URLs también y es muy útil // para trabajar con APIs de manera rápida. $jsonPais = file_get_contents('https://restcountries.eu/rest/v2/all'); $arrayPais = json_decode($jsonPais, true); ?> <!-- En este ejemplo usamos la información de la API para llenar nuestro se...
true
1a6bd1e5fa153c41fc4ab7e5cb08e64090d0add2
PHP
Facundo14/mantenimiento
/app/Policies/SectorPolicy.php
UTF-8
2,022
2.515625
3
[]
no_license
<?php namespace App\Policies; use App\User; use App\Sector; use Illuminate\Auth\Access\HandlesAuthorization; class SectorPolicy { use HandlesAuthorization; public function before($user) { if ($user->hasRole('Admin')) { return true; } } /** * Determine whether t...
true
31e02c4ff6add1e6d78c6abaabbf60db96692a82
PHP
fujidomoe/clarc-php-concept
/framework/Basis/Console/Command/Command.php
UTF-8
1,632
2.96875
3
[]
no_license
<?php namespace Clarc\Basis\Console\Command; use Clarc\Basis\Console\Input\InputInterface; use Clarc\Basis\Console\Input\Question\ChoiceQuestion; use Clarc\Basis\Console\Output\OutputInterface; abstract class Command { public abstract function handle(); protected $signature = ''; privat...
true
67ebe3236cf7850a259f8d1fad17b1207277aa90
PHP
chamathsilva/Tourism-service-
/application/controllers/promomotion_pro.php
UTF-8
1,143
2.5625
3
[]
no_license
<?php require "dbfunctions.php"; if($_POST) { //check if its an ajax request, exit if not if(!isset($_SERVER['HTTP_X_REQUESTED_WITH']) AND strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') { $output = json_encode(array( //create JSON data 'type'=>'error', 't...
true
597adb807b56ec200d331917b11297801fe02e2e
PHP
Suleiman700/monopoly
/inc/resetMoney.php
UTF-8
1,849
2.703125
3
[]
no_license
<?php include_once 'db.php'; $sql='SELECT startMoney FROM config'; $stmt=$conn->prepare($sql); $stmt->execute(array()); $startMoney=$stmt->fetchColumn(); try { $sql = "UPDATE players SET pBal='$startMoney.' WHERE pId='0'"; $sql2 = "UPDATE players SET pBal='$startMoney.' WHERE pId='1'"; //Delete [m...
true
c6cbae4889e70934590e086572d04393761055ef
PHP
REGG24/SharedThoughts
/php/upload.php
UTF-8
1,446
2.984375
3
[]
no_license
<?php if(isset($_POST)){ $file = $_FILES['image']; //gets all the information from the file $fileName = $_FILES['image']['name'];//we want to get the name of the file $fileTmpName = $_FILES['image']['tmp_name'];//temp location of the file $fileSize = $_FILES['image']['size']; $fileError = $_FIL...
true
d459e4297883d2dc7084a7aef24f4ccc2ef5de60
PHP
waga/cweb-task
/task/Validator/Form.php
UTF-8
1,633
3
3
[]
no_license
<?php namespace Task\Validator; use CWeb\Validator; class Form extends Validator { /** * Validate form * * @param array $data Input data to validate * @return bool */ public function validate(array $data) { if (!array_key_exists('email', $data) || !$data['email']) { ...
true
5519d193e8a99a97960d9f8fb8261968a60ecc8c
PHP
idlefox123/srms.bcshs.dev
/classes/SetDefaults.class.php
UTF-8
10,875
2.75
3
[]
no_license
<?php include_once('DatabaseController.php'); include_once('Defaults.class.php'); include_once('Validation.class.php'); include_once('Message.class.php'); /** * */ class SetDefaults { protected $AY = "academicyear"; protected $semesterTable = "semester"; private $validated_attr = array(); private $message; ...
true
4f30fb5c7e8acd4c9bcca9c840e632481918b244
PHP
TraberSoftware/MySQL_Navigator
/index.php
UTF-8
7,040
2.71875
3
[]
no_license
<html> <head> <link rel="StyleSheet" HREF="css/style.css" TYPE="text/css"> <script type="text/javascript" src="js/jquery.js"></script> </head> <body> <?php include('config.php'); $query = ''; if (isset($_GET['database']) && !isset($_GET['table'])){ $database = $_GET['database']; printTables($databas...
true
6e899265238204ab531ad3a8e7446f215c500622
PHP
spriceD24/dinomo
/img/util/HTMLUtil.php
UTF-8
641
3.03125
3
[]
no_license
<?php /** * Manages file interactions * @author Stef * */ class HTMLUtil { function getOptionsTable($options) { $html = "<table>"; while ( $option = $options->iterate () ) { $html = $html . '<tr><td>' . $option->optionFormID . '</td><td>' . $option->optionValue . '</td></tr>'; } $html = $html . "</table...
true
e081de147cf40ad53caaba8d57201b34f57599d8
PHP
eliskaachee/cs313-php
/web/quote_site/add_quote.php
UTF-8
1,595
2.6875
3
[]
no_license
<?php require("dbConnect.php"); $db = get_db(); ?> <!DOCTYPE html> <html> <head> <title>Add a Quote</title> <link rel="stylesheet" href="/css/quote_site.css"> <!-- <link rel="stylesheet" href="/cs313-php/web/css/quote_site.css"> --> </head> <body> <div class="page-wrapper"> <h1>Add a Quote</h1> <br /...
true
72bc4771239f86675f6888c57eec6b9eb11aaf44
PHP
valdergallo/flash_php_orm
/FlashORM.3.07.php
UTF-8
14,106
2.921875
3
[]
no_license
<? /***************************************************************************** * VERS? 3.7 * Data: 15/06/2006 * Desenvolvido por Valder Gallo * e-mail: valdergallo@yahoo.com.br * * INCLUS? DA FUN?O ENCODECONFIG * * INCLUS? DA FUN?O MOEDA * * INCLUS? DA FUN?O DATA * * CORRE?ES no where dos fetch, assoc, insert,...
true
10b1683cd97c72b0e9768fc64c7a0dd3b7127af4
PHP
imfaisalkh/capstone-pro
/page-builder/modules/faqs/includes/frontend.php
UTF-8
550
2.515625
3
[]
no_license
<section class="module-wrapper pricing-faqs"> <?php if ( $settings->faqs ) { ?> <h3 class="title"><?php echo $settings->title; ?></h3> <?php } ?> <div class="questions-list"> <?php foreach ($settings->faqs as $faq) : ?> <?php // Helper Variable(s) $question = esc_html($faq->faq_que...
true
b1448751a1b87ea09fa57407f2c29695e54ccc0a
PHP
ryanbagwell/HZ-Wordpress
/classes/HZInit.class.php
UTF-8
1,677
2.53125
3
[]
no_license
<?php class HZInit extends HZWP { private $options; function HZInit($options) { $this->options = $options; $this->utilities = new HZUtilities(); if ($this->options->use_jquery_google_cdn) $this->set_jquery_cdn(); $this->remove_generator_meta(); if ($this->options->print_author_tag) add_...
true
5d01703c06a9025ae877b4764029297fd9506251
PHP
elloydzurc/radio-cms-api
/app/Repositories/Api/TokenRepository.php
UTF-8
1,463
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Repositories\Api; use App\Repositories\AbstractRepository; use App\Repositories\Api\Interfaces\TokenRepositoryInterface; use App\Services\Api\Security\Interfaces\TokenManagerInterface; use Illuminate\Support\Carbon; use Laravel\Passport\Token; /** * Class TokenRepository...
true
e6daaf11c944572d9df3401445cf21fc4e568d2c
PHP
generalsoftby/code-examples
/Oleg/PHP-Services/Models/PricingRulesOfAssemblies/Values/ValuesOfWideSheets.php
UTF-8
1,781
3.265625
3
[]
no_license
<?php namespace App\Model\Calculator\PricingRulesOfAssemblies\Values; use App\Model\Calculator\Settings\AlgorithmWithUnit; use App\Model\Calculator\TypesOfPrintedSheets\Type; use App\Model\Calculator\TypesOfPrintedSheets\WideFormatType; /** * Keeps data of a wide printed sheet. It used to calculate prices of a serv...
true
941538543120f34a8ebce418761d921520385e93
PHP
sridhariyer/Code
/view_rep.php
UTF-8
2,165
2.6875
3
[]
no_license
<?php include('session.php'); ?> <!DOCTYPE html> <html> <head> <title>Welcome </title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <div id="profile"> <b id="welcome">View Repository : <i><?php echo $login_session; ?></i></b> <b id="logout"><a href="logout.php">Log Out</a></b> </div> <?php $u...
true
1e5ec15a73b18dc389a86febbd04e14406410cfa
PHP
MasterkeyInformatica/Repository
/src/Criteria/WhereIn.php
UTF-8
1,076
2.953125
3
[ "MIT" ]
permissive
<?php namespace Masterkey\Repository\Criteria; use Illuminate\Database\Eloquent\Builder; use Masterkey\Repository\AbstractCriteria; use Masterkey\Repository\Contracts\RepositoryInterface as Repository; /** * WhereIn * * @author Matheus Lopes Santos <fale_com_lopez@hotmail.com> * @version 1.0.0 * @package Maste...
true
478ed6a7172f0fdedd8affe8a0a2bf374f269a7e
PHP
LauraSampaoloLP/lp-web-td-rappels-web
/Other.php
UTF-8
856
2.78125
3
[]
no_license
<?php class Other { public static function createMovieHasPicture($idMovie, $idPicture, $type) { require 'config/bdd.php'; $query = $bdd->prepare('INSERT INTO moviehaspicture(idMovie, idPicture, type) VALUES(?,?,?)'); $query->execute(array($idMovie, $idPicture, $type)); } public st...
true
ae17dee893c9a6e9ea8865647ab59f3ca9d9a5c9
PHP
damiaojr91/Aprendendo-PHP
/aulas/30_funcoes_php.php
UTF-8
1,140
3.4375
3
[]
no_license
<?php //functions nativas do php echo date('Y'); //retorna o ano atual completo echo '<br>'; echo '<hr>'; echo date('y'); //retorna apenas os dois ultimos digitos do ano atual echo '<br>'; echo '<hr>'; echo 'O ano atual: ' . date('Y') . '<br>'; echo '<hr>'; echo 'O mês atual...
true
ad83290c5d4fcfde0e0249b567f53169f05f4c12
PHP
ProjectAP/ERP
/database/seeds/BuyerSeeder.php
UTF-8
915
2.609375
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Faker\Factory as Faker; class BuyerSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create('id_ID'); $status = array('L','E'); // $buyer = array(); ...
true
ded3dfd9525f212eaf313bfe44f07c788cf914fc
PHP
ahmedash95/Mini-MVC
/libs/main_model.php
UTF-8
8,552
3.234375
3
[]
no_license
<?php class MainModel { private $conn; // database connection object private $dsn = "mysql:host=localhost;dbname=task5"; private $username = "root"; private $password = ""; protected $tableName = 'user'; private $query; //database query object...
true
ab93a4ec93842750c20fd54c4168c32785c0559e
PHP
ka13ar/gameweb
/trellis/woocommerce-pre-orders/classes/class-wc-pre-orders-order.php
UTF-8
13,125
2.671875
3
[ "MIT" ]
permissive
<?php /** * WooCommerce Pre-Orders * * @package WC-Pre-Orders/Order * @author WooThemes * @copyright Copyright (c) 2013, WooThemes * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly /** * Pre-Or...
true
9e49f52468f2ab0bd8c4aa8948f7bda39347db2d
PHP
Wizzaro/wizzaro-slider
/vendor/wizzaro/wordpress-framework-v1/src/Helper/Encrypt.php
UTF-8
360
2.671875
3
[]
no_license
<?php namespace Wizzaro\WPFramework\v1\Helper; use Wizzaro\WPFramework\v1\AbstractSingleton; class Encrypt extends AbstractSingleton { public function encryption( $text ) { return trim( str_rot13( base64_encode( $text ) ),'='); } public function decryption( $text ) { return base...
true
0c406ae1d0bde904237f39411dd1211b17e69ca3
PHP
dpk22dev/song-word-suggestor2
/src/AppBundle/Service/AppLogger.php
UTF-8
1,360
2.78125
3
[]
no_license
<?php namespace AppBundle\Service; use Exception; use JMS\DiExtraBundle\Annotation as DI; use AppBundle\Service\Iface\LoggerIface; /** * @DI\Service("app.logger") */ class AppLogger implements LoggerIface{ /** @DI\Inject("logger") */ public $logger; public function __construct() { } public ...
true
16922bcb4099ef09bbb71b7b7533fe671f03851c
PHP
christophemaymard/php-code
/test/PhpCode/Test/Language/Cpp/Declarator/PtrAbstractDeclaratorConstraint.php
UTF-8
3,018
2.8125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the PhpCode library. * * @copyright 2020, Christophe Maymard <christophe.maymard@hotmail.com> * @license http://opensource.org/licenses/MIT MIT */ namespace PhpCode\Test\Language\Cpp\Declarator; use PhpCode\Language\Cpp\Declarator\PtrAbstractDeclarator; use PhpCode\Test\La...
true
dd9faaaa79199f81246eeac22f05246c26713c3f
PHP
ppiliar/dsd1
/vypis-podla-mena.php
UTF-8
1,384
2.65625
3
[]
no_license
<?php echo '<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="700">'; $meno = $_POST['meno']; $priezvisko = $_POST['priezvisko']; // hned na zaciatku pouzijeme prikaz na pokracovanie v session //session_start(); $sql = "select meno,priezvisko,titul, rc ...
true
858b0a76759ee542e179b76d0c0f2d3e8666e8cc
PHP
Hits-95/Codeigniter_Article_Pro
/application/models/loginmodel.php
UTF-8
2,269
2.6875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class LoginModel extends CI_Model { public function isValidate($username, $password) { $result = $this->db->where(['username' => $username, 'password' => $password]) ->get('users'); // echo "<pre>"; // print_r($result); if($result->num_rows()) return $result->row()->id; else r...
true
12a80c5eb468cf94a155cc9b7beee3741144c8e6
PHP
habibun/c
/Practice/ps/03-determine-if-a-number-is-even-or-odd/solution.php
UTF-8
144
3.265625
3
[ "MIT" ]
permissive
<?php $number=readline("Enter a number: "); if($number%2==0){ echo $number." is even number"; } else{ echo $number." is a odd number"; } ?>
true
470b03f2381c8f38010a99aff62dd1535d56288f
PHP
nguyenlongit95/gao_ngon_a56
/app/Repositories/Category/CategoryEloquentRepository.php
UTF-8
631
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Category; use App\Models\Category; use App\Models\Product; use App\Repositories\Eloquent\EloquentRepository; class CategoryEloquentRepository extends EloquentRepository implements CategoryRepositoryInterface { /** * @return mixed */ public function getModel() { ...
true
0e69583ffbd9e8b6d46426651b628bea111b3fc1
PHP
ammarfakhri/Point_Of_Sale
/POS/koneksiOrdeR.php
UTF-8
658
2.671875
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "124"; $dbname = "Point_of_sale"; // Create connection $connect = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$connect) { die("Connection failed: " . mysqli_connect_error()); } $sql = "CREATE TABLE Ord...
true
1d411a0303253fc372c86036679b54bdaa2b7eda
PHP
danmv24/netlife
/app/Models/User.php
UTF-8
4,552
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class User extends Authenticatable { use HasFactory, Notifiable; /** * The a...
true
50cdb1f9dacfffd04bf88a99d175519de9dde2aa
PHP
ProjectsHTinc/WEB-HSTskills
/application/models/Apispersonmodel.php
UTF-8
51,001
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Apispersonmodel extends CI_Model { function __construct() { parent::__construct(); } //#################### Email ####################// public function sendMail($email,$subject,$email_message) { // Set content...
true
28273a9ef1da821b508ee181fd8e422f584641af
PHP
imflippy/diplomski_demo
/database/seeders/UsersTableSeeder.php
UTF-8
600
2.75
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //composer require laravel/helpers - potreban da bi mogao // str_random(n) da se koristi...
true
905b26d98e64c31f04218a3cd183d8c5bab77755
PHP
itz-sauce/csc521_capstone
/load_tweets.php
UTF-8
2,633
3.625
4
[]
no_license
<?php // When opened, this file will fetch all tweets from the database and print them out to the webpage. // The output is HTML formatted. include "func/twitter.php"; // Load database settings from config file $settings = array(); $settings = load_config(); $mysql_user =...
true
a836f12041494232f02b7d62e131a437eb4fca7b
PHP
juliencol/isep-stimulus
/app/controllers/Supervisors.php
UTF-8
11,601
2.859375
3
[]
no_license
<?php class Supervisors extends Controller { public function __construct() { $this->supervisorModel = $this->model('Supervisor'); } public function sign_up() { if ($_SERVER['REQUEST_METHOD'] == 'POST') { $_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING); $data ...
true
103a6ed5389bf3ab81e028befa3f645c8f0d7edf
PHP
iyadev/yana-pinglog
/pinglog.class.php
UTF-8
2,088
2.96875
3
[]
no_license
<?php /* @nom: pinglog @auteur: Julien LOISEAU (bird@tadikwa.fr) / Morvaivor (monogravity@gmail.com) / Iya (contact@iyadev.fr) @description: Ping de surveillande, Wake on Lan, et log deséquipements */ //Ce fichier permet de gerer vos donnees en provenance de la base de donnees //Il faut changer le no...
true
384b4ba563a04a5df101f5addb9d45996f7db416
PHP
krislux/anano-2
/src/Anano/Http/Input.php
UTF-8
3,230
3.09375
3
[ "MIT" ]
permissive
<?php namespace Anano\Http; abstract class Input { public static function all() { return self::getData(); } /** * Get one or more values from the current request by keys. * @return string for single key, array for array of keys, or mixed if default is used. */ public static...
true
e05964182d37e702a3d5d034f80f6b5a75fc7b77
PHP
Vidog/the
/The/Core/TemplateEngine/TemplateRawInput.php
UTF-8
211
2.59375
3
[]
no_license
<?php namespace The\Core\TemplateEngine; class TemplateRawInput { private $data; function __construct($data) { $this->data = $data; } function __toString() { return ''.$this->data; } }
true
0cf50b70151cdf722ce147637f37248aca53be05
PHP
usemarkup/ContentfulBundle
/src/Log/StopwatchLogger.php
UTF-8
2,798
2.890625
3
[ "MIT" ]
permissive
<?php namespace Markup\ContentfulBundle\Log; use Markup\Contentful\Log\Log; use Markup\Contentful\Log\LoggerInterface; use Markup\Contentful\Log\LogInterface; use Markup\Contentful\Log\TimerInterface; use Symfony\Component\Stopwatch\Stopwatch; class StopwatchLogger implements LoggerInterface { /** * @var St...
true
ba219b4e0731c3616bd859ff4562cdc59643419a
PHP
ReidieR/algorithm-and-data-structure
/21.合并两个有序链表.php
UTF-8
865
3.375
3
[]
no_license
/* * @lc app=leetcode.cn id=21 lang=php * * [21] 合并两个有序链表 */ // @lc code=start /** * Definition for a singly-linked list. * class ListNode { * public $val = 0; * public $next = null; * function __construct($val = 0, $next = null) { * $this->val = $val; * $this->next = $next; * ...
true
51da87048c0b4a831425ba724eed8e35a1476ab2
PHP
jackalope/jackalope
/src/Jackalope/Query/QOM/OrConstraint.php
UTF-8
1,329
2.75
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Jackalope\Query\QOM; use PHPCR\Query\QOM\ConstraintInterface; use PHPCR\Query\QOM\OrInterface; /** * {@inheritDoc} * * @license http://www.apache.org/licenses Apache License Version 2.0, January 2004 * @license http://opensource.org/licenses/MIT MIT License * * @api */ final class OrConstraint...
true
27320e7bd957e192dfd678cf151cfd2254d4e4da
PHP
maurerit/lmeve-ci
/application/libraries/iveeCore/iveeCore/SkillMap.php
UTF-8
2,781
3.3125
3
[]
no_license
<?php /** * SkillMap class file. * * PHP version 5.3 * * @category IveeCore * @package IveeCoreClasses * @author Aineko Macx <ai@sknop.net> * @license https://github.com/aineko-m/iveeCore/blob/master/LICENSE GNU Lesser General Public License * @link https://github.com/aineko-m/iveeCore/blob/master/ivee...
true
fbc381d5344a06d8530ef1557e95f19c2627ff22
PHP
Santo77777/clasepoo
/index.php
UTF-8
373
3.5
4
[]
no_license
<?php //PROGRAMACION ORIENTADA A OBJETOS include('Personas.php'); //Creacion de un objeto o instancia de la clase $esperanzaGomez = new Personas(); echo($esperanzaGomez->nombre); $esperanzaGomez->nombre="Esperancita"; echo "<br>"; echo($esperanzaGomez->nombre); $nombres=array("Juan","Ana"); echo $nombres[0]; echo...
true
9c5223385bb6bc0f3ecf6144f53c23a255a343de
PHP
mechodev/todo_list_with_authentification
/verify.php
UTF-8
1,673
2.703125
3
[]
no_license
<?php session_start(); require_once('Connexion.class.php'); $login = new Connexion(); if (isset($_POST['login'])) { if (!empty($_POST['login_username']) && !empty($_POST['login_password'])) { $member = $login->bdd->prepare("SELECT * FROM Members WHERE username=:username"); $member->execute([ ...
true
9fedae815911fb219479705afa721e4fe2b63c03
PHP
poses/TaskApp
/application/router.class.php
UTF-8
2,518
2.953125
3
[]
no_license
<?php class Router { private $controller; private $controller_class; private $action; public static $instance = null; public function __construct() { Router::$instance = $this; } public static function Reroute($controller, $action = "") { if(!Router::$instance) Router::$instance = new Router(); Ro...
true
1e758a06db3957adf6e01610c0657c3df4986710
PHP
tienducbk293/BookStore
/app/Order.php
UTF-8
827
2.625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Kreait\Firebase\Factory; use Kreait\Firebase\ServiceAccount; class Order extends Model { protected $database; protected $dbname = 'orders'; public function __construct() { $serviceAccount = ServiceAccount::fromJsonFile(__DIR__.'/...
true
771b2734932c5a2005501a91aba4cc4eb3c3bc79
PHP
107coder/LeetCode
/牛客网/41和为S的连续整数序列.php
UTF-8
2,139
3.671875
4
[]
no_license
<?php /* 题目描述 小明很喜欢数学,有一天他在做数学作业时,要求计算出9~16的和,他马上就写出了正确答案是100。但是他并不满足于此,他在想究竟有多少种连续的正数序列的和为100(至少包括两个数)。没多久,他就得到另一组连续正数和为100的序列:18,19,20,21,22。现在把问题交给你,你能不能也很快的找出所有和为S的连续正数序列? Good Luck! 输出描述: 输出所有和为S的连续正数序列。序列内按照从小至大的顺序,序列间按照开始数字从小到大的顺序 */ /** * [FindContinuousSequence description] 使用一个类似于窗口的东西 * @param [type] $s...
true
73ddabd33e043e8811832ca6737b4f4b8b8e736e
PHP
Maelle05/blog-Art
/addThem.php
UTF-8
9,261
2.71875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="style.css"> <title>Ajouter Thematiques</title> </head> <body> <?php ini_set('display_errors','on'); include 'conect.ph...
true
45bdfa7fde5bb480a3d15342eae5bb10a57f1477
PHP
rubenvorwald/kirbycms-extensions
/plugins/resrc/resrc.php
UTF-8
531
2.609375
3
[]
no_license
<?php function resrc($url) { $name = kirbytext::classname(); $obj = new $name; return $obj->resrc( array( 'url' => $url ) ); } class kirbytextExtended extends kirbytext { function __construct($text = false, $markdown=true) { parent::__construct($text, $markdown); $this->addTags('resrc'); } function ...
true
872efa1ea45a5ade51429e8d9e8a7828b4a4c38f
PHP
engNagi/Trivago-Tech-Camp-Translation-work-flow
/tests/JiraBundle/Service/TaskServiceTest.php
UTF-8
2,604
2.515625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php declare(strict_types=1); namespace JiraBundle\Service; use JiraBundle\Entity\Document; use PHPUnit\Framework\TestCase; class TaskServiceTest extends TestCase { /** @var TaskService */ public $service; public function setUp() { $this->service = new TaskService(); } public function...
true
01c0ebb23c564645919be2af3fbcb8dd9ed0788b
PHP
dingchqian/hyframe
/app/Request/Api/AuthRequest.php
UTF-8
1,735
2.859375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Request\Api; use App\Request\BaseRequest; class AuthRequest extends BaseRequest { /** * 设置规则 * @param $fields array * Author: Jason<dcq@kuryun.cn> */ public function setRules($fields = []) { $this->rules = [ 'mobile' => $th...
true
8e4acb9902029c1569424a853bea2c5f02ae5f39
PHP
Rareloop/lumberjack-core
/tests/Unit/Session/EncryptedStoreTest.php
UTF-8
1,772
2.59375
3
[ "MIT" ]
permissive
<?php namespace Rareloop\Lumberjack\Test; use Dcrypt\AesCbc; use Mockery; use PHPUnit\Framework\TestCase; use Rareloop\Lumberjack\Encrypter; use Rareloop\Lumberjack\Session\EncryptedStore; use Rareloop\Lumberjack\Session\Store; use Rareloop\Lumberjack\Test\Unit\Session\NullSessionHandler; class EncryptedStoreTest ex...
true
35569066471bbdc6a03ef0024c74f602c7eb10b8
PHP
laplacesdemon/php-datagrid
/src/XGrid/Plugin/Pagination/Abstract.php
UTF-8
5,811
3.015625
3
[]
no_license
<?php /* * */ /** * Description of Abstract * * @author suleyman [at] melikoglu.info */ abstract class XGrid_Plugin_Pagination_Abstract implements XGrid_DataSource_Interface { /** * * @var integer */ protected $_itemCountPerPage; /** * cu...
true
3c051aa8a5dc657913c342b9ce7d52adf13a47bc
PHP
codeigniter4/framework
/system/Database/BaseResult.php
UTF-8
13,249
2.8125
3
[ "MIT" ]
permissive
<?php /** * This file is part of CodeIgniter 4 framework. * * (c) CodeIgniter Foundation <admin@codeigniter.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace CodeIgniter\Database; use CodeIgniter\Entity\Entity; use ...
true
e3c84afcd6635a04b6cba5d95f74beef7ee58760
PHP
Tony-78/exo-PHP
/Partie 8 - variables superglobales, sessions et cookies/exo 2/informations.php
UTF-8
1,389
2.828125
3
[]
no_license
<?php session_start(); // var_dump($_SESSION); ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap...
true
15ad50775d13b3036f7fdc17ad6705eae17ced22
PHP
Xiomarasheck/app_php
/app/Model/Department.php
UTF-8
1,578
2.84375
3
[]
no_license
<?php class Department extends Model { private $id; private $description; /** * Department constructor. * @param $adapter */ public function __construct($adapter) { $table = "departamento"; parent::__construct($table, $adapter); } /** * @return mixed ...
true
5dce90d15b9e6ed63ccd61ce33caba8888089fed
PHP
leandroleonelrocha/geco
/app/Entities/Grupo.php
UTF-8
1,882
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Entities; class Grupo extends Entity { protected $table= 'grupo'; protected $fillable = ['curso_id', 'carrera_id', 'practica', 'teorica', 'descripcion', 'docente_id', 'nuevo', 'turno_manana', 'turno_tarde', 'turno_noche', 'sabados', 'color', 'fecha_inicio', 'fecha_fin' , 'filial_id', 'a...
true
dc65defedefa7e0446ca4c6445282bdd8c27b2c4
PHP
edavilaz/phpymysql
/Problemas PHP8/8.1.php
UTF-8
1,815
2.9375
3
[]
no_license
<html> <head> <title>Problema</title> </head> <body> <?php $conexion=mysqli_connect("localhost","root","") or die("Problemas en la conexion"); mysqli_select_db($conexion,"base1") or die("Problemas en la selección de la base de datos"); $registros=mysqli_query($conexio...
true
55a681550d953fbeaa1731d6c5414528ab431e55
PHP
1337C14n/RealmServer
/web/permission.php
UTF-8
2,987
2.515625
3
[]
no_license
<?php mysql_connect("localhost", "root", "CjsASqQcvCOL3l") or die(mysql_error()); mysql_select_db("chat") or die(mysql_error()); $player = isset($_GET["name"]) ? mysql_real_escape_string($_GET["name"]) : null; $server = isset($_GET["server"]) ? mysql_real_escape_string($_GET["server"]) : null; $data...
true
7db43916b36e915abea375328a7d947ce65f5be4
PHP
Gide0n300/studybuddy
/Signup & Login/test.php
UTF-8
2,722
2.796875
3
[ "MIT" ]
permissive
<?php $conn = mysqli_connect("localhost", "root", "", "loginsystem"); if(!$conn) { die('Could not connect '.$conn->connect_error); } $method = $_SERVER['REQUEST_METHOD']; if($met...
true
b48b9e5eee5701284847c455ada9d32da889906e
PHP
mjgw/smartest-import-test
/System/Helpers/SmartestAssetClasses.helper/SmartestAssetClassesHelper.class.php
UTF-8
4,499
2.546875
3
[]
no_license
<?php class SmartestAssetClassesHelper{ protected $database; protected $_all_types; public function __construct(){ $this->database = SmartestDatabase::getInstance('SMARTEST'); } public function getTypes($show_invisible=false){ if(empty($this...
true
d552a1f5e3330d50d9991596e95a9d9554402430
PHP
manyavangimalla/Nfc-Based-Toll-Management-System
/TerminalApplication/dbcontent/simpleregister.php
UTF-8
2,463
2.546875
3
[]
no_license
<?php if($_SERVER['REQUEST_METHOD']=='POST'){ // echo $_SERVER["DOCUMENT_ROOT"]; // /home1/demonuts/public_html //including the database connection file include_once("config.php"); $name = $_POST['name']; $email = $_POST['email']; $password = $_POST['password']; $address= $_POST['ad...
true
f4e8e2eed9f2fb261cdd7cb933383994383fa045
PHP
luigif/WsdlToPhp
/samples/cdyne-address/Alternate/CdyneAddressServiceAlternate.php
UTF-8
1,516
2.734375
3
[]
no_license
<?php /** * Class file for CdyneAddressServiceAlternate * @date 02/07/2012 */ /** * Class CdyneAddressServiceAlternate * @date 02/07/2012 */ class CdyneAddressServiceAlternate extends CdyneAddressWsdlClass { /** * Method to call AlternateCities * Meta informations : * - documentation : Returns all possibl...
true
4342a77b04556820eb780c8a213b2ec55be6d5f9
PHP
zahiruldu/eCommerce-Application
/index.php
UTF-8
2,865
2.515625
3
[]
no_license
<?php session_start(); require_once('functions.php'); if (isset($_GET['manfilter'])) { $manufacture_id = $_GET['manfilter']; $manfilter = "AND manufacture='$manufacture_id'"; }else{ $manfilter = ""; } if (isset($_GET['catfilter'])) { $category_id = $_GET['catfilter']; $catfilter="AND category='$category_id'"; ...
true
ba7a5d03de5bb960166ade66d840ac084f7c9857
PHP
paulo123araujo/desafio-bigbang-digital
/src/app/Application/Api/Adapters/IlluminateRequestAdapter.php
UTF-8
373
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Api\Adapters; use App\Api\Http\Contract\ApiRequest; use Illuminate\Http\Request; class IlluminateRequestAdapter { public static function adapt(Request $request): ApiRequest { $path = $request->fullUrl(); $query = $request->query(); $body = $request->all(); ...
true
88749e1fae21c544195e206c2096eb41484f6477
PHP
digit-soft/re-action
/src/Routes/RouteInterface.php
UTF-8
1,242
2.71875
3
[ "MIT" ]
permissive
<?php namespace Reaction\Routes; use Reaction\Base\RequestAppComponentInterface; use Reaction\Promise\ExtendedPromiseInterface; use Reaction\RequestApplicationInterface; /** * Interface RouteInterface * @package Reaction\Routes * @property RequestApplicationInterface $app * @property Controller ...
true
2cb1409298940253f79ecc9c168db65fc3bf560d
PHP
nsbucky/echosignv3
/src/RequestBuilders/Widget/CounterSignerInfo.php
UTF-8
2,079
2.859375
3
[ "MIT" ]
permissive
<?php namespace Echosign\RequestBuilders\Widget; use Echosign\Interfaces\RequestBuilder; /** * Class CounterSignerInfo * @package Echosign\RequestBuilders\Widget */ class CounterSignerInfo implements RequestBuilder { protected $securityOptions; protected $email; protected $role; public function __...
true
7eff11b1de619f222f018a519800df28d295e6ec
PHP
yikhsn/silondry
/app/Auth/Session.php
UTF-8
303
2.90625
3
[]
no_license
<?php namespace Acme\Auth; class Session{ public static function set($nama, $nilai){ return $_SESSION[$nama] = $nilai; } public static function get($nama){ return $_SESSION[$nama]; } public static function exists($nama){ return ( isset($_SESSION[$nama]) ) ? true : false; } }
true
a76ae0e7b9644288237110755174f107fbbc9450
PHP
evillemez/AyamelResourceApiServer
/src/Ayamel/ResourceBundle/Validation/AbstractAttributes.php
UTF-8
905
2.84375
3
[ "MIT" ]
permissive
<?php namespace Ayamel\ResourceBundle\Validation; /** * Base class for defining attribute validation classes. Attribute validation classes are created * internally in the various AttributeValidators. * * @package AyamelResourceBundle * @author Evan Villemez */ abstract class AbstractAttributes { protected ...
true
e1c7f7519a4052adc04814c47fdf9592c6c873d0
PHP
vgarvardt/ZfSimpleMigrations
/src/ZfSimpleMigrations/Library/MigrationSkeletonGenerator.php
UTF-8
2,303
3.046875
3
[]
no_license
<?php namespace ZfSimpleMigrations\Library; /** * Migration skeleton class generator */ class MigrationSkeletonGenerator { protected $migrationsDir; protected $migrationNamespace; /** * @param string $migrationsDir migrations working directory * @param string $migrationsNamespace migrations n...
true
8b1ae22ddff84400eb87ca210618e38c2403a337
PHP
kodeklubben/kodeklubben-hjemmeside
/src/AppBundle/Repository/ClubRepository.php
UTF-8
1,318
2.59375
3
[]
no_license
<?php namespace AppBundle\Repository; use AppBundle\Entity\Club; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\NonUniqueResultException; /** * ClubRepository. */ class ClubRepository extends EntityRepository { /** * @param $subdomain * * @return Club * * @throws NonUniqueResultEx...
true
4ce60d702eb658fedb52dac41c955de8256cee75
PHP
wangluyu/nowcoder_answer
/PHP/剑指offer/17.树的子结构.php
UTF-8
463
3.046875
3
[]
no_license
<!-- 树的子结构 时间限制:1秒 空间限制:32768K 热度指数:183704 题目描述 输入两棵二叉树A,B,判断B是不是A的子结构。(ps:我们约定空树不是任意一个树的子结构) --> <?php /*class TreeNode{ var $val; var $left = NULL; var $right = NULL; function __construct($val){ $this->val = $val; } }*/ function HasSubtree($pRoot1, $pRoot2) { // write code here } //不...
true
1880170224f194d78310723db777345e24575a80
PHP
sceneario/Sceneario
/application/modules/Core/services/FacebookConnect.php
UTF-8
3,102
2.921875
3
[]
no_license
<?php /** * @package Core * @category Service */ /** * Permet la connexion au ws Facebookconnect */ class Core_Service_FacebookConnect { private $_user = null; private $_userProfile = null; private $_facebook = null; private static $_instance = null ; /* * Facebook application...
true
f096029de7d5ea49fbbc54d993f7fed02170f7dd
PHP
ryanda/phal-micro
/app/Services/Auth.php
UTF-8
2,730
2.671875
3
[]
no_license
<?php namespace App\Services; use App\User; use Phalcon\Di; use Phalcon\Helper\Str; use Lcobucci\JWT\Parser; use Lcobucci\JWT\Builder; use Lcobucci\JWT\Signer\Key; use Lcobucci\JWT\Signer\Hmac\Sha256; use Lcobucci\JWT\ValidationData as JwtValidation; use App\Exceptions\JwtHeaderInvalidException; class Auth { pub...
true
74a9991071afa59bf2fe11733e5c93af10396363
PHP
Sheepy-Development/LEETw
/src/HereAuth/User/Registration/ConfigDefinedRegistrationStep.php
UTF-8
1,297
2.703125
3
[ "Apache-2.0" ]
permissive
<?php /* * HereAuth * * Copyright (C) 2016 PEMapModder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any late...
true
b10abb88689d8757d6fefa3929b19a78e80830f5
PHP
ewgRa/framework
/tests/cases/core/form/primitives/PrimitiveBooleanTestCase.class.php
UTF-8
821
2.8125
3
[]
no_license
<?php namespace ewgraFramework\tests; /** * @license http://www.opensource.org/licenses/bsd-license.php BSD * @author Evgeniy Sokolov <ewgraf@gmail.com> */ final class PrimitiveBooleanTestCase extends FrameworkTestCase { public function testImport() { $data = array('1', 1, true, 'true'); $primitive...
true
41579df8b5ffa62ca006b8a8d4a4c0ea61501996
PHP
quantrocket/planlogiq
/rliq/protected/app_code/JSONItem.php
UTF-8
1,187
3.625
4
[]
no_license
<?php /** * Class JSONItem * * The JSON object stores items as a JSONItem instance * * @author Richard Sumilang <richard@richard-sumilang.com> * @version $Revision: $ $Date: $ */ class JSONItem{ private $property; private $value; private $type; /** * Constructor * @param string $pr...
true
4da0c0835901bf967470f00a86a2265a0101ef0b
PHP
sallycms/0.6
/sally/tests/tests/Util/PasswordTest.php
UTF-8
1,424
2.53125
3
[ "MIT" ]
permissive
<?php /* * Copyright (c) 2012, webvariants GbR, http://www.webvariants.de * * This file is released under the terms of the MIT license. You can find the * complete text in the attached LICENSE file or online at: * * http://www.opensource.org/licenses/mit-license.php */ class sly_Util_PasswordTest extends PHPUni...
true
245722d9914be7cb6e57aa04eea286088e027da5
PHP
zhangjiquan1/phpsourcecode
/eadmin/eadminjijianshequ/app/common/model/ModelBase.php
UTF-8
10,219
2.65625
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | Author: Zaker <49007623@qq.com> // +---------------------------------------------------------------------- namespace app\common\model; use esclass\database; /** * 模型基类 */ class ModelBase { /** * @var object 对象实例 */ ...
true
29eb735eed1ed865e6352b811e617b0316b4566e
PHP
aalvarezb9/PrimerAvance
/backend/clases/social/social.php
UTF-8
2,091
3.1875
3
[]
no_license
<?php class Social{ private $facebook; private $snapchat; private $instagram; private $youtube; public function __construct( $facebook, $snapchat, $instagram, $youtube ) { $this->facebook = $faceboo...
true
cd628b567f4849c27aadefaa308e4e4fee48d9d0
PHP
nmmmnu/pdb
/pdb/Decorator/ExceptionDecorator.php
UTF-8
1,372
2.90625
3
[]
no_license
<? namespace pdb\Decorator; use pdb\SQL, pdb\Tools, pdb\SQLException; /** * Decorator that uses throw exception in case of SQL error * */ class ExceptionDecorator implements SQL{ private $_sqlAdapter; /** * constructor * * @param SQL $sqlAdapter * */ function __construct(SQL $sqlAdapter){ $this-...
true
00e48a0e0e493ea5db11d5ee6ea06c49923318b3
PHP
mariosimao/notion-sdk-php
/src/Databases/Properties/UniqueId.php
UTF-8
837
2.8125
3
[ "MIT" ]
permissive
<?php namespace Notion\Databases\Properties; /** * @psalm-type UniqueIdJson = array{ * id: string, * name: string, * type: "uniqueId", * unique_id: \stdClass, * } * * @psalm-immutable */ class UniqueId implements PropertyInterface { private function __construct( private readon...
true
5fdb56759b8293546b4f3ad8e6c305fe188250c7
PHP
alexanderxp/DZ_07.03.2017
/DZ_07.03.2017/21.php
UTF-8
400
3.1875
3
[]
no_license
<?php $a = (boolean)0; var_dump ($a); // Булевская переменная имеет 2 значения истина (true, кторая выводится как 1) и ложь (false, которая выводится как пустая трока в PHP) // В результате выводится bool(false) - потому что ноль (0) PHP видит как ложь . ?>
true
a7aa78198adea4b67327b491a4da55c1905a705b
PHP
mcred/FeedMeNow-PHP
/src/FeedMeNow/Hydrator/Hydrator.php
UTF-8
352
2.703125
3
[]
no_license
<?php namespace FeedMeNow\Hydrator; use Psr\Http\Message\ResponseInterface; class Hydrator { public function hydrate(ResponseInterface $response, $class) { $body = $response->getBody()->__toString(); $data = json_decode($body, true); $object = call_user_func($class.'::create', $data); ...
true
44b32444648c12e5d92f86580be2d73f4a2abac7
PHP
stekel/laravel-bench
/src/ApacheBench.php
UTF-8
2,293
3
3
[ "MIT" ]
permissive
<?php namespace stekel\LaravelBench; class ApacheBench { /** * Executable * * @var string */ const EXECUTABLE = 'ab'; /** * Options added to the executable call * * @var string */ protected $options = ''; /** * Url to hit * * @v...
true
28aeab32b8c684524b782bb3f34710cf18ef42f0
PHP
santiagopereyramarchetti/tiendaSPM
/app/Imports/OrderSheetImport.php
UTF-8
855
2.578125
3
[]
no_license
<?php namespace App\Imports; use App\Order; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; class OrderSheetImport implements ToModel, WithHeadingRow { /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public function model(...
true
43ef77ad8b995e6ce12583cbca692f0f17588844
PHP
na-rifat/comparrot
/comparrot.php
UTF-8
5,934
2.546875
3
[]
no_license
<?php /** * Plugin Name: Comparrot * Plugin URI: https://comparrot.nl * Description: This plugin is used by the Comparrot theme. * Version: 1.0.6 * Requires at least: 5.2 * Requires PHP: 7.2 * Author: LGX * Author URI: https://comparrot.nl * License: ...
true