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
34e96eb743725144190d866ec2c4ef22762fa9b8
PHP
Atmo88/penzionPHP
/admin.php
UTF-8
3,860
2.75
3
[]
no_license
<?php require 'data.php'; session_start(); $spatneHeslo = false; if (array_key_exists('prihlasit', $_POST)) { if ($_POST['pass'] == "heslo") { $_SESSION['loggedin']= TRUE; header('location:?'); exit(); } else { $spatneHeslo = true; } } if (array_key_exists('odhlasit', $_...
true
7c1632c621deede5a912714de4ae64304558643f
PHP
tn261m/PHP
/Day_2/image_submit/image_submit.php
UTF-8
2,286
3.25
3
[]
no_license
<?php /* * ファイルパス:C:\xampp\htdocs\image_submit\image_submit.php * ファイル名:image_submit.php * アクセスURL:http://localhost/PHP/Day_2/image_submit/image_submit.php * * 今回の学習内容 * ・全体の流れ(投稿があったか確認→画像のエラーチェック→画像のアップロード) * ・画像のファイル情報 */ // 送信ボタンが押されているかどうか if (isset($_POST['send']) === true) { $tmp_image = $_FILES['i...
true
cf8887be25339c268e4701089aa24a26e4110c40
PHP
beshoy6700/Cash
/Modules/Safes/Http/Requests/SafeRequest.php
UTF-8
1,817
2.546875
3
[ "MIT" ]
permissive
<?php namespace Modules\Safes\Http\Requests; use Illuminate\Contracts\Validation\Validator; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Exceptions\HttpResponseException; use Modules\Safes\Entities\Safe; class SafeRequest extends FormRequest { /** * Get the validation rules that apply to ...
true
43063be733aed95f1fd4a92793e36526e794a996
PHP
Kingbobs/PrisonPlugins
/Warp/src/falkirks/simplewarp/store/YAMLStore.php
UTF-8
1,103
2.890625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: noahheyl * Date: 2015-06-04 * Time: 8:18 PM */ namespace falkirks\simplewarp\store; use pocketmine\utils\Config; class YAMLStore extends StandardStore implements Saveable, Reloadable{ /** @var Config */ private $config; public function __construct(Config $config){ ...
true
568d812c5e7e7ad3a9650a11d4e64ef8d7f79c18
PHP
netgen-layouts/content-browser
/lib/Backend/BackendInterface.php
UTF-8
2,669
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Netgen\ContentBrowser\Backend; use Netgen\ContentBrowser\Item\ItemInterface; use Netgen\ContentBrowser\Item\LocationInterface; /** * @method \Netgen\ContentBrowser\Backend\SearchResultInterface searchItems(SearchQuery $searchQuery) * @method int searchItemsCount(SearchQuer...
true
8a1d0c8f6448d074b6d0ed2f2ba163752e9ff39d
PHP
Fred-dee/Camagru
/private/update.php
UTF-8
4,878
2.53125
3
[]
no_license
<?php if (!isset($_SESSION)) session_start(); require_once("../config/database.php"); require_once("../includes/functions.php"); if (isset($_POST)) { $pdo = DB::getConnection(); if (isset($_POST["reset"]) == null) { $bool = intval($_POST["em_subs"]); if ($bool != 1) $bool = 0; ...
true
c9d3927de6ddac380076659608c77e0033d4dd15
PHP
Wizofgoz/deprecation-laravel
/src/Deprecated.php
UTF-8
1,940
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Wizofgoz\DeprecationLaravel; use Carbon\Carbon; use Illuminate\Http\Response; use Wizofgoz\DeprecationLaravel\Links\Link; use Wizofgoz\DeprecationLaravel\Links\LinkCollection; final class Deprecated implements AppliesToResponse { public const HEADER = 'Deprecation'; ...
true
b9b7131827640aa690e0251dd8030eec7056ca79
PHP
ckressibucher/fiql-parser-php
/src/Scanner.php
UTF-8
7,073
3.140625
3
[]
no_license
<?php namespace Ckr\Fiql; /** * TODO allow setting additional compare operators (e.g. regex) */ class Scanner { // compare operators const COMPARE_EQUAL = '='; const COMPARE_NOT_EQUAL = '!='; const COMPARE_GREATER_THAN = '>'; const COMPARE_GREATER_EQUAL = '>='; const COMPARE_LESS_THAN = '<'...
true
e0735fab4202d214cb79fc140488d335eb273331
PHP
richthegeek/Misc
/graphs/kneser.php
UTF-8
1,047
3.421875
3
[]
no_license
<?php # enumerate a kneser graph K(n,k), can be rewritten to use the banker's sequence enumerations function kneser( $graph, $n, $k ) { if( $n <= 0 ) die( "n must be positive" ); if( ! ($k > 0 && $k <= $n ) ) die( "k must be positive and less than n" ); $s = subsets( $n, $k ); for( $i = 0; $i < count($s); $i+...
true
18a2f5d3b701cef334ba268d9d1f6c2ce8077782
PHP
RogerPM/Grupo_Php
/AlimFaster/pages/Usuario.php
ISO-8859-10
543
2.8125
3
[]
no_license
<?php class Usuario { private $codigo_usuario; private $contrasena; function __construct($codigo_restaurante, $contrasea) { $this->codigo = $codigo_restaurante; $this->contrasena = $contrasena; } public function getCodigo() { return $this->codigo; } publi...
true
58ec3e5054a01e095eace1a2331fbeb760fa7e51
PHP
leconsc/base-framework
/helpers/RequestHelper.php
UTF-8
8,510
2.796875
3
[]
no_license
<?php /** * 与用户Request请求相关状态数据保存与获取 * * @author ChenBin * @version $Id:RequestHelper.php, v1.0 2014-12-05 10:16+100 ChenBin $ * @package Helper * @since 1.0 * @copyright 2013(C)Copyright By Chenbin,all rights reserved. */ namespace app\helpers; use Yii; /** * @access public * @author ChenBin */ class Reque...
true
cb6afc9f000efb7757163868cf51457a47790b5d
PHP
maartenvanloock/Guidance
/require/ervaring_categories_dropdown.php
UTF-8
304
2.515625
3
[]
no_license
<?php $sql = "select * from tbl_categorie_ervaringen"; $result = $db->query($sql); while ($row = mysqli_fetch_assoc($result)) { ?> <option value="<?php echo $row['categorie_name'].','.$row['categorie_color']; ?>"><?php echo $row['categorie_name']; ?></option> <?php } ?>
true
68ba2794c8e1956f937cf8e22c52e7ca14776fcd
PHP
afosto/shopctrl
/src/Models/ProductSelection.php
UTF-8
2,918
2.78125
3
[ "Apache-2.0" ]
permissive
<?php namespace Afosto\ShopCtrl\Models; use Afosto\ShopCtrl\Components\Operations\FindAll; use Afosto\ShopCtrl\Components\Model; use Afosto\ShopCtrl\Components\App; /** * @property integer $id Gets or sets the identifier. * @property boolean $active Gets or sets a value indicating...
true
48e3e93c110a7c51070a5e22efbf7f30a500bca2
PHP
quanghung97/database-ntbic-ver2
/app/Http/Controllers/khoa_hoc_cong_nghe/SearchController.php
UTF-8
2,253
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\khoa_hoc_cong_nghe; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\khoa_hoc_cong_nghe; class SearchController extends Controller { public function getSearch(Request $request) { $time_search = -microtime(true); $per_page = 10; /*Truyền vào te...
true
5c8f7d554c8137378e03fb57b0556f92f6e04231
PHP
shivrajawat/bambu
/createxml.php
UTF-8
16,792
2.6875
3
[]
no_license
<?php function CreateElementWithValue($dom, $parent, $elementname, $elementvalue = NULL, $child = false) { $tag = $dom->createElement($elementname); if($elementvalue) { $tagValue = $dom->createTextNode($elementvalue); $tag->appendChild($tagValue); } if(!$child) { $parent->appendChild($tag); } } function Cr...
true
3cbde79a4d2b5a8467fd7cf8f6a19329edb3b530
PHP
limb-php-framework/limb-app-buildman
/lib/limb/classkit/tests/cases/lmbObjectTest.class.php
UTF-8
6,396
2.71875
3
[]
no_license
<?php /** * Limb Web Application Framework * * @link http://limb-project.com * * @copyright Copyright &copy; 2004-2007 BIT * @license LGPL http://www.gnu.org/copyleft/lesser.html * @version $Id: lmbObjectTest.class.php 4987 2007-02-08 15:35:15Z pachanga $ * @package classkit */ lmb_require('limb/cl...
true
1f07f2c26d216c2e5263f3073b4ede518ffc5dc1
PHP
tjpreston/thegreat
/app/controllers/coupons_controller.php
UTF-8
1,839
2.734375
3
[]
no_license
<?php /** * Coupons Controller * */ class CouponsController extends AppController { /** * Admin * List records. * * @return void * @access public */ public function admin_index() { $this->set('records', $this->paginate()); } /** * Admin * Edit an existing record or dis...
true
3917ecd3df765e1360786082007087289b40dd89
PHP
takuya-hasumi/design-pattern-practice
/immutable/immutable.php
UTF-8
1,761
3.78125
4
[]
no_license
<?php /** * 要件 * 1. 最初一回だけ値セット * 2. 変えられない * 3. 変えようとしたらコピーされる(ディープコピー) * Immutableってどういうときに使うの? * → Serviceとか */ class Immutable { private $property; private $object; public function __construct($object) { // オブジェクトのときの判定 if ($object instanceof Immutable) { // echo "...
true
278636909d9ec9ba5c549d4c084955e11ef31443
PHP
jcockrum/cloud_page
/project/includes/drop_down.php
UTF-8
3,803
3
3
[]
no_license
<?php session_start(); $DEBUG=""; // Debug flag ( 1 for true, "" for false) if($DEBUG) { echo "<br /> Auth - Current Session-----------<br />"; print_r($_SESSION); echo "<br />----------------------------------------------<br />"; } //or trigger_error("DB write fa...
true
0c9693692b29236b33c5686ceed46cd4fa97a8be
PHP
willvrd/Itrivia
/Events/TriviaWasCreated.php
UTF-8
653
2.5625
3
[]
no_license
<?php namespace Modules\Itrivia\Events; use Modules\Itrivia\Entities\Trivia; use Modules\Media\Contracts\StoringMedia; class TriviaWasCreated implements StoringMedia { private $trivia; private $data; public function __construct($trivia, $data) { $this->trivia = $trivia; $this->data ...
true
46b7165c831ca51ca909d89678ad5a80831a263c
PHP
anonymouse71/Ecommerce-1
/application/views/main/cart.php
UTF-8
3,655
2.578125
3
[]
no_license
<div class="fullwidth"> <?php // $cart->getShippingCost(); // echo "<pre>"; // var_dump($cart); // echo "</pre>"; $products = null; if (is_object($cart)) { $products = $cart->getProducts(); } else{ $products = array(); } $quantity = 0; foreach ($products as $product) { $quantity += $product->quantity;...
true
fa7ffbeee21128c06bd310400e28680e0ccce6f6
PHP
figerandlmj/kuaixiu-weixin
/src/ZM/MemberBundle/Controller/BaseController.php
UTF-8
15,870
2.625
3
[]
no_license
<?php namespace ZM\MemberBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\Filesystem\Filesystem; class BaseController extends Controller { public $webIp = 'http://121.41.118.106/'; public $default_store_image...
true
e9d88044ed15c6ea493da61bd473c68661265ad6
PHP
DanielRomeo/PhotographyWebsite
/mnisi/admin.php
UTF-8
3,393
2.59375
3
[ "MIT" ]
permissive
<?php session_start(); if (!isset($_SESSION['user_id'])) { header('Location: login.php'); exit(); } include("../includes/db_conx.php"); //post count $post_count = $db->query("SELECT * FROM posts"); //count comments: $comment_count = $db->query("SELECT * FROM comments"); if (isset($_POST['submit'])) { $newCategory = $_...
true
6ec2897fbbdcc0f0ac404aaad174590817fe5f07
PHP
Strike50/symfony
/boards/src/Entity/Story.php
UTF-8
3,344
2.59375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * Story * * @ORM\Table(name="story", indexes={@ORM\Index(name="idDeveloper", columns={"idDeveloper"}), @ORM\Index(name="idProject", columns={"idProject"})}) * @ORM\Entity */ class Story { /** * @var int * * @ORM\Column(name="id"...
true
1f28c5939e32162efcb7668850e12f8c1858fa3e
PHP
maximProjects/apiato
/app/Containers/Media/Tasks/FindMediaByIdTask.php
UTF-8
638
2.59375
3
[]
no_license
<?php namespace App\Containers\Media\Tasks; use App\Containers\Attachment\Models\Attachment; use App\Containers\Media\Data\Repositories\MediaRepository; use App\Ship\Exceptions\NotFoundException; use App\Ship\Parents\Tasks\Task; use Exception; class FindMediaByIdTask extends Task { protected $repository; p...
true
ae795270c84731593f9f789b83d4750865cf7b6f
PHP
Joeanca/Assignment3WEBII
/classes/AbstractTableGateway.class.php
UTF-8
3,824
3.25
3
[]
no_license
<?php include('AdapterFactory.class.php'); abstract class AbstractTableGateway { // contains connection /* Constructor is passed a database adapter (example of dependency injection) */ public function __construct(){} // To set the select statement protected abstract funct...
true
cc9de847ab74f4869ba7e92e916e428be565464b
PHP
marineL37/Site_Jeux_Public
/Public/connexion.php
UTF-8
1,356
2.640625
3
[]
no_license
<?php /* Fichier permettant de gérer la page d'inscription du site Mini-jeux. */ // On charge les fichiers nécessaires require_once '../src/Classes/Utilisateur.class.php'; require_once '../src/Classes/PageWeb.class.php'; require_once '../src/Classes/BaseDeDonnees.class.php'; // On démarre la session $session = ...
true
8a6e24b0ad853538a4114d6c6ec12ab92b65bb04
PHP
arispati/emoji-remover
/tests/FilterTest.php
UTF-8
2,436
2.734375
3
[ "MIT" ]
permissive
<?php namespace Arispati\EmojiRemover\Test; use PHPUnit\Framework\TestCase; use Arispati\EmojiRemover\EmojiRemover; class FilterTest extends TestCase { public function testRemoveEmoji(): void { $text = 'Emoji 🌆'; $this->assertEquals('Emoji ', EmojiRemover::filter($text)); } public ...
true
e27fcb6ac0bd859b60ead9798d2a4aa8b10a6a7b
PHP
azimgd/instagram-php-bot
/src/InstagramBot/Service/Auth/InstagramAuth.php
UTF-8
2,122
2.78125
3
[]
no_license
<?php namespace InstagramBot\Service\Auth; use GuzzleHttp\Client; use InstagramBot\Repo\Cookies\Cookies; use InstagramBot\Repo\Headers\Headers; class InstagramAuth implements AuthInterface { public static $loginPage = 'https://instagram.com/accounts/login/'; public static $loginAjax = 'https://instagram.com/acco...
true
e5db72f0c1521dafd93bd29c930275c8da33bb71
PHP
angelxmoreno/get-set-methods-annotation
/src/PropertyInfo.php
UTF-8
2,318
3.015625
3
[ "MIT" ]
permissive
<?php namespace Axm\GetSetAnnotations; use ReflectionProperty; /** * Class PropertyInfo * * @package Axm\GetSetAnnotations * */ class PropertyInfo { const PATTERN_PROPERTY_TYPE = '~@var\s+([^\s]+)~i'; /** * @var string */ protected $name; /** * @var string|null */ prote...
true
fb452572e8c381aae6cc33c066fbbfbbb7338393
PHP
optimuscms/pages
/src/Http/Controllers/PagesController.php
UTF-8
5,598
2.609375
3
[ "MIT" ]
permissive
<?php namespace Optimus\Pages\Http\Controllers; use Optimus\Pages\Template; use Illuminate\Http\Request; use Optimus\Pages\Models\Page; use Illuminate\Routing\Controller; use Optimus\Pages\TemplateRegistry; use Optimus\Pages\Jobs\UpdatePageUri; use Optimus\Pages\Http\Resources\PageResource; class PagesController ext...
true
4002fbacc88b8955277cccf855f795e1738307ca
PHP
reynoldnathaniel/COMP3421-Project
/bookingProcess.php
UTF-8
3,327
2.6875
3
[]
no_license
<?php session_start(); if (isset($_POST['bookButton'])){ $date = $_POST["date"]; $time1 = (int)substr($_POST["time1"],0,2); $time2 = (int)substr($_POST["time2"],0,2); $numberofguests = $_POST["numberofguests"]; $request = $_POST["request"]; echo $time1; echo $time2."<br>"; $userid...
true
af59610812c668c08016fd481c32bd19dd4abdb7
PHP
joanlouis/dolibarr-a3sys
/a3sys/class/facturedets.class.php
UTF-8
9,404
2.65625
3
[]
no_license
<?php /* <one line to give the program's name and a brief idea of what it does.> * Copyright (C) <2017> SaaSprov.ma <saasprov@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, ei...
true
88b7b1bfe6b3cd63b96170997106f0f101201564
PHP
Unclebanj/t
/registerationconnection.php
UTF-8
1,823
2.59375
3
[]
no_license
<?php require_once 'connection.php'; $conn = mysqli_connect($dbhost, $dbuser, $dbpw, $dbname); $user = $_POST['username']; $pass = $_POST['password']; $pass = sha1($pass); function encryption($user, $pass) { $count = strlen($user); for ($i = 0; $i < $count; $i++) { $pass = hash('sha256', $pass, fal...
true
84cf64c4ae1182325bddb5c0284901686aac890d
PHP
hellysdo/Library-Management-System
/LibrarySystem/page/booksInfo.php
UTF-8
5,181
2.90625
3
[]
no_license
<?php //activate the session in this page session_start(); //include the mysql database connection page include_once '../conn.php'; //the sql to get all the book information from database $sql = "select * from book"; //the total records $totalNum = mysqli_num_rows(mysqli_query($con, $sql));//the total records ...
true
3b3bccf5cdf239fed15954ab017ac2a23e5393e5
PHP
jenningj/TableauExtentions
/Samples/InsertDemo/php/test.php
UTF-8
2,063
2.9375
3
[]
no_license
<?php /* Connect to the local server using Windows Authentication and specify the AdventureWorks database as the database in use. */ $serverName = "(localdb)\\MSSQLLocalDB"; $connectionInfo = array( "Database"=>"Test_Dynamic"); $conn = sqlsrv_connect( $serverName, $connectionInfo); if( $conn === fals...
true
51b922d9017caeae0bf5fc89d587f3991cb2752a
PHP
concretecms/concretecms
/concrete/src/Application/UserInterface/Sitemap/TreeCollection/TreeCollection.php
UTF-8
1,668
2.71875
3
[ "MIT" ]
permissive
<?php namespace Concrete\Core\Application\UserInterface\Sitemap\TreeCollection; use Concrete\Core\Application\UserInterface\Sitemap\TreeCollection\Entry\EntryInterface; use Concrete\Core\Application\UserInterface\Sitemap\TreeCollection\Entry\Group\GroupInterface; abstract class TreeCollection implements TreeCollecti...
true
c40ffe8589789b082c6b0a4a8e4bebb5c69c2a8d
PHP
nosorrow/manufacture
/src/App/Middleware/Auth.php
UTF-8
258
2.8125
3
[]
no_license
<?php namespace App\Middleware; use Closure; class Auth { /** * @param $request * @param Closure $next */ public function handle($request, Closure $next) { echo "Auth Middleware<br>"; $next($request); } }
true
13a834aa9acdba5ac2bb18eaa0efac82383e67b0
PHP
onigoetz/PhotoGallery
/src/php/lib/Node.php
UTF-8
1,493
3
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: onigoetz * Date: 28.06.14 * Time: 22:00 */ class Node implements Countable { protected $children = array(); protected $parent; protected $name; protected $thumb; public function __construct($name, $parent = null) { $this->name = $name;...
true
4dae7cab06ba8f243020245e8c3afd9b9040bbe5
PHP
apuc/admin
/backend/modules/blind/models/Blind.php
UTF-8
1,085
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\modules\blind\models; use Yii; /** * This is the model class for table "blind". * * @property integer $id * @property string $name * @property integer $status * @property string $description * @property string $tab */ class Blind extends \yii\db\ActiveRecord { /** * @inheritd...
true
b035716028b1c58b6b1b8c42907343ab4b2ec7b3
PHP
ciiichy/myRoll
/lib/model/doctrine/Users.class.php
UTF-8
611
2.546875
3
[]
no_license
<?php /** * Users * * This class has been auto-generated by the Doctrine ORM Framework * * @package roLL * @subpackage model * @author Your name here * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ class Users extends BaseUsers { static function authUser($login,$password){...
true
f5c61b188f278a4865e64865561ea722ff58f01b
PHP
JordanDalton/HackerNewsCloneDemo
/app/Votes/Vote.php
UTF-8
2,894
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Votes; use App\Core\PresentableSoftDeleteModel; use App\Users\User; class Vote extends PresentableSoftDeleteModel { /** * The database table used by the model. * * @var string */ protected $table = 'votes'; /** * Define a list of fields which we will ignore v...
true
050b648ad531be34031bfbf346bc49eea087da56
PHP
rendyep/wwii-domain
/src/WWII/Domain/Erp/QualityControl/GeneralInspection/FinishingInspection.php
UTF-8
1,546
2.65625
3
[]
no_license
<?php namespace WWII\Domain\Erp\QualityControl\GeneralInspection; class FinishingInspection { protected $id; protected $tanggalInspeksi; protected $lokasi; protected $staffQc; protected $finishingInspectionTime; public function __construct() { $this->finishingInspectionTime = ...
true
bd5d9cbdf80fbc24c74b32f4e9c1b74d81e88ccb
PHP
cleberschmidt/auditoriaSegurancaSistemas
/estrutura/controller/class_controller_padrao_estrutura.php
UTF-8
18,059
2.578125
3
[]
no_license
<?php class ControllerPadraoEstrutura{ /** @var PersistenciaPadraoEstrutura */ private $Persistencia; public function __construct() { $this->Persistencia = new PersistenciaPadraoEstrutura(); } /* Busca conforme o model setado como parametro Retorna Array de Model...
true
088e584fa646e11a4146ed6101dd7b5e08995b52
PHP
anuj569/phptrainingpractice
/prac17.php
UTF-8
387
3.125
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', 1); $search_array = array('first' => null, 'second' => 4); // returns false if(isset($search_array['first'])) { echo "<br>exists isset"; } else { echo "<br>not exists isset"; } // returns true if(array_key_exists('first', $search_array)) { echo "<br>array ...
true
02431835467f1f078407adfd32eb7c6658f91650
PHP
yperea/dragonfly-mvc
/src/main/app/controllers/AccountController.php
UTF-8
3,585
2.6875
3
[]
no_license
<?php namespace Dragonfly\App\Controllers; use Dragonfly\App\Base\Controller; use Dragonfly\App\Repositories\DUserRepository; use Dragonfly\App\Repositories\UserRepository; use Dragonfly\App\Managers\UserManager; use Dragonfly\App\ViewModels\LoginViewModel; use Dragonfly\App\ViewModels\SignUpViewModel; require_once ...
true
31336242122123df5080b7b0b9c5f9b7d6a34c02
PHP
Icinga/ipl-html
/src/FormElement/SubmitButtonElement.php
UTF-8
1,418
2.859375
3
[ "MIT" ]
permissive
<?php namespace ipl\Html\FormElement; use ipl\Html\Attributes; use ipl\Html\Contract\FormSubmitElement; class SubmitButtonElement extends ButtonElement implements FormSubmitElement { protected $defaultAttributes = ['type' => 'submit']; /** @var string The value that's transmitted once the button is pressed ...
true
4a96908bd331c7524fa3ff6697e0d46ae91a4cca
PHP
VirtuosiMedia/VM-PHP-Framework
/Dev/Test/Assert/Equal.php
UTF-8
600
3.203125
3
[ "MIT" ]
permissive
<?php /** * @author Virtuosi Media Inc. * @license MIT License * @description A unit test that tests if x is equal to y, fails if they are not equal. * @namespace Test\Assert */ namespace Test\Assert; class Equal extends \Test\Assert { /** * @description Tests if x is equal to y, fails if they ar...
true
d9434bf962ff7796580a05e5153320d01fdd8eea
PHP
degnoske/eecs448lab05
/ViewUsers.php
UTF-8
369
2.75
3
[]
no_license
<?php require('db.php'); $db = new db(); $db->connect(); //Get Persons $query = "SELECT * FROM `Persons` LIMIT 0 , 30"; if ($result = $db->mysqli->query($query)) { /* fetch associative array */ while ($row = $result->fetch_assoc()) { print_r($row["user_id"]); echo '<br/>'; } ...
true
ad34ef7df84c90332829c5b315e69de59a7d445b
PHP
safetyscissors/zombieAction
/server/queries/profileQueries.php
UTF-8
1,980
2.765625
3
[]
no_license
<?php function getProfileByName($DB, $name){ $stmt = $DB->prepare("SELECT profileId,name,passwordHash FROM zombieProfile WHERE name= ?"); if(!$stmt->bind_param('s', $name)){ return errorHandler("getProfileByName failed to bind parameter", 503); } return $stmt; } ...
true
e2d7bf42598f86f5eecfded035feb15165ed4076
PHP
Hypernode/hypernode-magerun
/src/Hypernode/Util/FileResolver.php
UTF-8
1,705
2.859375
3
[]
no_license
<?php /** * Byte Hypernode Magerun * * @package hypernode-Magerun * @author Byte * @copyright Copyright (c) 2017 Byte * @license http://opensource.org/licenses/osl-3.0.php Open Software License 3.0 (OSL-3.0) */ namespace Hypernode\Util; /** * Class FileResolver * @package Hypernode\PasswordCra...
true
0e76914fbf460d74afc4c82e3b44e8e0a8b7f0b1
PHP
alex3fokin/first-php-site
/includes/uploadImg.php
UTF-8
2,273
2.609375
3
[]
no_license
<?php require_once 'config.php'; if (filter_input(INPUT_POST, 'upload')) { if (empty($_FILES['photo'])) { $msg = 'There is no file'; } else { $photo = $_FILES['photo']; if ($photo['error'] !== UPLOAD_ERR_OK) { switch ($photo['error']) { case UPLOAD_ERR_INI_SIZ...
true
76b99827b321e1e91993994076d209a45a753d04
PHP
arnelcapendit/PHP_MySQL_AJAX_JQUERY
/ooplr/profile.php
UTF-8
606
2.5625
3
[]
no_license
<?php require_once 'core/init.php'; $username = new User(); //echo $username->data()->username; //echo Input::get('user'); if(!$username = Input::get('user')){ //echo $username; //echo Input::get('user'); //Redirect::to('index.php'); } else { $username = new User(); //echo $username->data()->username; $user...
true
b473a57bdb215c4f9c5f7393bef2f9cf7441d692
PHP
Trickst6r/WADP-PHP
/Ass4/Ass4_detailFlight.php
UTF-8
1,804
2.53125
3
[]
no_license
<?php if (isset($_GET["id"]) == FALSE) { header("location:Ass4_FlightControl.php"); exit(); } include_once '../../thuvien/connectDB.php'; ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <link href="../css/bootstrap.min.css" rel="stylesheet" type="...
true
633ca9f11a7a249af1435643b16c96eb8afe6187
PHP
meAndrei23/andreihogas-site
/bin/objects/Routing/Router.php
UTF-8
648
2.6875
3
[]
no_license
<?php namespace Routing; class Router { public $routerSet; function __construct($routesPathFile = 'app/config/router') { $this -> routerSet = new RouterSet(); $arrayRoutes = include $routesPathFile . '.php'; $this -> routerSet -> addArray($arrayRoutes); } public function run($url) { $data = ...
true
2d3cef8bb99f7aa98a75b645cfe656c97bd4ba15
PHP
spatie/attended.io
/app/Domain/Shared/Models/Concerns/HasSlug.php
UTF-8
400
2.5625
3
[]
no_license
<?php namespace App\Domain\Shared\Models\Concerns; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; trait HasSlug { public static function bootHasSlug() { static::saving(function (Model $model) { $model->slug = Str::slug($model->name); }); } public func...
true
55fdb5b1791ed0e801166f80e5c8bac39e4a9cd5
PHP
alisterwan/website
/admin/managecustomers.php
UTF-8
2,451
2.890625
3
[]
no_license
<?php include './header.php'; function form($conn,$id) { $query = pg_query($conn,"SELECT firstname,surname,address,city,country,username,password,mail,id_customer FROM customers WHERE id_customer=$id"); $customer = pg_fetch_row($query); echo "<form action='./managecustomers.php' method='post'> <p>Delete or ...
true
06000a3b0f34c245082eeedb36b99b8001e1bbb6
PHP
awloint/500-Initiative-Registration
/scripts/Mailgun.php
UTF-8
3,006
3.0625
3
[]
no_license
<?php /** * This script is the Mail Class * * PHP version 7.2 * * @category Mail_Class * @package Mail_Class * @author Benson Imoh,ST <benson@stbensonimoh.com> * @license MIT https://opensource.org/licenses/MIT * @link https://stbensonimoh.com */ class Mailgun { public $list; /** * Constr...
true
79556a517e8501fc4805b98cc8bc42f29bba38e2
PHP
uralban/items_catalog
/database/migrations/2020_04_03_235419_create_items_categories_table.php
UTF-8
857
2.609375
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateItemsCategoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('items_cat...
true
8edfd5601011be7566f77043981ff17e1017e64d
PHP
abdtif/bludit
/bl-kernel/page.class.php
UTF-8
1,395
2.828125
3
[ "MIT" ]
permissive
<?php defined('BLUDIT') or die('Bludit CMS.'); class Page extends Content { function __construct($key) { // Database Key $this->setField('key', $key); // Set filterType $this->setField('filterType', 'page'); parent::__construct(PATH_PAGES.$key.DS); } // Returns the page position. public function pos...
true
3b9ed2af71fb8c42373d268b5117d7708eb2cb2f
PHP
joeyx22lm/Collange
/webapp/lib/joeyx22lm/Log.php
UTF-8
1,300
3.390625
3
[]
no_license
<?php /** * Class Log */ class Log { public static $level = 1; /** * @return bool */ private static function shouldError(){ return self::$level > -1; } /** * @return bool */ private static function shouldWarn(){ return self::$level > 0; } /** ...
true
5e129086d926789cf77329f7a0e4a388794710d1
PHP
sebjblue/fuelphpclean
/site/fuel/app/classes/helper/url.php
UTF-8
1,174
2.984375
3
[]
no_license
<?php namespace Helper; class Url { public function __construct() { // Constructor } public static function create_link($name, $params = array()) { return \Fuel\Core\Router::get($name . '_' . \Fuel\Core\Lang::get_lang(), $params) . '/'; } public static function switch_language($other_lang) { $url =...
true
a4180e7a9819fa4b55913da004960b75da9f3467
PHP
wjchong/demo2ivan
/calculate_distance.php
UTF-8
1,824
2.546875
3
[]
no_license
<?php $distance=0; include("config.php"); if( isset( $_POST['from_lat'])) { $merchant_id = $_POST['merchant_id']; $latitudeFrom = $_POST['from_lat']; $longitudeFrom = $_POST['from_long']; $latitudeTo = $_POST['to_lat']; $longitudeTo = $_POST['to_long']; // Calculate distance betw...
true
eb6e12b13cdbfa5c7faa4fe5c9ae75213adffd3d
PHP
nikolajstrands/tagify
/src/classes/Database.php
UTF-8
16,511
3.046875
3
[]
no_license
<?php require_once('model.php'); require_once('iTagifyDataAccess.php'); /** * Klassen implementerer al funktionalitet for Tagifys kommunikation med MySQL-databasen. * * Interfacet iTagifyDataAccess kodificerer i mere abstrakt form, hvilken udveksling med det * persistent datalag, appen har brug for. Og Database-kl...
true
15c860e201f56340c23bb708020a96d703a67adb
PHP
Xedecimal/xedlib
/modules/editor_data/editor_data.php
UTF-8
36,675
2.78125
3
[]
no_license
<?php require_once(dirname(__FILE__).'/../../classes/str.php'); require_once(dirname(__FILE__).'/../../classes/present/template.php'); require_once(dirname(__FILE__).'/../../classes/present/form.php'); require_once(dirname(__FILE__).'/../../classes/present/table.php'); /** * @package Editor */ define(...
true
81f29d625a589341110f75d98dce118de5428aba
PHP
orzzzli/zhongyuhuacai
/kernel/lib/db.lib.php
UTF-8
24,943
2.546875
3
[]
no_license
<?php //数据库基类 class DbLib{ //配置文件数组结构 public $_configKey = array('host','port','user','pwd','db_name','char','conn_timeout','conn_persistence','type'); public $_config = null;//连接配置信息 public $_configMapKey = null; public $_masterFD = null;//主库TCP FD public $_slaveFD = null;//从库TCP FD publi...
true
951864ad897dcafb17af9f5ed2a791a249b90d99
PHP
grongor/dbal
/src/Driver/OCI8/Driver.php
UTF-8
912
2.640625
3
[ "MIT" ]
permissive
<?php namespace Doctrine\DBAL\Driver\OCI8; use Doctrine\DBAL\Driver\AbstractOracleDriver; use const OCI_NO_AUTO_COMMIT; /** * A Doctrine DBAL driver for the Oracle OCI8 PHP extensions. */ final class Driver extends AbstractOracleDriver { /** * {@inheritdoc} * * @return Connection */ pu...
true
e07c09fd046841e29f71b08edcc8a5706f477e3e
PHP
beckerben/phpssrs
/library/PhpSsrs/ReportExecutionService/DocumentMapNode.php
UTF-8
689
2.796875
3
[ "BSD-2-Clause" ]
permissive
<?php namespace PhpSsrs\ReportExecutionService; class DocumentMapNode { /** * * @var string $Label * @access public */ public $Label = null; /** * * @var string $UniqueName * @access public */ public $UniqueName = null; /** * * @var DocumentMapNode[] $Children * @acces...
true
a37049146df2846d05351766074604f68b6371c5
PHP
precursorca/munkireport-php
/app/modules/security/phpmigrations/005_security_add_firewall_state.php
UTF-8
2,887
2.9375
3
[ "MIT" ]
permissive
<?php class Migration_security_add_firewall_state extends \Model { protected $columnname = 'firewall_state'; public function __construct() { parent::__construct(); $this->tablename = 'security'; $this->idx[] = array('firewall_state'); } public function up() { // Get database handle $dbh = $this->get...
true
798e49b4125c98485f9ff4a49757ffcb108228eb
PHP
Maggomann/filament-tournament-league-administration
/src/Domain/Support/Rules/EndedAtGameDayRule.php
UTF-8
1,925
2.640625
3
[ "MIT" ]
permissive
<?php namespace Maggomann\FilamentTournamentLeagueAdministration\Domain\Support\Rules; use Illuminate\Contracts\Validation\Rule; use Maggomann\FilamentTournamentLeagueAdministration\Models\GameDay; use Maggomann\FilamentTournamentLeagueAdministration\Models\GameSchedule; class EndedAtGameDayRule extends ValidationRu...
true
549fee2d0455a8eafcbfc4e75bc4b7c346648501
PHP
zhangqingxi/laravel-admin
/app/Models/Admin/AdminRole.php
UTF-8
4,404
2.5625
3
[]
no_license
<?php namespace App\Models\Admin; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class AdminRole * * @package App\Models\Admin * @author Qasim <15750783791@163.com> * @date 2019-05-18 * @property int $id * @property string $name 角色名称 * @property string $remark 角色备注 * @property int $status 角色状态 0禁用 1正常 ...
true
36122f49036846b1713e055cd09059d11cdd5ca8
PHP
davidoso/etl_catastro
/application/views/php/errores_automatic/giroscomerciales.php
UTF-8
2,015
2.890625
3
[]
no_license
<?php try { $serverName = "CHELSEA\SQLSERVER2016"; $database = "CATASTRO_DATA_SOURCE"; // Get UID and PWD from application-specific files $uid = "catastro"; $pwd = "catastro"; // Count number of tuples that will solve automatically in a view $conn = new PDO("sqlsrv:server=$se...
true
858ccb154bebceb765aaf20307e1694f24607994
PHP
juncode/school-complete
/vendor/v5-library/util/FrontCrypt.php
UTF-8
3,372
3.0625
3
[]
no_license
<?php /** * create by 2017-01-15 pm 14:48 * @author clevercloud@qq.com * 简单加解密 */ namespace V5\Library\Util; class FrontCrypt { /** * 秘钥 * @var {String} */ private $key; public function __construct($key) { $this -> key = base64_encode($key ? $key : ""); } /** * 加密 * @param {String} [$pData] 明文 ...
true
e7c3269b68ff57d4c065ddb2590cefcea4b335c8
PHP
KosingasBG/Citrus
/_main.php
UTF-8
1,015
2.65625
3
[]
no_license
<?php require_once("class.php"); require_once("functions.php"); $db=new Baza; $db->connect(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Citrus</title> <link href="https://fonts.googlea...
true
33afb3da8699821bb2a1fb4777500f834a75966d
PHP
born-kes/NowaStudnia
/fucktion.php/nowy_mur.php
WINDOWS-1250
622
2.5625
3
[]
no_license
<?php /* - Czy mur warto dodawa i Czy GET raport jest nowszy od tego z bazy * F: -> nic nie rb * T: Czy raport jest w bazie? * F: -> dodaj => zap_Nowy_wpis('mur' , $GET['mur'] ) * T: Czy raport jest inny * F: -> upDate('mur'); * T: -> Zapisz nowy raport => zap_Nowy_wpis('mur' , $GET['mur'], false ) */ ...
true
0aaaf2adeb0453f43715846caec82afb58b2d822
PHP
wenjy/test
/functions/array/array_walk_recursive.php
UTF-8
1,014
3.46875
3
[]
no_license
<?php /** bool array_walk_recursive ( array &input, callback funcname [, mixed userdata] ) 将用户自定义函数 funcname 应用到 array 数组中的每个单元。本函数会递归到更深层的数组中去。 典型情况下 funcname 接受两个参数。input 参数的值作为第一个,键名作为第二个。 如果提供了可选参数 userdata,将被作为第三个参数传递给 callback funcname。 如果成功则返回 TRUE,失败则返回 FALSE。 注意: 如果 funcname 需要直接作用于数组中的值,则给 funcname 的第一个参数指定...
true
a92ca42fc837b09d4df48230fc446482b95fd965
PHP
sostrenegrene/toolbox
/GrenesTools/system/includes/system/Modules.class.php
UTF-8
1,035
2.9375
3
[]
no_license
<?php class Modules { var $db; var $menu_id; var $modules; function __construct($db,$menu_id) { $this->db = $db; $this->menu_id = $menu_id; $this->fetch_Modules(); } private function fetch_Modules() { $query = "SELECT * FROM " . DB_SYS_MODULES . " WHERE menu_id = '".$this->...
true
98f1579a6d0a4e7bffd363565b2820cb1578fae9
PHP
microsoftgraph/msgraph-beta-sdk-php
/src/Generated/Models/AndroidWorkProfileCertificateProfileBase.php
UTF-8
10,754
2.5625
3
[ "MIT" ]
permissive
<?php namespace Microsoft\Graph\Beta\Generated\Models; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Microsoft\Kiota\Abstractions\Types\TypeUtils; /** * Android Work Profile c...
true
b2fb6b0c8879129765b77155a9f52f187e59006e
PHP
status90/rss
/mobile/newpost.php
UTF-8
743
2.609375
3
[]
no_license
<?php try { $connection = mysql_connect("mysql2.000webhost.com","a6422285_itbina","itbina123"); mysql_select_db("a6422285_itbina", $connection); // Note: You need to verify the data coming in isn't harmful, this SQL pretty much puts anything into the database so make sure to change this!...
true
9c65ea8f8d344ca27819e92e956ac19ee42fe9f1
PHP
alexvezz87/gestione_cv
/classi/model/class.CV.php
UTF-8
2,046
3.0625
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. */ /** * Description of class * * @author Alex */ class CV { private $dataInserimento; private $nome; private $co...
true
c6f76d428c4276c20c1406e563e73946a3fab1bf
PHP
correangel/FisioSport
/formularios/gestionarEntrenamientoEjercicios.php
UTF-8
2,250
2.546875
3
[]
no_license
<?php $campo1 = null; $todoOK = false; $IDEntrenamiento="";$IDActividadEspecifica=""; if(isset($_POST["IDENTRENAMIENTO"])){ if(isset($_POST["IDENTRENAMIENTO"])) $IDEntrenamiento = $_POST['IDENTRENAMIENTO']; if(isset($_POST["IDACTIVIDADESPECIFICA"])) $IDActividadEspecifica = $_POST['IDACTIVIDADESPECIFICA']; ...
true
cda7c0969e3c94287e160850cd5fc43b1871d0f6
PHP
LTSchmiddy/ltschmiddy.github.io
/ls_root.php
UTF-8
442
2.84375
3
[]
no_license
<?php $pathToRoot = "./"; $dirCont = scandir($pathToRoot); $retVal = [ "dirs" => [], "files" => [] ]; for ($i = 0; $i < count($dirCont); $i++) { if ($dirCont[$i] == ".") { continue; } if (is_dir($pathToRoot . $dirCont[$i]) || $dirCont[$i] == ".."){ array_push($retVal["dirs"], ...
true
b3f98cad934a529af982609293da8421730b0ea1
PHP
ATCARES/MeetingMinutes
/includes/ParserFunction.php
UTF-8
11,825
2.796875
3
[]
no_license
<?php /** * <INSERT DESCRIPTION>. * * Documentation: http://??? * Support: http://??? * Source code: http://??? * * @file MinutesParserFunctions.php * @addtogroup Extensions * @author James Montalvo * @copyright © 2014 by James Montalvo * @licence GNU GPL v3+ */ namespace MeetingMinutes; class Pa...
true
6876ceabc461d5034cd39c9942f2e3d2782bf3d4
PHP
minextu/et.tc
/src/EttcUi/AbstractView.php
UTF-8
1,169
2.890625
3
[]
no_license
<?php namespace Minextu\EttcUi; /** * A Class extending this will render the user interface */ abstract class AbstractView { /** * The external path to the folder containing the index.php * * @var string */ protected $path; /** * Template * * @var Template object *...
true
da4e7a2bd07303f1943c2d5a85a1bf6085371898
PHP
rainrun-beep/slaravel
/long/tcpServer.php
UTF-8
924
2.75
3
[]
no_license
<?php // swoole_get_local_ip(); 获取当前主机的ip数组参数 $server = new Swoole\Server('0.0.0.0', 9503); //心跳检测,每2s中去检测在3s内没有给我发送消息的连接 /** $server->set([ 'heartbeat_check_interval' => 2, //表示每2秒,遍历所有 'heartbeat_idle_time' => 3, // 如果3s内没有向服务器发送数据,强制关闭 ]); */ $server->on('connect', function($server, $fd){ e...
true
f769f6670c54f946922d9818a4cb168bf8f31c34
PHP
3773nortiz/seatplan-management-system
/fuel/app/classes/controller/teacher/studentclass.php
UTF-8
4,564
2.59375
3
[ "MIT" ]
permissive
<?php class Controller_Teacher_Studentclass extends Controller_Base { public function action_index() { $data['studentclasses'] = Model_Studentclass::find('all'); $this->template->title = "Studentclasses"; $this->template->content = View::forge(parent::get_prefix() . 'studentclass/index', $data); } public f...
true
836060baae810c5456b7e50bdcafeff788a8f44e
PHP
BrandonPorras/TIVY
/app/Http/Controllers/Auth/RegisterController.php
UTF-8
2,990
2.5625
3
[]
no_license
<?php namespace TIVY\Http\Controllers\Auth; use TIVY\User; use TIVY\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Support\Facades\Mail; class RegisterController extends Controller { /* ...
true
7448cf3f1e5b2bcacc1853cf6f578e97233a5b02
PHP
guitarman077/b2b
/3/Interface/IAuthor.php
UTF-8
415
3.109375
3
[]
no_license
<?php /** * Interface IAuthor */ interface IAuthor { /** * Создает статью * * @param array $params * @param string $class * @return IArticle */ public function createArticle(array $params, $class); /** * Получает все статьи текущего автора * * @return IArticl...
true
baba01b2b34eecbf5cbf9bc6779d786d011b131f
PHP
codename-hub/core-io
/backend/class/datasource/parquet.php
UTF-8
4,621
2.65625
3
[]
no_license
<?php namespace codename\core\io\datasource; use codename\core\exception; use codename\parquet\ParquetReader; class parquet extends \codename\core\io\datasource { /** * [protected description] * @var resource */ protected $handle; /** * [protected description] * @var ParquetReader */ prote...
true
c49e7440ffe3228d6ee44b761874a9247a9c69c5
PHP
solt9029/RenameAllOrderCsv
/renameAllOrderCsv.php
UTF-8
325
2.90625
3
[]
no_license
<?php $files = array(); foreach(glob('./*.csv') as $filename){ if (!is_file($filename)) { continue; } $files[] = $filename; } usort($files, function($a, $b) { return strlen($a) - strlen($b); }); for ($i = 0; $i < count($files); $i++) { rename($files[$i], './' . $i . '.csv'...
true
eb1e293f38470d5dba417d2c2c532db04ad85c76
PHP
moorscode/zinnbuzz
/sentence.php
UTF-8
156
3.0625
3
[]
no_license
<?php class Sentence { public $offset; public $text; function __construct( $text, $offset ) { $this->text = $text; $this->offset = $offset; } }
true
d072b4ecbd06d107d587e155491631d25eb07380
PHP
renowncoder/wp-cloud-deploy
/includes/core/class-wpcd-custom-fields.php
UTF-8
2,928
3.15625
3
[]
no_license
<?php /** * This class handles custom fields. * * @package wpcd */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Setup certain license functions * * @package wpcd * @version 1.0.0 / wpcd * @since 4.2.0 */ class WPCD_Custom_Fields { /** * The array of custom fields. * * @var array */ private $cus...
true
10f26baee88e3b43d8f4876c46d990650c698828
PHP
RyanConnell/recommend
/Tracker/Model/TV.php
UTF-8
8,160
2.640625
3
[]
no_license
<?php set_include_path("{$_SERVER['DOCUMENT_ROOT']}"); include_once('Model/Essentials.php'); class TV extends SQLite3{ public function searchShows($db,$type,$search){ $sql = "SELECT name,image,id,rating FROM `{$type}` WHERE name LIKE '%{$search}%' ORDER BY name DESC LIMIT 24"; $retval = $db->query($sql)...
true
ad6edfaa95179df14a58a8d72a007cefefe12342
PHP
puzatkin-ivan/ood
/lw2/src/observer/mock/ObserverMock.php
UTF-8
394
2.9375
3
[]
no_license
<?php class ObserverMock extends Entity implements ObserverInterface { /** @var string */ private $name; public function __construct(string $name) { $this->name = $name; parent::__construct(); } public function update(ObservableInterface $observable): void { echo $...
true
3927796de2d2413cce97107ef6402d65fb05acac
PHP
vallerion/crawler-app
/app/Input/ConsoleInput.php
UTF-8
749
3.046875
3
[]
no_license
<?php declare(strict_types = 1); namespace App\Input; use App\Helpers\Collection; /** * Class ConsoleInput * @package Thread */ class ConsoleInput implements ConsoleInputInterface { /** * @var Collection */ private $arguments; /** * ConsoleInput constructor. * @param array $argume...
true
2dda49f835fbf17b53dcbed8017e8fac260a26ed
PHP
lihq1403/gadget
/ComposerItemsStudy/pimple/1.x/demo5.php
UTF-8
320
2.546875
3
[]
no_license
<?php require __DIR__ . '/vendor/autoload.php'; $container = new Pimple(); $container['service'] = function () { return 'service'; }; $container['service'] = $container->extend('service', function ($service) { return $service . ' extend'; }); var_dump($container['service']); // string(14) "service1 extend"
true
4aabbb3add8ee25a7326bbe0e1a14de7e3dfbd72
PHP
wyzdong/design-pattens-for-php
/Iterator/ListIteratorImpl.php
UTF-8
1,087
3.109375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sundongdong * Date: 2018/1/3 * Time: 14:12 */ class ListIteratorImpl implements MyIterator { /** * @var SalaryManager */ private $aggregate = null; /** * @var int */ private $index = -1; public function __construct...
true
42909a5afb0a3c01ebc8de5e752e73cfdfe73641
PHP
igorveremsky/factory_oop
/CRobot.php
UTF-8
1,381
3.453125
3
[]
no_license
<?php /** * Interface IRobot * * Интерфейс роботов */ interface IRobot { function getPower(); function getOn(); function getType(); } /** * Class Robot * * Абстрактный класс для роботов */ class Robot implements IRobot{ protected $power = 0; protected $on = TRUE; protected $type; pu...
true
118ed21a695170f5a8b01b8a8512f84167f27b25
PHP
tcolas673/LoginandRegistration
/print.php
UTF-8
1,736
2.796875
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang ="en"> <head> <meta charset = "utf-8"> <title>City List</title> <link rel="stylesheet" href="style.css"> <script src="https://mbp.yimg.com/sy/os/yaft/yaft-0.3.10.min.js" defer></script> </head> <body onload="init();"> ...
true
fee34a25562420b48969f97d1b5f375747bf97ce
PHP
luxurno/boosttypers
/src/Bundle/DownloadBundle/Link/Strategy/DefaultLinkStrategy.php
UTF-8
2,054
2.78125
3
[]
no_license
<?php declare(strict_types = 1); namespace App\Bundle\DownloadBundle\Link\Strategy; use App\Bundle\DownloadBundle\Converter\DateConverter; use App\Bundle\DownloadBundle\Decoder\StringDecoder; use App\Bundle\DownloadBundle\Exception\DownloadElementException; use Exception; use PHPHtmlParser\Dom; use Throwa...
true