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
0c869c9bcfbecf5270e2def3c320f3ea2b885203
PHP
lirik0910/incomer
/app/Repositories/Section/SectionEloquent.php
UTF-8
1,187
3.015625
3
[]
no_license
<?php namespace App\Repositories\Section; use App\Model\Section; class SectionEloquent implements SectionRepository { private $model; public function __construct(Section $model) { $this->model = $model; } public function all(array $params) { $items = $this->model; r...
true
8783e2682c3cc4da9c4d81c3bf007265b8472e8a
PHP
shahzadafridi/geokurs-admin-panel-final
/application/helpers/util_helper.php
UTF-8
1,264
2.65625
3
[]
no_license
<?php if (!function_exists('dd')) { function dd($data) { echo '<pre>'; print_r($data); exit(); } } if (!function_exists('authCheck')) { function authCheck($user) { $ci =& get_instance(); if ($user == "admin") { return $ci->session->userdata("isAdminLoggedin"); ...
true
a87d243f34e183c98cde39aecba73aca77825222
PHP
leuchtdiode/zend3-ecommerce
/src/Customer/ModifyData.php
UTF-8
2,133
3.0625
3
[]
no_license
<?php namespace Ecommerce\Customer; class ModifyData { /** * @var string */ private $salutation; /** * @var string|null */ private $title; /** * @var string */ private $firstName; /** * @var string */ private $lastName; /** * @var string|null */ private $company; /** * @var string...
true
9ba59d9512fc104f936c893a95ff591497bcba14
PHP
NicoHay/myblogsymfony
/src/DataFixtures/AppFixtures.php
UTF-8
733
2.546875
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Post; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; use Faker\Factory; class AppFixtures extends Fixture { public function load(ObjectManager $manager) { $faker = Factory::create('fr_FR'); for ($i = 0 ; $i...
true
ee14b4940b7d169d65fe1c22fca3374a9d6d04d8
PHP
yaliya/framework
/src/Http/Response.php
UTF-8
2,207
2.734375
3
[]
no_license
<?php namespace Tau\Http; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\ResponseHeaderBag; use Symfony\Component\HttpFoundation\StreamedResponse; use Symfony\Component\HttpFoundation\BinaryFileResponse; c...
true
b37724cbba5a7e1c093433fb29c2181857ea5b96
PHP
kir4ik/tasks-php
/core/Router.php
UTF-8
3,022
3.03125
3
[]
no_license
<?php namespace core; class Router implements iRouter { const METHOD_GET = 'GET'; const METHOD_POST = 'POST'; const METHOD_ALL = 'ALL'; const DEFAULT_ROUTE = '/'; protected $request; protected $collection; protected $lastRoute; function __construct() { $this->colletion = []; ...
true
fe30416164ab7b317bee8481f91a8afb51a0ea9e
PHP
gabebw/tv-fankit
/admin/callbacks/cb_get_all_quotes.php
UTF-8
1,294
2.5625
3
[]
no_license
<?php header('Content-Type: application/json'); require(dirname(__FILE__) . '/../includes/admin-setup.php'); if( ! function_exists('json_encode') ){ require(ADMIN_INC_PATH . '/php-json/json.php'); $json = new Services_JSON(); function json_encode($obj){ return $json->encode($obj); } } $seas...
true
83159be14071ff1f006620a5ec15fa35a38c44a5
PHP
BichHoang/24hschool
/app/DAO/DaoStudent/StudyDocumentDao.php
UTF-8
2,225
2.609375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Nguyen Van Tin * Date: 7/20/2018 * Time: 4:31 PM */ namespace App\DAO\DaoStudent; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; class StudyDocumentDao { /** * get all study document for user * @return \Exception */ public...
true
917b10f1d0ca55e6e79ccf253d1cecdb57fe60bb
PHP
KielD-01/random-user-php-sdk
/example/index.php
UTF-8
354
2.625
3
[]
no_license
<?php use KielD01\RandomUser\RandomUser; require_once('../vendor/autoload.php'); try { $randomUser = new RandomUser('1.1'); $randomUser ->setNationalityOnly('us', true) ->setResultsCount(50) ->fetch() ->getResults(); dd($randomUser); } catch (Exception $e) { echo "<...
true
62cf7b78068859c6548f197607c4e6c6ad632f8d
PHP
webignition/html-document-type
/src/Parser/ParserInterface.php
UTF-8
551
2.96875
3
[ "MIT" ]
permissive
<?php namespace webignition\HtmlDocumentType\Parser; /** * Parse a well-formed HTML document type into its component parts (PUBLIC/SYSTEM keyword, fpi and uri) */ interface ParserInterface { const PART_PUBLIC_SYSTEM_KEYWORD = 'public-system'; const PART_FPI = 'fpi'; const PART_URI = 'uri'; /** ...
true
f18f8aa4a2b84568031170abd2c95ea599485154
PHP
andis716/php.basic-crud
/latihan9/functions.php
UTF-8
304
2.8125
3
[]
no_license
<?php //? Koneksi ke database $dbs = mysqli_connect("localhost", "root", "", "phpbasic"); function query($ambil) { global $dbs; $result = mysqli_query($dbs, $ambil); $rows = []; //? tempat kosong while ( $row = mysqli_fetch_assoc($result)) { $rows[] = $row; } return $rows; } ?>
true
56c3fbf40d13e9c49ba9263c2c5bc0d0c0b0e7fa
PHP
CoralieLarpenteur/le-Margouillat
/admin/product_list.php
UTF-8
3,039
2.6875
3
[]
no_license
<?php require_once '../tools/db.php'; if(!isset($_SESSION['is_admin']) OR $_SESSION['is_admin'] == 0){ header('location:../index.php'); exit; } //supprimer le produit if(isset($_GET['product_id']) && isset($_GET['action']) && $_GET['action'] == 'delete'){ $query = $db->prepare('DELETE FROM product WHERE id = ?'...
true
be7a9cb5b99f5a0262699a9b6ff805171887e66f
PHP
PaoloVitiello/Sestante
/frontend/old/sestante-home/inc/funzioni_touch.php
UTF-8
1,065
2.734375
3
[]
no_license
<?php function post($url, $data) { // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data), ), ); $context ...
true
74e085ead92fbdc0249526b34f137873efe1e698
PHP
huyfever/bit4454
/AfterLogin.php
UTF-8
1,496
2.734375
3
[ "MIT" ]
permissive
<?php $username = $_POST['Username']; $password = $_POST['Password']; echo 'Trying to log into... '; echo $username; echo ' with password '; echo $password; $error = false; $loginOK = false; if(empty($username) || empty($password)) { $error = true; } if (!$error) { $servername = "loca...
true
17a9334b65576c4419f216ae7c235e9a4a2f409f
PHP
MarcoAndres1/RepoRadioVaioVaio
/src/Modelo/Database.php
UTF-8
444
2.84375
3
[]
no_license
<?php namespace Modelo; class Database{ private $database; public function __construct($container) { $this->database = $container->database; } public function noticias(){ $arr = $this->database->select('noticia',['id', 'titulo', 'encabezado', 'cuerpo']); return $arr; } public function noticiaPorId($i...
true
7a1babb74c499133b48f429f8ef1432a7cd7716f
PHP
Wiatrogon/php-allegro-rest-api
/src/Resource.php
UTF-8
3,438
2.9375
3
[ "MIT" ]
permissive
<?php namespace Allegro\REST; class Resource { /** * Resource constructor. * @param string $id * @param Resource $parent */ public function __construct($id, Resource $parent) { $this->id = $id; $this->parent = $parent; } /** * @return mixed */ pub...
true
a75dffd1d5092da9d3c1c80ff19c20d4d472b886
PHP
jhosimarhb/Fundamentosphp
/Poo/codigo.php
UTF-8
331
2.90625
3
[]
no_license
<?php //codigo imperectivio o espageti $automovil = (object)["marca"=>"toyota", "modelo" =>"corolla"]; $automovil2 =(object)["marca"=>"hyundia", "modelo" =>"vision"]; function mostrar($automovil){ echo "<p>hola soy un automovil $automovil->marca, modelo $automovil->modelo </p>"; } mostrar($automovil); mostrar($autom...
true
37e95767ea45d37d48ad236c85b3f79b5947e99c
PHP
theboynamedsu/abstractory-form
/Abstractory/Forms/Components/ContentBlock.php
UTF-8
387
2.8125
3
[ "Unlicense" ]
permissive
<?php namespace Abstractory\Forms\Components; /** * ContentBlock * * @author Suhmayah Banda <su@aboynamedsu.net> */ class ContentBlock extends Component { protected $html; public function __construct($html = null) { if (!is_null($html)) { $this->html = $html; } } public function setContent($html) { ...
true
bf0bb08497ed6d8bb21022aae1659754f41567a5
PHP
michulob/Michutter_v1
/mailBox.php
UTF-8
1,518
2.859375
3
[]
no_license
<?php require 'src/User.php'; require 'src/Validate.php'; require 'src/Message.php'; session_start(); if(!isset($_SESSION['logged'])){ header ('Location: index.php'); }else{ $conn = Validate::databaseConn(); $loggedUser = User::loadUserById($conn, $_SESSION['id']); $allUserMessages = Message::loadAllMessagesBy...
true
3e886bbf78bb614ead3e07e18a2b7f62b6c9c8d1
PHP
BiancaBM/medicalApp-PHP
/app/controllers/InterventionController.php
UTF-8
1,149
2.71875
3
[]
no_license
<?php namespace App\controllers; use Framework\Controller; use App\Services\InterventionService; class InterventionController extends Controller { private $interventionInstance; function __construct() { parent::__construct(); if(!isset($_SESSION["username"])) header("Location: /"); ...
true
f618aeafa65e3a8957f86e595cb4157d95505644
PHP
ckressibucher/php-validata
/src/Err/IndexLoc.php
UTF-8
625
2.921875
3
[]
no_license
<?php namespace Ckr\Validata\Err; class IndexLoc implements LocationInterface { use LocationTrait; const TYPE = 'index'; protected $index; /** * @param int $index */ public function __construct($index) { $this->index = $index; } /** * @return string */ ...
true
3e886300940c27b9c6faa7d19a61e98c0043a08e
PHP
dy05/chat
/app/Models/Message.php
UTF-8
642
2.515625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Message extends Model { use HasFactory; protected $fillable = [ 'message', 'from_id', 'to_type', 'to_id', 'readers', 'views', 'read_at', ]; ...
true
4d8ce6967abb1d18210d9bf34708eb0ea4e47606
PHP
JhonatanGarcia92/php-7-youtube-tutorials
/07 Floating Points.php
UTF-8
429
3.828125
4
[]
no_license
<?php //$a = 1.234; //$b = 1.2e3; //$c = 7E-10; $a = 1.0000000000001; $b = 0.0000000000001; $c = 0.00000000000006; echo "<div>A: " . $a . "</div>"; echo "<div>A + B: " . ($a + $b) . "</div>"; echo "<div>A + C: " . ($a + $c) . "</div>"; $x = 8 - 6.4; // 1.6 $y = 1.6; if ($x == $y) echo "Yup"; e...
true
b95f7e11ae1c9d5eb956eb3549a01fc97c915d61
PHP
bjauy/kb
/app/lib/KB/View.php
UTF-8
571
2.609375
3
[]
no_license
<?php class KB_View { public static function template($name, $vars = array()) { $filename = KBAPP. DS. 'views'. DS. str_replace('/', DS, $name). '_'. (KB_Config::get('theme', 'default')). '.php'; if (!file_exists($filename)) { $filename = KBAPP. DS. 'views'. DS. str_replace('/', DS, $name). '.php'; } i...
true
c141d041e86a3ce5243676335d7d01dc2831d354
PHP
openbizx/openbizx
/src/Easy/Element/InputDate.php
UTF-8
1,785
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?PHP /** * Openbizx Framework * * LICENSE * * This source file is subject to the BSD license that is bundled * with this package in the file LICENSE.txt. * * @package openbiz.bin.easy.element * @copyright Copyright (c) 2005-2011, Rocky Swen * @license http://www.opensource.org/licenses/bsd-license.php *...
true
13e352e897ba856f04ac69da9142d94b819ce6e7
PHP
phamduybk/lockex1987.github.io
/posts/web - single sign-on/ConsumerLoginController.php
UTF-8
1,698
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\User; use App\Helpers\Sso; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Illuminate\Http\Request; use GuzzleHttp\Client; use Log; use Auth; class ConsumerLoginController extends Controller { public function __construct(...
true
ba0f86a7f298268566dd04bfd98e169e3f3dd677
PHP
akgvn/PrepMaster
/src/PHP Backend/answered.php
UTF-8
2,869
2.953125
3
[]
no_license
<?php require_once "connect.php"; require_once "supermemo.php"; // POST request will come // User answered a question on the app. if (isset($_POST["user_nick_name"]) && isset($_POST["word_id"]) && isset($_POST["grade"])) { $user_nick_name = $_POST["user_nick_name"]; // the user logged in right now $word_id =...
true
48bdda891952de48411fa45e8e84a349960b711c
PHP
lukaswhite/static-maps
/tests/MarkerPrototypeTest.php
UTF-8
2,620
2.65625
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; class MarkerPrototypeTest extends TestCase { public function testFilepath( ) { $prototype = new \Lukaswhite\StaticMaps\MarkerPrototype( ); $prototype->filepath( __DIR__ . '/../resources/images/markers/google_md.png' ); $this->assertEquals( ...
true
a45deea2096da5cd103d7609b900c55c4769c8c6
PHP
roopav1304/dbms
/project/app/api/User/faculty_print.php
UTF-8
1,312
2.578125
3
[]
no_license
<?php session_start(); include_once('fpdf/fpdf.php'); class PDF extends FPDF { // Page header function Header() { $this->SetFont('Arial','B',13); // Move to the right $this->Cell(60); // Title $this->Cell(60,15,'FACULTY',1,0,'C'); // Line break $this->Ln(40); } // Page footer function Foo...
true
c54390c3866237dcf5454f3c1957b9ce61e9ee0e
PHP
slickframework/orm
/src/Repository/AbstractRepository.php
UTF-8
3,496
2.765625
3
[ "MIT" ]
permissive
<?php /** * This file is part of slick/orm package * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Slick\Orm\Repository; use Slick\Database\Adapter\AdapterInterface; use Slick\Orm\Descriptor\EntityDescriptorInterface; us...
true
0c267b2422e507a7e9c1d1f9a10345504a1caa49
PHP
DivinElegy/rock.divinelegy
/Services/CacheUpdater.php
UTF-8
1,208
2.78125
3
[]
no_license
<?php namespace Services; use Services\ICacheUpdater; use Domain\Entities\StepMania\IPack; use DataAccess\StepMania\IPackRepository; use Domain\Util; class CacheUpdater implements ICacheUpdater { private $_json; private $_packRepository; public function __construct(IPackRepository $pac...
true
1f1c252cd61d78160d59f5739840a2b1b11f44e8
PHP
TorbenKoehn/framework
/packages/functional/src/Functional/CurriedFunction.php
UTF-8
1,481
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Tale\Functional; use Closure; use SplObjectStorage; final class CurriedFunction { private Closure $fn; public function __construct(int $length, callable $fn) { $this->fn = Closure::fromCallable(arity($length, $this->curryN($length, [], $fn))); } ...
true
2fdaa270d3f8f2a304738b4c3616337faebf23cd
PHP
mnapoli/FrontYAML
/tests/FunctionalTest.php
UTF-8
2,686
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Mni\FrontYAML\Test; use Mni\FrontYAML\Parser; use PHPUnit\Framework\TestCase; class FunctionalTest extends TestCase { public function testSimpleDocument() { $parser = new Parser; $str = <<<EOF --- foo: bar --- This **strong** EOF; $document = ...
true
388176d3c688d62482e088a1fe94234f9c0d981a
PHP
sush33king/HRMS
/SampleCode/php7fromscratch-code/chapter-12/variable_arguments_2.php
UTF-8
213
3.640625
4
[]
no_license
<?php // Sum up an unlimited amount of numbers and has a configurable baseline function addition($sum = 0, float ...$numbers) :float { foreach ($numbers as $n) { $sum += $n; } return $sum; }
true
07bebc26bbe604d4ae3e605007d61e9a30cbd19c
PHP
phplesson/phpacademy
/14Lesson/game/classes/Simple.php
UTF-8
3,852
3.046875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: alex * Date: 02.06.18 * Time: 8:19 */ namespace Game; use Game\Algorithm\IAlgorithm; class Simple { const WHIST = 1; const PASS = 0; /** * @var IAlgorithm[] */ protected $players = []; protected $playersRates = []; protected $defau...
true
b2b4821b2efaf99e495d59e0b2ab39bb10dbe17d
PHP
videouri/videouri
/app/Console/Commands/Dmca.php
UTF-8
1,345
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Entities\Video; /** * Class Dmca * @package App\Console\Commands */ class Dmca extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'videouri:dmca ...
true
a33ecfefdf63a6fe714df228639c867103adf6b8
PHP
canofnoodles/CMPT221-Labs
/eds-www/limbo_login.php
UTF-8
1,190
2.53125
3
[]
no_license
<!DOCTYPE html> <html> <?php session_start(); # Author: Jonathan Smith, Paul Ippolito, David Cyganowski # Connect to MySQL server and the database require( 'includes/connect_db.php' ) ; # Connect to MySQL server and the database require( 'includes/helpers.php' ) ; if(empty($_SESSION['user'])) { if (...
true
a8bbcb285637194bd8ed51c9332da80debca84b1
PHP
comanandrei1993/emag-hero
/index.php
UTF-8
1,177
2.625
3
[]
no_license
<?php require 'vendor/autoload.php'; require 'processes/battle.php'; use App\Entity\Battle; use \App\Entity\BattleLog; use App\Entity\Creatures\Player; use App\Entity\Creatures\WildBeast; /** @var Player $orderus */ /** @var WildBeast $wildBeast */ ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8...
true
24a83c0024cdf418e5c069699f27bb237c24c285
PHP
KarinMA/brf1
/application/Domain/DomainObject.php
UTF-8
2,947
3.375
3
[]
no_license
<?php /** * Base class for domain objects. * * Contains constructor and magic helper methods, * aswell as a setter and getter for the id attribute * which is common to all domain objects. * * @author John * */ abstract class DomainObject { /** * The object's database id. * * @var int ...
true
2e9b836a4bf24a7f33bd1b9ee5848bf273f5b0dc
PHP
php-mq/benchmarks
/src/Env.php
UTF-8
953
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * @author hollodotme */ namespace PHPMQ\Benchmarks; use PHPMQ\Benchmarks\Infrastructure\Configs\PHPMQClientConfig; use PHPMQ\Client\Client; use PHPMQ\Client\Sockets\ClientSocket; use PHPMQ\Client\Sockets\Types\NetworkSocket; /** * Class Env * @package PHPMQ\Benchmarks */ final...
true
eb134fcf550af94425ba6838e84225a9c40c907b
PHP
Shamran-Gouse/Zeus
/index.php
UTF-8
14,471
2.65625
3
[]
no_license
<?php session_start(); error_reporting(E_ALL); ini_set('display_errors', '1'); ?> <?php $account =''; $signinbtn =''; if (isset($_SESSION["clientemail"])) { // Be sure to check that this User SESSION value is in fact in the database $id = preg_replace('#[^0-9]#i', '', $_SESSION['clientid']); // filter ever...
true
0d52454602b9e5da2634c1331da5cde08e96735d
PHP
Ilya-M77/task_16.8
/task6.php
UTF-8
99
2.875
3
[]
no_license
<?php $n = readline(); $rez = 0; for ($i = 1; $i <= $n; $i++) { $rez += $i; } echo $rez; ?>
true
c9d17f881ace7abe310d5611da8a9cb9bab34e4d
PHP
Fiyery/FirePHP
/src/util/PersoController.class.php
UTF-8
1,582
2.546875
3
[]
no_license
<?php use FirePHP\Controller\FrontController; /** * PersoController est la spécialisation générale au site de FrontController. * @author Yoann Chaumin <yoann.chaumin@gmail.com> * @uses FrontController */ class PersoController extends FrontController { /** * Traitement particulier à faire avant l'exécution ...
true
fc9c978e357adbeede9347a8d837e4b13ab36685
PHP
joseleandro78/clase02pp2
/app/ConversionTemperatura.php
UTF-8
873
3.671875
4
[]
no_license
<?php function de_Celsius_a_Fahrenheit($tempCelsius) { $tempFahrenheit = ($tempCelsius * 1.8) + 32; return $tempFahrenheit; } function de_Fahrenheit_a_Celsius($tempFahrenheit) { $tempCelsius = ($tempFahrenheit - 32) / 1.8; return $tempCelsius; } function mostrarTemperatura($temperatura) { if ($temperatura ==...
true
8b20884c768fb7db24ca8b57ffbf0364f12d38cf
PHP
RajeshRaj96/loginApp
/profile.php
UTF-8
1,956
2.5625
3
[]
no_license
<?php $userId = $_COOKIE['current']; if(!$userId) { header("Location: index.php"); die(); } $servername = "localhost"; $username = "root"; $password = ""; $dbname = "loginapp"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) {...
true
c6b28253ad105738ce81070ad95a0a8b2ba0da76
PHP
sumangagayashan5121/service_center_1h
/application/models/ModelModel.php
UTF-8
726
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class ModelModel extends CI_Model { public function get_model_list(){ $sql = "SELECT * FROM model"; $return =$this->db->query($sql)->result_array(); return $return; } public function save_model($model){ $this->db->insert('model',$model); } public function get_model_by_id($id){ $sql = "SELECT *...
true
20f30fc80ab952c0f00a2da651735dbc5c0ede21
PHP
kononencheg/Photo-Cake-API
/application/Api/Methods/Social/Ok/UploadImage.php
UTF-8
2,342
2.53125
3
[]
no_license
<?php namespace Api\Methods\Social\Ok; use PhotoCake\Api\Arguments\Filter; use PhotoCake\App\Config; class UploadImage extends \PhotoCake\Api\Method\Method { /** * @var array */ protected $arguments = array( 'image' => array( Filter::BASE64, array( null => 'Ошибка данных изображения' ) ), ...
true
e0e18fce6fd9bdf32ff27172ed54a78169f1e8d7
PHP
shaangola/php-github
/lib/Bitbucket/API/Authentication/AuthenticationInterface.php
UTF-8
351
2.59375
3
[]
no_license
<?php namespace Bitbucket\API\Authentication; use Buzz\Message\RequestInterface; interface AuthenticationInterface { /** * Apply basic HTTP headers to request object * * @access public * @param RequestInterface $request * @return RequestInterface */ public function authenticate...
true
fe27087febf0e5185f33e6ee283157b075590a31
PHP
salmayno/php-flasher
/src/Noty/Prime/NotyBuilder.php
UTF-8
2,980
2.546875
3
[ "MIT" ]
permissive
<?php namespace Flasher\Noty\Prime; use Flasher\Prime\Notification\NotificationBuilder; final class NotyBuilder extends NotificationBuilder { /** * @param string $text * * @return NotyBuilder */ public function text($text) { return $this->message($text); } /** * ...
true
ed72720440ad22c703b05fc51a9a781d4adc6d77
PHP
ShrwdFlrst/exercise
/php/src/Request.php
UTF-8
1,433
3.203125
3
[]
no_license
<?php namespace ShrwdFlrst; /** * Class Request * @package ShrwdFlrst */ class Request { /** * @var array */ private $headers; /** * @var string */ private $agent = 'Simple Request App'; /** * @return array */ public function getHeaders() { return...
true
0b3d2cab1cdb454a2c8f6b494ed89d812b70e3cd
PHP
downshiftorg/turbo-support
/templates/blurb.php
UTF-8
1,050
2.609375
3
[]
no_license
<?php /** * Template Name: Blurb * The template for displaying custom post type 'blurb' * * @package WordPress * @subpackage Twenty_Fifteen * @since Twenty Fifteen 1.0 */ if (! defined('ABSPATH')) { exit; } // Start a new loop while ( have_posts() ) : the_post(); $key = "blurb_type"; $type = get_post_me...
true
cb43cbe52032fcf8d9401bc1a4b5270d3e51168f
PHP
philyuska/e2
/practice/p4/cpeg/app/CpegObjects/BlackJackDealer.php
UTF-8
2,757
2.953125
3
[]
no_license
<?php namespace App\CpegObjects; class BlackJackDealer extends BlackJackPlayer { public $name; public $hole; public function __construct(array $playerProps=null, string $name="Dealer") { if ($playerProps) { $this->seat = $playerProps['seat']; $this->button = $playerProp...
true
bbff6244039397dfb341f4e524772368b6dcb096
PHP
Proyecto-ADSI/API_Proyecto
/src/Infrastructure/Persistence/Opciones_Predefinidas/Opciones_PredefinidasPersistence.php
UTF-8
3,607
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Infrastructure\Persistence\Opciones_Predefinidas; use App\Domain\Opciones_Predefinidas\Opciones_Predefinidas; use App\Domain\Opciones_Predefinidas\Opciones_PredefinidasRepository; use App\Infrastructure\DataBase; use Exception; use PDO; class Opciones_PredefinidasPersist...
true
e5faa7426250072ac208e36af8866b8d6a36615e
PHP
ArchTaqi/symfony-design-patterns
/src/FactoryMethod/Command/FactoryMethodCommand.php
UTF-8
994
2.640625
3
[]
no_license
<?php namespace App\SimpleFactory\Command; use App\FactoryMethod\Factory\NYPizzaStore; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\DependencyInjection\ContainerAwareTrait; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputInterfa...
true
180c4ba003759f794a044a19b35b26ccb20c7058
PHP
inkysplat/promotional-shopper
/src/PromotionalShopper/Models/Order.php
UTF-8
2,245
3.28125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: adam * Date: 15/04/15 * Time: 22:55 */ namespace src\PromotionalShopper\Models; use src\PromotionalShopper\Interfaces\PromotionInterface; /** * Class Order * @package src\PromotionalShopper\Models */ class Order { /** * List of Products * @var array ...
true
1e8e0d069dba47d15ac770f1494953ccb5d10cbf
PHP
Task0/ssssd
/api/app/db/UserDao.php
UTF-8
5,707
2.8125
3
[]
no_license
<?php class UserDao extends BaseDao { public function get_user_by_credentials($credentials) { /* Check whether a username or an email was provided. */ $stmt = $this->pdo->prepare('SELECT id, user_name, email_address, password, remember_me_until ...
true
ff3343ef5310a6c1c105b83b01554fd63733880f
PHP
codeaid-dev/PHP_OREILLY
/Chap09/Ex9-11.php
UTF-8
277
3.140625
3
[]
no_license
<?php $fh = fopen('output.csv','wb'); $fd = fopen('dishes.csv','rb'); while((!feof($fd)) && ($info = fgetcsv($fd))) { print '<li>Cocking name: ' . $info[0] . ' Price: ' . $info[1] . ' Spicy level: ' . $info[2] . "</li>\n"; fputcsv($fh, $info); } fclose($fh); fclose($fd);
true
f21ec61f7f44ffd28b90413569bc5a2629356dea
PHP
EZWebvietnam/nhathuoc
/application/modules/home/models/cartmodel.php
UTF-8
2,304
2.515625
3
[]
no_license
<?php class Cartmodel extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function add_to_cart(array $data) { $this->db->insert('cart',$data); return $this->db->insert_id(); } public function check_cart($ip,$...
true
71f75e9519654fd24e32bb9ca357d9c30ca100ca
PHP
francoiscop/francois-website
/database/_migrations_E20/2018_07_27_114759_create_tag_products_table.php
UTF-8
1,068
2.578125
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTagProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tag_product...
true
442f8076a03814c5ecc60dee8abf6d3142d08998
PHP
Octobersa/da-test-webapp
/app/Http/Requests/UpdateFlagRequest.php
UTF-8
642
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CzechitasApp\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UpdateFlagRequest extends FormRequest { /** * Get the validation rules that apply to the request. * * @return array<string, mixed> */ public function rules(): array ...
true
6a57b251f42f91d1441ef4a5aed7b1d8d39e25ec
PHP
HSHL/Thesis
/model/UserRepository.php
UTF-8
2,038
2.96875
3
[ "MIT" ]
permissive
<?php class UserRepository { public static function save($user) { global $db; $stmt = $db->prepare("insert into users (firstname, lastname, email, password_hash, is_advisor) values (" . ":firstname,:lastname,:email,:password_hash,:is_advisor)"); $stmt->bindValue(':firstname'...
true
ccff330f61f139f5ed79ddf30997fc548b1cf37b
PHP
Ovilia/OTL_SNS
/protected/models/RegisterForm.php
UTF-8
610
2.90625
3
[]
no_license
<?php class RegisterForm extends CFormModel { public $username; public $email; /** * Declares the validation rules. * The rules state that username and password are required, * and password needs to be authenticated. */ public function rules() { return array( // username and password are required ...
true
6c04663922bdf0cfb2f27266b1de0a12c824586b
PHP
Bornegrim/Project
/booking-process.php
UTF-8
1,090
2.671875
3
[]
no_license
<?php require 'include/bootstrap.php'; $booking = new Booking(); $timeBlock1 = 1; $timeBlock2 = 2; $timeBlock3 = 3; $timeBlock4 = 4; $timeBlock5 = 5; if (isset($_POST['machine'])) { $machine = $_POST['machine']; } if (isset($_POST['date'])) { $date = $_POST['date']; } if (isset($_SESSION['User'])) { $UserID ...
true
67a81c327d4f56d1f9f97cb1a55d02751182fd79
PHP
ShiSiLang/PHP-
/03/2/index.php
UTF-8
704
2.78125
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>字符串类型</title> <style type="text/css"> <!-- body,td,th { font...
true
de88218e2d016760a8fb37669a600294fa7ab494
PHP
nsama86/IT_355_Stuff
/PDO Assignment/animals.php
UTF-8
1,697
3.625
4
[]
no_license
<?php try { $dbh = new PDO('mysql:host=localhost; dbname=jhawks_animals', 'jhawks_user', 'katana'); } catch (Exception $e) { echo $e->getMessage(); die(); } //Checks to see if both name and type have been filled if(empty($_POST['name'])) { echo "Please make sure you have put in a name and type before submitt...
true
13a8008cad1736e87b91230a91b43e598c75a2ff
PHP
LochanaRathnayake/Online-Quiz
/index.php
UTF-8
2,070
2.6875
3
[]
no_license
<?php session_start(); ?> <?php require_once('inc/connection.php'); ?> <?php require_once('inc/functions.php'); ?> <?php $message = array(); $result = false; if(isset($_POST['submit'])) { if (!isset($_POST['Email']) || strlen(trim($_POST['Email'])) < 1) { $message[] = "UserName is Missing / Invalid ...
true
2826905cd42d672873dcb7989e3b3d8391d7bf9d
PHP
abuenosvinos/vending-machine
/src/Application/GetProduct/GetProductCommandHandler.php
UTF-8
466
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace App\Application\GetProduct; use App\Shared\Domain\Bus\Command\CommandHandler; final class GetProductCommandHandler implements CommandHandler { private GetProduct $getProduct; public function __construct(GetProduct $getProduct) { $this->getProduct = $ge...
true
5ac37e7a83841ad771025828812f7c4f73c90855
PHP
nadeeravista/stripe_app
/tests/Feature/ProductServiceTest.php
UTF-8
2,262
2.5625
3
[]
no_license
<?php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Foundation\Testing\RefreshDatabase; use App\Services\ProductService; use Illuminate\Support\Facades\Artisan; class ProductServiceTest extends TestCase { /** * Inserting data for test */ public function setUp() { parent::s...
true
1e40499a43b0f1335c9f022c9ebb7d133b9ac6ce
PHP
bullb/parallel-process
/src/Display/TinyProgressBar.php
UTF-8
5,631
3.140625
3
[ "MIT" ]
permissive
<?php /** * This file is part of graze/parallel-process. * * Copyright © 2018 Nature Delivered Ltd. <https://www.graze.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license https://github.com/graze/parallel-process/blob/m...
true
63a5c0086a0279ebd787d94c613804e6c4721bef
PHP
darshanpatil94/Bus_Management_System
/Website/register.php
UTF-8
2,057
2.625
3
[]
no_license
<?php session_start(); if(isset($_SESSION['user'])!="") { header("Location: /public_html/bb/index.php"); } include_once 'dbconnect.php'; if(isset($_POST['btn-signup'])) { $uname = mysql_real_escape_string($_POST['uname']); $email = mysql_real_escape_string($_POST['email']); $upass = md5(mysql_real_escape_string($_...
true
79f13c392af4c0dcf90ed3b0102a572b23e664d8
PHP
sumitnarang84/user_management
/src/Controller/Api/BaseController.php
UTF-8
1,382
2.6875
3
[]
no_license
<?php namespace App\Controller\Api; use FOS\RestBundle\Controller\FOSRestController; use Defuse\Crypto\Crypto; use App\Entity\User; class BaseController extends FOSRestController { /** * To save the entity in DB via entity Manager * @param Entity $entity * @return null */ public function saveEntity($entity) {...
true
34c05e66043a87b693d89d3688d30c1dade1b18a
PHP
YoanEnchev/PHP-Basics
/09_OOP-advanced/Interfaces/06_BirthdayCelebrations/interfaces/IBirthday.php
UTF-8
65
2.71875
3
[]
no_license
<?php interface IBirthday { public function getBirthday(); }
true
8b9655f74d1081c4dbf5e2ffa58c6bb92e77e545
PHP
irnnr/ds-php
/BinarySearchTree/Node.php
UTF-8
749
3.46875
3
[]
no_license
<?php namespace Irnnr\BinarySearchTree; /** * A binary search tree node for integers * * @package Irnnr\BinarySearchTree */ class Node { public $value; /** * @var Node */ public $left = null; /** * @var Node */ public $right = null; /** * @param integer $value An integer value * @param \Irn...
true
f4ac5676669a3f13082d23246dc40dab24651133
PHP
unes0111/databaseProject
/serviceLayer/LegalPersonService.php
UTF-8
337
2.78125
3
[]
no_license
<?php require_once($_SERVER ['DOCUMENT_ROOT'] . '/dataLayer/DbContext.php'); class LegalPersonService { public static function getPerson(string $nationalId) { $db = new DbContext(); $list = $db->select(LegalPerson::class, 'NationalId = ' . $nationalId); return DbContext::firstOrDefaul...
true
492b8ed0636ed90749faa09a428a86ea8776c9bc
PHP
marscore/hhvm
/hphp/test/zend/good/ext/standard/tests/image/getimagesize_xbm.php
UTF-8
398
3.078125
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php /* Prototype : proto array getimagesize(string imagefile [, array info]) * Description: Get the size of an image as 4-element array * Source code: ext/standard/image.c * Alias to functions: */ <<__EntryPoint>> function main() { echo "*** Testing getimagesize() : xbm format ***\n"; var_dump(getimagesize(dirna...
true
4813ebbe6af87fc9d24d187d6b369dbf758b3b5f
PHP
cadoyi/wecando
/modules/customer/frontend/models/SendCodeForm.php
UTF-8
2,200
2.953125
3
[]
no_license
<?php namespace customer\frontend\models; use Yii; use customer\models\sms\MobileCode; use customer\models\sms\EmailCode; /** * 发送验证码的吧表单 * * @author zhangyang <zhangyang@cadoyi.com> */ class SendCodeForm extends CaptchaForm { /** * @inheritDoc */ public function rules() { return...
true
ba2a97fdb31014c05f55a54fbb3b982ad01af82a
PHP
sreejithcj/plain-api
/src/model/ItemsListModel.php
UTF-8
1,151
3.046875
3
[]
no_license
<?php namespace Src\model; /* Model class to process the database queries. I have used plain SQL queries for this demo. In real projects, we use ORMs like Eloquent. */ class ItemsListModel extends ModelBase { public function __construct() { parent::__construct(); }...
true
9c8c33ef433f2852e05c936acaa940e010fb9c91
PHP
JCarlosR/teresa
/app/PaymentScheduleDetail.php
UTF-8
1,376
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class PaymentScheduleDetail extends Model { protected $fillable = ['payment_schedule_id', 'emission_date', 'total', 'net']; protected $dates = ['emission_date', 'payment_date']; public function getDaysDifferenceAttribute() ...
true
d5b5f7f43e268672b30bb3c879896acd616efb5e
PHP
f-plus/millennium-php
/src/Model/EftBilling.php
UTF-8
1,800
2.875
3
[ "MIT" ]
permissive
<?php namespace FPlus\Millennium\Model; class EftBilling extends BaseDTO { /** * @var float */ protected $Amount; /** * @var \DateTime */ protected $HitDate; /** * @var int */ protected $Id; /** * @var BillingStatus */ protected $Status; ...
true
16be81eebe778bdb6d6882d0ebaec5c75f941b0f
PHP
nomadevs/Kiss-HMVC
/system/core/Functions.php
UTF-8
6,358
2.671875
3
[ "MIT" ]
permissive
<?php /** * Functions * * Helper functions with global scope used by core files * * @package Kiss-HMVC * @subpackage Core * @category Global Functions * @author nomadevs * @link https://mywebfolio.me/ * @copyright Copyright (c) 2020, nomadevs, https://mywebfolio.me/Kiss-HMVC/ * @cop...
true
d30aba009c91adaff4d225aa335bf10e725eb95e
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/framework/Config/Composer/Package.php
UTF-8
2,448
3
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "AFL-2.1", "AFL-3.0", "OSL-3.0" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Config\Composer; /** * A model that represents composer package * @api * @since 100.0.2 */ class Package { /** * Contents of composer.json * * @var \StdClass ...
true
b5e4f7511e3ad0e5556cbcea3dfba525917ce666
PHP
MatthiasRousseauAdFab/guzzle-atlassian-connect-middleware
/src/Middleware/ConnectMiddleware.php
UTF-8
2,367
2.796875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the adlogix/guzzle-atlassian-connect-middleware package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Adlogix\GuzzleAtlassianConnect\Middleware; use Adlogix\GuzzleAtlassianConnect\Secur...
true
65dbf1c77b1e2b2881995d7bfa2b76a4a38df40a
PHP
victorsteven/Interactive-Chatting-System-with-Laravel-and-VueJS
/app/User.php
UTF-8
2,489
2.734375
3
[]
no_license
<?php namespace App; use App\Reply; use App\Thread; use App\Activity; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ ...
true
472a71d255833264279eb3d329170c6a7e22d86d
PHP
rodrigoprimo/estudiolivre
/src/lib/search/ObjectSearch.php
UTF-8
1,894
2.9375
3
[]
no_license
<?php // TODO: "$filters" is not working yet ... class ObjectSearch { function findObjects($words, $filters=array(), $offset=0, $maxRecords=-1) { $aWords = preg_split("/[\s,.]+/", $words); $conditions = $this->_prepareQueryConditions($aWords, $filters); $query = "select idObj, type from _searchindex " . $condit...
true
ff7f5ee631f374c451e337ff6d55101491a68a84
PHP
zamlahani/wp-basic-spa
/modules/material/helpers/class-material.php
UTF-8
4,123
2.921875
3
[]
no_license
<?php /** * Material helper * * @since 1.0.0 * * @package Asvz */ namespace Asvz\Material\Helpers; /** * Material helper class * * @since 1.0.0 * @package Asvz */ class Material extends Base { /** * Item's id * * @var int */ protected $id = -1; /** * Item's container * * @...
true
552545b9675f04ed5749852174916bf0c57f2ad6
PHP
saschawildgrube/aficato
/www/_source/wdk/quality/tests/wdk-datacontainer/test_securedatacontainer.php
UTF-8
1,036
2.578125
3
[]
no_license
<?php require_once(GetWDKDir()."wdk_securedatacontainer.inc"); class CTest extends CUnitTest { function __construct() { parent::__construct("WDK CSecureDataContainer"); } function OnInit() { if (!IsMcryptSupported()) { $this->SetActive(false); } return parent::OnInit(); } fu...
true
9ef34489194517cac470cac3f1d80821d4ee769c
PHP
atsmacode/poker-game
/tests/Feature/Controllers/PlayerActionController/Showdown/PlayerActionControllerTest.php
UTF-8
14,875
2.59375
3
[]
no_license
<?php namespace Atsmacode\PokerGame\Tests\Feature\Controllers\PlayerActionController\Showdown; use Atsmacode\CardGames\Constants\Card; use Atsmacode\PokerGame\Constants\HandType; use Atsmacode\PokerGame\HandStep\Start; use Atsmacode\PokerGame\Models\HandStreetCard; use Atsmacode\PokerGame\Tests\BaseTest; use Atsmacod...
true
09918c4587853d01e012518649a7672dc2b09064
PHP
jahdakine/Portfolio
/application/libraries/html.php
UTF-8
925
2.90625
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php class HTML extends Laravel\HTML { /** * Dynamically handle calls to custom macros. * Modified to look inside macros folder inside app for lazy loading macros * * @param string $method * @param array $parameters * @return mixed */ public static function __callS...
true
8c1418c99722c9b267dbe23eeba08ec13e6248c9
PHP
PochoLabs/WordPress-PochoMaps
/pochomaps.php
UTF-8
9,636
2.5625
3
[ "MIT" ]
permissive
<?php /** * Plugin Name: PochoMaps * Plugin URI: http://pocholabs.github.io * Description: A lightweight customizable map plugin with CSS animations. Choose your own image as a map and create custom map pointers which fully customizable text. Mobile Responsive. * Version: 0.8.8 * Author: Celso Mireles * Author URI: htt...
true
b152d3e5e079df1af7aac4bd12f6028df5900ec7
PHP
dms-org/core
/src/Model/Subset/IdentifiableObjectSetSubset.php
UTF-8
3,467
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Dms\Core\Model\Subset; use Dms\Core\Exception; use Dms\Core\Model\EntityNotFoundException; use Dms\Core\Model\ICriteria; use Dms\Core\Model\IEntitySet; use Dms\Core\Model\IIdentifiableObjectSet; use Dms\Core\Model\ITypedObject; use Dms\Core\Model\Object\Entity; use Dms\Core\...
true
cf02811add31fe24b8696756c6741ed07f7fc0f9
PHP
RaviGhaghada/SEG-Lab-Project
/private/classes/member.class.php
UTF-8
4,973
3.078125
3
[]
no_license
<?php require_once('databaseobject.class.php'); class Member extends DatabaseObject { static protected $table_name = "members"; static protected $db_columns = ['id', 'fName', 'lName', 'email', 'address', 'phoneNum', 'gender', 'dob', 'rating', 'role', 'hashed_password']; public $id; public $fNa...
true
f6e86d6f369677d5dd52eb5b106d95a31b3eccce
PHP
etibarrustam/football-simulator
/app/Http/Repositories/RepositoryInterface.php
UTF-8
1,439
2.875
3
[]
no_license
<?php namespace App\Http\Repositories; use Illuminate\Database\Eloquent\Model; /** * Interface RepositoryInterface. * * @package App\Http\Repositories * @author Etibar Rustamzada <etibar.rustem@gmail.com> */ interface RepositoryInterface { /** * The limit of the all data. */ public const MAX_L...
true
426e5fa8333b114aab7d053648abce2eb0906b7f
PHP
thanghexp/project
/src/Model/Table/ProductsTable.php
UTF-8
608
2.578125
3
[]
no_license
<?php namespace Cake\Model\Table; use Cake\ORM\Table; use Cake\Validation\validator; class ProductsTable extends Table { public function initialize(array $config) { $this->belongsTo('categorys', [ 'className' => 'categorys', 'dependent' => true, 'foreignKey' => 'category_id' ]); } public f...
true
f3594b6b88d07c17d800987fa10b713b0b4a8eda
PHP
jarkakr/ctibord
/test.php
UTF-8
409
3.03125
3
[]
no_license
<?php require_once("index.php"); $ct = new CtiborD(); echo("Scitani 1 + 1: ".$ct->intcalc(1, 1, true, false, false, false)); echo("Odcitani 1 - 1: ".$ct->intcalc(1, 1, false, true, false, false)); echo("Nasobeni 1 * 1: ".$ct->intcalc(1, 1, false, false, true, false)); echo("Deleni 1 / 1: ".$ct->intcalc(1, 1, false, fal...
true
9da5d4c855ace3e204ab45122454bb41a2e0155d
PHP
radhouene-massoudi/2cinfo3
/src/Entity/Student.php
UTF-8
1,571
2.640625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\StudentRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=StudentRepository::class) */ class Student { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column...
true
e56f9baa5894c49cbc9c4022d725e0fac6ffea4d
PHP
combolek/gallery2
/eval/gx/zendframework/bootstrap.php
UTF-8
2,942
2.515625
3
[]
no_license
<?php // Step 1: APPLICATION CONSTANTS - Set the constants to use in this application. // These constants are accessible throughout the application, even in ini // files. We optionally set APPLICATION_PATH here in case our entry point // isn't index.php (e.g., if required from our test suite or a script). defined('APPL...
true
e42466ba352711a99882e5a78f8fca047cd9d0e9
PHP
d3m37r4/laravel-clean-architecture
/app/Application/Authentication/Notifications/RequestResetPasswordNotification.php
UTF-8
951
2.53125
3
[]
no_license
<?php namespace App\Application\Authentication\Notifications; use App\Domain\Entities\ConfirmationPin; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class RequestResetPasswordNotification extends Notification { use Queueable; publ...
true
cc28ea937b026b790c3349ddc81aa71f0b2574c7
PHP
wecoders01/Php-for-All
/chapter6/6.11 Break & Contenue.php
UTF-8
361
3.34375
3
[]
no_license
<?php // Break // for($i=1; $i<10; $i++){ // if($i==5){ // break; // } // echo $i; // echo PHP_EOL; // } // for($i=1; $i<20; $i++){ // if($i % 13 ==0){ // break; // } // echo $i; // echo PHP_EOL; // } // Continue for($i=1; $i<10; $i++){ if($i==3 || $i==5 || $i==7){ conti...
true
6e760666501d9b2ad9cb109d877d6d65a2057e30
PHP
phunc-org/Phunc
/src/Attribute/FullNameInterface.php
UTF-8
232
2.765625
3
[ "Apache-2.0" ]
permissive
<?php namespace Phunc\Attribute; interface FullNameInterface { /** * @return mixed */ public function getFullName(); /** * @param mixed $full_name */ public function setFullName($full_name); }
true
4ea95a9063821f31fb7491064512a2dff343dcb3
PHP
SBU-BMI/PathDB
/quip/vendor/chi-teck/drupal-code-generator/src/Command/Console/DcgCommand.php
UTF-8
1,874
2.625
3
[ "GPL-2.0-or-later", "GPL-2.0-only", "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace DrupalCodeGenerator\Command\Console; use DrupalCodeGenerator\Application; use DrupalCodeGenerator\Command\Generator; use DrupalCodeGenerator\Utils; /** * Implements console:dcg-command command. * * @todo Test this manually. */ final class DcgCommand extends Generator { ...
true