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
ee2a2feefd3aa88f51a905f3b47efbf92a36778d
PHP
Haziba/PHP_MVC
/src/db/Updater.php
UTF-8
1,035
2.96875
3
[]
no_license
<?PHP require_once("Gateway.php"); class Updater { public static function CheckForUpdates() { self::CreateMainIfNeeded(); $gateway = new Gateway(); $currentVersion = $gateway->GetRow("SELECT number FROM version")["number"]; $files = scandir("./db/updates"); $updateRegex = '/([0-9]+)_.+/'; for...
true
f77a39c041814ecc967fef4eafba94ae9bb7ee34
PHP
sinuath/PHP-Portfolio-Website
/admin_fns.php
UTF-8
45,833
2.796875
3
[]
no_license
<?php function display_log_form($video = '') { // This displays the book form. // It is very similar to the category form. // This form can be used for inserting or editing books. // To insert, don't pass any parameters. This will set $edit // to false, and the form will go to insert_book.php. // To updat...
true
29f897392e36b5d2449fb1e8b89741c899a48ff0
PHP
HuguesGithub/hj-zombicide-v2
/core/services/SurvivorSkillServices.php
UTF-8
1,916
2.8125
3
[]
no_license
<?php if (!defined('ABSPATH')) { die('Forbidden'); } /** * Classe SurvivorSkillServices * @author Hugues. * @since 1.04.27 * @version 1.05.07 */ class SurvivorSkillServices extends LocalServices { /** * L'objet Dao pour faire les requêtes * @var SurvivorDaoImpl $Dao */ protected $Dao; /** * Cla...
true
a71c6319824ea001cf13ca0a7caaef32b85bb66f
PHP
Basilliy/testMovie
/app/Interfaces/Requests/Mail/SendMailInterface.php
UTF-8
158
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Interfaces\Requests\Mail; interface SendMailInterface { public function getMail(): string; public function getText(): string; }
true
2983b8a18c3927e99edf054cc67c356238d69c04
PHP
chelita/Shapes
/index.php
UTF-8
371
2.984375
3
[]
no_license
<? $mi_variable = "Probando"; $combo = "<select >"; for($i=1;$i<=10;$i++){ $combo .= "<option> Opcion ".$i."</option>"; } $combo .= "</select>"; ?> <!html > <head> <title> Hola </title> </head> <body> <h1> <?=($mi_variable)?> </h1> <br /> <br /> <br /> <fieldset> <label>Combo generado con PHP</label>...
true
4a059f24b3e40bbf197d62a84f5e3ea58506e249
PHP
Thiennc123/codeExample
/modules/api/models/UserProperty.php
UTF-8
885
2.5625
3
[]
no_license
<?php namespace app\modules\api\models; use Yii; /** * This is the model class for table "user_properties". * * @property int $id * @property int $user_id * @property int $property_id * @property string|null $invited_token * @property int $permission_id * @property string|null $created_at * @property string...
true
ca9320da0a887827ddc8a680827f4c63e8738680
PHP
shnarch1/Project2
/src/Controller/courseController.php
UTF-8
4,753
2.65625
3
[]
no_license
<?php // include 'baseController.php'; use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; // require 'functions.php'; // session_start(); class courseController extends baseController { function __construct($container){ parent::__construct($container)...
true
6d30509bccfe5e471bedc6cccae95ca8c5e128cb
PHP
noslouch/pa
/core/expressionengine/libraries/EE_Email.php
UTF-8
3,934
2.59375
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * ExpressionEngine - by EllisLab * * @package ExpressionEngine * @author EllisLab Dev Team * @copyright Copyright (c) 2003 - 2014, EllisLab, Inc. * @license http://ellislab.com/expressionengine/user-guide/license.html * @link htt...
true
da28c22d789d147283fd8fd69bfaff6fed90dbd2
PHP
qq372915965/sjshop
/ThinkPHP/Library/Org/General/User.class.php
UTF-8
865
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace Org\General; class User { //获取用户详情 public static function get_user_info($params){ $m = M('shop_user'); $user_info = $m->where($params)->find(); if($user_info){ return $user_info; } } //获取用户公司详情 public static function get_company_info($user_id){ $m = M('scn_ecms_thecompany'); $opt...
true
585d5859bb121f3f339bfc60de46d5481eac03d3
PHP
kefahi/io
/app/common/models/Entity.php
UTF-8
3,567
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "Entity". * * @property integer $id * @property string $name * @property string $uri * @property string $source * @property string $updated_at * @property string $created_at * @property integer $owner_id * @property integer $au...
true
68335a1935430297986eaa3365a8d3cd33ee2c7e
PHP
tsvetkovpro/js
/courses/specialist/уровень-4/модуль-3/lab3/ticket.class.php
UTF-8
288
2.875
3
[]
no_license
<?php /* ** Класс Билет сессии */ class Ticket { public $id; // Идентификатор сессии public $valid; // Правильность билета public function __construct($id='', $valid=false) { $this->id = $id; $this->valid = $valid; } } ?>
true
8d8992dbac14e58bd2fc6f1d3ea17c336a6bd366
PHP
epgmedia/powersportsbusiness
/wp-content/plugins/publishthis_plugin/modules/simulate-cron/class-simulate-cron.php
UTF-8
3,640
2.59375
3
[]
no_license
<?php /** * defines Simulate Cron option */ class Publishthis_Simulate_Cron { /** * Publishthis_Simulate_Cron constructor. */ function __construct() {} /** * simulate cron is wp cron is not available */ function simulateCron() { global $publishthis; // Return here is we want to pause polling. ...
true
8f433c5246fdfa06b5c9b11561c6dad5767ec770
PHP
lvnatim/pivotpilotcustom
/partials/filter.php
UTF-8
3,231
2.625
3
[]
no_license
<?php $category = $_GET['category'] ? $_GET['category'] : 0; $pagenum = $_GET['pagenum'] ? $_GET['pagenum'] : 1; $taxonomy = $_GET['taxonomy'] ? $_GET['taxonomy'] : 'services'; $tax_query = ''; $offset = ($pagenum - 1) * 6; if($category){ $tax_query = array( array( 'taxonomy' => $taxonomy, 'field' ...
true
7ed76178956175e143383455f86b06a12eac47b2
PHP
jmrpadrino/sigzul
/config/conn.php
UTF-8
318
2.609375
3
[ "MIT" ]
permissive
<?php // Conectar con base de datos $database = new mysqli( DB_HOST, DB_USER, DB_PASSWORD, DB_NAME ); if ($database->connect_errno) { $message .= "Falló la conexión a MySQL: (" . $database->connect_errno . ") " . $database->connect_error . '<br/>'; }else{ $_GLOBAL['database'] = $database; }
true
dc7dc7c7b7591c7283c6092524d0ed0b344a9c79
PHP
brahn311/hello-world
/codes/php/poo_linkedin/2_7_object2string.php
UTF-8
614
4.15625
4
[]
no_license
<?php class Person { private $name; private $last_name; public function __construct($name, $last_name) { $this->name = $name; $this->last_name = $last_name; } // funcion magica para mantener la funcionalidad al acceder a una instancia como texto public function __toString() { return $this->name . "...
true
8d122590a7cfa85ff4ff7e9c269cd6cce61e208a
PHP
lmachadosantos/autenticacao
/src/Entities/Usuario.php
UTF-8
1,837
2.875
3
[]
no_license
<?php namespace MentesNotaveis\Autenticacao\Entities; use stdClass; use Exception; use Respect\Validation\Validator; class Usuario implements EntityInterface { protected $id; protected $login; protected $senha; protected $criado_em; protected $atualizado_em; protected $ativo; public...
true
fe2bf800a846ab44fed532e8e747eaa8db26fff4
PHP
hw233/xiangjingchuangshuo_server-c-
/trade/proto/RO/Cmd/SocialUser.php
UTF-8
7,749
2.59375
3
[]
no_license
<?php // DO NOT EDIT! Generated by Protobuf-PHP protoc plugin @package_version@ // Source: SocialCmd.proto namespace RO\Cmd { class SocialUser extends \DrSlump\Protobuf\Message { /** @var int */ public $accid = 0; /** @var int */ public $charid = 0; /** @var int */ public $zone...
true
1fee641cedc852b15571341654b15e2e5ca3fbf2
PHP
jimphei/mallsdk
/src/pinduoduo/sdk/Api/Request/PddTrainCancelChangeRequest.php
UTF-8
1,698
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace Com\Pdd\Pop\Sdk\Api\Request; use Com\Pdd\Pop\Sdk\PopBaseHttpRequest; use Com\Pdd\Pop\Sdk\PopBaseJsonEntity; class PddTrainCancelChangeRequest extends PopBaseHttpRequest { public function __construct() { } /** * @JsonProperty(String, "pdd_order_id") */ private $pddOrderId; /** * @JsonProp...
true
cbd81f839f6548a13d7715f0a20a68bbede6c7bf
PHP
mohabduls/MAS-CMS-System
/database/mascms-db.php
UTF-8
438
2.5625
3
[ "MIT" ]
permissive
<?php /* Please take care when you edit this file. You may encounter an error you do not want. Please note to pay, you must know what you edit so as to minimize the error that occurred! */ class MASCMS_DB{ function masdb($db_host, $db_user, $db_pass, $db_name) { return mysqli_connect($db_host, $db_user, ...
true
7274831197ba97d9190604a4936704993ce57ce7
PHP
technosophos/Quiddity
/src/includes/Template.php
UTF-8
1,220
2.828125
3
[]
no_license
<?php /** * Main template command. */ /** * This command provides templating support. */ class Template extends BaseQuiddityCommand { public function expects() { return $this ->description('Provides template support for formatting.') ->usesParam('template', 'The filename of the template to use...
true
e88225e606b212ad6f893f5953d6c42cd7be6012
PHP
AllanG-4779/WebProjectAssignment
/phpProjects/classes/Person.php
UTF-8
562
3.109375
3
[]
no_license
<?php class Person { private $age; private $FName; private $SName; public static $drinkingAge=900; public function __construct($age, $FName,$SName){ $this->age = $age ; $this->FName = $FName ; $this->SName = $SName ; } public function se...
true
74c8b3a19863de748252d286d1172cd5cb484494
PHP
Inchoo/php-academy2020
/06_oop_02/01_magic_methods.php
UTF-8
852
2.953125
3
[]
no_license
<?php /** * PHP Magic Methods (17) * * __construct() * __destruct() * __get() * __set() * __isset() * __unset() * __call() * __callStatic() * __toString() * __sleep() * __wakeup() * __serialize() * __unserialize() * __invoke() * __set_state() * __clone() * __debugInfo() * * https://www.php.net/man...
true
5bc635284b37a76819fc7c2f722fdad1b0a79a48
PHP
pavlm/ycomments
/models/Commentable.php
UTF-8
2,344
2.515625
3
[]
no_license
<?php /** * Для выборки подписок на материал * * @property integer $id * @property NotifySubscription[] $subscriptions */ class Commentable extends CActiveRecord { public static $commentableType; public function scopes() { $alias = $this->getDbCriteria()->alias; return array( 'mini' => array('select' =...
true
f7122c14397e06106328788accad1ec7f12e2458
PHP
hieutq/climber
/include/az_common.php
UTF-8
34,786
2.703125
3
[]
no_license
<?php // ******************************************************************* // 軽金属学会 設定ファイル Encording UTF-8 // ******************************************************************* // ************************************************************************** // データベース関連 // **********************************************...
true
31dd13e6866dfacddbc20b39283ef48a8a04f47d
PHP
binary-cube/elastic-tool
/src/Connection.php
UTF-8
1,907
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace BinaryCube\ElasticTool; use Elasticsearch\Client; use Psr\Log\LoggerInterface; use Elasticsearch\ClientBuilder; use BinaryCube\ElasticTool\Support\LoggerAwareTrait; /** * Class Connection */ class Connection extends Component { use LoggerAwareTrait; /** * @co...
true
13fb7ecd363a4621132cd76eb9be0fff84179542
PHP
dcobas11/Proyecto-WashApp
/php/cliente_prodList.php
UTF-8
821
2.609375
3
[]
no_license
<?php include "dbConnection.php"; if (isset($_POST['nPedido'])) { $nPedido = trim($_POST['nPedido']); $data = array(); $r1 = $conn->prepare("SELECT cd.prod_id, cd.cantidad, p.nombre, p.precio from comandadetalle cd INNER JOIN producto p on p.id = prod_id where cd.com_id = ?"); //Ligamos el parámetro ? con el at...
true
0c8be46cde67dd44b3dd53c65ce8786313b4aecc
PHP
dramirezbcn/uKnowWhatImean
/src/Infrastructure/BoardBundle/Factory/BoardFactory.php
UTF-8
400
2.734375
3
[]
no_license
<?php namespace Infrastructure\BoardBundle\Factory; use Domain\Board\Model\Board; use Domain\Board\Factory\BoardFactoryInterface; /** * Class BoardFactory * @package Infrastructure\BoardBundle\Factory */ class BoardFactory implements BoardFactoryInterface { /** * @inheritDoc */ public function c...
true
e0b357ff985c99f5ea0d97129741f286d030fbc9
PHP
ziganshinalexey/vk-group-analyzer
/back/vendor/userstory/yii2-dto/interfaces/WithIdListResultInterface.php
UTF-8
782
2.734375
3
[]
no_license
<?php declare(strict_types = 1); namespace Userstory\Yii2Dto\interfaces; use Userstory\Yii2Dto\interfaces\results\IdListResultInterface; /** * Интерфейс объекта, работающего через результат со списокм ИД. */ interface WithIdListResultInterface { /** * Метод возвращает объекта результат. * * @re...
true
565c04978d3b08999578bafd91658208ac1a3e9d
PHP
karaltan/Uzaktan-Egitim-Internet-Programciligi-PHP-1.Donem
/4-18.12.2020/www/for-HTML-DINAMIKTABLO.php
UTF-8
197
3.03125
3
[]
no_license
<table border="1"> <?php $say=0; for ($satir=1;$satir<=3;$satir++) { echo '<tr>'; for ($sutun=1; $sutun<=4; $sutun++) { echo '<td>'.++$say.'</td>'; } echo '</tr>'; } ?> </table>
true
bce040afd6f7e897907002493836e9622a565042
PHP
jsamaniegog/infoblox
/lib/InfobloxWapiQuery.php
UTF-8
12,455
3
3
[]
no_license
<?php /** * @package InfobloxWapiQuery * @version 0.1.0 */ /* * Copyright (C) 2017 Javier Samaniego García <jsamaniegog@gmail.com> * * 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, eith...
true
6f765b79f66bf6a11812a085dc0b4705f9ca4208
PHP
baoloc1993/20-10
/Functions/sendMailResult.php
UTF-8
1,040
2.765625
3
[]
no_license
<?php include("sendMail.php"); // Include function to send email $email = $_GET["email"]; $name = $_GET["name"]; $job = $_GET["job"]; // Initial email content $subject = "Chúc mừng ngày phụ nữ Việt Nam 20-10"; $body = "Hi " . $name . "!<br><br>"; $body .= "Bạn đã đăng ký tham gia chương trình chào mừng <em>ngày phụ n...
true
f58ba1a4d53b1b81842f3d85c8ca02025483a569
PHP
liemao/PHP-StarFramework
/library/Star/Config/Ini.php
UTF-8
2,187
2.921875
3
[ "MIT" ]
permissive
<?php /** * @package library\Star\Application\Config */ /** * 导入文件 */ require 'Star/Config/Abstract.php'; /** * * 配置文件类 * * 处理.Ini配置文件 * * @package library\Star\Application\Config * @author zhangqinyang * */ class Star_Config_Ini extends Star_Config_Abstract{ public function __construct($file_name...
true
bc844a47c6e2e7ec7e70fe7a134884654b94870d
PHP
successful-fella/KP-Framework
/kp_sys/upload_helper.php
UTF-8
1,996
3.09375
3
[ "MIT" ]
permissive
<?php /** * Welcome to upload helper file * This file get file to be uploaded return path where it is uploaded * Date: 26/08/19 @ 19:42 (Updated) * @author Kawalpreet Singh Juneja */ /** * Uploads a file. * * @param string $file_name The file name * @param array $...
true
b417848481d7525f30aec645c3e06f66183a2d2e
PHP
emgul111/php_test
/index.php
UTF-8
502
2.859375
3
[]
no_license
<!DOCTYPE html> <html> <head> <style> </style> <title></title> </head> <body> <?php $color; $textcolor; $date = $_GET['date']; $today = date("Y-m-d"); echo $today; if ($date < $today) { $color = "red"; $textcolor = "blue"; } elseif ($date > $today) { $color = "blue"; ...
true
8a333f3bfcd4b74d1ab42ad3e56415419454e675
PHP
savsun/opros.ru
/www/director.php
UTF-8
14,826
2.59375
3
[]
no_license
<html> <head> <title>UserPage</title> </head> <body bgcolor="ffc13d"> <<<<<<< HEAD <center> <h3>Здравствуйте, пользователь</h3> </center> <table valign="center" width="700" cellspacing="0" cellpadding="5"> <tr valign="left"> <td width...
true
40bff28665ed620835f7dda20b0632adcbcae790
PHP
Diodio/Project-Teranga
/backend/src/bo/facture/FactureQueries.php
UTF-8
26,063
2.59375
3
[]
no_license
<?php namespace Facture; use Racine\Bootstrap as Bootstrap; use Exception as Exception; use Log\Loggers as Logger; class FactureQueries { /* * */ private $entityManager; private $classString; private $logger; /* * */ public function __construct() { $this->entity...
true
e6ed4dde6c814804a39ce48d564b144b3fbeb8d9
PHP
DevTeamSpace/dentamatch-php
/app/Models/UserGroup.php
UTF-8
1,108
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Carbon; /** * App\Models\UserGroup * * @property int $id * @property int $group_id * @property int $user_id * @property Carbon $created_at * @property Carbon $updated_at * @pro...
true
95dc8b37c3020599a8374e48602b5432823531a4
PHP
sympull/Design
/website/codecanyon-5625102-bootstrap-shopping-cart-pack/Bootstrap_Shopping_Cart_Pack 1.2.4/test_mail.php
UTF-8
1,149
2.546875
3
[ "MIT", "CC-BY-3.0" ]
permissive
<?php // // Aenea - www.beaenea.com // Bootstrap BootstrapShoppingCart for codecanyon.net // // File for test your smtp server // require_once "BootstrapShoppingCart/config.php"; // load settings file require_once "BootstrapShoppingCart/BootstrapShoppingCart.php"; // load class ...
true
01f7b08e08062da8a6827ec715008f4c8b82a0f6
PHP
jkim7436/ISMA309
/functions.php
UTF-8
3,249
2.59375
3
[]
no_license
<?php /*new function for fonts*/ function ISMA309_google_fonts(){ wp_enqueue_style('Two_fonts','http://fonts.googleapis.com/css?family=Droid+Sans:400,700|PT+Sans:400,700,400italic,700italic'); } add_action('wp_enqueue_scripts','ISMA309_google_fonts'); /*review functions*/ add_image_size( 'poster-single', 350, 54...
true
e1ea8c98bea6c6068c453c870b79a683b7f3e471
PHP
evan4/sweetspeak
/app/Controllers/Admin/AdminController.php
UTF-8
1,191
2.609375
3
[]
no_license
<?php namespace App\Controllers\Admin; use Mycms\Controller; class AdminController extends Controller { protected $user; public $role; protected $limit = 10; protected $imageSize = [1000, 300]; public function __construct() { parent::__construct(); if(isset($_SESSIO...
true
df9a46b4ae838a408f47428d74ecd1d530136ea4
PHP
charlieyang1986/IT305-Portfolio
/admin.php
UTF-8
3,516
2.734375
3
[]
no_license
<?php /** * Name: Chunhai Yang */ // Turn on error reporting ini_set('display_errors',1); error_reporting(E_ALL); // Connect to db require ('/home2/chyanggr/db.php'); //Initialize all variables $firstName = $lastName = $email = $linkedIn = $meet = $datestamp = ""; ?> <!DOCTYPE html> <html lang="en"> <head> ...
true
aa1baf7d190967f9a1c55d43bd3e7b51ae7e026e
PHP
virtuosodesigners/naes
/app/controllers/LoginController.php
UTF-8
1,295
2.765625
3
[ "MIT" ]
permissive
<?php class LoginController extends BaseController{ public function index(){ return View::make('login'); } public function loginAuth(){ // $errors = new Illuminate\Support\MessageBag; // initiate MessageBag $credentials = [ 'username' => Input::get('username'), ...
true
455a4c022ee592bb483bdf3c55792af4eb875874
PHP
nulldevelopmenthr/nemesis
/src/NullDevelopment/SkeletonSourceCodeExtension/Method/ConstructorMethod.php
UTF-8
1,577
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace NullDevelopment\SkeletonSourceCodeExtension\Method; use NullDevelopment\PhpStructure\Behaviour\ConstructorMethod as ConstructorMethodInterface; use NullDevelopment\PhpStructure\DataType\Property; use NullDevelopment\PhpStructure\DataType\Visibility; use Webmozart\Assert\Asser...
true
9a415060aeef4b0844715b7aabd1bcd08c195e15
PHP
apexpl/app
/src/Interfaces/RouterResponseInterface.php
UTF-8
751
2.765625
3
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
<?php namespace Apex\App\Interfaces; use Psr\Http\Server\MiddlewareInterface; /** * Router response interface */ interface RouterResponseInterface { /** * Get middleware */ public function getMiddleware():MiddlewareInterface; /** * With Middleware */ public function withMiddle...
true
9f1fa789bd59bb9ab6152208017e60e60bca7362
PHP
dariusgm/PHPFee
/admin/stats/lib/lib.php
UTF-8
6,698
2.78125
3
[]
no_license
<?php $db=mysql_connect("localhost","portal","psacln"); function wochentag($d) { $tag = date("w",mktime(1,1,1,substr($d,5,2),substr($d,8,2),substr($d,0,4))); switch($tag) { case 0: echo "Sonntag"; break; case 1: echo "Montag"; break; case 2: echo "Dienstag"; break; case 3: echo "Mittwoch";...
true
5bc80e62708f0b9029a32b524e63fcdb5ed170cd
PHP
ohjack/new
/application/tasks/order/confirm.php
UTF-8
882
2.78125
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php class Task_Order_Confirm { // 操作入口 public function __construct( $args ) { // 确认订单 if(empty($args)) { $this->_confirm_all(); } else { foreach ($args as $user_id) { $user_id = intval($user_id) ? intval($user_id) : 0; $this->_...
true
1076ca1a36f3e6c264f0054e1a24e30229821a5f
PHP
bhaskarab/cognosys
/Cognosys/TextUtil.php
UTF-8
1,950
3.46875
3
[]
no_license
<?php namespace Cognosys; /** * Static functions with various utilities * @author Renato S. Martins <smartins.renato@gmail.com> */ class TextUtil { /** * Removes dashes from string and uppercases next character. * Also uppercases first character * @static * @param string $str * @return string */ stati...
true
cdf710daca8411a6e840ace9a6afb24e6a2bd4a9
PHP
Tiime-Software/CrossIndustryInvoice
/src/DataType/Basic/SpecifiedLineTradeSettlement.php
UTF-8
6,114
2.53125
3
[ "MIT" ]
permissive
<?php namespace Tiime\CrossIndustryInvoice\DataType\Basic; use Tiime\CrossIndustryInvoice\DataType\BillingSpecifiedPeriod; /** * BG-30-00. */ class SpecifiedLineTradeSettlement { protected const XML_NODE = 'ram:SpecifiedLineTradeSettlement'; /** * BG-30. */ protected ApplicableTradeTax $appl...
true
907762015cf8edfc126111d6109c531c3e7206fa
PHP
eltortuganegra/shared-secret
/tests/Services/SecretUnveilService/SecretUnveilServiceTest.php
UTF-8
3,575
2.640625
3
[ "MIT" ]
permissive
<?php use SharedSecret\Entities\EntitiesFactory; use SharedSecret\Infrastructure\Repositories\RepositoriesFactory; use SharedSecret\Services\SecretUnveilService\SecretUnveilServiceRequest; use SharedSecret\Services\Service; use SharedSecret\Services\ServicesFactory; use SharedSecret\ValueObjects\ExpirationTime\Expirat...
true
5b0ef58929ee2048fa52b433a4b726d8119054c9
PHP
solo-framework/solo-framework
/Solo/Core/UI/Smarty/Plugins/Base.php
UTF-8
1,015
2.671875
3
[]
no_license
<?php /** * Базовый класс для всех плагинов Smarty * * PHP version 5 * * @package Smarty * @author Andrey Filippov <afi@i-loto.ru> */ namespace Solo\Core\UI\Smarty\Plugins; abstract class Base { /** * Тип плагина (function, block, modifier, etc.) * * @return string */ abstract function getType(); ...
true
556b110a9345c98e880dc8bd844c91feda1d9567
PHP
tehg00se/bitpaws
/app/Events/PostWasMade.php
UTF-8
364
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Events; use App\Models\Posts\Post; use App\Events\Event; use Illuminate\Queue\SerializesModels; class PostWasMade extends Event { use SerializesModels; public $post; /** * UserWasRegistered constructor. * @param User $user */ public function __construct(Post $post...
true
fa96d8b7d419b798d379337de7a2a6c9b3d4c881
PHP
unrncr/unrncr.github.io
/php/verifyloginstatus.php
UTF-8
1,881
2.546875
3
[]
no_license
<?php require('connections/SuruDB.php'); mysql_select_db($database_SuruDB, $SuruDB); if($sessionID = mysql_real_escape_string($_GET['initsession'])) setcookie("sessionID", $sessionID);//Initialize cookie else $sessionID = $_COOKIE['sessionID'];//continuation: get cookie $site = (getenv(HTTP_X_FORWARDED_FOR)) ...
true
ac9f95e1365faf6da4f9669274c585c7c8e9e316
PHP
Softsimulation/siturmagdalena
/app/Models/Tipo_Evento.php
UTF-8
1,057
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * @property Evento[] $eventos * @property TipoEventosConIdioma[] $tipoEventosConIdiomas * @property int $id * @property string $user_update * @property boolean $estado * @property string $created_at * @property string $updated_at * @prop...
true
1226df37e3805229bcaf845fc50c1675826ad8ea
PHP
GeoffreyHervet/coingregator
/src/Domain/Adapter/Exchange/GetExchangeAdapter.php
UTF-8
1,162
2.6875
3
[]
no_license
<?php namespace App\Domain\Adapter\Exchange; use App\Domain\Handler\Exchange\GetExchangeHandler; use App\Domain\Request\Exchange\GetExchangeRequest; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; class GetExchangeAdapt...
true
4f85a272c1dd4b4fe3169e06a6b4de59497ea35f
PHP
gabix/Pruebas
/tirameLaGoma/natuGraf/epc/app/Console/Abm/helper/ViewsCreator.php
UTF-8
4,067
2.625
3
[]
no_license
<?php class ViewsCreator { protected $table; protected $tpl_root = CONSOLEABMCONTROLLER_ROOT; protected $structure = array(); public function __construct($table_name) { $this->table = $table_name; } public function getAddPage(array $table_structure) { $tpl = file_get_contents($this->tpl_root . '...
true
eeb18cea4ffbd9025bb88b0468b54ab9e060085f
PHP
RessaRambaud/WF3-PHPOO
/interface/De.php
UTF-8
1,083
3.546875
4
[]
no_license
<?php require_once 'Cube.php'; /** * class De * Une classe peut à la fois hériter d'une autre classe * et implementer une ou plusieurs */ class De extends Cube implements Texture { /* * @var string * **/ private $matiere; /* * @var string * **/ private $couleur; public fun...
true
2c451d3f6744ee5fb8d585d4d32e526a1cca728d
PHP
jbs321/entryform
/app/Http/Requests/NewCarvingRequest.php
UTF-8
1,243
2.640625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class NewCarvingRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get...
true
50d89687691972038be016da1c0bdcee9a35faf0
PHP
DannyBoyIL/Clothing-Factory
/app/Order.php
UTF-8
2,323
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Cart, Session, DB; class Order extends Model { static public $data = []; static function save_address($request) { Session::put('shipping_address', [ "email" => $request['email'], "address" => $request['address'...
true
8ad0f202b591f55a580083a522582bdee288d9ad
PHP
phppm/rust
/src/common/Config.php
UTF-8
1,120
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: rustysun */ namespace rust\common; use rust\exception\InvalidArgumentException; use rust\fso\Dir; use rust\interfaces\IConfig; abstract class Config implements IConfig { /** * @param $path * * @return array * @throws InvalidArgumentException */ ...
true
f9aee501560610489a699d7585557c80eb98ec17
PHP
Rashmita-3003/Design_Lab
/Maniacs_2/src/Student.php
UTF-8
2,555
2.96875
3
[]
no_license
<?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_NAME', 'tutor_finder'); class Student { public $conn; public function __construct() { $this->conn = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME); if(!$this->con...
true
145e1d47dfd5899126cae0ff370378aabbd3ecd0
PHP
andresprzh/BodegaDrogueria
/api/pv.php
UTF-8
5,538
2.546875
3
[]
no_license
<?php require "cors.php"; if (isset($_GET['ruta'])) { switch ($_GET['ruta']) { /* ============================================================================================================================ MUESTRA LAS CAJAS QUE LLEGARON AL PU...
true
901644ca3fa5ac093f095968c46381a7bfec6be3
PHP
moweihong/moweisc
/app/helpers.php
UTF-8
590
2.546875
3
[ "MIT" ]
permissive
<?php function invite_code() { if(empty(session('user.id'))){ //未登录状态 //获取用户邀请码 $invite_code = isset($_GET['code'])?(int)$_GET['code']:''; if(!empty($invite_code)){ $member = DB::select("SELECT `usr_id` FROM `tab_member` WHERE `usr_id`='$invite_code'"); if(!empty($member)){ session(['invite_co...
true
4a89ec13e9d35cf6b62ad6a629d6944cb032ac40
PHP
loveclm/HuiLianCai
/backend/application/controllers/coupon_controller.php
UTF-8
5,800
2.75
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); require APPPATH . '/libraries/BaseController.php'; /** * Class : Shop (ShopController) * Area Class to control all shop related operations. * @author : The jin hu * @version : 1.0 * @since : 12 August 2017 */ class coupon_controller extend...
true
c2f3431c12613c5c24d09b75d6b3d4fd75018b05
PHP
kukuu/Apps-WebServices
/php/StudentService/Person.php
UTF-8
389
3.296875
3
[]
no_license
<?php /** Person class * */ class Person { private $Name; private $Age; public function setName($name) { $this->Name = $name; return $this; } public function setAge($age) { $this->Age = $age; return $this; } public function getName() { return $this->Name } public function getAge() { retu...
true
28760618a2a786aa8bbef5d9967ae093a7ba8a4d
PHP
kovalit/hospital
/protected/models/Schedules.php
UTF-8
1,053
2.515625
3
[]
no_license
<?php class Schedules extends ActiveRecord { public $doctorId; public $scheme; public $active; public $version; public $isException; /** * @return string */ public function tableName() { return 'schedules'; } /** * @param string $className * @return $this */ public static functi...
true
60bf135e159406254f10b090e03266e6ec0f32da
PHP
maciek-kemnitz/Apoio-Gui
/Src/Main/Lib/Conversation.php
UTF-8
5,773
2.875
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: maciek * Date: 15.02.14 * Time: 21:29 * To change this template use File | Settings | File Templates. */ namespace Src\Main\Lib; class Conversation { public $id; public $author; public $status; public $subject; public $created_at; publi...
true
79de7789a3750d2106f183d8f0a5fdd535f26ff9
PHP
igorosabel/Coffee
/app/module/api/api.php
UTF-8
9,661
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace OsumiFramework\App\Module; use OsumiFramework\OFW\Core\OModule; use OsumiFramework\OFW\Web\ORequest; use OsumiFramework\OFW\Routing\ORoute; use OsumiFramework\App\Model\Person; use OsumiFramework\App\Model\Coffee; use OsumiFramework\App\Service\publicService; #[ORoute( type:...
true
ae9808ae4c98260c78922cda52cc8f926adceee7
PHP
turanct/bogl-me
/bogl.php
UTF-8
7,142
2.578125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env php <?php // Require the composer autoloader require_once(__DIR__ . '/vendor/autoload.php'); // Create new pimple instance $app = new Pimple(); // Use the Markdown parsers use dflydev\markdown\MarkdownExtraParser; /** * Services */ // Create shared markdown parser $app['markdown'] = $app->share(fun...
true
b8069d4db191d6c032d7387a2a9a2f717ef7ffe9
PHP
iCAPLyon1/PortfolioBundle
/Event/WidgetFormViewEvent.php
UTF-8
979
2.671875
3
[]
no_license
<?php namespace Icap\PortfolioBundle\Event; use Symfony\Component\EventDispatcher\Event; class WidgetFormViewEvent extends Event { /** * @var string */ protected $formView; /** * @var string */ protected $widgetType; /** * @param string $widgetType */ public fu...
true
1e2a0b2dc2e5a51e0e9e06190784797e16d05b03
PHP
YossiBenZaken/rpg
/attack/duel/duel-start.php
UTF-8
1,488
2.546875
3
[]
no_license
<? function start_duel($duel_id,$wat){ //Clear Player mysql_query("DELETE FROM `pokemon_speler_gevecht` WHERE `user_id`='".$_SESSION['id']."'"); //Update Player as Duel mysql_query("UPDATE `gebruikers` SET `pagina`='duel' WHERE `user_id`='".$_SESSION['id']."'"); //Copy Pokemon return create_player($duel_id,...
true
2f9005486a5487ca9ae1fc2e2eea77f6a9ee2efa
PHP
alvinmatias69/motorCatalogue
/app/Http/Controllers/EventController.php
UTF-8
1,340
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Event; class EventController extends Controller { public function show($id){ $event = Event::find($id); if (!$event) { return response()->json(['code' => 'FAILURE_GET', 'message' => 'Could not find...
true
b536c144cbd28a5eb7bc442e16e95aaccf159302
PHP
mateuszsip/msgphp
/src/User/Command/Handler/DeleteUserAttributeValueHandler.php
UTF-8
1,021
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MsgPhp\User\Command\Handler; use MsgPhp\Domain\EventBusInterface; use MsgPhp\User\Command\DeleteUserAttributeValueCommand; use MsgPhp\User\Event\UserAttributeValueDeletedEvent; use MsgPhp\User\Repository\UserAttributeValueRepositoryInterface; /** * @author Roland Franssen <...
true
9a68db20f1f862fe16df414b72f5c7b47c20663f
PHP
voximplant/apiclient-php
/src/Examples/AdminUsers/GetAdminUsers.php
UTF-8
1,416
2.734375
3
[ "Apache-2.0" ]
permissive
<?php /** * @method GetAdminUsers Gets the admin users of the specified account. Note that both account types - parent and child - can have its own admins. */ // Path to your autoload.php require_once '/path/to/vendor/autoload.php'; use Voximplant\VoximplantApi; use Voximplant\Resources\Params\GetAdminUsersParams;...
true
26cb9f462dd24461108be25a4e003b46e1aba705
PHP
TheGreatWizard/OTree
/src/dal/DummyStorableWithMultipleConnectors.php
UTF-8
1,087
2.765625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace DAL; /** * Description of DummyStorableWithMultipleConnectors * * @author Guy */ class DummyStora...
true
ae71c19cf550f532235eedfe963c0ebabd7e5c38
PHP
jin123456bat/api
/system/core/view.php
UTF-8
5,230
2.515625
3
[]
no_license
<?php namespace system\core; use system\core\inter\config; /** * 视图以及模板管理 * * @author 程晨 * */ class view extends base { /** * 配置 */ private $_viewConfig; /** * 模板名称 * @var unknown */ private $_viewname; /** * 模板引擎路径 * @var unknown */ private $_enginePath; /** * 模板引擎实例 * @v...
true
64835f7124c0a6ae98a8964558cc4c65fb3cf585
PHP
MattKetmo/stone
/src/Stone/Command/MirrorCommand.php
UTF-8
2,647
2.578125
3
[ "MIT" ]
permissive
<?php /* * This file is part of Stone. * * (c) Matthieu Moquet <matthieu@moquet.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Stone\Command; use Composer\Composer; use Composer\Command\Command; use Symfony\Compo...
true
10a2f7639a24dc78b4042b5c294293ab93266144
PHP
nitaibezerra/tainacan
/src/classes/entities/class-tainacan-item.php
UTF-8
5,562
2.609375
3
[]
no_license
<?php namespace Tainacan\Entities; defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); /** * Represents the Entity Item */ class Item extends Entity { use \Tainacan\Traits\Entity_Collection_Relation; /** * {@inheritDoc} * @see \Tainacan\Entities\Entity::repository * @var string */ protected $rep...
true
8da7ff472edc0cd2c399bf231ee4fdf99ca0fca7
PHP
mokgosi/badger-dv-tst
/src/Library/framework/Database/Entity/Connection.php
UTF-8
884
2.890625
3
[]
no_license
<?php declare(strict_types=1); namespace Framework\Database\Entity; use Framework\Database\Adapter\AdapterInterface; class Connection { /** * @var AdapterInterface */ protected $adapter; /** * @var string */ protected $driver; /** * @var array */ protected $op...
true
86749097a475474be53605636165f3b5801a6899
PHP
annonyme/dispatcher
/tests/dispatcher/Test.php
UTF-8
1,575
2.71875
3
[ "MIT" ]
permissive
<?php use hannespries\dispatcher\controllers\HTTPController; use Symfony\Component\HttpFoundation\Request; use hannespries\response\Response; use hannespries\response\ResponseOut; use hannespries\dispatcher\HTTPDispatcher; class TestController implements HTTPController { public function index(Request $req, Respon...
true
4d9910b5566a7eade3b66908ee111a9752dff6d8
PHP
kshamlani/sequential-parallel-processing
/application/models/Generic_model.php
UTF-8
3,696
2.640625
3
[ "MIT" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Generic_model extends CI_Model { /** Constructor **/ function __construct(){ parent::__construct(); } /** * @param $table * @param null $paramList * @param null $attrList * @param null $sortPara...
true
67e0d8f07427514005a3f60e7302bc1539c75d85
PHP
expobecas/Becas
/app/models/detalle_solicitud.php
UTF-8
2,462
2.609375
3
[]
no_license
<?php class Detalle_solicitud Extends Validator { private $id_detalle = null; private $id_estado = null; private $id_solicitud = null; public function setIdDetalle($value) { if($this->validateId($value)) { $this->id_detalle = $value; return true; } ...
true
c435018b6b2afe35e9507975f1439a11f1225712
PHP
yvan99/banking-system
/check_email.php
UTF-8
423
2.53125
3
[]
no_license
<?php require_once("connection/konnect.php"); if(!empty($_POST["username"])) { $query = mysqli_query($conn,"SELECT * FROM student WHERE st_email='" . $_POST["username"] . "'"); $user_count = mysqli_num_rows($query); if($user_count>0) { echo "<span class='status-not-available'> Email Already Taken.</...
true
3ba67baabe67f940970cf5555086cd2a1551fa92
PHP
ALIKRAUHA/hector_interface_client
/send.php
UTF-8
200
2.5625
3
[]
no_license
<?php $content = file_get_contents('last.txt'); $lines = explode("\n", $content); $line = array_shift($lines); file_put_contents('last.txt', implode("\n", $lines)); echo empty($line) ? '{}' : $line;
true
1aba0afeb74ba0c64172491dd8cd86580c2b569e
PHP
SINTEF-SIT/ADAPT-AIMS
/api/seniorUserData.php
UTF-8
2,449
2.640625
3
[ "Apache-2.0" ]
permissive
<?php include('inc/deliver_response.inc.php'); include('inc/jwt.inc.php'); include('dbFunctions/seniorUserDataFunctions.php'); $tokenUserID = validateToken(); if ($tokenUserID !== null) { $method = $_SERVER['REQUEST_METHOD']; switch ($method) { case 'GET': $seniorUserDetails = null; if ($tokenUse...
true
1eef1082b44dd56cf4de9d23660cbc66c2acf68f
PHP
ohmzapk013/HomeSwap-Project
/myfiles/PHP/cancelOrder.php
UTF-8
3,862
2.59375
3
[]
no_license
<?php $servername="zebra"; $username="shirba"; $password="nD(-cmTvuivT"; $dbname="shirba_database"; $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $userID=$_REQUEST['userID']; $AptID=$_REQUEST['Ap...
true
95d9372acda158c7114b671bd99d3b0976ebebb4
PHP
mHeydari3/phpMVC
/app/validator.php
UTF-8
2,030
2.9375
3
[]
no_license
<?php namespace App; class Validator { private static $_errors ; private static $_errorstext ; public static function check($fields , $rules){ self::$_errorstext = \App\Lang::get("validator"); self::$_errors = [] ; foreach ($fields as $field => $value ) { $rule = $rules...
true
a7c9572ab8cf8528dc3a42a76e18feac803a6de9
PHP
Head-Held-High/rubanbridge_new
/app/Http/Middleware/Authenticate.php
UTF-8
2,672
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Contracts\Auth\Guard; use Auth; use Redirect; use Route; use App\Models\Permission; class Authenticate { /** * The Guard implementation. * * @var Guard */ protected $auth; /** * Create a new filter instance. * ...
true
20878b1f46169a08c7c8f51069c8773ea4943b9f
PHP
LukaszK88/yopaTask
/app/Http/Controllers/AuthController.php
UTF-8
959
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Tymon\JWTAuth\Facades\JWTAuth; class AuthController extends ApiController { public function authenticate(Request $request) { $data = $request->all(); $email = $data['username']; $password = $data['pas...
true
acdfd2e4d2930513135ebd5b8221bcc2788e6f9f
PHP
callcolor/RockPaper
/src/AppBundle/Entity/Player.php
UTF-8
1,508
2.890625
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * A Player of the classic game Rock, Paper, Scissors. */ class Player { /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\ManyToMan...
true
96f9dacb6445a1e205a31f77d7a3d309de3e22c1
PHP
Starfish-Internet-Solutions-imat/eldercare
/Project/Code/System/HealthCare_Provider/hcp_contact_persons/hcp_contact_persons.php
UTF-8
967
2.53125
3
[]
no_license
<?php require_once FILE_ACCESS_CORE_CODE.'/Objects/Database/starfishDatabase.php'; require_once 'Project/Code/System/Active_Record/dbQuery.php'; require_once 'healthcare_provider.php'; class healthcare_providers extends dbQuery { private $array_of_results = array(); //----------------------------------------------...
true
ba319fa0ac63f4634b6617063221cc2dba96eee6
PHP
justiniv/Qsite
/includes/database.php
UTF-8
982
2.8125
3
[]
no_license
<?php class Database { private $host = "localhost"; private $db_name = "###################"; private $username = "###############"; private $password = "#################"; private $port = "3306"; private $charset = "utf8"; private $dsn; public $conn; ...
true
feb840d686a1d8bba6fc029e237bbd4e5c101bfc
PHP
RomainFrechic/php-form-user-exercice
/step3/client.php
UTF-8
742
2.890625
3
[]
no_license
<?php require_once('product.php'); class Client extends Product{ private $buy; private $billAmount; private $cart = []; public function __construct($id,$name,$price,$buy,$cart,$billAmount){ parent::__construct($id,$name,$price); $this->buy=$buy; $this->cart=$cart; $this->billAmount=$billAmount; ...
true
48e2e127a15837357d41955772bcfcdc10feb477
PHP
MisaelMvM/acc_php_challenge
/app/Http/Controllers/WorkerController.php
UTF-8
3,613
2.8125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Worker; use Session; class workerController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // create a variable and stor...
true
a571935be73cfe6986f946a9329498feb39236cb
PHP
uptimizt/socialify
/vendor/hybridauth/hybridauth/examples/example_03.php
UTF-8
870
2.625
3
[ "MIT" ]
permissive
<?php /*! * An example on how use Access Tokens to access providers APIs, and how to setup custom API endpoints. */ include 'vendor/autoload.php'; $config = [ 'callback' => Hybridauth\HttpClient\Util::getCurrentUrl(), 'keys' => ['id' => 'your-facebook-app-id', 'secret' => 'your-facebook-app-secret'], 'e...
true
39f51d907cf980a63a581602b39a89aa8de2c698
PHP
TomorrowIdeas/plaid-sdk-php
/src/Resources/Investments.php
UTF-8
1,304
2.90625
3
[ "MIT" ]
permissive
<?php namespace TomorrowIdeas\Plaid\Resources; use DateTime; use TomorrowIdeas\Plaid\PlaidRequestException; class Investments extends AbstractResource { /** * Get investment holdings. * * @param string $access_token * @param array<string,mixed> $options * @throws PlaidRequestException * @return object ...
true
ec453c37ff414ecb756628036f971907cb7fb955
PHP
liuyingxiong/8yi
/application/common/logic/AuthLogic.php
UTF-8
1,373
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/7/19 * Time: 15:19 */ namespace app\common\logic; use think\console\command\make\Model; use think\Db; class AuthLogic extends Model { /** * 权限列表 * @param $where array 条件 * @param $order string 排序 * @param $p int ...
true
f6b4ee8d7831d5a9a3326ffce77f34242bfd4655
PHP
ignas26/PHP-nd
/p06/uzduotys/index.php
UTF-8
1,873
2.828125
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <form action="register.php" method="POST"> <input type="text" name="username" placeholder="user name" required> <input type="password" name="password" placehold...
true
79392305979513cb7df881d3356aa48c8b9cacb5
PHP
daisysouza/treinamento-php
/aula01/operadores_comparacao.php
UTF-8
363
3.53125
4
[]
no_license
<?php echo '<pre>'; var_dump(0 == 'a'); // 0 == 0 -> true var_dump(1 == '01'); // 1 == 1 -> true var_dump(10 == '1e1'); // 10 == 10 -> true var_dump(100 == '1e2'); // 100 == 100 -> true // Integer var_dump(1 <=> 1); //0 var_dump(1 <=> 2); //-1 var_dump(2 <=> 1); //1 // Floats var_dump(1.5 <=> 1.5); //0 var_dump(1....
true
4f804e84ea28781acb222082affbe042d51255bd
PHP
marciowinicius/binary-tree-laravel
/app/Services/BinaryService.php
UTF-8
2,766
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Márcio Winicius * Date: 18/05/2018 * Time: 11:35 */ namespace App\Services; use App\Models\User; use Illuminate\Support\Facades\Validator; class BinaryService { protected $points_multiplier = 500; /** * Validator de category * @param $data * @retur...
true
55cfd7e17bd4044e68bc74eaed2b59c44ad97db3
PHP
martinnovak/coraabia-admin
/libs/Gallery/DataSources/IDataSource.php
UTF-8
521
2.890625
3
[]
no_license
<?php namespace Gallery\DataSources; interface IDataSource { /** * @return int */ function getCount(); /** * @return array */ function getData(); /** * @param array $condition * @return void */ function filter(array $condition); /** * @param int ...
true