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
ea09fa5f52bb381a1d10f4c0935b8c95bd8d5f0a
PHP
cenggel/smart-ims
/protected/extensions/form/views/tableLayout.php
UTF-8
550
2.546875
3
[]
no_license
<?php $rowcnt = 0; foreach ( $displayAttribes as $key => $attr ) { $attrName = $attr; if (is_array ( $attr ) && empty ( $attr ['name'] )) { $attr ['name'] = $key; $attrName = $key; } // print_r($attr); // echo "<br>".$attr['name']." name is <br>"; $error = $form ? $form->error($model,$at...
true
2d48dcb406fb71e4062de6b73ef80b6b2a86be80
PHP
soundpit/westcoastauto
/add_salespersons.php
UTF-8
2,973
2.546875
3
[]
no_license
<?php $page_title = "Add Salesperson | West Coast Auto"; include('templates/header.php'); include('scripts/connection.php'); if (isset($_GET['id'])){ $heading = "Edit Salesperson"; $reset = '<a class = "goback" href="view_salesperson.php">Cancel</a>'; $submit = '<input type="submit" value="Update Sal...
true
1ce9a385645975501bb6775c58291b11cfd3e957
PHP
phpro/soap-client
/src/Phpro/SoapClient/CodeGenerator/Rules/TypeMapRule.php
UTF-8
2,026
2.859375
3
[ "MIT" ]
permissive
<?php namespace Phpro\SoapClient\CodeGenerator\Rules; use Phpro\SoapClient\CodeGenerator\Context\ContextInterface; use Phpro\SoapClient\CodeGenerator\Context\PropertyContext; use Phpro\SoapClient\CodeGenerator\Context\TypeContext; /** * Class TypeMapRule * * @package Phpro\SoapClient\CodeGenerator\Rules */ class...
true
9d026ccf63a922f7d5fd2d288337d82c1ab4685f
PHP
peterkorn666/opc-repo
/opc/mails/admin/sistema/objetos/class.envios_datos.php
UTF-8
3,462
2.78125
3
[]
no_license
<?php // ********************** // CLASS DECLARATION // ********************** class envios_datos extends objeto { // class : begin // ********************** // ATTRIBUTE DECLARATION // ********************** // ********************** // CONSTRUCTOR METHOD // ********************** function envios_d...
true
5c865541d359d5ce0388d5895df172fee742b19e
PHP
mosszhpolyu/Pipeline
/prepareData.php
UTF-8
5,457
2.96875
3
[ "MIT" ]
permissive
<?php // include class // specify class path require('./class/PHPExcel/Reader/Excel2007.php'); // database connection file path require('./config.php'); // create Job Id include('./include/createJob.php'); // preapre to read Excel file $xlsxReader = PHPExcel_IOFactory::createReader('Excel2007'); $xlsxReade...
true
974f60b3bcbf68501d7bb70ff8204394f145df9e
PHP
cleversontrujilu/phalcon-micro-foundry-middleware
/app/app.php
UTF-8
2,177
2.53125
3
[]
no_license
<?php /** * Local variables * @var Phalcon\Di\FactoryDefault $DI */ use Phalcon\Mvc\Micro; use Phalcon\Mvc\Micro\Collection as MicroCollection; use Phalcon\Events\Manager as EventsManager; use Middleware\CacheMiddleware; use Middleware\RequestMiddleware; use Middleware\ResponseMiddleware; $app = new Micro($DI);...
true
56db082c72deb03057ea953d0b5c540b6c3d2521
PHP
hatallika/gb_PHP_base
/lesson8/models/feedback.php
UTF-8
3,736
2.625
3
[]
no_license
<?php function getALLFeedback($id) { $sql = "SELECT id, name, feedback FROM feedback WHERE product_id = {$id} ORDER BY id DESC"; return getAssocResult($sql); } function addFeedBack($name, $feedback, $id_product) { $id_product = (int)$id_product; $name = strip_tags(htmlspecialchars(mysqli_real_escape_st...
true
55207acdf9873300feed5cac5c6c2a1d5f30d057
PHP
tochka-developers/jsonrpc
/src/Middleware/AccessControlListMiddleware.php
UTF-8
2,610
2.75
3
[ "MIT" ]
permissive
<?php namespace Tochka\JsonRpc\Middleware; use Tochka\JsonRpc\Contracts\AuthInterface; use Tochka\JsonRpc\Contracts\JsonRpcRequestMiddlewareInterface; use Tochka\JsonRpc\DTO\JsonRpcServerRequest; use Tochka\JsonRpc\Standard\DTO\JsonRpcResponse; use Tochka\JsonRpc\Standard\Exceptions\Additional\ForbiddenException; use...
true
06161abd48b9d097854a1cbc902527ce97d2ca1f
PHP
jp1971/MercuryTransactionServicesPHP
/MercuryTSClient.php
UTF-8
2,889
2.53125
3
[]
no_license
<?php /* Copyright 2013 JP1971 (email : jameson@jp1971.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be u...
true
2f47f3ef350c55bab4e750343a0f8f1d81397416
PHP
elyesBenNejma45/GalleryProject
/admin/includes/db_object.php
UTF-8
3,327
2.9375
3
[]
no_license
<?php class Db_object { public static function find_all(){ return static::findQuery("SELECT *FROM ".static::$db_table); } public static function find_by_id($id){ $res = static::findQuery("SELECT *FROM " .static::$db_table." WHERE id = $id LIMIT 1"); return !empty($res) ? array_shift($res) :false;...
true
d85a2441d86fe0aaec21f067ee7b4e7592757612
PHP
leowang2020/RestaurantMVC_DB
/views/food_view.php
UTF-8
1,910
2.765625
3
[]
no_license
<?php $hasFood = isset($food); $hasCategories = isset($categories); if ($hasFood === false || $hasCategories === false) { echo '<h1>views/food_list_view.php needs $food</h1>'; exit(); } ?> <h1>Searching Your Food</h1> <div id="sidebar"> <h1>Categories</h1> <ul class="nav"> <!-- display links fo...
true
3a6c696485f4d64d560702db8b444b71f7f18250
PHP
alec-a/laravel-app
/app/Http/Controllers/issueController.php
UTF-8
2,923
2.515625
3
[]
no_license
<?php namespace Lakeview\Http\Controllers; use Lakeview\Issue; use Illuminate\Http\Request; class issueController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function __construct() { parent::__construct(); $this->pageData-...
true
b2f757d1ba0471a3f1e9227fee6e1f2602ff6a03
PHP
arvinkent18/laravel-vue-spa
/app/Actions/Auth/RegisterAction.php
UTF-8
505
2.515625
3
[]
no_license
<?php namespace App\Actions\Auth; use App\Role; use App\User; class RegisterAction { public function run($request) { $role = Role::adminRole()->first(); $user = User::create([ 'name' => $request['name'], 'email' => $request['email'], 'password' => $request...
true
f5f1b165de1bdf9c773d494f341f5162bc9c4dd9
PHP
tekod/AccentPHP
/Localization/Loader/DatabaseLoader.php
UTF-8
2,787
2.796875
3
[ "MIT" ]
permissive
<?php namespace Accent\Localization\Loader; /** * Part of the AccentPHP project. * * Localization loader class * * @author Miroslav Ćurčić <office@tekod.com> * @license MIT License * @link http://www.accentphp.com */ use \Accent\Localization\Loader\BaseLoader; class DatabaseLoader extends Base...
true
b6647fe1eaefc746901eabc24c97580d58c19a58
PHP
VKoptev/olap
/src/OLAP/Event/Ruler.php
UTF-8
1,520
2.90625
3
[ "MIT" ]
permissive
<?php namespace OLAP\Event; class Ruler { /** * @var Ruler */ static private $instance = null; /** * @var array */ private $listeners = []; protected function __construct() { // do nothing } /** * @return Ruler */ static public function getIns...
true
36ab85f4e2c4a7135ef2795c49caf7d7d4528a96
PHP
Funcke/fmvc-cli
/generate.php
UTF-8
368
2.625
3
[]
no_license
<?php /** * Control structure to run the entity generation cycle */ if(sizeof($argv) >= 4) { switch($argv[2]) { case 'controller': require_once('generate/controller.php'); break; case 'model': require_once('generate/model.php'); break; } } else { ech...
true
c805eb7245f072d85a565de617060c46d05ddd72
PHP
webignition/php-basil-compilable-source-factory
/src/CallFactory/ElementIdentifierCallFactory.php
UTF-8
1,248
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace webignition\BasilCompilableSourceFactory\CallFactory; use webignition\BasilCompilableSourceFactory\ArgumentFactory; use webignition\BasilCompilableSourceFactory\Model\Expression\ExpressionInterface; use webignition\BasilCompilableSourceFactory\Model\MethodArguments\MethodArgu...
true
4ee3ce2bb98bd312c3dbb7829a8d2f99ae784bd0
PHP
SomNarawan/Equipment
/ProjectSE/controllers/CheckoutController.class.php
UTF-8
1,245
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Diiar * Date: 24/1/2562 * Time: 15:07 */ class checkoutController { public function handleRequest(string $action="index", array $params) { switch ($action) { case "cal": $this->$action($params); break; ca...
true
7ad79c9d896547ba00bbaeab834dfc672d0d3c87
PHP
iuthub/lab-7-Khumoyiddin
/blog/register.php
UTF-8
2,606
2.75
3
[]
no_license
<?php include('header.php'); $username = ''; $pwd = ''; $confirmPwd = ''; $name = ''; $email = ''; $usernamePattern='/^\w{4,}$/i'; $pwdPattern='/^\w{4,}$/i'; $namePattern='/^[a-z]+( [a-z]+)*$/i'; $emailPattern='/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i'; $isValid = TRUE; $isOk = TRUE; if($isPost) { ...
true
3f968d31231e1daf6178b1aef447cc0a27d6c60a
PHP
Valantir007/ForumBundle
/Entity/Topic.php
UTF-8
815
2.609375
3
[]
no_license
<?php namespace Valantir\ForumBundle\Entity; use Valantir\ForumBundle\Model\Topic as BasicTopic; use \DateTime; /** * Entity of Topic * * @author Kamil Demurat */ class Topic extends BasicTopic { /** * {@inheritdoc} */ public function __construct() { parent::__construct(); i...
true
d17c4f32999b7723d71150183843c4d37f2f030e
PHP
miles003/FAMILY_TREE
/app/Models/User.php
UTF-8
4,546
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Sanctum\HasApiTokens; class User extends Authenticatable { use HasApiToken...
true
0fd6c7ecd6eaee28b104273b533bf801a470044d
PHP
pontocom/LIGE_PED_2017
/PIM/introduz.php
UTF-8
635
2.578125
3
[]
no_license
<?php session_start(); /* Ligar à BD */ try { $db = new PDO("mysql:host=127.0.0.1;dbname=pim_lige;charset=utf8mb4", "root", "bitnami"); } catch (Exception $e) { die("Ocorreu um erro na ligação à BD!!!"); } // preparar a query $sql = $db->prepare("INSERT INTO contacto (nome, morada, telefone, email, photo, id_...
true
c832200f54a38023ae4edd0a5102c8bbbe1c3345
PHP
gdmgent-1718-webdev1/oefening-04-kevileem2
/index.php
UTF-8
191
3.140625
3
[]
no_license
<?php function type($watIs){ $watIs = gettype($watIs); return "De waarde is {$watIs}.<br>"; } echo type('lol'); echo type(true); echo type(1.3); echo type(3); echo type(['lol']); ?>
true
827496be44e2a82c9e1ca6e3b019d214d270bc3f
PHP
DigitalFeonix/aoc2018
/Day 04/part2.php
UTF-8
1,363
3
3
[]
no_license
<?php $input = file_get_contents('./input'); $inputs = explode("\n", trim($input)); // convert to chronological order sort($inputs); $guards = []; $times = []; $guard_id = null; $sleep = null; foreach ($inputs as $log) { preg_match('/\[(.*)] (.*)/', trim($log), $matches); $ts = $matches[1]; $action = $...
true
eaa9073eb1ab7bf02d6ef658d55bbd3e48bb6b97
PHP
mithunmo/phpsample
/classes/mofilm/user/event/favourites.class.php
UTF-8
5,493
2.796875
3
[]
no_license
<?php /** * mofilmUserEventFavourites * * Stored in mofilmUserEventFavourites.class.php * * @author Dave Redfern * @copyright Mofilm (c) 2009-2010 * @package mofilm * @subpackage mofilmUserEventFavourites * @category mofilmUserEventFavourites * @version $Rev: 20 $ */ /** * mofilmUserEventFavourites Clas...
true
f14e0ee28d639b510b24544726d3d7e12a3a4847
PHP
ninja4826/stress
/src/Model/Entity/Manufacturer.php
UTF-8
553
2.546875
3
[]
no_license
<?php namespace App\Model\Entity; use App\Model\Entity\AppEntity as Entity; /** * Manufacturer Entity. */ class Manufacturer extends Entity { protected function _getDisplayName() { return $this->manufacturer_name; } protected function _getDisplayField() { return 'manufacturer_n...
true
bfb65b3406316b983438bb5935b6d40694a03eec
PHP
sonnilion/SceneCreator
/fileList.php
UTF-8
733
3.125
3
[ "MIT" ]
permissive
<?php // open the current directory $dhandle = opendir('./scenes'); // define an array to hold the files $files = array(); if ($dhandle) { // loop through all of the files while (false !== ($fname = readdir($dhandle))) { // if the file is not this file, and does not start with a '.' or '..', // then...
true
0fe7dd5f35448bc4af0462e8de218182c0d9598c
PHP
wushuo7/CSE330_ICA
/fall2017-ica-452666/ica-452666/submit-pet.php
UTF-8
2,766
2.703125
3
[]
no_license
<!DOCTYPE html> <head> <meta charset="utf-8"/> <title>Story </title> <link rel="stylesheet" type="text/css" href="pet-style.css" /> </style> </head> <?php session_start(); $username = $_POST['username']; if(!hash_equals($_SESSION['...
true
40236fc8a0c8d316665c634e87aa297868abf4da
PHP
robertocmt/Factory
/shop/creategame.php
UTF-8
2,199
2.59375
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=utf-8" /> <title>Insert Data</title> <link rel="stylesheet" type="text/css" href="c...
true
5ff10e1c4702bd3af1354e62064291bd31d7e863
PHP
electric-eloquence/fepper-drupal
/backend/drupal/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php
UTF-8
2,147
2.5625
3
[ "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "MIT" ]
permissive
<?php namespace Drupal\Core\Field\Plugin\Field\FieldType; use Drupal\Core\Field\FieldDefinitionInterface; use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\TypedData\DataDefinition; /** * Defines the 'float' field type. * * @FieldType( * id = "float...
true
180e1235078c0aabaa058174d504998be0023eaa
PHP
SherilyShieh/Ding
/view/interface/register.php
UTF-8
3,900
2.71875
3
[]
no_license
<?php header('Access-Control-Allow-Origin:*'); header('Content-type: application/json'); Include_once "./common.php"; // get request $body = file_get_contents('php://input'); $request = json_decode($body); // init connection Global $user; Global $password; Global $db; Glo...
true
8377a17433d49331907d1f067c11e68a885a912f
PHP
Hajewiet/Nimbly-Framework
/core/lib/markdown/markdown.php
UTF-8
480
3.0625
3
[ "BSD-2-Clause-Views" ]
permissive
<?php require_once("Parsedown.class.php"); /** * @doc `[markdown _hello_ markdown **world**]` converts markdown syntax to html: _hello_ markdown **world** */ function markdown_sc($params) { $txt = implode(' ', $params); return markdown_to_html($txt); } function markdown_to_html($md_text) { if (empty($md_t...
true
2c8e870c9d9c143002f455d38029475aa6d65a83
PHP
lkrms/pretty-php
/tests/fixtures/out.03-tab/3rdparty/php-doc/language/control-structures/match/005.php
UTF-8
144
2.71875
3
[ "MIT" ]
permissive
<?php $condition = 5; try { match ($condition) { 1, 2 => foo(), 3, 4 => bar(), }; } catch (\UnhandledMatchError $e) { var_dump($e); } ?>
true
23c010dbf7bfe28a36790b42341424e7cfca8193
PHP
xxgail/LeetCode-PHP
/BinarySearch/m-34-searchRange.php
UTF-8
1,438
3.859375
4
[]
no_license
<?php /** * @Time: 2020/7/22 15:39 * @DESC: 34. 在排序数组中查找元素的第一个和最后一个位置 * 给定一个按照升序排列的整数数组 nums,和一个目标值 target * 找出给定目标值在数组中的开始位置和结束位置。 * 你的算法时间复杂度必须是 O(log n) 级别。 * 如果数组中不存在目标值,返回 [-1, -1]。 * * 示例 1: * 输入: nums = [5,7,7,8,8,10], target = 8 * 输出: [3,4] * * 示例 2: * 输入: nums = [5,7,7,8,8,10], target = 6 * 输出: [...
true
437af8e0ea1ecda49b1095ec8549b8dd67edd644
PHP
Ramankang/Portfolio
/projects/cdi_college/include/register.php
UTF-8
680
2.8125
3
[]
no_license
<?php include_once 'connection.php'; if (isset($_POST["register"])) { // print_r($_POST); $fname=$_POST['fname']; $lname=$_POST['lname']; $dob=$_POST['dob']; $gender=$_POST['gender']; $email=$_POST['email']; $address=$_POST['address']; $department=$_POST['department']; $sql = "INSERT INTO students...
true
60bc4728fa339b185f4220d151d6fad8e5aae619
PHP
vladddev/tg_widget
/backend/include/amoCrm/actions/fields.php
UTF-8
1,390
2.59375
3
[]
no_license
<?php namespace amoCrm\actions\fields; class NewField { public $code; public $type; public $name; public $is_api_only; public static function CreateSimpleCustomField($fieldId, $value, string $fieldCode = null) { $rv = [ 'values' => [ [ 'v...
true
29e8d5dec8c2153783891e293b9804e049f1d4eb
PHP
wp-headless/authentication
/src/Models/AccessToken.php
UTF-8
1,939
2.765625
3
[ "MIT" ]
permissive
<?php namespace WPHeadless\Auth\Models; use Carbon\Carbon; use Carbon\CarbonImmutable; use WPHeadless\Auth\Services\Database; use League\OAuth2\Server\Entities\AccessTokenEntityInterface; use League\OAuth2\Server\Entities\Traits\AccessTokenTrait; use League\OAuth2\Server\Entities\Traits\EntityTrait; use League\OAuth2...
true
320cade8edcc6660585b0d407f523e862c111daf
PHP
fcocascales/CursoServidorWebFTN2017
/php2/dia07/funciones.php
UTF-8
1,238
3.984375
4
[]
no_license
<?php // dia07/funciones.php function enlace($title, $link) { return "<a href=\"$link\">$title</a>"; } function resaltado($texto) { return "<strong>$texto</strong>"; } function lista(...$params) { return listaArray($params); } function listaArray($array) { $html = "<ul>"; // Lista de viñe...
true
3c0365a6a3b7a3de013ef5ccf09a8c0d4954d1b0
PHP
cameroncondry/toolbox
/php/cbc-validator/src/CBC/Data/Validation/Validator.php
UTF-8
3,064
3.140625
3
[]
no_license
<?php namespace CBC\Data\Validation; class Validator { /** * @var string */ protected $rule = ''; /** * @var array */ protected $rules = []; /** * @var string */ protected $message = 'This field is invalid.'; /** * @var boolean */ protected $is_valid = true; /** * Validates the constra...
true
1aadb0de605a6eed43a9ecfd88610171246d32dd
PHP
sam880444/myphp
/cartAdvPDO/bookMaintain/test.php
UTF-8
1,420
2.703125
3
[]
no_license
<?php //header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); //header("Cache-Control: no-cache, must-revalidate"); //session_cache_limiter('nocache'); session_start(); require_once('../Connections/conn.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm...
true
a698c2ad853369dc5131663199ade4d737ca38c0
PHP
avicse1/fourtek_test
/app/Library/Helper.php
UTF-8
605
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Library; use App\User; class Helper { public static function isUserLoggedIn() { $session_token = session()->get('session_token', null); if(!$session_token) { return false; } $user = User::where('session_token', $session_token)->first(); ...
true
7b27306ad3bc53a6ac45084193e5dd2a5e4a5509
PHP
jgswift/filtratr
/src/Query/Reduce.php
UTF-8
782
2.875
3
[ "MIT" ]
permissive
<?php namespace filtratr\Query { use filtratr\Interfaces\AggregateStatement; class Reduce extends Map implements AggregateStatement { /** * Locally store last value * @var mixed */ private $lastValue = null; /** * Performs reduce ...
true
de54f3a02e2c8fd218bc76f0e49a9a4f33226e32
PHP
SerendipitySwow/Serendipity-job
/src/Workflow/Implementation/Entities/Transition.php
UTF-8
1,526
2.828125
3
[ "MIT" ]
permissive
<?php /** * This file is part of Swow-Cloud/Job * @license https://github.com/serendipity-swow/serendipity-job/blob/master/LICENSE */ declare(strict_types=1); namespace SwowCloud\Job\Workflow\Implementation\Entities; use SwowCloud\Job\Workflow\Interfaces\DescribableInterface; use SwowCloud\Job\Workflow\Interface...
true
71ca6da2e4ceb4e2ce3d5d4534d327c91faf0ac7
PHP
rahulmr/algo-in-python-without-db-
/admin/app/code_snippet.php
UTF-8
1,168
2.625
3
[ "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<div class="container"> <table class="table table-bordered table-hover table-responsive table-striped"> <tr> <th>ID(TimeStamp)</th> <th>Exchange</th> <th>Symbol</th> <th>date_and_time</th> <th>open_price</th> <th>high_price</th> <th>low_price</th> <th>close_price</th> <th>volume</th> <th>cp</th> </tr> <?php $servern...
true
5962f44e74473a5967b0f67bc8025ff421c57863
PHP
raneko/base
/src/UID/Token/Generator/Standard.php
UTF-8
608
2.75
3
[]
no_license
<?php namespace Raneko\UID\Token\Generator; /** * Standard token generator. * @author Harry Lesmana <harrylesmana@singpost.com> * @since 2014-04-22 */ class Standard extends \Raneko\UID\UIDAbstract { /** * Length of token in bytes * @var int */ private $length = 16; /** * Set to...
true
1e919fc0092557801c898bd05c854a739fd2c596
PHP
cergel/wxadmin
/protected/modules/app/models/Movie.php
UTF-8
4,900
2.640625
3
[]
no_license
<?php class Movie extends CActiveRecord { /** * @return string the associated database table name */ public function tableName() { return 't_movie'; } /** * @return array validation rules for model attributes. */ public function rules() { // NOTE: you should only define rules for those attributes th...
true
5442071d75432ca1be57640535ec67b19c65f72c
PHP
daxiiez/punchInOut
/vendor/hutnikau/job-scheduler/src/SchedulerInterface.php
UTF-8
742
2.9375
3
[ "MIT" ]
permissive
<?php namespace Scheduler; use Scheduler\Job\JobInterface; use DateTimeInterface; /** * Interface Scheduler * @package Scheduler */ interface SchedulerInterface { /** * Get actions to be executed between given dates * Actions are ordered by start time * * @param DateTimeInterface $from ...
true
934db412765f48582350f64571daad0715bf0749
PHP
databoxtech/multi-social
/src/adapter/SocialAdapter.php
UTF-8
617
2.890625
3
[ "MIT" ]
permissive
<?php namespace databoxtech\multisocial\adapter; use databoxtech\multisocial\exception\ConfigRequiredException; use databoxtech\multisocial\exception\SocialException; use databoxtech\multisocial\Post; interface SocialAdapter { /** * SocialAdapter constructor. * @param array $config * @throws Con...
true
b841c2d9f8c4ebba28d667b53a5c11a84ae1f066
PHP
army-isdt-batch-2/logistics_coronel
/app/Http/Controllers/IndexController.php
UTF-8
1,345
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Logistics; class IndexController extends Controller { protected $request; public function __construct(Request $request) { $this->request = $request; } public function index() { $data = Log...
true
88614500a7bb6f11acb1df27996dfdf464c18a77
PHP
Lam132409/module2-bt
/Geometry/Rectanle.php
UTF-8
430
3.4375
3
[]
no_license
<?php include_once "Shape.php"; class Rectanle extends Shape { public $width; public $height; public function __construct($name, $width, $height) { parent::__construct($name); $this->height; $this->width; } function calculateArea() { return $this->width*$this...
true
15030634e35583465fa42a8ea50da5ce9795a332
PHP
xhizors93/appliananovelty
/product_registration_process.php
UTF-8
1,722
2.59375
3
[]
no_license
<?php if(isset($_POST['submit'])) { //set it to writable location, a place for temp generated PNG files $PNG_TEMP_DIR = dirname(__FILE__).DIRECTORY_SEPARATOR.'temp'.DIRECTORY_SEPARATOR; //html PNG location prefix $PNG_WEB_DIR = 'temp/'; include "qrlib.php";...
true
2941f62dd963a79f5f8b8b57d7a8b643c68c4c3c
PHP
jiangyong19910326/map
/src/Map.php
UTF-8
3,554
2.828125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: 82683 * Date: 2018/9/17 0017 * Time: 上午 9:38 */ namespace Jiangyong\Map; use GuzzleHttp\Client; use Jiangyong\Map\Exceptions\HttpException; use Jiangyong\Map\Exceptions\InvalidArgumentException; class map { /** * @var */ protected $key; /** * @v...
true
0b163d2cf297cf9974463dce714dbca92cab7de0
PHP
e7d/ifconfig
/app/src/Renderer/ContentType/TextRenderer.php
UTF-8
608
2.671875
3
[ "MIT" ]
permissive
<?php namespace IfConfig\Renderer\ContentType; class TextRenderer extends ContentTypeRenderer { public function render(): void { parent::render(); header('Content-Type: text/plain; charset=UTF-8'); $data = $this->field ? $this->field->getValue() : $this->info->toArray(false); i...
true
32875e401464d57bbb20fbe54a7f24663425a0f9
PHP
BesjaSoft/ytracks
/protected/models/Inbox.php
UTF-8
3,066
2.5625
3
[]
no_license
<?php class Inbox extends CActiveRecord { /** * The followings are the available columns in table 'users_messages': * @var integer $id * @var integer $user_id * @var integer $folder_type * @var string $to * @var string $subject * @var string $message * @var integer $status * @var string $created *...
true
c7cc056e51b7c7736850f1cd825f2d7f92cd9149
PHP
hagiwara-keiichi/engineering-skills-poc
/src/solid/dip/good/Client.php
UTF-8
483
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace myapp\solid\dip\good; use myapp\solid\dip\good\Controller\EmployeeController; use myapp\solid\dip\good\Repository\EmployeeRepository; use myapp\solid\dip\good\Service\EmployeeService; require_once "../../../../vendor/autoload.php"; $employeeController = new EmployeeControll...
true
cbf13877342fb963cd9de6fed7de6e778f074cb1
PHP
isa-yegizbay/feedbacks.com
/models/Feedbacks.php
UTF-8
2,148
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "feedbacks". * * @property int $id * @property int $user_id * @property int $place_id * @property int $city_id * @property string $title * @property string $text * @property string $date * * @property Cities $city * @property Pl...
true
643632b0916775c5ef84ecb04b36867b5475e230
PHP
isaquemenezes/Cadastro-Login-MVC-php
/Classes/ClassValidate.php
UTF-8
3,341
2.890625
3
[]
no_license
<?php namespace Classes; class ClassValidate{ private $erro=[]; // private $cadastro; public function getErro() { return $this->erro; } public function setErro($erro) { array_push($this->erro,$erro); } #Validar...
true
86d05fde2d1c93785630c9d04ae963ce64eff0dc
PHP
murich/logbag
/src/Arr.php
UTF-8
456
2.59375
3
[ "MIT" ]
permissive
<?php namespace Murich\Logbag; class Arr { public static function dismount($object) { $reflectionClass = new \ReflectionClass(get_class($object)); $array = array(); foreach ($reflectionClass->getProperties() as $property) { $property->setAccessible(true); $array[$pr...
true
247d159fc45e3d4739c124e7846d899b0d3658e3
PHP
rdohms/aggregatein
/src/Agg/Service/ApiReader.php
UTF-8
2,359
3.140625
3
[]
no_license
<?php namespace Agg\Service; /** * Handles API communication with the Joind.in API */ class ApiReader { /** * @var \Agg\Service\Cache\CacheDriverInterface */ protected $cache; /** * @param \Agg\Service\Cache\CacheDriverInterface $cacheDriver */ public function __construct($cacheD...
true
00a2a37d9d51e3d09161a5238011f5708784e2fa
PHP
easyunit/moka-sdk
/demo/index.php
UTF-8
4,151
2.734375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>简单的文件浏览&&视频播放</title> <meta charset="utf-8"> </head> <body> <div> <center> <?php // 响应点击视频 isset() 变量是否存在 if ($action = isset($_GET["action"])) { } if ($action == "player") { $filename = $_GET["filename"]; echo "<video id='video' src='{$filename}' co...
true
b56a7c460adb2e732b920cfb7ffbd49f7e17dbc1
PHP
AxelOrdonez98/Cotizacion
/models/loginValidate.php
UTF-8
1,005
2.625
3
[]
no_license
<?php function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } $email = test_input($_POST["userEmail"]); $password = test_input($_POST["userPassword"]); include_once("config/db.php"); if($conn->connect_erro...
true
c8f733a65b6df492adce936fac935094dc672f93
PHP
bizet/healthy-php
/model/user.model.php
UTF-8
4,051
2.84375
3
[]
no_license
<?php require_once(dirname(__FILE__).'/medoo.min.php'); class User { private $database; public function __construct() { $this->database = new medoo(); } public function get_info($username) { if ($username == '') { throw new Exception('get user info but username is bla...
true
49cb3f73af25fb26261a96e40607254383ecc751
PHP
banqhsia/twse-crawler
/src/Client.php
UTF-8
1,587
2.734375
3
[]
no_license
<?php namespace App; use App\Provider\Optionable; use GuzzleHttp\Client as BaseClient; use Psr\Http\Message\ResponseInterface; class Client { /** * @var \Closure|null */ private $decoder = null; /** * @var BaseClient */ private $client; /** * Construct. * * @p...
true
91002438c308f40fb950e4d5a84f29e36da7b0fc
PHP
gabrielmansour/misiek-page-category
/widget.php
UTF-8
4,489
2.796875
3
[]
no_license
<?php class MPC_Widget extends WP_Widget { function MPC_Widget() { $widget_ops = array('classname' => 'page_categories_links', 'description' => 'A list or dropdown of page categories' ); $this->WP_Widget('page_categories_links', 'Page Categories', $widget_ops); } function widget($args, $instance) { //$instan...
true
85cf5e3485ec22da921d6ec6be96b740d73b0c71
PHP
wearelighthouse/wordpress
/examples/mu-plugins/PersonPostType.php
UTF-8
2,401
2.609375
3
[]
no_license
<?php namespace ProjectName; class PersonPostType { /** * The name of the post type * * @var string */ private $_name = 'person'; /** * The slug for archive and single * * @var string */ private $_slug = 'people'; /** * The singular and plural terms ...
true
4ed7398dfea36306e5267a9f73b36bdad0a91f69
PHP
CalebSpendlove/CalebSpendlove.github.io
/webhelp_sample/oxygen-webhelp/resources/php/classes/db/LinkCellRenderer.php
UTF-8
1,669
3.015625
3
[]
no_license
<?php /* Oxygen Webhelp plugin Copyright (c) 1998-2015 Syncro Soft SRL, Romania. All rights reserved. Licensed under the terms stated in the license file EULA_Webhelp.txt available in the base directory of this Oxygen Webhelp plugin. */ /** * Customized cell renderer * * @author serban * */ c...
true
a940e1d0f292fa4f5ef51ce4fd741f57d734958b
PHP
jenniferlynparsons/pterotype
/includes/util.php
UTF-8
3,899
2.71875
3
[ "MIT" ]
permissive
<?php namespace pterotype\util; require_once plugin_dir_path( __FILE__ ) . 'server/objects.php'; function dereference_object( $object ) { return dereference_object_helper( $object, 0 ); } function dereference_object_helper( $object, $depth ) { if ( $depth === 30 ) { return $object; } if ( is_...
true
0031f816cf4a773e6617e37dbd7c0b0bf43418cf
PHP
MakeKlat00/make-phergiebot
/Plugins/Url/MimeAwareUrlHandler.php
UTF-8
3,755
2.890625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
<?php namespace Plugins\Url; use WyriHaximus\Phergie\Plugin\Url\Mime; use WyriHaximus\Phergie\Plugin\Url\UrlInterface; use WyriHaximus\Phergie\Plugin\Url\UrlHandlerInterface; /** * Default URL handler to create a message about a * * @category Phergie * @package Plugins\Url */ class MimeAwareUrlHandler implements...
true
aeda1e630a6c83ee5d7745db5c37aea28ae01d0c
PHP
duyanh1992/PHP_ZendVN
/PHP_STRING/first/find_and_replace.php
UTF-8
276
3.28125
3
[]
no_license
<?php $str = 'PHP course'; $str2 = 'PHP course is great!'; $str3 = 'course'; $str = str_replace('PHP', 'AJAX', $str); echo $str."<br />"; //use this function in array: $arr = array('course'=>'PHP', 'chapter'=>'1'); $arr = str_replace('PHP', "AJAX", $arr); print_r($arr); ?>
true
091389874c7a0f156c49f83e9acbde256627057a
PHP
nhannguyen09cntt/php-xome-sdk
/src/Xome/Xome.php
UTF-8
2,729
2.796875
3
[]
no_license
<?php namespace Xome; use Xome\HttpClients\HttpClientsFactory; use GuzzleHttp\Client; class Xome { /** * @const string Version number of the Xome PHP SDK. */ const VERSION = '1.0'; const API_KEY_ENV_NAME = 'XOME_API_KEY'; const API_USER_ENV_NAME = 'XOME_API_USER'; /** * @var Acce...
true
7d31945e18a448f3501755bb8af1b8e3fa472dd3
PHP
AlvaroZ-F/PHP
/sumatorio.php
UTF-8
243
3.53125
4
[]
no_license
<?php $resultado = 25; function sumatorio(&$suma, ...$numeros){ $suma=0; foreach ($numeros as $n){ $suma+=$n; } return $suma; } echo $resultado; echo "\n"; echo (sumatorio($resultado, 1, 2, 3)); echo "\n"; echo $resultado ?>
true
0c9f1a4619de8066e2a7ca89f000f760a8abe04d
PHP
alexandrmazur96/apilayer-currencylayer-php
/src/Actions/Convert.php
UTF-8
2,226
2.8125
3
[ "MIT" ]
permissive
<?php namespace Apilayer\Currencylayer\Actions; use Apilayer\Currencylayer\Responses\Factories\ConvertResponseFactory; use Apilayer\Currencylayer\Exceptions\InvalidArgumentException; use Apilayer\Currencylayer\Responses\Factories\ResponseFactoryInterface; use DateTimeInterface; use Apilayer\Currencylayer\Enums\Curren...
true
4ba7395b01016bbb73e8cc6c8ab79cecbbd72976
PHP
jeffersonmello/pagseguro
/exemplos/compra-varios.php
UTF-8
1,404
2.5625
3
[ "MIT" ]
permissive
<?php require 'autoload.php'; use PagSeguro\PagSeguroTransacao; use PagSeguro\PagSeguroException; $sandbox = true; $pagseguro = new PagSeguroTransacao($sandbox); // autoRedirect=true para redirecionar automaticamente // caso contrário, o método pagar retorna a URL do PagSeguro // $pagseguro->autoRedirect = true; $p...
true
58d7855f9eb02a4d235cca0f8ee45735126eb389
PHP
arashkashi/neshagostar
/httpdocs/mainLib/packages/language/beta/languageInfoBeta.class.inc.php
UTF-8
3,198
2.59375
3
[]
no_license
<?php /** * @version $Id: languageInfoBeta.class.inc.php 379 2009-09-14 05:40:44Z salek $ */ define('CMF_LanguageInfoBeta_Ok',true); define('CMF_LanguageInfoBeta_Error',2); define('CMF_LanguageInfoBeta_Error_Unsupported_Language',3); define('CMF_LanguageInfoBeta_Error_Empty_Language_Name',4); define('CMF_LanguageInfoB...
true
6d6d89efe7c2fe47c9addf08d959b4f1ac039619
PHP
Shoplo/shoplo-php
/src/Shoplo/Resource.php
UTF-8
1,945
2.78125
3
[ "MIT" ]
permissive
<?php namespace Shoplo; class Resource { protected $client; protected $bucket = array(); protected $prefix = ''; public function __construct($client) { $this->client = $client; } protected function prepare_params($params) { $string = ''; if (is_array($params)) { foreach ($params as $k =...
true
4b2fb4f9957c45d6c5b78c6188e7af339dbf5208
PHP
Manish-Pandya/USC
/rsms/src/includes/modules/chair-report/ChairReportSecurity.php
UTF-8
1,712
2.734375
3
[]
no_license
<?php class ChairReportSecurity { public static function userCanViewSummaryReport($year, $department_id){ return ChairReportSecurity::userIsChairOfDepartment($department_id); } public static function userIsChairOfDepartment($department_id){ $LOG = Logger::getLogger(__CLASS__ . '.' . __FUNC...
true
84d8582d545cb959721009fdf59f0cf37eedde12
PHP
learncodingfor/doppelme-avatars
/includes/doppelme.php
UTF-8
12,849
2.75
3
[]
no_license
<?php //------------------------------------- // DoppelMe PHP SDK 1.5.1 //------------------------------------- define ( 'DM_SERVICE_URL', 'http://services.doppelme.com/1.5.1/PartnerService.asmx?WSDL' ); class DoppelMe { protected $partnerId; protected $partnerKey; public function __construct($partnerId...
true
d9810d132ffdb082a1b3a62f121165aaff78a88e
PHP
gszhaochengyong/myRepository
/test/testCom/js/ajax/jqueryAjax.php
UTF-8
1,092
3.3125
3
[ "MIT" ]
permissive
<?php // 示例1 html形式返回值 /*$p1=$_GET["aaa"]; $p2=$_GET["bbb"]; echo "html形式<div>参数1为".$p1.",参数2为".$p2."</div>";*/ //示例2 json返回值形式 /*$resArr=array("username"=>"张三","password"=>"123"); echo json_encode($resArr);*/ //示例3 post形式 /*$p1=$_POST['aaa']; $p2=$_POST['bbb']; echo "html post形式<div>参数1为".$p1.",参数2...
true
84f5ca641195cd30b806eb369f6f66151e9977bd
PHP
dev-mohammed/mvc_blog
/vendor/System/View/View.php
UTF-8
1,806
3.140625
3
[]
no_license
<?php namespace System\View; use System\File; class View implements ViewInterface { /** * File Object * @var \System\File */ private $file; /** * View Path * @var string */ private $viewPath; /** * Passed Data "variables" to the view path * @var array ...
true
2687f0e596cd20038f4626aae470f0b1b2f7cea5
PHP
Att1cusss/SQLOJ
/php/classCLS.php
UTF-8
4,537
2.953125
3
[]
no_license
<?php include_once "classDB.php"; /************************************************************************************************* * ********************************************************************************************** * * 班级类(classCLS) * 它的实例化表示<一个班级>用于进行班级相关操作及其信息获取 * 2021...
true
a3abbf8d99979dfe756e82011647a763a192a244
PHP
webignition/basil-worker
/src/Services/BackoffStrategyFactory.php
UTF-8
1,293
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Services; use App\Model\BackoffStrategy\BackoffStrategyInterface; use App\Model\BackoffStrategy\ExponentialBackoffStrategy; use App\Model\BackoffStrategy\FixedBackoffStrategy; use Psr\Http\Message\ResponseInterface; class BackoffStrategyFactory { private const MILLIS...
true
10a3d032db3c869f641620a905fd1b2ebf614dc6
PHP
geekgirljoy/Part-Of-Speech-Tagger
/Train.php
UTF-8
11,903
3.015625
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
<?php // Get contents of a training file as a string function GetFile($filename){ $filename = 'brown' . DIRECTORY_SEPARATOR . $filename; $handle = fopen($filename, 'r'); $contents = fread($handle, filesize($filename)); fclose($handle); return $contents; } // We can use less memory by processing the files i...
true
8f02e4bc74591b9f0e7476db9aa201afda6ccc95
PHP
SMillerDev/lunr
/src/Lunr/Gravity/Database/Tests/SQLDMLQueryBuilderUsingTest.php
UTF-8
1,732
2.6875
3
[ "MIT" ]
permissive
<?php /** * This file contains the SQLDMLQueryBuilderUsingTest class. * * @package Lunr\Gravity\Database * @author Patrick Valk <p.valk@m2mobi.com> * @copyright 2016-2018, M2Mobi BV, Amsterdam, The Netherlands * @license http://lunr.nl/LICENSE MIT License */ namespace Lunr\Gravity\Database\Tests; /...
true
5503a558f30889f8b13e2450414575ab7d8e6ecf
PHP
v700a/work_v700a
/work_sites/victor_site_1/classes/car.php
UTF-8
823
3.046875
3
[]
no_license
<?php require "user.php"; class Car { public $brand; public $model; public $year; public $driver; } $toyota_corolla_2000 = new Car(); $toyota_corolla_2000 -> brand = 'Toyota'; $toyota_corolla_2000 -> model = 'Corolla'; $toyota_corolla_2000 -> year = '2000'; $toyota_corolla_2000 -> driver = $Victor ...
true
2d435fc4bd91af3acad65951086325239adcfabd
PHP
gdg-bh/site-gdg-bh
/content/plugins/formidable/classes/helpers/FrmListHelper.php
UTF-8
710
2.59375
3
[]
no_license
<?php if ( ! defined('ABSPATH') ) { die( 'You are not allowed to call this page directly.' ); } class FrmListHelper extends WP_List_Table { var $params; public function __construct( $args ) { $args = wp_parse_args( $args, array( 'params' => array(), ) ); $this->params = $args['params']; parent::...
true
469febd719faed2f281e1f64e62b4a063b9d34a3
PHP
riclasala/git-nutritech
/application/controllers/Pages.php
UTF-8
891
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Pages extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->helper('site_settings'); $this->load->helper('site_security'); } public function view($page = ''){ if(!file_exists(APPPATH. 'views/pages/'. $page . '.php')){ show_404(); } $this->load->hel...
true
c6e4f8c68c9e4c3f60608f3ce63d370d282c64ec
PHP
AlexanderKaschta/WeidigWahl
/core/deleteKurs.php
UTF-8
1,208
2.578125
3
[ "MIT" ]
permissive
<?php /** * Project: WeidigWahl * Author: AlexanderKaschta * License: MIT License */ require "Database.php"; include_once "config.php"; session_start(); if (isset($_SESSION['loggedin']) && isset($_SESSION['benutzer']) && isset($_GET['wahl']) && isset($_GET['id'])){ if ($_SESSION['loggedin'] == 1 && $_SESSIO...
true
330a31388a01c190d2e16bb30621f25103db7e90
PHP
foreweather/notify
/src/library/Foreweather/Notify.php
UTF-8
3,605
2.609375
3
[ "MIT" ]
permissive
<?php namespace Foreweather; use Exception; use Monolog\Logger; use Phalcon\Cli\TaskInterface; use Phalcon\Di\FactoryDefault\Cli as FactoryDefault; use Phalcon\Di\ServiceProviderInterface; use Pheanstalk\Job; use Pheanstalk\Pheanstalk; class Notify { /** * @var FactoryDefault */ protected $di; ...
true
b55a5ae48dcd2eba61018bfc33bf91d83c20a63c
PHP
Chibuzo/TravelHub
/api/models/fare.class.php
UTF-8
7,586
2.828125
3
[ "Apache-2.0" ]
permissive
<?php require_once "model.class.php"; class Fare extends Model { private static $db_tbl = "fares"; public function __construct() { parent::__construct(); } public function addFare($form) { $sql = "INSERT INTO " . self::$db_tbl . " (travel_id, vehicle_type_id, fare, park_map_id) VALUE (:travel_id, :veh...
true
b38299326dc608b8267ea3017026084fc564038b
PHP
luobobaozi/HC
/Server/GameServer/codeGen2/RuleCodeGen/CMySQL.php
UTF-8
11,730
2.75
3
[]
no_license
<?php require_once 'config.php'; require_once 'log/Logger.php'; class MySQL { public $link = false; private $hostname; private $username; private $password; var $dbname; static $extension = 'mysql'; static $query_cache = array(); static $query_cache_rows = array(); static $query_log; static $inst...
true
bb2184ff49009ce34227107dcdf28cdfc6644d7a
PHP
Hammermaps-DEV/DZCP-Extended-Edition
/clanwars/helper.php
UTF-8
2,323
2.546875
3
[]
no_license
<?php /** * <DZCP-Extended Edition> * @package: DZCP-Extended Edition * @author: DZCP Developer Team || Hammermaps.de Developer Team * @link: http://www.dzcp.de || http://www.hammermaps.de */ //-> Funktion um bei Clanwars Details Endergebnisse auszuwerten ohne bild function cw_result_details($punkte, $gpunkte) { ...
true
cc953482599b8a29cd98e422c5d4ff4d19fded81
PHP
belemlc/api-laravel
/app/Http/Controllers/API/v1/AuthController.php
UTF-8
1,165
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\API\v1; use Validator; use Tymon\JWTAuth\JWTAuth; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; class AuthController extends Controller { public function __construct() { } public function signin(Request $r...
true
27335da7c8049d035c3ea1b5157a299c8a6551b5
PHP
thanhtd1/jcordthanh1to9
/proj/lib/webapi/old/ifcmd.php
UTF-8
2,246
2.53125
3
[]
no_license
<?php //====================================================== // // 機能名: if cmd Class. // // 機能ID: ifcmd.php // 継承 : none // 概要 : if cmd class. // // $Id:$ // $Author:$ // $Revision:$ // //====================================================== require_once("../../.config.php"); require_once(TOP_DIR . "lib/smarty/...
true
015e486db1455c0e4e5e5643218fb84085accf80
PHP
mariyamihova/PHP-Web-Development-Basics
/OOP Basics-Exercise/15. Car/Car.php
UTF-8
1,036
3.375
3
[]
no_license
<?php include "Carr.php"; $inputLine=explode(" ",trim(fgets(STDIN))); $myCar=new Carr($inputLine[0],$inputLine[1],$inputLine[2]); $nextLine=explode(" ",trim(fgets(STDIN))); while($nextLine[0]!="END"){ $command=$nextLine[0]; switch ($command){ case "Travel": $myCar->travel(floatval($next...
true
6ec9a79f2afb87ae71f6a0ec516a6cdddbcf3caf
PHP
mastercad/trainingsmanager
/application/interfaces/OptionsStorageInterface.php
UTF-8
1,049
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mastercad * Date: 19.04.17 * Time: 17:23 */ namespace Interfaces; interface OptionsStorageInterface { /** * find all available options in current table * * @return \Zend_Db_Table_Rowset */ public function findAllOptions(); /** * find ...
true
116ae383e1eada5b4a8e35e215852a04889efc4f
PHP
riitei/laravel
/app/Http/Controllers/Admin/LinksController.php
UTF-8
6,913
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Http\Model\Links; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class LinksController extends Controller { //----資源路由 開始 // // php artisan route:list // |Domain | Method | URI ...
true
a6d97bdca69e8577ad2c3138c8d95fcaaac0f844
PHP
mithunmo/phpsample
/classes/mofilm/movie/broadcast.class.php
UTF-8
16,439
2.9375
3
[]
no_license
<?php /** * mofilmMovieBroadcast * * Stored in mofilmMovieBroadcast.class.php * * @author Mithun Mohan * @copyright Mofilm (c) 2009-2010 * @package mofilm * @subpackage mofilmMovieBroadcast * @category mofilmMovieBroadcast * @version $Rev: 840 $ */ /** * mofilmMovieBroadcast Class * * Provides access to...
true
6861f6c2f46bd85b90e03051f6cdf4388dd1176f
PHP
schwartz914/2017_Capstone_Website
/database/migrations/2017_08_04_023248_create_fitbitkey_table.php
UTF-8
874
2.5625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateFitbitkeyTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('fitbitkey', f...
true
95a05ba22ae3d0e387100cae1046c99431078a28
PHP
tony-tran/en-marche.fr
/src/RepublicanSilence/ZoneExtractor/ProcurationManagerZoneExtractor.php
UTF-8
1,095
2.703125
3
[ "GPL-3.0-only", "Apache-2.0" ]
permissive
<?php namespace App\RepublicanSilence\ZoneExtractor; use App\Entity\Adherent; use App\Repository\Geo\ZoneRepository; class ProcurationManagerZoneExtractor implements ZoneExtractorInterface { private ZoneRepository $zoneRepository; public function __construct(ZoneRepository $zoneRepository) { $th...
true
09fddb68402f426a6d65802ee72ead7d8cabaf0f
PHP
bryant1410/StartupsCampfire
/app/Repositories/Eloquent/RepoTraits/VotableRepositoryTrait.php
UTF-8
437
2.515625
3
[]
no_license
<?php namespace StartupsCampfire\Repositories\Eloquent\RepoTraits; use StartupsCampfire\Helpers\VoteHelper; Trait VotableRepositoryTrait { public function upvoteModel($model_id) { $model = $this->model->find($model_id); VoteHelper::upvoteModel($model); } public function downvoteModel...
true