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
6c7cd6494e7a728e7d5e2a12ae7a45d01b47ed43
PHP
Lohini/plugins
/Blog/Forms/Controls/TagInput.php
UTF-8
8,901
2.625
3
[]
no_license
<?php // vim: ts=4 sw=4 ai: /** * This file is part of Lohini plugin Blog * * @copyright (c) 2010, 2011 Lopo <lopo@lohini.net> * @license http://www.gnu.org/licenses/gpl.html GNU General Public License Version 3 */ namespace LohiniPlugins\Blog\Forms\Controls; /** * Tag Input for html forms * @author Mi...
true
501f486a8cd8070e28cd7ec6569c2d4b84f245b0
PHP
SergiBaucells/items_old
/app/Http/Controllers/ItemController.php
UTF-8
2,559
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Item; use Illuminate\Http\Request; class ItemController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // CRUD -> Retrieve --> List // BREAD ...
true
26dccf580f63ccfc2816d6508b64a16597abf6dd
PHP
charlie-hadden/cms-core
/Command/UpdatePagesCommand.php
UTF-8
2,236
2.71875
3
[]
no_license
<?php namespace CMS\CoreBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use CMS\CoreBundle\Entity\Page; use CMS\CoreBundle\Entity\Field; class UpdatePagesCommand extends Contai...
true
95b8bf05319795d71a78a18eb6c4ef671398e846
PHP
nicholasruunu/cqrs-es-examples
/DepositWasMade.php
UTF-8
408
2.921875
3
[]
no_license
<?php /** * Event */ final class DepositWasMade extends DomainEvent { private $accountId; private $amount; public function __construct($accountId, $amount) { $this->accountId = $accountId; $this->amount = $amount; } public function accountId() { return $this->acc...
true
ab63f0fe2ca350bf464651a9f4663ee6fe579685
PHP
ooyanma/php
/select_testdb.php
UTF-8
2,470
3.171875
3
[]
no_license
<?php require_once("./lib/util.php"); // データベースユーザー $user = ""; $password = ""; // 利用するデータベース $dbname = "class"; // MySQLサーバ $host = "localhost:3306"; // MySQLのDSN(Data Source Name)文字列 : MySQLに接続するときに使う $dsn = "mysql:host={$host};dbname={$dbname};charset=utf8"; ?> <!DOCTYPE html> <html lang="ja" dir="l...
true
06e1f944767916b90abe6f0c47ee014cba7e2a30
PHP
seb1001010010100/GestionDesStages
/src/Model/Entity/Internship.php
UTF-8
1,739
2.578125
3
[]
no_license
<?php namespace App\Model\Entity; use Cake\ORM\Entity; /** * Internship Entity * * @property int $id * @property int $company_id * @property int $session_id * @property int $ownerStatus_id * @property int $region_id * @property string $name * @property string $task * @property string $precision_facility * ...
true
49b979c863e45c92ccae5776c3ed88bfef7c0f56
PHP
juaningsnow/cy-payment-processor
/BaseCode/Auth/Requests/LoginRequest.php
UTF-8
524
2.59375
3
[]
no_license
<?php namespace BaseCode\Auth\Requests; use Illuminate\Foundation\Http\FormRequest as Request; class LoginRequest extends Request { public function authorize() { return true; } public function getUsername() { return $this->input('username'); } public function getPassword...
true
5cf32f1535adf66681d0c95812c039cdf4f008b6
PHP
liaoyuehuan/study
/vendor/mdanter/ecc/src/SM3/GeneralDigest.php
UTF-8
2,392
2.59375
3
[ "MIT" ]
permissive
<?php // namespace Mdanter\Ecc\SM3; class GeneralDigest { private const BYTE_LENGTH = 64; private $xBuf=array(); private $xBufOff; private $byteCount; public function setGeneralDigest($t) { $this->arraycopy($t->xBuf, 0, $this->xBuf, 0, sizeof($t->xBuf)); ...
true
fd83e485cc87ec025327c07de0cdf6b9ad50d655
PHP
Dania-c/Codi_PhpBasics
/basic02/basic02_Step9.php
UTF-8
195
3.6875
4
[]
no_license
<?php function my_sqrt($n) { $x = $n; $y = 1; while($x > $y) { $x = ($x + $y)/2; $y = $n/$x; } return $x; } echo my_sqrt(68); echo "<br>"; echo my_sqrt(16); echo "<br>"; ?>
true
21c695366fb78fa796e5c837805fa13abfd1a421
PHP
anishkmathew/codeigniter3
/application/models/Ajax_pagination_model.php
UTF-8
1,177
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Ajax_pagination_model extends CI_Model { function count_all() { $query = $this->db->get("countries"); return $query->num_rows(); } function fetch_details($limit, $start) { $output = ''; $this->db->select("*"); $this->db->from("countries"); $this->db->order_by("name", "ASC"); $this->db->l...
true
19819a6887f1e0c371d955d8ed33df01c564ee11
PHP
evinoguz/Laravel_VatanComputer_WebSitesi
/app/User.php
UTF-8
898
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; // yukardaki kodu sil. Bunu yaz //use SoftDeletes; /** * The attributes that are mass a...
true
c06bd8c0869a3033373fd54b9fa128dd17bbf8de
PHP
webgig/bigc-laravel
/app/Services/ICustomerService.php
UTF-8
579
2.890625
3
[]
no_license
<?php namespace App\Services; interface ICustomerService { /** * Retrieves the customer list. * * @return \App\Customer[] */ public function listAllCustomers(); /** * Retrieves the customer details for a given customer. * * @param int $customerId The customer ID. *...
true
465fc05ad86d568bec6b443974f2eb4ce27c1522
PHP
jasonlund/nexus
/app/Services/ThreadsService.php
UTF-8
4,078
2.71875
3
[]
no_license
<?php namespace App\Services; use App\Events\ThreadViewed; use App\Rules\RichTextRequired; use Carbon\Carbon; use App\Models\ViewedThread; use App\Transformers\ReplyTransformer; use App\Models\Thread; class ThreadsService { /** * Get the request validation rules given an optional action. * * @para...
true
1b9ced15c53c92fcec888eeb18dffc04eb770cc5
PHP
williamagyapong/storemanager
/public/stock/sales-report.php
UTF-8
2,559
2.796875
3
[]
no_license
<?php session_start();//start session to be able to use session variables require_once'../../core/config.php'; authenticate("sales-person");//prevents unauthorized visitors $sales = getTotalSales();//from(core/functions/products.php) $total = 0;//initialize total sales to zero ?> <!DOCTYPE h...
true
c5dd095afa5baa350e5a21f2a7461dac71d345f0
PHP
dominik-najberg/design-patterns-dive
/src/Behavioral/Strategy/MultiplicationOperation.php
UTF-8
254
3
3
[]
no_license
<?php namespace App\Behavioral\Strategy; class MultiplicationOperation implements StrategyInterface { public function getName(): string { return '*'; } public function doCalculate($x, $y) { return $x * $y; } }
true
3c3563c7792b10414e4f81ee7a98e62d93124d3c
PHP
Vinlock/pvpallday-api-pvpers-net
/database/migrations/2016_10_23_212801_create_video_hosts_table.php
UTF-8
992
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateVideoHostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('video_hosts'...
true
a922c4d94903cda4f47f8a464f29062c67b15a94
PHP
casperwilkes/math_app
/app/Programs/salestax.php
UTF-8
1,208
2.984375
3
[ "MIT" ]
permissive
<?php namespace MathApp\Programs; use MathApp\Classes; class SalesTax extends Classes\BaseMath implements Classes\InterfaceMath { protected $view_name = 'Sales Tax'; private $sales_tax; private $total; public function calculate($nums) { if ($this->meetsRequired($nums)) { $c = $n...
true
2057d68c2d9166402ed8174ecb61670058ead9c7
PHP
Ritwik1999/iwp
/PHP/16_product_crud/02_better/delete.php
UTF-8
681
2.71875
3
[]
no_license
<?php require_once "database.php"; $id = $_POST['id'] ?? null; if (!$id) { header('Location: index.php'); } $statement = $pdo->prepare('SELECT * FROM products WHERE id=:id'); $statement->bindValue(':id', $id); $statement->execute(); $product = $statement->fetch(PDO::FETCH_ASSOC); if ($product) { $statement...
true
3c46a4e910c08b7bb203d13bade2fc886337a67f
PHP
werd2000/CronosGit
/LibQ/Url.php
UTF-8
4,185
3.03125
3
[]
no_license
<?php /** * Manejador de URL * * @author WERD */ class LibQ_Url { /** * Las clases de caracteres para la validación de expresiones regulares */ const CHAR_ALNUM = 'A-Za-z0-9'; const CHAR_MARK = '-_.!~*\'()\[\]'; const CHAR_RESERVED = ';\/?:@&=+$,'; const CHAR_SEGMENT = ':@&=+$...
true
928e94f91ff4aa2aee805ce5c356032d4d3266b4
PHP
jaiverMateus/back-end1
/app/Services/AgreementService.php
UTF-8
883
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Traits\ConsumeService; class AgreementService { use ConsumeService; /** * The base uri to be used to consume the authors service * @var string */ public $baseUri; /** * The secret to be used to consume the authors service * @var string ...
true
d05d676d553afba00796086499ed1ac7f3316022
PHP
vladidas/DemoLaravelJSSkills
/src/Domains/SubDistrict/Jobs/UpdateSubdistrictsJob.php
UTF-8
1,016
2.59375
3
[]
no_license
<?php namespace App\Domains\SubDistrict\Jobs; use Lucid\Foundation\Job; use Illuminate\Database\Eloquent\Model; use App\Data\Repositories\SubDistrictRepository; /** * Class UpdateSubDistrictsJob * @package App\Domains\SubDistrict\Jobs * @author Vlad Golubtsov <v.golubtsov@bvblogic.com> */ class UpdateSubDistric...
true
7611aa6bf30f579e61cdfc1ef110d3dc8faff838
PHP
bayanovea/moiai
/classes/htmlelements.php
UTF-8
11,219
2.515625
3
[]
no_license
<?php /** * Класс конструирования HTML-элементов */ class HtmlElements implements IHtmlElements { /** * Подключение стандартных файлов библиотеки bootstrap * @return string */ public function bootstrapFiles(){ $return = ' <link href="../bootstrap/css/bootstrap.css" rel="styles...
true
c1f12a68f84b5073af96155f5cfe5ae33c1f7526
PHP
fahmihdyt/propensi
/models/Barismilestone.php
UTF-8
1,781
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use app\models\Kategori; /** * This is the model class for table "barismilestone". * * @property integer $id * @property string $tanggal * @property integer $kategoriId * @property integer $siteId * * @property Kategori $kategori * @property Site $site */ class Barismil...
true
55cf78a1301f78ea4f4d861bcef8303efbaeba2c
PHP
jaimerodriguess/CursoPHP_COD3R
/exercises/variable/attrib.php
UTF-8
258
3.125
3
[]
no_license
<div class="title">Atribuições</div> <?php $title = 'Atribuições'; //$number = 10; echo $title . '<br>'; //echo $number - 1 . '<br>'; //echo $number + 3; //$number--; //echo $number++.'<br>'; //$number += 3; $number = $variableInex ?? 10; echo $number;
true
166a00ad41dc6fbe2386a0d5359a1b50bff8804c
PHP
softtt/spinkat
/parser/countries.php
UTF-8
1,528
2.546875
3
[]
no_license
<?php include('lib.php'); $manufacturers = $pdo->query('SELECT `manufacture`.`header` AS manufacturer, `countrys`.`header` AS country FROM `manufacture`, `countrys` WHERE `manufacture`.`flags` = `countrys`.`id` AND true', PDO::FETCH_ASSOC); foreach ($manufacturers as $manufacturer) { switch ($manufac...
true
0c1a5f829cf30f4385a60290782f278477c90caa
PHP
boluijten3/BASALT_PAMsoftware
/htdocs/gino-pam/php_cm/modules/model/valueobjects/library/QuestionValueObject.class.php
UTF-8
2,482
3.125
3
[]
no_license
<?php /** * Description of QuestionValueObject * * @author ben.dokter */ require_once('application/model/valueobjects/BaseValueObject.class.php'); class QuestionValueObject extends BaseValueObject { private $question; private $sortOrder; private $isActive; /** * Deze functie neemt een array...
true
af0c208d1f6e1e8f092e39035ecc3b5788cd6046
PHP
mmacia/deSymfony-Deploy
/src/deSymfony/DemoBundle/Entity/User.php
UTF-8
1,788
2.671875
3
[ "MIT" ]
permissive
<?php namespace deSymfony\DemoBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * User Model * * @ORM\Entity() * @ORM\Table(name="ds_user") * @ORM\HasLifecycleCallbacks() */ class User { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="IDENTITY") */ prot...
true
975c446732f0ddedcfaedea23268d35286912c4d
PHP
roger-russel/php-multi-image-compress
/src/Format/Gif.php
UTF-8
401
2.78125
3
[ "Apache-2.0" ]
permissive
<?php namespace PhpMultiImageCompress\Format; class Gif implements iFormat { public static function compress($full_image_path){ $compress_command = __OPT__ . "/gifsicle -O3 --lossy=80 $full_image_path -o $full_image_path.compressed"; exec($compress_command); if(is_file($full_image_path .'.compressed'...
true
b3850b61e925b60635eacd4438c73d5689989cd6
PHP
aqualaguna/laravel-iot
/mqttDaemon.php
UTF-8
1,652
2.859375
3
[]
no_license
<?php use \Mosquitto\Client as MosquittoClient; set_time_limit(0); $client = new MosquittoClient(); $client->onConnect('connect'); $client->onDisconnect('disconnect'); $client->onSubscribe('subscribe'); $client->onMessage('message'); $client->connect($argv[5], 1883, 5); //Change Accordingly. TCP/IP connection is suppo...
true
2676010a470b3f217c7343c5c463e8df9a0683c4
PHP
Gosha/Hana-base
/src/CDiceGame/CDiceGame.php
UTF-8
3,182
3.484375
3
[ "MIT" ]
permissive
<?php /** * Class for a dice session * * Encapsulates the saving and restoring of dice */ class CDiceGame { const STATE = 'gamestate'; private $state; private $dice; private $cleardice = FALSE; private $cleargame = FALSE; private $message = ""; public function __construct() { $this->state = new C...
true
a1c1fc9ad56ec2ec0a0643963f02c8b0f81c1bad
PHP
missinglink/mongrel2-php
/src/Mongrel/Dsn.php
UTF-8
1,237
3.375
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Mongrel; class Dsn { const FORMAT = '_^(?P<protocol>\w+)://(?P<ip>[\d\.\*]+):(?P<port>\d{1,5})$_'; private $protocol, $ip, $port; /** * Create a new DSN * * @param string $dsn * @throws DsnException */ public function __construct( $dsn ) { if...
true
ba223c5fc46ad0c837dd424302d8afe652e493a2
PHP
ProEngeno/invoice
/tests/Positions/PositionTest.php
UTF-8
1,909
2.75
3
[ "MIT" ]
permissive
<?php namespace Proengeno\Invoice\Test\Positions; use Proengeno\Invoice\Test\TestCase; use Proengeno\Invoice\Positions\Position; use Proengeno\Invoice\Formatter\Formatter; class PositionTest extends TestCase { /** @test **/ public function it_provides_the_position_name() { $position = new Positio...
true
c60854b816c39d1c7ef328f6a9a2bf9cc34fa3a6
PHP
Eureka-Cachet/zoomlion_bid_server
/app/Console/Commands/SeedOtherImages.php
UTF-8
2,066
2.828125
3
[ "MIT" ]
permissive
<?php namespace clocking\Console\Commands; use clocking\SysImages; use Illuminate\Console\Command; use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException; class SeedOtherImages extends Command { /** * The name and signature of the console command. * * @var string */ pro...
true
ecc7d941e8a036e39f9b382c664e001e81efad59
PHP
cnralux/EDTF
/src/PackagePrivate/Parser/Date.php
UTF-8
2,147
3.28125
3
[]
no_license
<?php namespace EDTF\PackagePrivate\Parser; use Carbon\Carbon; use InvalidArgumentException; class Date { private ?int $yearNum; private ?int $monthNum; private ?int $dayNum; private ?string $year; private ?string $month; private ?string $day; private int $season = 0; private ?int ...
true
67857d69c769ae7accfb8cbc30986ef96b1ed1c8
PHP
VigoTes/FodaPesi
/app/Http/Controllers/ElementoController.php
UTF-8
6,512
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Elemento; use App\Empresa; use App\Estrategia; class ElementoController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { /...
true
2787e6e4e2098c3ddc01cdd4b2105037b349df0d
PHP
Clever91/cleveruz-php-mvc-core
/Session.php
UTF-8
2,113
2.84375
3
[]
no_license
<?php namespace cleveruz\phpmvc; use cleveruz\phpmvc\interface\ISession; class Session implements ISession { private const KEY_FLASH = "flash_messages"; private const KEY_VARIABLE = "variables"; public function __construct() { session_start(); $this->initialDefault(); ...
true
f69839f951ff944d700dff8972eddfebfe69df69
PHP
zengfuqin/dlcj
/home/Controller/case.class.php
UTF-8
5,605
3.1875
3
[]
no_license
<?php class Cases{ public $db; public $id; public $pageSize;//每页个数 public $prvPage;//前一页 public $nextPage;//下一页 public $currentPage;//当前页 public $maxPage;//最大的页数 public $showPage;//要显示的页数 public $currentIndex;//当前索引 public $prvIndex;//前一个索引 public $nextIndex;//后一个索引 public $maxIndex;//最后的索引 public function...
true
f603a2c2476a86562e5d8789ab5e624a4b7cc802
PHP
newerton/imobi
/app/controls/authUser.class.php
UTF-8
6,486
2.59375
3
[]
no_license
<?php namespace app\controls; use app\controls\blowfish_crypt; use config\connect_db; use app\controls\session; use app\controls\reportBug; class authUser extends blowfish_crypt { private $con = null; /** * Define o tempo que o usuário ficara bloqueado após exceder o limite de tentativas de lo...
true
b7f7ada736a0ef8d179368db6eb9411033522b2d
PHP
checkmango/php-sdk
/src/HttpClient/Message/ResponseMediator.php
UTF-8
3,897
2.84375
3
[ "MIT" ]
permissive
<?php namespace Checkmango\HttpClient\Message; use Checkmango\Exception\RuntimeException; use Checkmango\HttpClient\Util\JsonArray; use Psr\Http\Message\ResponseInterface; final class ResponseMediator { /** * The content type header. * * @var string */ public const CONTENT_TYPE_HEADER = '...
true
1e23a595217827ebb01481b730a380530f8742df
PHP
BlaiseRideout/api-php
/Ordrin/Restaurant.php
UTF-8
5,180
3.109375
3
[ "MIT" ]
permissive
<?php /* Restuarant API */ class Restaurant extends OrdrinApi { function __construct($key,$base_url){ $this->_key = $key; $this->base_url = $base_url; } /** * Get a list of restaurants that deliver to a particular address. * * @param mixed $date_time Either "ASAP" or date tim...
true
a7467c0aa7ec1dc8c3ad8063d2507c24f2bc4837
PHP
nnuzaba/Databaseball
/teams_update.php
UTF-8
2,952
2.78125
3
[]
no_license
<?php session_start(); include 'db.php'; $connection = mysqli_connect(DB_HOST, DB_USER,DB_PASS,DB_NAME); if(!isset($_POST['update']) && !isset($_POST['update_info'])){ header("Location: teams.php"); } else{ if($connection && isset($_POST['update'])){ $team_id = $_POST['team_id']; $query = "SELECT * FROM Team W...
true
dafa3802215fb661f428cdbff11f510da55fee53
PHP
clem96/clement
/PHPweb/Station/PHP/VIEW/Formulaire.php
UTF-8
1,769
2.875
3
[]
no_license
<?php $action = $_GET['action']; //retoutne un obj de type Station if(isset($_GET['id'])) { $obj = StationsManager::findById($_GET['id']); } else { $obj = new Station($_POST); } //desactive les champs si en mode supprimer ou detail $affiche = ''; if($action == 'supprimer' || $action == 'detail') { $affiche = 'd...
true
988d599978659590cbfa9d65a2c175307de4ac7c
PHP
gatesbin/blog
/vendor/tech-soft/laravel/src/Agent/Platform.php
UTF-8
312
2.671875
3
[ "MIT" ]
permissive
<?php namespace TechSoft\Laravel\Agent; use TechOnline\Laravel\Type\BaseType; class Platform implements BaseType { const ANDROID = 1; const IOS = 2; public static function getList() { return [ self::ANDROID => 'Android', self::IOS => 'iOS', ]; } }
true
c1fd223ca43cd67653637f1706c1119d2f75524d
PHP
xaviranik/todo-list
/backend/api/todo/create.php
UTF-8
462
2.546875
3
[]
no_license
<?php require_once('../../../bootstrap.php'); header('Access-Control-Allow-Methods: POST'); // Getting Request $request = json_decode(file_get_contents("php://input")); if($request == null) { echo json_encode([ 'message' => 'error' ]); die(); } $todo = new Todo($db); $todo->title = $request->title; $todo->co...
true
831ddc6ae06b50abe8d7f866c41c958a31287fcd
PHP
B3thesda/my_web_blog
/admin/index.php
UTF-8
3,558
2.53125
3
[]
no_license
<?php set_include_path("../"); include("connexion_bdd.php"); if (!isset($_SESSION["login"])) { header("Location:../connexion.php"); } ?> <!DOCTYPE html> <html> <head> <meta charset = "utf-8"/> <title>Magicarpe's Blog</title> <link rel = "stylesheet" href = "../style.css" type = "text/css" /> <script type = "te...
true
4d8d2ead26e078d0da97077d245687e6cb5550b5
PHP
2dq2t/FSMProject
/vendor/duallistbox/yii2-dual-listbox/Widget.php
UTF-8
2,331
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace duallistbox\duallistbox; use yii\helpers\Html; use yii\helpers\Json; use yii\widgets\InputWidget; /** * This is just an example. */ class Widget extends InputWidget { public $nametitle; // public $title; // public $lngOptions; public $options; public $attributes; public $data...
true
89692ce8e21ca817f93bee0ff9d464bb631b29e3
PHP
uglyman2007/test0728
/PHP 6 & MySQL 6網頁資料庫程式設計演繹/Ch25/ex25-8-2.php
UTF-8
327
2.9375
3
[]
no_license
<?php // 啟動Session session_start(); echo "被害用戶的 Session ID 是 : " . session_id() . "<br />"; echo "被害用戶的 username 是 : " . $_SESSION["username"] . "<br />"; echo "被害用戶的 password 是 : " . $_SESSION["password"] . "<br />"; // 將book商品的數量設定為2000 $_SESSION["book"] = 2000; ?>
true
943cf59b0f0c0e893b5b9318e00d7840867c807f
PHP
UrosTatomir/oop
/cas7a/polovniautomobili.php
UTF-8
857
3.359375
3
[]
no_license
<?php class Polovniautomobili extends Automobili{ protected $cenapolovnogauta; public function __construct($name, $engine, $wheels, $fuel, $mk, $type, $god ,$price){ parent::__construct($name, $engine, $wheels, $fuel, $mk, $type, $god); $this->cenapolovnogauta=$price; } public functio...
true
9c780f53b3b465a74e8356a99c9644e1a0f0bf63
PHP
ocelotfiasco/order-form
/basic/models/LandingPageProduct.php
UTF-8
1,233
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "landing_page_product". * * @property integer $landing_page_id * @property integer $product_id * * @property LandingPage $landingPage * @property Product $product */ class LandingPageProduct extends \yii\db\ActiveRecord { /...
true
1016db836abfd3171d239b85d522a5c451f6f12c
PHP
peppy/pTransl
/pages/export.php
UTF-8
1,090
2.5625
3
[]
no_license
<? if ($userId != 1) exit(); $resource = $conn->queryRow("SELECT * FROM resources WHERE resource_id = 2"); $variables = $conn->queryAll("SELECT variable_id, name FROM variables WHERE resource_id = " . $resource['resource_id']); $languages = $conn->queryAll("SELECT code FROM languages", false); header("Content-Type...
true
8144cf0864b1f4abe4885657f46f75fa20ad66d7
PHP
tolan/uSIreF-Networking
/src/Server.php
UTF-8
2,578
3.03125
3
[ "MIT" ]
permissive
<?php namespace uSIreF\Networking; use uSIreF\Networking\Interfaces\{Message\IMessage, Stream\IServer}; use Closure; /** * This file defines class for networking server. * * @author Martin Kovar <mkovar86@gmail.com> */ class Server { /** * Stream adapter. * * @var IServer */ private ...
true
a19e6e68fed2b919a5cdef2128f5ba92ada99000
PHP
jonathantjm/carpool
/htdocs/adminCreateBid.php
UTF-8
2,334
2.765625
3
[]
no_license
<?php ob_start(); include("header.php"); include("adminNavBar.php"); //Initialize potential errors $emailError; $adIdError; $priceError; $row = array('Enter email', 'Enter advertisement id', 'Enter bidding price'); if (isset($_POST['submit'])) { $email = $_POST['email']; $advertisementID = $_POST['advertisem...
true
f65f717bbd3d09b8853710b41528ab9167b587c3
PHP
kriosguerra3/draDiet
/tests/traits/MakeMedicationTrait.php
UTF-8
1,387
2.671875
3
[ "MIT" ]
permissive
<?php use Faker\Factory as Faker; use App\Models\Medication; use App\Repositories\MedicationRepository; trait MakeMedicationTrait { /** * Create fake instance of Medication and save it in database * * @param array $medicationFields * @return Medication */ public function makeMedicatio...
true
844256a1e674214a765a4b22199d917a5fc53f62
PHP
RanaAshish/Tution_system
/application/models/Login_model.php
UTF-8
439
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class login_model extends CI_Model { public function checkLogin($username, $password) { $this->db->select("u.id,u.username,r.role_name,u.profile_image,u.password"); $this->db->from("users u"); $this->db->join("role r", 'r.id = u.role_id', 'left'); $this->db->where("username",...
true
399101bbf7f714139e63688500f704cca6139f0f
PHP
eshaleague/ashmurmur
/admin/launchlobbies.php
UTF-8
7,123
2.578125
3
[]
no_license
<?php if(!isset($_SESSION)) { session_start(); } include '../include/dbh.inc.php'; include'../adminInclude/checkadmin.php'; ?> <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="../css/lobbylauncher.css"> </head> <body> <div class="lobbylaunch"> <h3>League of Legends</h3> <?...
true
787e1882c817979eb0c98bd8a87a03a70c6050df
PHP
artemmm312/php_test_work
/PHP/Test_work/team.php
UTF-8
740
3.328125
3
[]
no_license
<?php class Team { private $name; private $country; public function __construct($name) { $this->name = $name; } public function __toString() { if ($this->country !== NULL) return $this->name . ' (' . $this->country . ')'; else return $this->name; } /* public function __set($name...
true
b369e8d65d2367a1f97cae8c53f0b755fc9f929d
PHP
nikic/PHP-Parser
/lib/PhpParser/Node/Stmt/Property.php
UTF-8
2,587
2.953125
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace PhpParser\Node\Stmt; use PhpParser\Node; use PhpParser\Node\ComplexType; use PhpParser\Node\Identifier; use PhpParser\Node\Name; class Property extends Node\Stmt { /** @var int Modifiers */ public $flags; /** @var PropertyProperty[] Properties */ public $props...
true
900cbfcb4f98503c627439588c4e8b42f26b58d8
PHP
shahmanish877/Khanepani-system
/modules/advance/function.php
UTF-8
3,431
2.71875
3
[]
no_license
<?php class AdvModel{ function getSingle($d) { global $con; $sql = "SELECT client_advance.*, client.name,client.meter FROM client_advance INNER JOIN client ON client_advance.cid=client.id WHERE client_advance.id = ".$d; // $sql = "SELECT * FROM client_advance where cid=".$d; $rs = mys...
true
4804e09ae1b86d8562ac6616cf0c96d449471290
PHP
oitwei/2018-08-20-demo
/Lee/2018-08-28-2.php
UTF-8
307
2.546875
3
[]
no_license
<?php if ('GET' === $_SERVER['REQUEST_METHOD']) { $account = $_GET['account']; echo '這是get<br>'; echo 'Account = ' . $account ; } if('POST' === $_SERVER['REQUEST_METHOD']) { $password = $_POST['password_p']; echo '這是POST'; echo '密碼長度為' . strlen($password); } ?>
true
adf4d2a0af1bd752a2d47c680b532381aa801154
PHP
Lercc/acobamba-backend
/database/migrations/2021_06_14_021129_create_notifications_table.php
UTF-8
1,010
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateNotificationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('notificat...
true
728fb2d01e6664e2f2ce2bb2cee2d10c567bf53c
PHP
jbowens/esprit
/core/util/LogEvent.php
UTF-8
2,515
3.328125
3
[ "WTFPL" ]
permissive
<?php namespace esprit\core\util; /** * This class describes some event that occured and should be logged. * * @author jbowens */ class LogEvent { /* The severity of the log event. See constants defined in Logger */ protected $severity; /* A string representation of the origin of the log event */ ...
true
9aaffafa3ea0e4c28a0cfb47b4c7082f7fa63b8b
PHP
Angelinsky7/laravel-authentification-jwtbearer
/src/Http/Middleware/CheckHasClaim.php
UTF-8
767
2.6875
3
[ "MIT" ]
permissive
<?php namespace Darkink\AuthentificationJwtBearer\Http\Middleware; use Closure; use Illuminate\Auth\AuthenticationException; use Illuminate\Http\Request; class CheckHasClaim { public function handle(Request $request, Closure $next, string $claim) { $claims = explode($this->getSeparator(), $claim); ...
true
d000b10e6ed5aa60d0c9b923277e90fc6e7f3ac8
PHP
axelbm/gamma
/core/util.php
UTF-8
1,502
2.734375
3
[ "MIT" ]
permissive
<?php namespace Gamma; class Util{ static $subtabid = 0; static function SublimTab($tab, $name=null, $parent='base'){ if(is_array($tab) | is_object($tab)){ self::$subtabid = self::$subtabid + 1; $id = self::$subtabid.'_SublimTab_'.$parent; $str = '[Array]'; if(is_object($tab)){ $str = '[Object: '....
true
7d50d035353236bbec0fa9ac6acc5c4b933fca1f
PHP
thegrommet/sps-connector
/tests/Document/Element/ShipmentLineTest.php
UTF-8
3,394
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Tests\Document\Element; use PHPUnit\Framework\TestCase; use SimpleXMLElement; use SpsConnector\Document\Element\OrderLineItem; use SpsConnector\Document\Element\ShipmentLine; use SpsConnector\Document\Exception\ElementInvalid; /** * ShipmentLine Element Test Suite */ class ...
true
efae4357d8ad8c5e133daf64adc1f2328e631574
PHP
rtjuansebastian/actitud_talento
/application/models/Conferencistas_model.php
UTF-8
7,452
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Modelo del usuario de la aplicación * * Este modelo realiza las consultas sobre los usuarios a la base de datos * y retorna los resultados al controlador. * * @package AHA * @autor Juan Sebastián Rodríguez <rtjuansebastian@gmail....
true
5d976cc1407727ee03ead62a51788d94ade7fa06
PHP
mSprunskas/pG9XI7QadGOK
/src/ServiceFeeProvider.php
UTF-8
766
2.890625
3
[]
no_license
<?php namespace SpaceX\App; class ServiceFeeProvider { private CurrencyManager $currencyManager; public function __construct() { $this->currencyManager = new CurrencyManager(); } public function getServiceFee(float $sum, string $currency): float { $ratio = $this->currencyMana...
true
ce319204849900851eb8f256b898126c1242cbd2
PHP
marcusdmartins/mapping_api
/controller/SubRotinaController.php
UTF-8
3,160
2.53125
3
[]
no_license
<?php include_once ('./dao/SubRotinaDAO.php'); include_once ('./model/SubRotinaModel.php'); include_once ('./model/RotinaModel.php'); include_once ('AcessoController.php'); class SubRotinaController { protected function view($nome) { include_once ($nome . '.html'); } protected function novo($data) { $objData...
true
e25e0fb01057506c269982586b101c404b743dd4
PHP
appkr/l5code
/app/Http/Controllers/PasswordsController.php
UTF-8
3,098
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class PasswordsController extends Controller { /** * Create new password controller instance. */ public function __construct() { $this->middleware('guest'); } /** * Display the form to request a password re...
true
7c3a26333ebc45353e0ba9c3f67681948b3043bd
PHP
JOTAI/DB_TRABAJADORES
/require/est_civil_class.php
UTF-8
1,039
2.671875
3
[]
no_license
<?php require_once ("../require/conexion_class.php"); class est_civil { private $_conexion; public function __construct (){ $this->_conexion = new conexion; } public function ver_estado_civil ($id_est_civil){ $sql = "SELECT * FROM est_civil WHERE id_est_civil = '".$id_est_civil."' "; $this->_conexion->e...
true
84ca97d2a09f9e5c2aef9ec7358541dfba277dcf
PHP
iesdonana/mueveme-marchenabenitez
/models/Noticias.php
UTF-8
2,970
2.5625
3
[]
permissive
<?php namespace app\models; /** * This is the model class for table "noticias". * * @property int $id * @property string $titulo * @property string $noticia * @property string $link * @property int $usuario_id * @property int $categoria_id * @property string $created_at * * @property Comentarios[] $comenta...
true
7ab359adfc033ac7f0d7ad5ef5584e9fda26aad1
PHP
csabex94/find-recipes
/app/Http/Livewire/AutoCompleteHandler.php
UTF-8
2,723
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire; use Livewire\Component; use Illuminate\Support\Facades\Http; class Recipe { function __construct($id, $title, $servings, $image, $readyIn, $sourceTitle, $sourceUrl, $healthScore, $glutenFree) { $this->id = $id; $this->title = $title; $this->servings = $s...
true
a1dc49fc5684f4500c1653c3342da59b6959e568
PHP
MadhiJay/lela
/delete.php
UTF-8
686
2.859375
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "lela"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } // sql to delete a r...
true
22c6866cf052ec50749260b6b7da821ee0ccca9d
PHP
shahednur/ecommerce
/app/Http/Resources/Address/AddressResource.php
UTF-8
571
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Resources\Address; use Illuminate\Http\Resources\Json\Resource; class AddressResource extends Resource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { ...
true
11d81f506b34675cb9b2cea4a38d87140be9311f
PHP
phpbench/phpbench
/lib/Expression/Lexer.php
UTF-8
3,823
2.875
3
[ "MIT" ]
permissive
<?php namespace PhpBench\Expression; final class Lexer { /** * @var string */ private $pattern; /** * @var array */ private $unitNames; private const PATTERN_NAME = '(?:[a-z_\/]{1}[a-z0-9_\/]*)'; private const PATTERN_FUNCTION = '(?:[a-z_\/]+\()'; private const PATTER...
true
69ed8ff5cb48f77b59c71691f5377c7e7a427057
PHP
nicklvsa/MathGame
/api/index.php
UTF-8
1,339
2.5625
3
[]
no_license
<?php session_start(); require_once 'connection.php'; require_once 'database.php'; if (isset($_POST)) { print_r(parse($_POST)); } function parse($vars = array()) { $connection = new Connection("mysql:host=localhost;dbname=DATABASE_NAME;charset=utf8", "DATABASE_USERNAME", "DATABASE_PASSWORD"); $db = new DB($c...
true
76ef26a7abbf29ac291ed34cf4114406af683e36
PHP
seriy/api-skeleton
/src/Domain/Output/UnblockUserOutput.php
UTF-8
275
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Domain\Output; use App\Domain\Entity\UserInterface; final class UnblockUserOutput implements OutputInterface { public $user; public function __construct(UserInterface $user) { $this->user = $user; } }
true
826a314f5d666787a4c3d9253e1848beec921e1a
PHP
wang-jiyu/weixin
/src/Mirror/ApiBundle/Util/Helper.php
UTF-8
6,149
2.59375
3
[]
no_license
<?php namespace Mirror\ApiBundle\Util; class Helper { public static function getc($arr, $param, $default = '', $unexpected = '') { if (!isset ($arr) || !$arr) { return $default; } else { if (!isset ($arr [$param])) { return $default; } else { ...
true
3feb0770aa40df4facc6680e19dece2ec7b6c4e6
PHP
piyushsingh1994/PHP-assignments-and-exercises
/exercise8.php
UTF-8
157
2.53125
3
[]
no_license
<?php $email='mail@example.com'; if (filter_var($email,FILTER_VALIDATE_EMAIL)) { echo '"' .$email. '=Valid'; } else { echo '"'.$email. '=invalid'; } ?>
true
a602730a1bc39e4aeca04bc127fe21748e5194a3
PHP
naoyukik/php-documents
/ja/ide-phpstub/array_column.php
UTF-8
443
2.71875
3
[]
no_license
/** * (PHP 5 >= 5.5.0, PHP 7)<br/> * @link http://php.net/manual/en/function.array-column.php * @param array $input [optional] <p> TODO DESCRIPTION </p> * @param mixed $column_key [optional] <p> TODO DESCRIPTION </p> * @param mixed $index_key [optional] <p> TODO DESCRIPTION </p> * @return array 入力配列の単一のカラムを表す値の配列...
true
72cb1fd85fc2618e71e7a0acc3c4e7a6a36330ef
PHP
PeaGo/travelApi
/helpers/table.php
UTF-8
2,122
2.5625
3
[]
no_license
<?php /** * FVN-extension check class * * @package FVN-extension * @author Vuong Anh Duong * @link http://freelancerviet.net * @copyright Copyright (C) 2011 - 2012 Vuong Anh Duong * @version $Id: tourhelper.php 105 2012-08-30 13:20:09Z quannv $ */ defined('_JEXEC') or die('Restricted access'); class JBTableHe...
true
91c361ac8697c75b02c288fd8bb39f5b18d99521
PHP
davidsonalencar/yii2-basic
/models/Direito.php
UTF-8
2,870
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use app\models\queries\DireitoQuery; /** * This is the model class for table "direito". * * @property integer $id_direito * @property integer $id_direito_pai * @property string $icon * @property string $label * @property string $url * @property integer $posicao * @proper...
true
e21d9dad8868bf6ba336f10af706ce03d79523d6
PHP
heikipikker/ctf2
/check.php
UTF-8
1,038
2.8125
3
[]
no_license
<?php include("inc/common.php"); // Response should be JSON, provide correct header header('Content-Type: application/json'); //Validate SHA256 Hash $sha256 = filter_input(INPUT_GET, 'sha256', FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>"/^[A-Fa-f0-9]{64}$/"))); $response = ar...
true
155b6804c2c9c863bdd6429ff53d184100baf357
PHP
Senubo/Senuboapitest
/runsqlquery.php
UTF-8
2,412
3.03125
3
[]
no_license
<?php # This function reads your DATABASE_URL config var and returns a connection # string suitable for pg_connect. Put this in your app. function pg_connection_string_from_database_url() { extract(parse_url($_ENV["DATABASE_URL"])); // echo "user=$user password=$pass host=$host dbname=" . substr($path, 1) . " ...
true
c72ae04c09196a818f6b827fc7d648a4d226f1a0
PHP
dante111zxc/lich-am-duong
/Lunar2solar.php
UTF-8
15,267
3.046875
3
[]
no_license
<?php class Lunar2solar { public function INT( $d ) { return floor( $d ) ; } public function getLunarFromDay($date = null){ $day = date('d',strtotime($date)); $month = date('m',strtotime($date)); $year = date('Y',strtotime($date)); $arr = array_slice($this->conv...
true
1749a2e1a8f82b2eb219497756045eb05dc7a09b
PHP
ASPIRINpp/zombierush
/tests/currency_deceminal.php
UTF-8
237
3.171875
3
[]
no_license
<?php $count = 1000000; $sum1 = 5.6; $sum2 = 7.8; $time_start = microtime(true); for ($i=0;$i<$count;$i++) { $r = bcdiv($sum1,$sum2,2); } $time_end = microtime(true); $time = $time_end - $time_start; echo "Deceminal: $time sec.\n";
true
5e4918a0f1b39e165378892bb72ff3162a1af694
PHP
Daxt3r/web-scraping
/htmlHandler.php
UTF-8
2,823
3.171875
3
[]
no_license
<?php class htmlHandler { //file_get_contents('https://www.hr3.de/playlist/playlist_hrthree-100~_date-');the html returned from the following url //static URL https://www.hr3.de/playlist/playlist_hrthree-100~ //URL to create ~_date-2021-04-07_hour-0.html private $url = "https://www.hr3.de/playlist/playlist_hrthre...
true
e080dac104483ddbab0e270e51a0cbc5639acae4
PHP
countll/shineisp
/application/models/Taxes.php
UTF-8
4,979
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Taxes * * This class has been auto-generated by the Doctrine ORM Framework * * @package ShineISP * * @author Shine Software <info@shineisp.com> * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ class Taxes extends BaseTaxes { /** * grid * cre...
true
1cabd6211e4979d944e318d30f1f01a7b0ae7dff
PHP
thomasnordahl-dk/tester
/src/Runner/Timer/Timer.php
UTF-8
1,681
3.59375
4
[]
no_license
<?php namespace ThomasNordahlDk\Tester\Runner\Timer; use RuntimeException; /** * Used to measure time passed in microseconds. */ class Timer { /** * @var float */ private $start_time = 0.0; /** * @var float */ private $stop_time = 0.0; /** * @var bool */ priv...
true
2428fb6e7c5449c02d7a4e0dd2088b100394eb69
PHP
ipinid613/PHP_study
/ch04/cookie_check.php
UTF-8
776
2.53125
3
[]
no_license
<?php // cookie_setcookie&login.php 실행하여 쿠키 생성 -> 클라이언트 로컬에 쿠키 저장됨 -> 따라서 cookie_check.php를 실행해서 쿠키를 확인하면 // 클라이언트 로컬에 저장되어있는 쿠키가 유효하므로 불러와서 사용이 가능함. session_start(); print $_SESSION['username']."님의 방문을 환영합니다."; // $_SESSION은 전역변수이므로 다른 php파일에서 선언한 $_SESSION['username'] //이 이 php 파일에서도 동일하게 불러와지는 것...
true
d5572c92c6a687f604b780fe0d68830f407415fe
PHP
dsamblas/vending_machine
/vendingmachine_app/src/domain/Output/OutputPrinter.php
UTF-8
219
2.828125
3
[]
no_license
<?php namespace Domain\Output; use Symfony\Component\Console\Output\OutputInterface; interface OutputPrinter { public function print(OutputInterface $output): void; public function add(string $msg): void; }
true
6a212e0a107a2388d5a3749a97f1495390597d91
PHP
gorgitaskovski/gorgitaskovski
/adresar/index.php
UTF-8
5,061
2.578125
3
[]
no_license
<?php include 'session.php'; if (!isset($_SESSION['account'])) { header('location: login.php'); exit; } include 'db.php'; $account = $_SESSION['account']; $limit = 3; $offset = 0; $page = filter_input(INPUT_GET, 'page'); if (!is_numeric($page) || $page <= ...
true
c4eb97e69e23532ef5e13780949a44ace52c1810
PHP
marlaaragao/sdd-ufg
/src/src/Lib/Distribution/Distribution.php
UTF-8
2,109
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Lib\Distribution; use Cake\ORM\TableRegistry; class Distribution { public static function generateDistribution($clazzes, $teachers) { foreach($clazzes as $clazz){ if(!empty($clazz->teachers)){ continue; } $teachersByKnowledge = self::getTeacherByKnowledge($clazz['subject'][...
true
267a40ac23b4f1b883dadfcc5c639ae21da9f7ed
PHP
Iceiscomingtoeve/icm
/web/inc/fonctions.inc.php
UTF-8
317
3.296875
3
[]
no_license
<?php /** * Allows to print any var properly.<br> * Can also stop PHP execution script if required. * * @param mixed $var variable to print * @param boolean $die stop php script (false by default) */ function debug($var, $die = false) { echo "<pre>" . print_r($var, true) . "</pre>"; if ($die) { die; } }
true
df1be710fdbd8f4e351a3d11be2154fa01338cc5
PHP
phantom0212/vote
/app/Http/Requests/UserRequest.php
UTF-8
1,151
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use App\Http\Requests\Request; class UserRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules t...
true
fad791f0151ebed928f594ba0be72bfb3fcc17cb
PHP
freddiegar/api-pro-jet-zion
/app/Contracts/Repositories/UserRepository.php
UTF-8
1,259
2.9375
3
[ "MIT" ]
permissive
<?php namespace App\Contracts\Repositories; use App\Models\User; /** * Interface UserRepository * @package App\Contracts\Repositories */ interface UserRepository { /** * @return User */ static public function model(); /** * @param array $user * @return array */ static pub...
true
911d02955304a2302940ada2685113cb42f7f99a
PHP
zhxia/nspf
/system/spf/core/logger/ILogger.php
UTF-8
424
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zhxia84@gmail.com * Date: 2016/1/16 * Time: 11:13 */ namespace Spf\Core\Logger; /** * Interface ILogger * @package Spf\Core\Logger */ interface ILogger { function __construct($priority); function log(); function debug(); funct...
true
5822cfa83514af181d5d4e51a6622051c9564880
PHP
IMDC/TerpTubeSymfony
/src/IMDC/TerpTubeBundle/Form/DataTransformer/MediaToIntTransformer.php
UTF-8
1,100
2.578125
3
[ "MIT" ]
permissive
<?php namespace IMDC\TerpTubeBundle\Form\DataTransformer; use IMDC\TerpTubeBundle\Entity\Media; use Symfony\Component\Form\DataTransformerInterface; use Symfony\Component\Form\Exception\TransformationFailedException; use Doctrine\Common\Persistence\ObjectManager; class MediaToIntTransformer implements DataTransforme...
true
feef5dc259e82782617af6c407a453acb29a9a04
PHP
lgandelin/projectsquare-payment-core
/tests/Webaccess/ProjectSquarePaymentTests/Repositories/InMemory/InMemoryAdministratorRepository.php
UTF-8
902
2.921875
3
[]
no_license
<?php namespace Webaccess\ProjectSquarePaymentTests\Repositories\InMemory; use Webaccess\ProjectSquarePayment\Entities\Administrator; use Webaccess\ProjectSquarePayment\Repositories\AdministratorRepository; class InMemoryAdministratorRepository implements AdministratorRepository { public $objects; public fu...
true
800809cfe34fa0303ba5686f12be65e823e30089
PHP
jpcamba/attrition
/app/database/migrations/2016_03_13_143129_add_lastprogramid_to_studentdropouts_table.php
UTF-8
1,012
2.546875
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddLastprogramidToStudentdropoutsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('studentdropouts', function(Blueprint $table) { // $ta...
true
a00eb73eb325ec47d1e538f51c902865d3d37774
PHP
mwangaben/design_patterns
/src/Observer/FacebookNotification.php
UTF-8
765
2.90625
3
[]
no_license
<?php namespace Umbijani\Observer; use SplObserver; use SplSubject; class FacebookNotification implements SplObserver { protected $subject; /** * Receive update from subject * @link http://php.net/manual/en/splobserver.update.php * @param SplSubject $subject <p> * The <b>SplSubject</b> n...
true