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
64fa6fdbea1f74cdc6818bbeee225efc274a5698
PHP
kusdiawan/tugas_if_php
/tugas_ganjil_genap.php
UTF-8
500
3.328125
3
[]
no_license
<?php $bilangan = "64"; $angka = "3"; echo "Tugas If <br>"; if (($bilangan % 2) == 0){ echo $bilangan . " adalah bilangan genap <br>"; }else{ echo $bilangan . " adalah bilangan ganjil <br>"; } if (($angka % 2) == 1){ echo $angka . " adalah angka ganjil <br>"; }else{ echo $angka . " adalah angka ge...
true
a2ac1239cdc002b9ed84806aba8ad4e38da45ac3
PHP
scolate/geo
/tests/Doctrine/Fixtures/MultiPointEntity.php
UTF-8
778
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Brick\Geo\Tests\Doctrine\Fixtures; use Brick\Geo\MultiPoint; /** * Class MultiPointEntity * * @Entity * @Table(name = "multipoints") */ class MultiPointEntity { /** * @Id * @Column(type="integer") * @GeneratedValue * * @var int */ ...
true
c8c4b195512bb9985a8dea05b400e23dc7dfd861
PHP
mwin007/magento_2_interface_from_table
/app/code/DevTools/Cli/Model/Files/WebapiRoutes.php
UTF-8
1,794
2.78125
3
[]
no_license
<?php namespace DevTools\Cli\Model\Files; use DevTools\Cli\Model\FileBuilder; class WebapiRoutes extends FileBuilder { /** * Constructor */ public function __construct() { $this->_templateName = 'WebapiRoutes'; $this->_pathRelativeToModule = 'etc'; $this->_filePrefix = '...
true
79218e0f267fe1814f1e6d92c3b8e6b85677b4a4
PHP
fhizyelnazareta/training-web-himti
/app/models/Fhizyel_model.php
UTF-8
1,118
2.90625
3
[]
no_license
<?php class Fhizyel_model { // menginisialisasikan nama tabel dan db private $table = 'orang'; private $db; // menginstansiasikan class Database yang ada di folder core public function __construct() { $this->db = new Database; } // melakakukan query mengambil Seluruh dat...
true
5211da6a2cdb5a9a7d7f1e86069b54d639c32ada
PHP
fadikamohamed/PHP8exercice5
/index.php
UTF-8
1,544
2.84375
3
[]
no_license
<?php if (!empty($_POST['login']) && !empty($_POST['password'])) { setCookie('login', $_POST['login'], time() + 800, null, null, false, true); setCookie('password', $_POST['password'], time() + 800, null, null, false, true); } ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8" /> <link rel...
true
6673ac81cdc28f78c4fa515d89328b8bcff81a84
PHP
znsstudio/cruddy
/src/Kalnoy/Cruddy/Schema/SchemaInterface.php
UTF-8
1,029
2.703125
3
[]
no_license
<?php namespace Kalnoy\Cruddy\Schema; use Illuminate\Support\Contracts\ArrayableInterface; use Illuminate\Database\Eloquent\Model as Eloquent; use Kalnoy\Cruddy\Repo\RepositoryInterface; /** * SchemaInterface */ interface SchemaInterface extends ArrayableInterface { /** * Initialize fields. * *...
true
b9efb420995ff6e449d85ea313960bd46791e5a1
PHP
chicaum/scribbr
/src/Integration/Hydrator/Context.php
UTF-8
729
2.6875
3
[]
no_license
<?php namespace App\Integration\Hydrator; use App\Entity\Provider; use App\Integration\Parser\ParserFactory; class Context { private $hydrator; public function __construct(string $type) { switch ($type){ case ParserFactory::CSV_TYPE: $this->hydrator = new CsvHydrator(...
true
8a0196936ae8fa3741af10a5c8b17020ad7149c2
PHP
danlex/expressions
/Lib/Expression/Tree.php
UTF-8
531
3
3
[]
no_license
<?php /** * Expression tree * * $Rev$ * $LastChangedBy$ * $LastChangedDate$ * * @category : Math Algorithms * @package : Expression * @subpackage : * @copyright : Copyright (C) 2012, Alexandru Dan * @author : Alexandru Dan <dan_lex@yahoo.com> * @version : $Id$ */ class Expression_Tree { ...
true
3bbbd1cea31a52674e2fb41910f4aeb88e94e8e6
PHP
moneyphp/money
/tests/MoneyTest.php
UTF-8
16,766
2.8125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); namespace Tests\Money; use InvalidArgumentException; use Money\Currency; use Money\Money; use PHPUnit\Framework\TestCase; use function json_encode; use const LC_ALL; use const PHP_INT_MAX; /** @covers \Money\Money */ final class MoneyTest extends TestCase { use AggregateExamples...
true
e976fee9c00b0aa9e02f6b5cbedb278937dd0831
PHP
MartinUbl/kiv-web-sp
/app/models/SessionHolder.php
UTF-8
2,548
3.203125
3
[]
no_license
<?php /** * Wrapper class for all session-related stuff */ class SessionHolder { /** * Is session active and running? * @return boolean */ private static function isStarted() { // several functions has been added in php 5.4 // disallow determining session stuf...
true
976af2ec28f2b36b0f96f0f1a8a0e19dc97e3591
PHP
batuhancaam/ApartmentManagement
/App/Models/DashboardModel.php
UTF-8
2,272
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: User * Date: 11.11.2018 * Time: 16:35 */ namespace App\Models; use System\Core\Model; class DashboardModel extends Model { public function selectOr($table, $array = null) { if($array == null){ $sql = "SELECT * FROM ".$table; }else{ ...
true
2cca6ba91668780cd00ce7c9207bf67aeba94268
PHP
let-algorithmic-group/leetcode
/w2_400/suchao/400.第n个数字.php
UTF-8
711
3.359375
3
[]
no_license
/* * @lc app=leetcode.cn id=400 lang=php * * [400] 第N个数字 */ // @lc code=start class Solution { /** * @param Integer $n * @return Integer */ function findNthDigit($n) { $up = 1; $count = 0; while (1) { $max = pow(10, $up); $serial = $max - (pow...
true
f3f7e0aa19d49ba2e3327f4336ac3fd5b102efe7
PHP
sunkejl/artisan
/Gitbook/design_pattern/createPatterns/factory.php
UTF-8
4,046
3.484375
3
[ "curl", "LicenseRef-scancode-unknown-license-reference", "JSON" ]
permissive
<?php /** * 工厂模式 * 工厂类 创建你需要的对象的类 * a class simply creates the object you want to use * 后续需要更改,重命名或替换 Automobile 类,你只需要更改工厂类中的代码,而不是在每一个用到 Automobile 类的地方修改; * 其次,如果创建对象的过程很复杂,你也只需要在工厂类中写,而不是在每个创建实例的地方重复地写。 * 定义一个创建对象的接口,但让实现这个接口的类来决定实例化哪个类。工厂方法让类的实例化推迟到子类中进行。 * * 工厂方法模式 factory method pattern * * 定义一个创建对象的接...
true
24c917d6cea9db920e03d0a34c690cd036b02c64
PHP
Sephy78/RT
/visionner.php
UTF-8
1,757
2.515625
3
[]
no_license
<?php session_start(); ?> <?php if (isset($_SESSION['Email'])){ if(isset($_GET["requete"]) && $_GET["saison"]){ ?> <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>BetterCallFlix</title> <link href='https://fonts.googleapis.com/css?family=Titillium+Web:400,300,600' rel='sty...
true
32939c7b7c4e60d4b236774fa881ba2607d0e466
PHP
MrAntonio7/Desarrollo-Web-Entorno-Servidor-2DAW
/Exercises/Relacion_06/Exercise_05.php
UTF-8
1,196
3.078125
3
[]
no_license
<?php $movies = array( "Comedia" => array("Con faldas y a lo loco", "Tiempos modernos", "Scary Movie", "Ted", "American Pie"), "Aventuras" => array("El señor de los anillos", "El rey arturo", "Braveheart"), "Acción" => array("Terminator", "La jungla de cristal", "La conspiración de Noviembre"), "Pastelazo infumable" =>...
true
d0803f643ec6d09ad088861137ea25280ac748b5
PHP
jluchier/ClubVosgien
/app/Http/Controllers/Api/GalleryController.php
UTF-8
2,206
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Models\Gallery; use App\Traits\ImageManager; use Illuminate\Http\Request; use App\Http\Requests\GalleryRequest; use Illuminate\Support\Str; use Intervention\Image\Facades\Image; use Illuminate\Support\Facades\Storage; class Galler...
true
d9391c4107f7cfcc716f43cf5ca82bd1fd4da805
PHP
trofimenko180297/examples
/php_examples(devionity)/htdocs1/trofimenko/test.php
UTF-8
130
2.84375
3
[]
no_license
<?php $begin = 12; $end = 10; $step = 12; $rez = 0; for($i=$begin; $i<=$end; $i=$i+$step) { $rez = $rez + $i; } echo $rez; ?>
true
4e4d74ceeeecf122a3d4a732068f04f39e957c99
PHP
brucewu16899/extsentry
/src/Srit83/Extsentry/Extsentry.php
UTF-8
947
2.53125
3
[ "MIT" ]
permissive
<?php /** * @created 27.11.13 - 14:32 * @author stefanriedel */ namespace Srit83\Extsentry; use Cartalyst\Sentry\Sentry; class Extsentry extends Sentry{ /** * * an authenticate method for webservices * * * @param $sSignature * @param bool $blRemember * @return \Cartalyst\Sen...
true
bb9ac32756f8103290087485dfe0b30b691a2146
PHP
kirarinakano/champu2
/editdata.php
UTF-8
3,461
2.828125
3
[ "MIT" ]
permissive
<?php include 'connect.php'; include 'header.php'; $userID = $_SESSION["userID"]; $itemID = $_SESSION["itemID"]; $dataID = $_SESSION["dataID"]; $errorMessage = ""; $errorMessages = ""; $sql = "SELECT * FROM itemdata WHERE userID='$userID'"; $result = $conn->query($sql); if ($result->num_rows > 0) { while ($row = $res...
true
2d9339aadb0f26f1777454a4f21d5aa67c0d465c
PHP
lalarukh1/ManchesterTourismWebsite
/content/register.php
UTF-8
6,227
2.796875
3
[]
no_license
<?php include ('dbconn.php'); include ('functions.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title> Manchester </title> <link rel="stylesheet" type="text/css" href="../assets/css/stylet.css" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <...
true
714111fa79a0c9f0b43c90085aa6c8b5504f738d
PHP
Innmind/Compose
/src/Compilation/Service.php
UTF-8
1,228
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Innmind\Compose\Compilation; use Innmind\Compose\{ Compilation\Service\Constructor, Definition\Service as Definition, Definition\Name }; final class Service { private $definition; private $constructor; private $property; private $method; pub...
true
76bc1f320675d16a0442f534ebc9c99d25e3251a
PHP
msakamoto-sf/yakibiki-php
/libs/pear/Xhwlay/Renderer/Json.php
UTF-8
3,138
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /* * Copyright (c) 2007 msakamoto-sf <msakamoto-sf@users.sourceforge.net> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
true
9f1c968eec5f27bff615ea04a47335883c03226d
PHP
whatlove413/Shop-Quan-Ao
/api/core/Contracts/Entities.php
UTF-8
143
2.515625
3
[]
no_license
<?php namespace Core\Contracts; interface Entities { public function wishlist(); public function fromArray(); public function toArray(); }
true
c77803e6670a966535ecb59c7691554cdba1386f
PHP
lapress/content
/src/Providers/Provider.php
UTF-8
352
2.640625
3
[]
no_license
<?php namespace LaPress\Content\Providers; /** * @author Sebastian Szczepański * @copyright ably */ interface Provider { /** * @param string $url * @return bool */ public static function match(string $url): bool; /** * @param string $url * @return string */ public ...
true
44048acaf61af48188c84952510ff009119c401c
PHP
Georgkali/CODELEX-homeworks
/Arrays/Exercise5.php
UTF-8
2,115
3.421875
3
[]
no_license
<?php $board = [ [" ", " ", " "], [" ", " ", " "], [" ", " ", " "], ]; $turn = "X"; $displayBoard = function() use (&$board) { echo " " . $board[0][0] . " | " . $board[0][1] . " | " . $board[0][2] . " \n"; echo "---+---+---\n"; echo " " . $board[1][0] . " | " . $board[1][1] . " | " . $board...
true
68b0a2c5760d17434ca58828a599493d7622d6ab
PHP
AleksandrPanarin/zoo
/src/Entity/Cage.php
UTF-8
2,091
2.859375
3
[]
no_license
<?php namespace App\Entity; use App\Repository\CageRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Exception; /** * @ORM\Entity(repositoryClass=CageRepository::class) */ class Cage { public const ACTION_CLEAR_CAGE = 1...
true
cf8f5b78bd4d0bc31a6541778135ded077920431
PHP
leticiacarolin/programacaoweb
/atividade7pw.php
UTF-8
899
3.09375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>questao7</title> </head> <body> <?php $diretorb = 40.000; $funcionariob = 24.000; $estagiariob ...
true
89aa76d84eaf2418389fc6575c0d566b59b6f8f4
PHP
alvaroolt/alvaroolt.github.io
/dwes/curso1920/basesDeDatos/biblioteca/class/Libro.php
UTF-8
3,553
3.015625
3
[ "MIT" ]
permissive
<?php require_once('DBAbstractModel.php'); class Libro extends DBAbstractModel{ private $_id; private $_titulo; private $_autor; private $_editorial; public function setTitulo($titulo){ $this->titulo = $titulo; } public function setAutor($autor){ $this->autor = $aut...
true
01d3229bcfa9e0a6b7b9297b7198f6600e77e741
PHP
ldsn/books-manager
/source/controller/main.php
UTF-8
4,084
2.859375
3
[ "Apache-2.0" ]
permissive
<?php class main extends spController { function index(){ // 这里是首页 $tpl = $this->spArgs("tpl","Admin"); // 这里接收tpl参数,使得模板变化 $information = spClass("information"); $this->results = $information->findAll(); $this->display("{$tpl}/index.html"); ...
true
57a39d39218a5c3110b15fd9da0905e561946743
PHP
mlfazevedo/twitter
/PHP/classes/Database.class.php
UTF-8
664
2.953125
3
[]
no_license
<?php class Database { private $connection; private $host = "us-cdbr-azure-southcentral-f.cloudapp.net"; private $username = "b6be0ce0ae9169"; private $password = "10ecf166"; private $database = "acsm_1f4da07b9663f60"; public function __construct() { $this->connection = new mysqli($thi...
true
7cf38d481d32bec164b08adac1bf271e6bf31f8b
PHP
manuClifton/tp3Comanda
/src/components/Resultado.php
UTF-8
603
2.796875
3
[]
no_license
<?php namespace App\Components; class Resultado{ public $estado; public $msg; public $status; public function __construct($estado,$msg,$status) { $this->estado = $estado; $this->msg = $msg; $this->status = $status; } ...
true
c3a5198e357bdf8fff31c265cf4daacaa31df6b0
PHP
acerus/WordPressify
/www/wp-content/plugins/loco-translate/src/data/CompiledData.php
UTF-8
1,600
3.03125
3
[ "MIT", "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only" ]
permissive
<?php /** * Static, read-only caching of data held in serialized files. * Used for pre-built arrays of information such as plural forms. */ class Loco_data_CompiledData implements ArrayAccess, Countable, IteratorAggregate { /** * @var array */ private static $reg; /** * @var stri...
true
334c7cf312b6be7cbd1bc15613da876cfd06a2ea
PHP
Scorpion180/SEE
/database/seeds/scheduleSeeder.php
UTF-8
563
2.515625
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Schedule; class scheduleSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Schedule::create(['name'=>'7:00-9:00']); Schedule::create(['name'=>'9:00-11:00']); Schedule::cr...
true
9babe7cbc2fb75f0185e49dce35df79e638b315c
PHP
rperello/picnic
/src/Rperello/Picnic/Actions.php
UTF-8
2,804
2.65625
3
[ "MIT" ]
permissive
<?php namespace Rperello\Picnic; /** * Predefined actions */ class Actions { public static function grayscale(Task $task) { $task->image->asGrayscale()->saveToFile($task->destFile); } public static function resizeInside(Task $task) { $task->params = self::parseDimensions(...
true
666747392bceb03e16fee6b086b3b5861d1a0548
PHP
xiaomlove/yshop
/yshop/protected/models/CategoryBrand.php
UTF-8
450
2.625
3
[]
no_license
<?php class CategoryBrand extends CActiveRecord { /* 必不可少方法一,返回模型 */ public static function model($className = __CLASS__) { return parent::model($className); } /*必不可少方法二,返回表名 */ public function tableName() { return '{{item_category_brand}}'; } //配置表关联信息 public function relations() { return array(...
true
a67fdc8f468a2b5832742df877cb5c0650ef818c
PHP
MaximeCgn/DWWM2020-Maxime
/01 - PHP CLI/03 EXOS ALGO A REFAIRE/3.6.php
UTF-8
1,103
3.6875
4
[]
no_license
<?php // $age=readline ("Entrez votre âge"); // if ($age==6 OR $age==7) { // echo "Vous entrez dans la catégorie Poussin."; // } // else if ($age==8 OR $age==9) { // echo "Vous entrez dans la catégorie Pupille"; // } // else if($age==10 OR $age==11) { // echo "Vous entrez d...
true
694119b1dc4f6acab9836d329ecf742d46d726e4
PHP
mindgruve/gruver
/src/Factory/UrlFactory.php
UTF-8
1,152
2.765625
3
[]
no_license
<?php namespace Mindgruve\Gruver\Factory; use Mindgruve\Gruver\Config\GruverConfig; use Symfony\Component\Yaml\Yaml; class UrlFactory { /** * @var array */ protected $options; /** * @var GruverConfig */ protected $config; public function __construct(GruverConfig $config) ...
true
fa9188a88687163d10e6bf4dcd049995a68bb643
PHP
AhiruSoftwareCompany/vaq
/prod/rest/vaq/Quote.php
UTF-8
716
3.1875
3
[]
no_license
<?php class Quote implements JsonSerializable { private $id; private $date; private $origin; private $body; private $rating; private $vote; public function __construct($id, $date, $origin, $body, $rating, $vote) { $this->id = $id; $this->date = $date; $this->origin ...
true
484b98495bc625e461970b1df4aa4bd06b37715f
PHP
anoop-pathak/git-demo
/app/Http/Controllers/WeatherController.php
UTF-8
1,509
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\ApiResponse; use App\Services\Weather\Weather; use Request; use Illuminate\Support\Facades\Validator; use Exception; class WeatherController extends ApiController { protected $weatherService; public function __construct(Weather $weatherService) { ...
true
7ca1a62d1c5b482486d5669b8a21009765523c8f
PHP
pirateunix/sibers
/src/AppBundle/Helpers/Paginator.php
UTF-8
2,140
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: pirate * Date: 02.05.16 * Time: 16:10 */ namespace AppBundle\Helpers; class Paginator { private $items; private $pages; private $repository; private $url; private $maxItems; private $maxPages; private $currPage; private $sort; ...
true
80fee2cb8a2fdf812203221ee67364f6a186903a
PHP
fuyuezhen/swocloud
/src/server/Route.php
UTF-8
5,697
2.734375
3
[]
no_license
<?php namespace swocloud\server; use Swoole\WebSocket\Server as SwooleServer; use Swoole\Coroutine\Http\Client; use Swoole\Http\Request; use Swoole\Http\Response; use \Redis; /** * 这是一个WebSocket * 路由层,用于服务注册与发现 */ class Route extends Server { /** * 服务器选择算法 * * @var string */ protected ...
true
882d22f5a3662f5b749fc36c4ff19b032c0cdcbe
PHP
thecodingmachine/mouf-tutorial-1
/src/Test/Model/Bean/Generated/NewsBaseBean.php
UTF-8
1,759
2.671875
3
[]
no_license
<?php namespace Test\Model\Bean\Generated; use Mouf\Database\TDBM\ResultIterator; use Mouf\Database\TDBM\AbstractTDBMObject; /* * This file has been automatically generated by TDBM. * DO NOT edit this file, as it might be overwritten. * If you need to perform changes, edit the NewsBean class instead! */ /** * T...
true
4273899ea92337a81fa09030de2a8167209a5dbd
PHP
CreaDieter/site2908
/plugins/Security/controllers/UserController.php
UTF-8
8,169
2.546875
3
[]
no_license
<?php class Backend_UserController extends Website_Controller_Action { public $_secure = true; public function defaultAction() { if ($this->getUser()) { $this->redirect('/user/overview'); }else { $this->redirect('/user/login'); } } public function overviewAction() { $form = new Website_Form_Profile...
true
7ad67a40949b664eea72590edbe3cc2e8bc4c82d
PHP
IamRohitash/INTRODUCTION_OF_PHP
/Grade.php
UTF-8
1,246
2.75
3
[]
no_license
<?php extract($_POST); if(isset($sub1)) { $a=$text1; if($a>=60) { echo "<h3 align='center'>Result is:Your grade is A!</h3>"; } else if($a<60 && $a>=45) { echo "<h3 align='center'>Result is:Your grade is B!</h3>"; } else if($a<45 && $a>33) { echo "<h3 align='c...
true
ffc694b80d4e953c55ae5d3a3eedafdd59e07b04
PHP
lex4vn/vbb-apis
/protected/widgets/AssetItem.php
UTF-8
286
2.53125
3
[]
no_license
<?php class AssetItem extends CWidget { public $asset; public $posterUrl; public $isFree = false; public function init() { } public function run() { $this->render("AssetItem", array('asset' => $this->asset, 'posterUrl' => $this->posterUrl, 'isFree' => $this->isFree)); } }
true
81aa71a5dd0827be1969659884efc9cca3b2ea52
PHP
rifkiperdiansyah/pw2020_193040188
/tubes/index.php
UTF-8
2,628
2.59375
3
[]
no_license
<?php require 'php/functions.php'; // conect ke database // query table $buku= query("SELECT *FROM buku"); if (isset ($_GET['search'])){ $keyword = $_GET['keyword']; $buku = query("SELECT * FROM buku WHERE Judul_Buku LIKE '%$keyword%'OR Penulis LIKE '%$keyword%'OR Pene...
true
088a375b15c928f5bd53be45c510aed742cf246e
PHP
rawebone/Micro
/tests/Testing/CollectorLoggerTest.php
UTF-8
1,386
2.703125
3
[ "MIT" ]
permissive
<?php namespace Micro\Tests\Testing; use Micro\Testing\CollectorLogger; use Micro\Tests\TestCase; class CollectorLoggerTest extends TestCase { public function testCollection() { $log = new CollectorLogger(); $this->assertCount(0, $log->collected()); $log->alert("This is a mess...
true
50d8a8231ee38bf5f940b0d782d83ffc82cef6e9
PHP
peaceman/bugfree-archer
/lib/EDM/User/Processors/Exception/InvalidAvatarFile.php
UTF-8
336
2.5625
3
[]
no_license
<?php namespace EDM\User\Processors\Exception; use Symfony\Component\HttpFoundation\File\UploadedFile; class InvalidAvatarFile extends \RuntimeException { /** * @var \Symfony\Component\HttpFoundation\File\UploadedFile */ public $avatarFile; public function __construct(UploadedFile $file) { $this->avatarFil...
true
f1b1d2eb855f966ea12e158172f7d9e180fc9eb7
PHP
HealthComplex/HealthComplex-Final
/HealthComplex_Proj/User/View/trip_planning/functions.php
UTF-8
4,165
2.515625
3
[]
no_license
<?php if (session_status() === PHP_SESSION_NONE){session_start();} header("Content-Type: application/json", true); include '../../../connectionDB.php'; include '../../SecurityFunctions.php'; if(isset($_POST['city']) and !isset($_POST['hospital']) and !isset($_POST['service'])) { $city = $_POST['city']; $que...
true
68bc13c74830db62c334731cde8fd848c27fa83b
PHP
Jujhar/php-mongodb-minimalistic-query
/query.php
UTF-8
1,064
3.015625
3
[]
no_license
<?php /** * php-mongodb-minimalistic-query * Uses mongodb PHP extension and mongodb/mongodb composer package * * Made by Singh * jujhar@rebabre.com * Updated Dec 2017 * * Detailed Docs: * https://secure.php.net/manual/en/mongodb.tutorial.library.php * */ $dbname = 'local'; // Your mongodb name (default loc...
true
a796eccec7a8b1dc42512a4a0c8506bea90b1ab9
PHP
spyderp/infotaxi
/app/Plugin/Taxi/Model/Taxi.php
UTF-8
4,500
2.546875
3
[]
no_license
<?php /** * Taxi Model * * @property Marca $Marca * @property Usuario $Usuario * @property Estado $Estado * @property Conductor $Conductor * @property HistorialPago $HistorialPago * @property Queja $Queja */ class Taxi extends TaxiAppModel { public $actsAs = array('Containable'); /** * Validation rules * *...
true
857e9a92ab5954cf72db54579fb833a053d60c3c
PHP
tien2000/php-zendvn
/ch09/02-ajax/03-post/files/course.php
UTF-8
277
2.671875
3
[]
no_license
<?php $course = array(); $course[0] = array('id' => 1, 'name' => 'HTML'); $course[1] = array('id' => 2, 'name' => 'CSS'); $course[2] = array('id' => 3, 'name' => 'JS'); if (isset($_POST['key'])) { echo json_encode($course[$_POST['key']]); } ?>
true
3446cd6e5e956938c0291138f25bf14537f4dd3d
PHP
sibbu2005/PHP-Puzzle
/echo.php
UTF-8
3,526
3.3125
3
[]
no_license
<?php $file = fopen("input.txt","r"); /* *Read file line by line and process it */ $supported_staranger_id_count = 0; while(($line = fgets($file)) !== false) { $continue = false; /* * using regular expression to extract the text inside the square bracket */ preg_match_all("/\[(.*?)\]/", $line, $matches); //loop ...
true
0bcfb2a2449040e0c41f7d8d604c4b43486f068b
PHP
siteDevops/stronaNasiona
/application/models/Search.php
UTF-8
2,513
2.703125
3
[ "Apache-2.0" ]
permissive
<?php class Application_Model_Search extends Zend_Db_Table { protected $_name = 'users'; public static function create(array $data) { $table = new self(); $id = $table->insert($data); $usr = self::getById($id); self::updateUID($id); return $usr; } public static function getByEmail($sEm...
true
ff46ac55e1c5fc378997f54be58b804bed668928
PHP
rimvydasposkus/pirkejoapmokejimas
/adfiles.php
UTF-8
4,115
2.546875
3
[]
no_license
<head> <meta charset="UTF-8"> </head> <?php require_once('includes/dbh.inc.php'); require_once('Vendor/php-excel-reader/excel_reader2.php'); require_once('Vendor/SpreadsheetReader.php'); if (isset($_POST["import"])) { $allowedFileType = ['application/vnd.ms-excel','text/xls','text/xlsx','application/vn...
true
4d2fe1039b38ce00280047e2ea63ddf6c4dc3924
PHP
spalax/ua-webchalange-instagram-collage
/module/Frontend/src/Frontend/Service/Instagram/Images/CollectionFactory.php
UTF-8
915
2.53125
3
[]
no_license
<?php namespace Frontend\Service\Instagram\Images; use Frontend\Data\Gallery\SourceNameInterface; use Zend\Di\Di; class CollectionFactory { /** * @var Di */ protected $di = null; /** * @param Di $di */ public function __construct(Di $di) { $this->di = $di; } /...
true
fa64c098b13c9f38075b6227aa856c7ef42c94d7
PHP
bool1993/small
/frame/vendor/view.php
UTF-8
2,361
2.640625
3
[]
no_license
<?php namespace frame\vendor; use frame\vendor\Exception; /** * 视图类 */ final class View { function __construct(){} /** * [fetch 分配模板] * @return [type] [description] */ public static function fetch($tpl=null,$arg=[]){ //模板后缀 $ext=isset($GLOBALS['config']['TPL_TEMPLATE_SUFFIX']) ? $GLOBALS['config']['TPL_...
true
567da2e45a465c9b9cedc00f56f4a780e2bc2f1c
PHP
HilmiMubarok/gtren
/app/Helpers/greeting_helper.php
UTF-8
413
3.3125
3
[ "MIT" ]
permissive
<?php function greeting($name) { date_default_timezone_set("Asia/Jakarta"); //ambil jam dan menit $jam = date('H:i'); //atur salam menggunakan IF if ($jam > '05:30' && $jam < '10:00') { $salam = 'Selamat Pagi '; } elseif ($jam >= '10:00' && $jam < '15:00') { $salam = 'Selamat Siang '; } elseif ($ja...
true
fa3cff9ac66fb445fee5442bc60a903b8835a674
PHP
furthestworld/-pecl-php-memcache
/tests/022a.phpt
UTF-8
1,097
2.59375
3
[ "PHP-3.0" ]
permissive
--TEST-- memcache_get_extended_stats() --SKIPIF-- <?php include 'connect.inc'; if (!isset($host2)) die('skip $host2 not set'); ?> --FILE-- <?php include 'connect.inc'; $memcache = new Memcache(); memcache_add_server($memcache, $nonExistingHost, $nonExistingPort); memcache_add_server($memcache, $host, $port...
true
27e2b0388e795345492fc48b80289eddf780e931
PHP
Fulbert28/Lafleur2013
/application/models/User.class.php
WINDOWS-1250
2,650
2.96875
3
[]
no_license
<?php class User extends Entity{ private $_id; private $_login; private $_password; private $_administrator; private static $_leuser; /* * function User($lelogin=null) { $this->_login=$lelogin; } */ public function User(array $params=null) { $this->lierDB("User","User"); //var_dump($p...
true
fc3c2be6ccb9128eacad9d590d781b9e2481458a
PHP
ennnnny/weiphp3
/ThinkPHP/Library/Think/Controller.class.php
UTF-8
31,213
2.625
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved. // +----------------------------------------------...
true
6c117bb72a747b55077543c9ed8fb29014642ff7
PHP
hhamon/Hangman
/src/Hangman/Storage/StorageInterface.php
UTF-8
139
2.65625
3
[]
no_license
<?php namespace Hangman\Storage; interface StorageInterface { public function read($key); public function write($key, $value); }
true
7db781661123c503fdc7750d265460945baf8d59
PHP
network-spy/domainregistrar
/src/DomainRegistrar/RegistrationData.php
UTF-8
1,184
2.96875
3
[]
no_license
<?php namespace DomainRegistrar; /** * Class RegistrationData * @package DomainRegistrar */ class RegistrationData { /** * @var string */ public $domainName; /** * @var string */ public $IP; /** * @var string */ public $status; /** * @var string ...
true
828b139a9f3066b1e21e232e6d03aa1da2015324
PHP
yii2-vn/payment
/src/PaymentGatewayInterface.php
UTF-8
1,980
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @link https://github.com/yii2-vn/payment * @copyright Copyright (c) 2017 Yii2VN * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php) */ namespace yii2vn\payment; /** * Interface PaymentGatewayInterface * * * @property array|MerchantInterface[] $merchants * @property M...
true
f3f8b3b45ff6603db5fca7e665c3e277bb97265f
PHP
ibrahimothman/blog-ADR
/app/Blog/Actions/ShowBlogAction.php
UTF-8
502
2.546875
3
[]
no_license
<?php namespace App\Blog\Actions; use App\Blog\Domain\Models\Blog; use App\Blog\Domain\Services\ShowBlogService; use App\Blog\Responder\ShowBlogResponder; class ShowBlogAction { public function __construct(ShowBlogResponder $responder, ShowBlogService $service) { $this->responder = $responder; ...
true
d48c2d0486d0bbe9c514ca222c0514ed57515dfe
PHP
sureshptrichy/tn
/classes/Acl.php
UTF-8
1,651
2.828125
3
[]
no_license
<?php defined('SYSTEM_PATH') OR die(_('No direct access to this file is allowed.')); /** * ACL class. * * @package truenorthng * @subpackage ACL */ class Acl extends Object { //private $data = array(); private $model; //private $G; public function __construct(G $G, $userRole) { $this->G = $G; $this->m...
true
e905bffd40aa62a334694777451645bfac54133c
PHP
DAlekseenko/Yii2-project
/app/console/models/Locations.php
UTF-8
1,131
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace console\models; use Yii; class Locations extends \common\models\Locations { public static function refreshLocations($items) { $count = 0; Yii::info("Refreshing locations...\n-"); self::deleteAll(); foreach ($items as $item) { $location = new self(); $location->setAttributes($item, f...
true
a70f697e59613267dd407f97a64f08718d5fd6d3
PHP
chonea/register.summitkids.ca
/examples/validation.php
UTF-8
15,307
2.828125
3
[]
no_license
<?php use PFBC\Form; use PFBC\Element; use PFBC\Validation; session_start(); error_reporting(E_ALL); include("../PFBC/Form.php"); if(isset($_POST["form"])) { Form::isValid($_POST["form"]); header("Location: " . $_SERVER["PHP_SELF"]); exit(); } include("../header.php"); $version = file_get_contents("../version");...
true
dc3a1ecfbc1f154835d629d2309aebd00d429564
PHP
vimal1234/palcura
/frontend/models/Video.php
UTF-8
11,849
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; use yii\web\UploadedFile; use yii\db\Query; use yii\base\Model; class Video extends \yii\db\ActiveRecord { public $temp_description; public $temp_extendses_min; public $amount; public static function tableName() { return 'vid_session_temp'; } public funct...
true
70b6c4b99ce1f32e94fcae90b6769af4ce035a51
PHP
GermanMoltoni/clasesLab4
/Clase_6/api/ClasesApi/FormMDW.php
UTF-8
2,298
2.53125
3
[]
no_license
<?php require_once './Clases/Usuario.php'; class FormMDW{ public static function FormUser($request, $response, $next){ $data = $request->getParsedBody(); if(!isset($data['mail'],$data['nombre'],$data['apellido'],$data['usuario'],$data['password'])) return $response->withJson(array('msg'=>'Fa...
true
12290aaba86f75bf6eb209d33f1c942a2381507a
PHP
sandralMG/Bloggen
/admin/includes/pages/edit_post.php
UTF-8
3,370
2.71875
3
[]
no_license
<?php //Hämtar funktioner för databasförfrågningar require_once 'sql_query.php'; $userId = $_GET['userId']; $postId = $_GET['postId']; $result = readPost($postId); $row = mysqli_fetch_assoc($result); $title = $row['title']; $content =$row['content']; $result = readImage($postId); $row = mysqli_fetch_assoc($resul...
true
837d5ca2cedd9d3595da00ec1bfea0f572a8d19e
PHP
humbug/php-scoper
/specs/class/interface.php
UTF-8
5,131
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the humbug/php-scoper package. * * Copyright (c) 2017 Théo FIDRY <theo.fidry@gmail.com>, * Pádraic Brady <padraic.brady@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed ...
true
ee45e61cd41dc877e351a42e6b1a7aceca5e826a
PHP
weber-cs-org/cs4350-hw04
/src/Actions/HomeAction.php
UTF-8
559
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Actions; use Psr\Log\LoggerInterface; use Slim\Http\Request; use Slim\Http\Response; use Slim\Views\Twig; final class HomeAction { protected $view; protected $log; public function __construct(Twig $view, LoggerInterface $logger) { $this->view = $view; $this->log ...
true
8739ea5e682afaae421c64ba21ee511ed9289b52
PHP
vikashverma003/datenight
/database/seeds/SpotsTableSeeder.php
UTF-8
451
2.671875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Models\PlanSpot; class SpotsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $price=150; for($i=1;$i<=20;$i++){ PlanSpot::create([ 'plan_id'=>1...
true
efb89749bdc27dfcdf62bedb43d787581b4b7a28
PHP
movingfastball/2020_stady
/2/data/arrays2.php
UTF-8
639
2.65625
3
[]
no_license
<body> <?php $arr3 = [ 'a' => 'value A<br>', 'b' => 'value B<br>', ]; $arr4 = [ 'a' => 'value C<br>', 'b' => 'value D<br>', 'c' => 'value E<br>', ]; $mergedE = $arr3 + $arr4; $mergedF = $arr4 + ...
true
3f75dca6ced6e1cadfe9faf9443e27f545ce3e0f
PHP
kepler-12/Bad
/tests/Goals.php
UTF-8
1,506
2.828125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php use Kepler12\Bad\Goal; use Kepler12\Bad\Result; class OddsOnly extends Goal { public static function validate(Result $result) { $combinded = $result->results[0]; if (count($result->results) > 0) { foreach($result->results as $a_result) { $combinded = array_int...
true
b87435e5a897e7c2f2fab70b64c10c109b9857fb
PHP
phpstan/phpstan-symfony
/src/Symfony/DefaultServiceMap.php
UTF-8
849
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace PHPStan\Symfony; use PhpParser\Node\Expr; use PHPStan\Analyser\Scope; use PHPStan\Type\TypeUtils; use function count; final class DefaultServiceMap implements ServiceMap { /** @var ServiceDefinition[] */ private $services; /** * @param ServiceDefinition[] $services ...
true
434ddd73d8a82e0df5332e8497f1513b94298ece
PHP
combyna/combyna
/php/src/Combyna/Component/Type/MultipleType.php
UTF-8
14,630
2.8125
3
[ "MIT" ]
permissive
<?php /** * Combyna * Copyright (c) the Combyna project and contributors * https://github.com/combyna/combyna * * Released under the MIT license * https://github.com/combyna/combyna/raw/master/MIT-LICENSE.txt */ namespace Combyna\Component\Type; use Combyna\Component\Bag\BagFactoryInterface; use Combyna\Compo...
true
b432dc7c9e59dc5f7fa7bdb0c0589d11e18763aa
PHP
CorentinFrison/Classment-Tournois
/Classement.php
UTF-8
2,135
2.734375
3
[]
no_license
<?php class Classement { public function __construct() { register_activation_hook(__FILE__,array('Classement','install')); register_deactivation_hook(__FILE__,array('Classement','desactivate')); register_uninstall_hook(__FILE__,array('Classement','uninstall')); add_action(...
true
045946970255dda17d692520941b925074d0d53d
PHP
caylaXu/log_center
/src/LogSystem/Notify/Sms.php
UTF-8
3,880
2.71875
3
[]
no_license
<?php namespace LogSystem\Notify; use MessageCenter; /** * Class Sms * @author Leo Yang <leoyang@motouch.cn> */ class Sms extends AbstructRateController implements NotifyInterface { const API_URL = 'http://sdk2.entinfo.cn:8060/webservice.asmx/mdSmsSend_u'; /** * @var string */ private $sn; ...
true
cba982825defcf340225c333eae0bb14180b5f8e
PHP
luigif/WsdlToPhp
/samples/serviceobjects-telephoneverification/Send/SOTelVerificationServiceSend.php
UTF-8
1,711
2.703125
3
[]
no_license
<?php /** * Class file for SOTelVerificationServiceSend * @date 08/07/2012 */ /** * Class SOTelVerificationServiceSend * @date 08/07/2012 */ class SOTelVerificationServiceSend extends SOTelVerificationWsdlClass { /** * Method to call SendSMS * Meta informations : * - documentation : Sends an SMS text mess...
true
df98bd6c524128d495737dc276f6c6b5804b9212
PHP
Rvisser01/I7AO2-3
/Sprint_3/S2-BE-08 - Werken met datums/datediff.php
UTF-8
559
2.9375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Datediff</title> </head> <body> <h3>Datediff</h3> <?php $datum1 = new DateTime($_POST['datum1']); $datum2 = new DateTime($_POST['datum2']); $diff = date_diff($datum1,$datum2); echo $diff->days; ?> <form me...
true
19480768e0d6fda96567602f2844ca6fab6750a6
PHP
phapalegaurav/MM
/app/config/app.php
UTF-8
1,193
2.71875
3
[]
no_license
<?php // I could not find a better way to maintain and use app configs. Using constants instead. function getAppConfig() { $appConfig = array( 'images' => array( 'thumbnail' => array ( 'default_sizes' => array (600, 300, 150), ...
true
ef7aee355ec2c1a11256031c295faa72ef9557e0
PHP
Dishkan/Data-Structures-Algorithms-in-PHP
/Algorithms/Sorting/bubble_sort.php
UTF-8
474
3.96875
4
[]
no_license
<?php $numbers = array(99, 44, 6, 2, 1, 5, 63, 87, 283, 4, 0); function bubbleSort($array) { $length = count($array); for ($i = 0; $i < $length; $i++) { if($array[$i] > $array[$i+1]) { //Swap the numbers $temp = $array[$i]; $array[$i] = $array[$i+1]; return $array[$i...
true
aa94e52df8e560e341959ce6effba897c7d49a88
PHP
duncan3dc/twitter
/src/Sql.php
UTF-8
1,267
2.71875
3
[ "Apache-2.0" ]
permissive
<?php namespace duncan3dc\Twitter; use duncan3dc\Helpers\Env; class Sql { const FETCH_ROW = \duncan3dc\SqlClass\Sql::FETCH_ROW; protected static $sql; public static function init() { if (!static::$sql) { static::$sql = new \duncan3dc\SqlClass\Sql([ "hostname" =...
true
e0e4102697e06d6d2b283de580e2cb7d47c2d165
PHP
hyoukhoon/song
/phpmailer.php
UHC
1,584
2.875
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; use PHPMailer\PHPMailer\SMTP; require '/var/www/html/PHPMailer/src/Exception.php'; require '/var/www/html/PHPMailer/src/PHPMailer.php'; require '/var/www/html/PHPMailer/src/SMTP.php'; $mail = new PHPMailer(true); // the true param me...
true
69837ca49a9964ca76bbb52c1f946ab683916eee
PHP
weinasi/xy
/Application/Home/Model/UserModel.class.php
UTF-8
1,082
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: liuxiangbao * Date: 2017/10/27 * Time: 上午12:05 */ namespace Home\Model; use Think\Model; class UserModel extends Model { /** * 必须说明属性信息: * name type default comment `id` int(11) NOT NULL ...
true
f4a9739fc0ad4ce8214619e80b44f005d87ec22c
PHP
aprezcuba24/CULabsTestingBundle
/Testing/AssertionsTrait.php
UTF-8
2,851
2.59375
3
[]
no_license
<?php /** * @author: Renier Ricardo Figueredo * @mail: aprezcuba24@gmail.com */ namespace CULabs\TestingBundle\Testing; use PHPUnit\Framework\Assert as Assert; use PHPUnit\Framework\AssertionFailedError; trait AssertionsTrait { /** * @return \Symfony\Bundle\FrameworkBundle\Client */ abstract public function...
true
d0f50b989d20e2b464209a321a50dfdf2b7c0d66
PHP
flexa-cz/_scripts
/file_get_contents/index.php
UTF-8
756
2.625
3
[]
no_license
<?php $url='http://cs.wikipedia.org/wiki/Pa%25C5%2599ez'; $utf=iconv('ISO-8859-2','UTF-8',$url); echo '<div style="background: red; color: #ffc; font-weight: bold; padding: .3em 1em; margin: 1em 0 0 0; font-size: 130%; font-family: Courier, monospace;">$utf</div><div style="border: 1px solid red; background: #ffc; pa...
true
075469d19af53998e9581bad18cfb6f23dbb3de6
PHP
zhengjun516/DevAppServer
/app/Model/Article.php
UTF-8
694
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use Carbon\Carbon; class Article extends Model { // protected $fillable = array('title', 'intro', 'content','published_at'); public function scopePublished($query) { $query->where('published_at','<=',Carbon::now()); ...
true
9bcfdae31acaefe4c2dab16fe364920ada0c426e
PHP
eduardoferreira20/Projeto-Final
/cadastro.php
UTF-8
3,218
2.546875
3
[]
no_license
<?php include 'connection.php'; $modo = ""; if(isset($_POST['modo'])) $modo = $_POST['modo']; $login = " "; if (isset($_POST['login'])) { $login = $_POST['login']; } $senha = " "; if(isset($_POST['senha'])){ $senha = $_POST['senha']; } $nome = " "; if(isset($_POST['nome'])){ $nome = $_POST['nome']; } $email = " "...
true
91bc2b308e6fd3320b8d1c55bc8e351801247e68
PHP
emfluencekc/emfl-api_php-lib
/request/wordpress.php
UTF-8
912
2.75
3
[ "MIT" ]
permissive
<?php /** * Wordpress request handler * @param string $url * @param array $params * @param string $endpoint * @param int $timeout in seconds * @return object|string */ function emfl_platform_api_wordpress_request($url, $params, $endpoint, $timeout, $access_token) { if(!function_exists('wp_remote_post')) retur...
true
1c5a447f053916a56436b734189489cb5f66c430
PHP
greenpowerlink/Timesheet
/Web Design/PHP/SQLRequest.php
UTF-8
536
2.859375
3
[]
no_license
<?php $conn = new mysqli('localhost', 'username', 'password', 'database') or die ('Cannot connect to db'); $result = $conn->query("select id, name from table"); echo "<html>"; echo "<body>"; echo "<select name='id'>"; while ($row = $result->fetch_assoc()) { unset($id, $name);...
true
981a7e6a039dd0379fb6722a1ec627d97ea0561e
PHP
ShunRenMa/init.engineer
/app/Models/News/Comments.php
UTF-8
1,240
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Models\News; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use App\Models\News\Traits\Scope\CommentsScope; use App\Models\News\Traits\Method\CommentsMethod; use App\Models\News\Traits\Attribute\CommentsAttrivute; use App\Models\News\Traits\Relationship\Comme...
true
6abaa4b2003a40e55d28ccc107c8384f4788a448
PHP
NateJacobs/Madison-County-Property-Records
/app/Http/Controllers/PropertyController.php
UTF-8
4,077
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Resources\Detail as DetailResource; use App\Http\Resources\DetailCollection; use App\Models\Detail; class PropertyController extends Controller { /** * Return a single property record by ID. * */ public function show( Request $req...
true
fd0bd9dd1ba818a1503cd7ccee44ffe223120340
PHP
Swestr/Projet-Dev.-Web
/Partie Design/Projet/PHP/Classes/Chat_Partie.php
UTF-8
304
2.921875
3
[]
no_license
<?php require_once("Chat.php"); class Chat_Partie extends Chat{ private $partie; const JOUEUR="joueur"; const SPECTATEUR="spectateur"; function __construct($ind, Partie $p){ parent::__construct($ind); $this->partie=$p; } } ?>
true
560915aa89dccc6544bb82cacaba43c0712e83e6
PHP
Danichu300/trabajotrimestral
/models/orderitem_model.php
UTF-8
2,312
2.765625
3
[]
no_license
<?php class orderitem_model{ private $db; private $orderitem; private $orderline; private $order; private $product; private $quantity; private $price; private $user; public function __construct(){ $this->db=Conectar::conexion(); $this->productos=array(); } /* GETTERS & SETTERS */ public function getOrderl...
true
36fcef2446c149444e5a482bec781a17a09e352d
PHP
Pawel-Marcinkowski/ppz
/Lab 2/Zad 3/proces1.php
UTF-8
513
2.890625
3
[]
no_license
<?php error_reporting(E_ALL); echo "UDP Connection\n"; $port = $argv[1]; $addr = $argv[2]; $socket = socket_create(AF_INET, SOCK_DGRAM, 0); if ($socket === false) { echo "Nie udało sie: " . socket_strerror(socket_last_error()) . "\n"; } else { echo "OK.\n"; } while(true){ $text = fgets(STDIN); if( ! socket_...
true
e2ea321cdae0d41dc26c4fe975ccbaaf20fdaf97
PHP
themilanguy1/SQL-mutatie-project
/test/login test van DEVEL opdrachten/poll.php
UTF-8
1,457
3.15625
3
[ "MIT" ]
permissive
<?php include 'connect.php'; if(isset($_POST['optie'])) { $stem=$_POST['optie']; $sql = "UPDATE optie SET stemmen = stemmen + 1 WHERE ID=$stem"; if ($conn->query($sql) === TRUE) { } else { echo "Fout tijdens updaten van stemmen database" . $conn->error; } } $sql = "SELE...
true
ab89faa61cebe286573b19d9bf24ac79da0b1bd6
PHP
lucasviei/PHP
/Codigosphp/aula49.php
UTF-8
147
3.125
3
[ "MIT" ]
permissive
<?php $varvar = "Teste"; $$varvar = 10; echo $Teste . "\n"; //echo $varvar . " ". $$varvar; $num = 10; $$num = 1000; echo $num; echo $$num; ?>
true