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
12b380b5f2abb5b5d8140c856fccd5169f043565
PHP
najah16/sciam
/app/Http/Requests/VisiteurRequest.php
UTF-8
1,330
2.6875
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class VisiteurRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get t...
true
d7b7a708923355628015c36e72fba2e10d2b29f2
PHP
09liweis/sales_tracking_system
/controllers/items.php
UTF-8
1,366
2.734375
3
[]
no_license
<?php require '../models/Database.php'; require '../models/Item.php'; $itemRepo = new Item(Database::dbConnect()); header('Content-Type: application/json'); if ($_GET['action'] == 'getItems') { $items = $itemRepo->items(); echo json_encode($items); } if ($_GET['action'] == 'getItem') { $item = $itemRep...
true
7d672ddb31179da55a51ba6a06283cc99a9ade64
PHP
marfaxor/imgshare
/web/index.php
UTF-8
14,356
2.65625
3
[]
no_license
<?php require('../vendor/autoload.php'); use Symfony\Component\HttpFoundation\Request; //session start goes here? session_start(); //app and var decs $app = new Silex\Application(); $app['debug'] = true; //$app['debug'] = false; // Register the monolog logging service $app->register(new Silex\Provider\MonologService...
true
257cae050a9b8bd8370973037c1b5fb46e535c50
PHP
Prasadkpd/Learning-Testing
/Session/libs/App.php
UTF-8
457
3.046875
3
[]
no_license
<?php class App{ private $_url = null; private $_controller = null; function __construct() { $this->_getURL(); } private function _getURL() { $url = isset($_GET['url'])? $_GET['url'] : null; $url = rtrim($url,'/');//Remove final / $url = filter_var($url,FILTER_S...
true
e8b0c4b2f375e2609b0c585eface1019137df9db
PHP
alpari-tech/binary-protocol
/src/Type/ArrayOf.php
UTF-8
5,545
3.078125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Alpari BinaryProtocol library. * * (c) Alpari * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare (strict_types=1); namespace Alpari\BinaryProtocol\Type; use Alpari\BinaryProtocol\BinaryPr...
true
097583511fa5c665e49cf2eeb56cf2b53ae770b4
PHP
godwithus/voting_count
/models/PollingUnit.php
UTF-8
2,946
2.65625
3
[]
no_license
<?php /* JESUS Phil 2:9-11 */ namespace app\models; use Yii; /** * This is the model class for table "polling_unit". * * @property integer $uniqueid * @property integer $polling_unit_id * @property integer $ward_id * @property integer $lga_id * @property integer $uniquewardid * @property string $polling_unit...
true
5c180dc3f01bb6ad9338333ab19a8e58df5c9eef
PHP
linauror/owncms
/application/models/menu_mdl.php
UTF-8
3,858
2.640625
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Menu_mdl * 菜单 * @package * @author Auror * @copyright owncms * @version 2013 * @access public */ class Menu_mdl extends CI_Model { const TABLE = 'menu'; /** * 构造函数 * * @a...
true
bff89e5f6021fed1aece586b3ffb4d402dfa4f50
PHP
axelstoun93/sberhealthtz
/app/Models/Article.php
UTF-8
1,342
2.6875
3
[]
no_license
<?php namespace App\Models; use Hemp\Presenter\Presentable; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Article extends Model { use HasFactory; use Presentable; /** * Текст статьй будет * сохранен в базу данных */ public const T...
true
371a1d53ec66bca0fcafa2f1502215938fb853b8
PHP
Shing-Ho/lwv
/addons.080618/shared/lwv/news-module/src/Category/CategoryModel.php
UTF-8
1,408
2.546875
3
[ "MIT" ]
permissive
<?php namespace Lwv\NewsModule\Category; use Lwv\NewsModule\Category\Command\GetCategoryPath; use Lwv\NewsModule\Category\Contract\CategoryInterface; use Anomaly\Streams\Platform\Entry\EntryCollection; use Anomaly\Streams\Platform\Model\News\NewsCategoriesEntryModel; use Illuminate\Database\Eloquent\Relations\HasMany;...
true
3bf74b8cbad4ccf8412a0c9377960d169ae8a150
PHP
abelbdo/estacioweb
/AulaPHP/Aula13_11/13_11.php
UTF-8
149
2.578125
3
[ "MIT" ]
permissive
<?php date_default_timezone_set('America/Sao_Paulo'); $ts = mktime(12,30,12,3,18,2010); echo strftime("O timestamp $ts equivale a %d/%b/%Y, %T"); ?>
true
d17518a752ed0b8f97deff412c31e67b61d96a7d
PHP
MiRaIOMeZaSu/leetcode-php
/1015_smallestRepunitDivByK.php
UTF-8
790
3.765625
4
[]
no_license
<?php class Solution { /** * @param Integer $K * @return Integer */ function smallestRepunitDivByK($K) { if ($K % 2 == 0) { return -1; } if ($K == 1) { return 1; } $num = 1; $len = 1; $arr = array(); whi...
true
0a73e2ea9352c176bba199d0101e000c755867aa
PHP
ridhobc/sitampan
/common/models/Training.php
UTF-8
2,607
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; use yii\db\ActiveRecord; use yii\behaviors\TimestampBehavior; use yii\behaviors\BlameableBehavior; /** * This is the model class for table "training". * * @property integer $id * @property string $name * @property string $description * @property string $start * @property...
true
7536069e95af85d2467d40cc5f0459292fe53f57
PHP
pankaj-php/Hypleystaging
/staging/wp-content/plugins/wp-graphql/src/Mutation/PostObjectDelete.php
UTF-8
5,002
2.828125
3
[ "MIT", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "GPL-3.0-only", "LicenseRef-scancode-free-unknown" ]
permissive
<?php namespace WPGraphQL\Mutation; use Exception; use GraphQL\Error\UserError; use GraphQLRelay\Relay; use WP_Post_Type; use WPGraphQL\Model\Post; class PostObjectDelete { /** * Registers the PostObjectDelete mutation. * * @param WP_Post_Type $post_type_object The post type of the mutation. * * @return v...
true
259e1ea833978fd89585918105b8dda38af43118
PHP
GermaniaKG/SwiftMailerCallable
/tests/src/SwiftMailerCallableTest.php
UTF-8
3,520
2.546875
3
[ "MIT" ]
permissive
<?php namespace tests; use Germania\SwiftMailerCallable\SwiftMailerCallable; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use \Swift_Mailer; use \Swift_Message; use Prophecy\Argument; use Prophecy\PhpUnit\ProphecyTrait; class SwiftMailerCallableTest extends \PHPUnit\Framework\TestCase { use ProphecyTrait...
true
c863abbce408724f61b6e8aa29a745ad13c8c1bd
PHP
sunnynipun/Portfolio
/portfolio/email.php
UTF-8
676
2.609375
3
[]
no_license
<?php if (isset($_POST["submit"])) { $to = "sunnydas7@gmail.com"; // this is your Email address $from = $_POST['email']; // this is the sender's Email address $first_name = $_POST['name']; $comment=$_POST['message']; $subject = "Message from portfolio"; $message = $first_name . " with emailId:"...
true
94653fc4f4770860716bbe0a5ebe996c7c8fba24
PHP
LisandroSeijo/Solari
/src/Solari/Drivers/YouTubeDriver.php
UTF-8
3,368
3.015625
3
[]
no_license
<?php namespace Solari\Drivers; use \stdClass; class YouTubeDriver extends SolariDriver { /** * Video URL * * @var string */ private $_url; /** * Video ID * * @var string */ private $_videoId; /** * Video data * * @var stdClass */ private $_data; /** * Construct * * @param string $clientI...
true
b7aaef4f0e95bd8c21de1c1b979771dfb892ab76
PHP
iFaxity/ramverk1-projekt
/src/Tag/Controller.php
UTF-8
1,440
2.671875
3
[]
no_license
<?php namespace Faxity\Tag; use Anax\Commons\ContainerInjectableInterface; use Anax\Commons\ContainerInjectableTrait; use Anax\Route\Exception\NotFoundException; use Faxity\Models\Tag; use Faxity\Models\QuestionToTags; /** * A controller to show tags and questions linked to specific tags */ class Controller implem...
true
2cddd062b6222d706f1ddd33820822df7e4edacf
PHP
async-aws/aws
/src/Service/MediaConvert/src/ValueObject/QueueTransition.php
UTF-8
1,721
3.0625
3
[ "MIT" ]
permissive
<?php namespace AsyncAws\MediaConvert\ValueObject; /** * Description of the source and destination queues between which the job has moved, along with the timestamp of the * move. */ final class QueueTransition { /** * The queue that the job was on after the transition. * * @var string|null ...
true
218f7097d3b5526042acf25c40966f68a231a9e2
PHP
anomalylabs/discounts-module
/src/Condition/Table/ConditionTableBuilder.php
UTF-8
1,715
2.515625
3
[]
no_license
<?php namespace Anomaly\DiscountsModule\Condition\Table; use Anomaly\DiscountsModule\Discount\Contract\DiscountInterface; use Anomaly\Streams\Platform\Ui\Table\TableBuilder; use Illuminate\Database\Eloquent\Builder; /** * Class ConditionTableBuilder * * @link http://pyrocms.com/ * @author PyroCMS,...
true
79dfe5a28cb4a05b5ca8012e77f51e04facb7347
PHP
yinnnnn/film
/show.php
UTF-8
1,394
2.546875
3
[]
no_license
<?php /* * 从db里面拉取数据展示 * */ include 'meituan_api.php'; header("Content-type: text/html; charset=utf-8"); $link = mysqli_connect('127.0.0.1:3306','root',''); if (!$link) { die('Could not connect to MySQL: ' . mysql_error()); } mysqli_select_db( $link,"statics"); mysqli_query($link, "set names utf8"); $sql = ...
true
eccd13f8ffc4e57d8fdf45438aed6a63dc01d7fc
PHP
benjaminhansen/workday-wsdl
/src/StructType/Employee_DataType.php
UTF-8
24,626
2.59375
3
[]
no_license
<?php namespace WorkdayWsdl\\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for Employee_DataType StructType * Meta information extracted from the WSDL * - documentation: Encapsulating element containing all Employee data. * @subpackage Structs */ class Employee_DataType exte...
true
0d6741e94ceea7ff562e1b25f7e52f216fcf762e
PHP
JandBeyond/conferenceplus
/migrations/20141029143417_conferenceplus_days.php
UTF-8
1,469
2.8125
3
[]
no_license
<?php use Phinx\Migration\AbstractMigration; class conferenceplusDays extends AbstractMigration { protected $tableName = 'conferenceplus_days'; /** * Migrate Up. */ public function up() { // create the table $table = $this->table($this->tableName, ['id' => 'conferenceplus_da...
true
2b86ceb403a469846e8a969dd781f40b3eae34fb
PHP
lenodeoliveira/Calculadora-PHP
/exemplo.php
UTF-8
3,236
3.625
4
[]
no_license
<!DOCTYPE html> <html lang="pt-br"> <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>Calculo</title> <H1><strong>Calculadora php:</strong></H1> </head> <body>...
true
b420cb269d8b4729b08bab1c794200a37083b75b
PHP
alysongustavo/php-app-vacina
/src/App/Handler/DeleteCampanhaHandler.php
UTF-8
1,743
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Handler; use Exception; use App\Util\Enum\StatusHttp; use App\Util\Enum\SuccessMessage; use App\Service\Response\ApiResponse; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; use App\Service...
true
f87ae1ff9343dfeb8856dc2dfc0a3235eea93dd0
PHP
razielsd/webdriverlib
/WebDriver/WebDriver/Wait.php
UTF-8
4,575
2.84375
3
[ "BSD-3-Clause" ]
permissive
<?php class WebDriver_Wait { /** * @var WebDriver */ protected $webDriver = null; /** * @var WebDriver_Element */ protected $element = null; protected $errorMessage = null; protected $timeout = 30; protected $defaultTimeout = 30; protected $prevTimeout = null; ...
true
6daa0d7330f313176d199380e564f2f136d3486b
PHP
vworldat/C33sPropelDIBehaviorBundle
/src/C33sPropelDependencyCollectorBehavior.php
UTF-8
2,605
2.84375
3
[ "MIT" ]
permissive
<?php require_once(__DIR__.'/C33sPropelDependencyInjectorBehavior.php'); /** * This class only acts as collection so that several instances of this behavior can be used. * * The ExozetPropelBehaviorServiceInjectorBase behavior then collects all services to inject * from behaviors like this. * * @author david *...
true
c15c98604f379b27b7a1d09d7c0bbe2086bfe06b
PHP
infohojin/daelim_db_2020
/201930133/var/string.php
UTF-8
365
3.328125
3
[]
no_license
<?php $daelim ="쌍따옴표"; $univ='홑따옴표'; echo $daelim; echo $univ; // 바깥 따옴표 출력X , 안쪽 따옴표는 출력됨. $hi = "hello 'world' ... "; echo $hi; $hello = 'hello "world" ... '; echo $hello; // 이스케이프문자 $name = "안녕하세요 \"최예은\"입니다."; echo $name;
true
30a89dd10ce04b5465639ea1e85588497f6e0138
PHP
mack-wang/yurencloud
/study/php/phpFirst/03-A-or-a.php
UTF-8
227
2.75
3
[]
no_license
<!DOCTYPE html> <html> <meta charset="UTF-8"> <body> <?php //php对自身的函数名称大小写不敏感,对引入的变量的大小写敏感,比如Echo和echo是等价的,$A和$a是不等价的。 ?> </body> </html>
true
a233f117f919a0ce071bfd82658b7574462dd9f4
PHP
manh612001/Web_Tour
/database/dbhelper.php
UTF-8
847
2.921875
3
[]
no_license
<?php define('HOST', 'localhost'); define('DATABASE', 'webtour'); define('USERNAME', 'root'); define('PASSWORD', ''); function execute($sql) { $conn = mysqli_connect(HOST, USERNAME, PASSWORD, DATABASE); mysqli_set_charset($conn, 'utf8'); mysqli_query($conn, $sql); mysqli_close($conn); } function ex...
true
4fd22ecb10bd16d71e2dc9f071680239a1400c54
PHP
jovanross/alm-client
/almclient/AlmCurlCookieJar.php
UTF-8
3,748
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Stepan * Date: 10.02.2016 * Time: 12:32 */ namespace AlmClient; class AlmCurlCookieJar { private static $Instance; private $cookieJar = null; private $pointer = null; private function GetPointer() { return $this->pointer; } private...
true
5853bb44a08b7eff232a397a01e616afdf8ddf6a
PHP
therik/whizzbang-extensible
/tests/Unit/NotRuleTest.php
UTF-8
1,030
2.515625
3
[]
no_license
<?php namespace WhizzBang\Tests\Unit; use PHPUnit\Framework\TestCase; use \WhizzBang\RuleInterface; use \WhizzBang\NotRule; use \WhizzBang\Rule; use \WhizzBang\ValueInterface; class NotRuleTest extends TestCase{ public function testAndRuleInstantiates() { $rule = $this->createMock(RuleInterface::class); ...
true
288abd3fc28183161d73848f00be9e41f2ec7f1e
PHP
WahyuS002/phpdasar
/pertemuan13_test/functions.php
UTF-8
3,479
2.75
3
[]
no_license
<?php $conn = mysqli_connect("localhost", "root", "", "phpdasar"); function query($query){ global $conn; $result = mysqli_query($conn, $query); $rows = []; while($row = mysqli_fetch_assoc($result)){ $rows[] = $row; } return $rows; } ...
true
8c21f6fd8f670812a174159c4da252d2bab7835f
PHP
broelik/trash-lang
/src/trash/parser/statement/block/IfStatement.php
UTF-8
2,017
2.84375
3
[ "Apache-2.0" ]
permissive
<?php namespace trash\parser\statement\block; use php\lib\arr; use php\lib\str; use php\util\Flow; use trash\common\Environment; use trash\common\value\BaseValue; use trash\common\value\Value; use trash\parser\statement\Statement; class IfStatement extends SimpleExpressionBlock{ /** * @var ElseIfStatement...
true
b28b6f967b167b3eb214418724447a3ffd462d96
PHP
xavierauana/cms
/src/Services/RequestParser.php
UTF-8
1,172
2.53125
3
[]
no_license
<?php /** * Author: Xavier Au * Date: 29/3/2018 * Time: 9:55 AM */ namespace Anacreation\Cms\Services; use Anacreation\Cms\Contracts\CmsPageInterface; use Anacreation\Cms\Contracts\RequestParserInterface; use Anacreation\Cms\Models\Language; use Anacreation\Cms\Models\Page; use Illuminate\Http\Request; class Re...
true
3c4874c4a9dac4e6d7613e522481f83a419ec803
PHP
Chemaclass/minesweeper-cli
/src/BoardPrinter.php
UTF-8
1,111
3.296875
3
[]
no_license
<?php declare(strict_types=1); namespace Chemaclass\MinesweeperCli; use Chemaclass\MinesweeperCli\Output\OutputInterface; final class BoardPrinter { /** @var OutputInterface */ private $output; public function __construct(OutputInterface $output) { $this->output = $output; } public...
true
aecd6895686270ac033e9260dc8feda51d2e048f
PHP
cloudipsp/bitrix
/fondy_plugin_unzipfirst_win1251/fondy.fondy/install/sale_payment/fondy/fondy.cls.php
UTF-8
2,218
2.640625
3
[]
no_license
<?php class Fondy { const ORDER_APPROVED = 'approved'; const ORDER_DECLINED = 'declined'; const ORDER_SEPARATOR = '#'; const SIGNATURE_SEPARATOR = '|'; const URL = "https://api.fondy.eu/api/checkout/redirect/"; public static function getSignature($data, $password, $encoded = true) { $data = a...
true
9c13855ce3cff81a3f17430b605530a52b477daa
PHP
FinnMacCumail/expressive-essentials-skeleton-app
/iteration-three/src/Movies/Middleware/RenderMoviesMiddleware.php
UTF-8
1,063
2.859375
3
[ "MIT" ]
permissive
<?php namespace Movies\Middleware; use Interop\Http\ServerMiddleware\DelegateInterface; use Movies\BasicRenderer; use Psr\Http\Message\{ResponseInterface,ServerRequestInterface}; use Zend\Diactoros\Response\HtmlResponse; /** * Class RenderMoviesMiddleware * @package Movies\Middleware */ class RenderMoviesMiddlewa...
true
8f51fcedccc6683dffa2316075f6682226ca924d
PHP
davefej/ORM
/model/interfaces/IFilter.php
UTF-8
301
2.734375
3
[]
no_license
<?php interface IFilter{ public function reset(); public function addand($attribute,$operator,$value); public function addor($attribute,$operator,$value); public function generate(); public function values(); public function orderby($str); public function reverseorderby($str); } ?>
true
71b3c723e3495129222eb0a09a5ff50dd2f1beb8
PHP
OdioGitHub/efsitp7funca
/TP7/dao/pedidoDao.php
UTF-8
1,584
2.90625
3
[]
no_license
<?php include_once ($_SERVER["DOCUMENT_ROOT"] . '/models/clasepedido.php'); class pedidoDao { public static function ObtenerPorID($id) { //devuelve un objeto de tipo pedido }// get public static function ObtenerTodos() { //devuelve un array de objetos de tipo pedido $arrayObjetos= ...
true
bea2afed0c2a89b9c4c14ff28396c7f9c5e1ac2c
PHP
andrew2net/store
/protected/modules/catalog/models/Price.php
UTF-8
7,038
2.734375
3
[]
no_license
<?php /** * This is the model class for table "store_price". * * The followings are the available columns in table 'store_price': * @property string $id * @property string $name * @property string $summ * @property string $code 1C code id * * The followings are the available model relations: * @property Prod...
true
32343b51f6b1c7a432ee8f9c995cdec378105e20
PHP
kevinlee112/www.taskcenter.com
/branches/framework/tools/Uploads.php
UTF-8
2,006
2.75
3
[]
no_license
<?php /** * 图片上传类 * */ Yaf_Loader::import(PATH_FW_TOOLS . "/Resourceapi.php"); class Tools_Uploads extends ResourceApiClient { private $_upload_name = 'Filedata'; private $_pic_max_size = 2097152; //文件最大字节 public function __construct($pkey = '', $mkey = '') { parent::__construct($pkey, ...
true
6ae385fc7c54aed1dc51958bdee798f81e3e27a5
PHP
jmouzza/virtual-store-php-poo-mvc
/views/categoria/index.php
UTF-8
722
2.53125
3
[]
no_license
<?php if(isset($_SESSION['categorias_empty'])) : ?> <h3> <?= $_SESSION['categorias_empty'] ?> </h3> <?php Utils::deleteSession('categorias_empty'); elseif(isset($categorias)):?> <h2 class="titulos">Gestionar Categorías</h2> <a href="<?=base_url?>categoria/crear" class="button button-categoria">Crear Categoría</a> <ta...
true
df979ee43477b59c2cc119941778c2a5216fa4f0
PHP
dimasvas/AuthorsSocialNetwork
/src/AppBundle/Model/AppMonths.php
UTF-8
921
2.671875
3
[]
no_license
<?php namespace AppBundle\Model; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Months * * @author dimas */ class AppMonths { private static $month...
true
4a2a067b948e856d5d41e0ea4a727dc75fbdb160
PHP
navindex/ci4-authx
/src/Authentication/Activators/BaseActivator.php
UTF-8
1,095
2.953125
3
[ "MIT" ]
permissive
<?php namespace Navindex\Auth\Authentication\Activators; use Navindex\Auth\Config\Auth; abstract class BaseActivator { /** * Configuration settings. * * @var \Navindex\Auth\Config\Auth */ protected $config; /** * Error message. * * @var string */ protected $error; //---------------------------...
true
3d46687d470eebfcf8f3d0d90860dd5f44509b74
PHP
maccabeus/pet
/lib/Pet.php
UTF-8
12,920
2.875
3
[]
no_license
<?php /* * * @Class Name:Pet * @Date Created: 29 Dec, 2020 * @Version: 1.0 * @Contributor: Adeniyi Anthony A <a.anthony@mlisoftinc.com> * @link:www.mlisoftinc@gmail.com * */ class Pet { /* * ------------------------------------------------------- * Handles all meeting interaction with our appli...
true
1456c30c7e9aa547596a8deef328b2fb4d0fbe39
PHP
nourmuhammedelsherief/offer-station
/app/Library/functions.php
UTF-8
11,905
2.609375
3
[ "MIT" ]
permissive
<?php use LaravelFCM\Message\OptionsBuilder; use LaravelFCM\Message\PayloadDataBuilder; use LaravelFCM\Message\PayloadNotificationBuilder; use LaravelFCM\Facades\FCM; //use FCM; function explodeByComma( $str ) { return explode( ",", $str ); } function explodeByDash( $str ) { return explode( "-", $str ); } f...
true
9d0e5a3ff59672179a8340a49004dc37c03e5d06
PHP
cinling/php-cin-cron
/src/vos/BaseVo.php
UTF-8
1,082
3.09375
3
[ "Apache-2.0" ]
permissive
<?php namespace cin\cron\vo; use cin\cron\utils\JsonUtil; use ReflectionObject; /** * Class BaseVo 所有vo(ValueObject)的基类 * @package cin\cron\vo */ class BaseVo { /** * 构造方法 * BaseVo constructor. */ public function __construct() { $this->init(); } /** * 初始化方法 */ ...
true
63215b71d99f65cf59ab45b58e69ea3f524d8ce0
PHP
spatie/laravel-collection-macros
/tests/Macros/InsertBeforeKeyTest.php
UTF-8
1,234
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Collection; it('provides an insert before key macro', function () { expect(Collection::hasMacro('insertBeforeKey'))->toBeTrue(); }); it('inserts with unkeyed array', function () { $collection = Collection::make(['zero', 'two', 'three']); $collection->insertBeforeKey(1, 'one'...
true
ea82a214addb11e3330f7ac9aba7299bcbfa06dd
PHP
Mistra/esnforum
/models/category.php
UTF-8
697
2.828125
3
[]
no_license
<?php class category_Model { /* public function getById($id) { $sql = "SELECT name FROM category WHERE id = ?"; $query = $this->db->prepare($sql); $query->execute(array($id)); //var_dump($query->fetch()); return $query->fetch(); } public function getList() { $sql = "SELEC...
true
808de79d12236f56bced8eb872f1f63ac6569b08
PHP
Simplon-Ramab/biblioo
/add.php
UTF-8
1,385
2.765625
3
[]
no_license
<?php if( isset($_POST['titre']) && isset($_POST['auteur']) && isset($_POST['description']) && isset($_POST['couverture'])){ try { // on ouvre une connexion à la base de données $connexion = new PDO( 'mysql:host=localhost;dbname=biblioo;charset=utf8', 'root', 'root'); } catch (Excep...
true
feaa252e6243b2e99764cd99797283cb12a557e7
PHP
joshuamwolfe/spcollege
/PHP-Projects/wolfeasst6/Program One/index.php
UTF-8
1,601
2.84375
3
[]
no_license
<!DOCTYPE html> <html lang='en' dir='ltr'> <head> <meta charset='utf-8'> <title>Program One</title> <link rel='stylesheet' href='main.css'> </head> <body> <main> <h1 class='text_align_center'>Trump's Cabinet</h1> <hr> <?php ...
true
e0b8f11df076e8a8741fc5161585af2a407bdfb1
PHP
kamayla/gracia_backend
/tanp/tests/TestCase/Repository/DearsRepositoryTest.php
UTF-8
2,663
2.515625
3
[]
no_license
<?php namespace App\Test\TestCase\Repository; use App\Model\Table\DearsTable; use Cake\ORM\TableRegistry; use Cake\TestSuite\TestCase; use App\Repository\DearsRepository; use App\Model\Entity\Dear; /** * App\Model\Table\DearsTable Test Case */ class DearsRepositoryTest extends TestCase { /** * @var DearsRe...
true
04f045f8e9612129f3df1923b83ff55de39a3d59
PHP
kodimkod/telegramBot
/classes/db/queries/ReadOwnMessagesToDeleteAfterTimeQuery.php
UTF-8
1,351
3.125
3
[ "MIT" ]
permissive
<?php namespace TelegramBot; class ReadOwnMessagesToDeleteAfterTimeQuery extends SqlQuery { /** * @var int */ protected $time; /** * @param int $time * @return ReadOwnMessagesToDeleteAfterTimeQuery */ public static function fromParameters(int $time) { if (self::...
true
8fcbd0b4b3fb6538a31c0330f63aeff73ed0309c
PHP
Rahajustone/PHP
/EXAMPLE/website/basic/casesensitivity/casesensitive.php
UTF-8
271
2.984375
3
[]
no_license
<!DOCTYPE html> <html> <head></head> <body> <?php echo "merhaba dunya!<br>"; // php keywords(echo,if,while,else,switch) are not case sensitive ECHO "php casewords are not case sensitive!<br>"; EcHO "php casewords are not case sensitive<br>"; ?> </body> </html>
true
6f96bf948475f10375fb9ac21da023750b6bff68
PHP
hopechurchkyle/website
/wp-content/themes/wpfc-multiply/wpfc-core/includes/setup/class-activation.php
UTF-8
1,655
2.828125
3
[]
no_license
<?php /** * Used on theme Activation */ class WPFC_QS_Activation { /** * @var object */ public static $theme; /** * @var string */ public static $version; /** * Init, where the magic begins * * @return void */ public static function init() { if ( ! is_admin() ) { return; } self::$t...
true
d41ac16c9743849b8d1f9e37034c7c9ee4303763
PHP
GuilianavaD/AA-Proyecto
/ingreso.php
UTF-8
2,922
2.515625
3
[]
no_license
<?php $conexion = new mysqli('localhost', 'root','', 'diario',3310); if($conexion->connect_error) die("Error fatal"); if (isset($_POST['username'])&& isset($_POST['password'])) { $un_temp = mysql_entities_fix_string($conexion, $_POST['username']); $pw_temp = mysql_entities_fi...
true
8597ff054f8f3ccb44994194027ba0c055bda7df
PHP
samleybrize/php-cryptopp
/tests/includes/DefinitionConstant.inc
UTF-8
956
3.4375
3
[ "PHP-3.01", "MIT" ]
permissive
<?php class DefinitionConstant { /** * Constant name * @var string */ private $name; /** * Constant value * @var scalar */ private $value; /** * Constructor * @param string $name constant name * @param scalar $value constant value */ public fu...
true
1ab0154d318e7a6d903c607e7f92d9a509ab5907
PHP
Leping08/Weather-API
/app/Http/Controllers/MeasurementController.php
UTF-8
1,258
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Events\WeatherMeasured; use App\Humidity; use App\Pressure; use App\Temperature; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; class MeasurementController extends Controller { public function store(Request $request) { ...
true
781ed589c9f3c91811414e6799ef492f190af5d2
PHP
shubhangiraje/jugl
/models/base/CfrDistributionUser.php
UTF-8
1,582
2.515625
3
[]
no_license
<?php namespace app\models\base; use Yii; /** * This is the model class for table "cfr_distribution_user". * * @property integer $id * @property integer $cfr_distribution_id * @property integer $user_id * @property integer $votes_count * @property string $jugl_sum * @property integer $processed * * @proper...
true
bfe84a4ebd772e11fc7a18646c29d5ce73bbf69e
PHP
IbarakiUniversity-PM1/estate-system
/app/View/EstateView/detail.ctp
UTF-8
15,848
2.5625
3
[]
no_license
<?php $this->assign("nav", true) ?> <?php echo $this->Html->css(array('estate_view/detail'), false, array('inline' => false)); ?> <?php $this->Html->addCrumb('物件詳細' , "/EstateView/detail/" . $estate["Estate"]["estate_id"]); ?> <?php /** * GoogleMaps API GeoCode API(V3) のURLを取得する * @param ...
true
f4323c28a37d9ec4acf25290031357862a68e965
PHP
dvidals/html
/19-20/Objetos/chachi.php
UTF-8
554
3.75
4
[]
no_license
<?php declare (strict_types=1); class Chachi{ public static $a=0; public $b=0; function __construct(){ echo(++self::$a); echo(++$this->b); } function setChachi(int $a, int $b){ self::$a=$a; $this->b=$b; } } $a=new Chachi; echo'</br>'; $a=new Chachi; echo'<...
true
968bde10431ded02919ca00dfec02ed14bdc7496
PHP
elliotchance/concise
/tests/Concise/Module/FileModuleTest.php
UTF-8
1,594
2.515625
3
[ "MIT" ]
permissive
<?php namespace Concise\Module; class FileModuleTest extends AbstractModuleTestCase { public function setUp() { parent::setUp(); $this->module = new FileModule(); } protected function createTempFile() { $fileName = tempnam('', 'concise'); file_put_contents($fileNam...
true
e3c819b31eff1c25b1656b966dd70ba16dcbe741
PHP
hunzhiwange/framework
/src/Leevel/Support/Type/StringEncode.php
UTF-8
441
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Leevel\Support\Type; class StringEncode { /** * 字符串编码. */ public static function handle(string|int|float $value, bool $autoType = true): string { if (\is_int($value)) { return ':int:'.$value; } if (\is_float($value)) ...
true
33951e13850196ebfdc4cb4ee984a2da59c42f18
PHP
pramod08/Otrs-i-doit-Dockerfile
/i-doit/src/classes/ajax/handler/isys_ajax_handler_sanitize_field.class.php
UTF-8
2,639
2.796875
3
[]
no_license
<?php /** * i-doit - Documentation and CMDB solution for IT environments * * This file is part of the i-doit framework. Modify at your own risk. * * Please visit http://www.i-doit.com/license for a full copyright and license information. * * @version 1.7.3 * @package i-doit * @author synetics GmbH...
true
31f3af2d8f4723a9eaf7c985a809bb20432723b2
PHP
event-bus/event-bus
/tests/unit/Bus/Serializer/JsonSerializerTest.php
UTF-8
3,465
2.515625
3
[]
no_license
<?php namespace Aztech\Events\Tests\Bus\Serializer; use Aztech\Events\Bus\Serializer\JsonSerializer; use Aztech\Events\Bus\Event; class JsonSerializerTest extends \PHPUnit_Framework_TestCase { public function testDeserializationReturnsNullWithUnknownEventClasses() { $object = new Event('category'); ...
true
a788e4765ff7cd0b98cdf971e9850d7e7dd79cdc
PHP
KingCollege/LabProject_DavidAndMandu
/GameLibrarySite/Private/ruleClass.php
UTF-8
2,727
3.125
3
[]
no_license
<?php class Rule{ var $ruleID; var $rentPeriod; var $extensionPerRent; var $extensionPeriod; var $violationPeriod; var $rentNumber; var $banPeriod; var $numberOfViolation; private function clearResult(){ $this->ruleID = NU...
true
2da75263266a963e2534a2e4d8851800f52d5405
PHP
maijianhu/tree
/src/TreeableTrait.php
UTF-8
3,530
3.046875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: m35 * Date: 2018/5/12 * Time: 20:38 */ namespace m35; trait TreeableTrait { protected $treeConfig = [ 'paramNodeId' => 'id', // 参数名:节点的id 'paramNodeParentId' => 'pid', // 参数名:节点的parent id 'rootParentValue' => 0, // 用于从数据中对比是否是根节点 ]; // 树配置 ...
true
b65f971ec39329d3b69f618383579466f1bb310d
PHP
saanpritom/powerlinebd
/admin/superadmin/office_management/user-login-edit.php
UTF-8
6,386
2.5625
3
[]
no_license
<?php require_once('../classes/authentication.php'); include('../static_references/header.php'); include('../static_references/search.php'); include('../static_references/navbar.php'); include_once('../classes/data_validation.php'); include_once('../classes/data_clearence.php'); include_once('../classes/...
true
77fdb6b1f42a6a081d210d36b949189a434d6cab
PHP
budisteikul/toursdk
/src/Helpers/FirebaseHelper.php
UTF-8
3,099
2.578125
3
[]
no_license
<?php namespace budisteikul\toursdk\Helpers; use budisteikul\toursdk\Helpers\BookingHelper; use budisteikul\toursdk\Helpers\ContentHelper; use budisteikul\toursdk\Models\Shoppingcart; class FirebaseHelper { public static function env_firebaseDatabaseUrl() { return env("FIREBASE_DATABASE_URL"); } ...
true
77284c31d16a2b31b3595b1c4f383b5eee5f574d
PHP
sihhan/PHP-Exercise
/ch06-master/php_array12.php
UTF-8
649
4
4
[]
no_license
<?php /* 一般排序函式 sort()、rsort():排序後無論使用何種索引鍵都會轉換為整數索引鍵,並由零開始編號。 asort()、arsort():則保留原主索引鍵,跟著值一起移動。 */ // 範例以陣列元素值排序 $fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"); sort($fruits); foreach ($fruits as $key => $value) { echo "$key = $value <br />"; } echo "<...
true
89ecc2692aa79715871113bdb39712e9edae842e
PHP
jonathanb150/ljb
/html/php_dependancies/item_news.php
UTF-8
1,927
2.78125
3
[]
no_license
<?php if (isset($_GET['item']) && isset($_GET['yahoo'])) { $xml = file_get_contents("https://feeds.finance.yahoo.com/rss/2.0/headline?s={$_GET['item']}&region=US&lang=en-US"); $return = parseXML($xml); if(!empty($return)){ echo $return; } } else if(isset($_GET['item']) && isset($_GET['google'])){ $xm...
true
2dc7320bccd1bc99cad367f9c5065cdb58e572a9
PHP
nstdio/jphp
/jphp-core/tests/resources/misc/bug134.php
UTF-8
267
2.609375
3
[ "Apache-2.0" ]
permissive
--TEST-- Bug #124 --FILE-- <?php class a { static function b() { $c = function() { $d = empty($e->f); $f = isset($e->f); var_dump($d, $f); }; $c(); } } a::b(); ?> --EXPECT-- bool(true) bool(false)
true
ac781bb54d4845245c0ab008ee52c0f2e587ccc9
PHP
Themayu/wss-a2
/p3/files_03.php
UTF-8
286
3.453125
3
[ "MIT" ]
permissive
<html> <body> <?php $myfile = fopen("myfile.txt", "r") or exit("Can't open file!"); // read and display each line of text until the end of the file // is found while (!feof($myfile)) { echo fgetc($myfile) . "<br />"; } fclose($myfile); ?> </body> </html>
true
3014c46b96036f65fa7b6a52d1426008af208ef4
PHP
boxspaced/cms-block-module
/src/Service/BlockMeta.php
UTF-8
1,252
2.828125
3
[]
no_license
<?php namespace Boxspaced\CmsBlockModule\Service; use Boxspaced\CmsBlockModule\Model\Block as BlockEntity; class BlockMeta { /** * * @var string */ public $name; /** * * @var int */ public $typeId; /** * * @var string */ public $typeName; /*...
true
a78677df19251205da3de4d5092bcb176fec15ed
PHP
Cephasb/FuelVoucher
/moblogin.php
UTF-8
1,526
2.765625
3
[]
no_license
<?php include ('base.php'); // Getting the received JSON into $json variable. $json = file_get_contents('php://input'); // decoding the received JSON and store into $obj variable. $obj = json_decode($json,true); $appuid = $obj['userid']; $password = $obj['password']; $role = $obj['role']; /* create a prepared state...
true
7e3e2a7d51ec17e7a31644230db108e7b74d7922
PHP
TomasVotruba/shopsys-spryker-and-sylius-analysis
/src/Report/PhpStanReportSummary.php
UTF-8
945
2.703125
3
[]
no_license
<?php declare(strict_types=1); namespace TomasVotruba\ShopsysAnalysis\Report; use Nette\Utils\Json; final class PhpStanReportSummary { /** * @var int */ private const LIMIT = 20; /** * @return string[] */ public function processPHPStanJsonFileToErrorList(string $filePath): array ...
true
4686e360dda5c8236bef2b1d50a00596501a6b20
PHP
kangzj/KMVC
/system/KErrorHandler.class.php
UTF-8
1,209
2.875
3
[]
no_license
<?php class KErrorHandler { static function captureNormal($severity, $message, $filepath, $line) { // We don't bother with "strict" notices since they tend to fill up // the log file with excess information that isn't normally very // helpful. // For example, if you are running PHP 5 and you use version 4 styl...
true
22d2a702b48463bbe49d2fc8d3d6b3ac6aa1e094
PHP
gpicci/ing2grupo40
/viajesCompartidos/export/facturaPagosEXP.php
ISO-8859-1
7,475
2.515625
3
[]
no_license
<?php ob_start(); require_once('../PHPExcel-1.8/Classes/PHPExcel.php'); require_once('../common/util.php'); require_once('../db/facturaPagosRptDB.php'); $sort = (isset($_POST['sort'])) ? $_POST['sort'] : 'f_pago'; // Aplicar filtro x localidad, si existe $filtroLoc = (isset($_POST['c_id_localidad'])) ?...
true
809183fa9eabfdb932c08c553e6775cad9a98f32
PHP
denigud/testFrameWork
/App/Route.php
UTF-8
5,558
2.78125
3
[]
no_license
<?php namespace App; use App\Controllers\PageNotFound; use Exception; /** * Class Route * @package App */ class Route { private $routes; private $route = []; private $queryParam = []; public function __construct() { $this->loadRoutes(); } /** * */ private functi...
true
ea608ecaf9c217def34ebb0eb3e74f3a3718f7d7
PHP
wzhao-c/wholesale
/application/modules/vendor/models/VendorRepository.php
UTF-8
1,091
2.765625
3
[]
no_license
<?php namespace vendor\models; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\Query; class VendorRepository extends EntityRepository { public function getVendors($filter = null) { $qry_str = 'SELECT v FROM vendor\models\Vendor v LEFT JOIN v.tags t'; $qry_array = array(); $qry_array[] = 'v...
true
f82400ab941d1b88cbe02e95f5b052da2bf2f21a
PHP
DonMalavita/Root_Dashboard
/resources/library/URL.class.php
UTF-8
5,479
3.015625
3
[]
no_license
<?php /** * URL.class.php * --------------------------------------------- * * Bevat alle methods betreft het handelen * met URLs. * * // Redirect naar error pages. * header(); * @param string (uitsluitend) * @output header(); * * // Redirect op basis van redirects.php ( <-- Config ) * redirect(); * @par...
true
b2fd4868f1da071ee8a61ad9736d34f1f9558485
PHP
stanko-arbutina/armies
/army.php
UTF-8
1,063
3.265625
3
[]
no_license
<?php class Army{ function __construct($actor, $size){ $this->general = $actor; $this->size = $size; $this->morale = $size; $this->exhaustion = 0; $this->fortification = 0; } public function fortify(){ $this->fortification+=1; } public function rest(){ if ($this->exhaustion>0) $...
true
3d890547b06b10dc885964943fecb934765307ee
PHP
myclientinfo/isdg
/views/list.php
UTF-8
771
2.53125
3
[]
no_license
<table> <tr> <th>Title</th> <?php if($type != 'Section'){ ?> <th>Section</th> <?php } ?> <?php if($type == 'Piece'){ ?> <th>Page</th> <?php } ?> <th>Order</th> </tr> <?php foreach($data as $row){ $link = '/api/Admin/'.$row['section_title_slug']; if($type != 'Section') $link .= '/'.$row['page_t...
true
20857299959c2eddec1235681e0a551a7db38b09
PHP
Tatsuya29/tugas2promnet
/prosestambah01.php
UTF-8
898
2.6875
3
[]
no_license
<?php //tambah.php //Nama Muhamad Afril Rohmansyah Putra //NIM 19515005 //Prodi Sistem Informasi 2019 //Universitas Gajayana Malang //PromnetR2 //Create Read Update and Delete include ("koneksi01.php"); //cek form submit if(isset($_POST['tambah'])) { $nama = $_POST['nama']; ...
true
9b221e222f4277045dbd3840dd04d02ca71768c4
PHP
PikaJew002/ConferenceManager
/classes/Card.php
UTF-8
2,546
3.71875
4
[]
no_license
<?php class Card { private $mysqli; # MySQLi object private $id; # the identifier (in the database) private $cardNum; # the card number private $name; # the name on the card private $billingAddress; # the billing address private $exp; # the 4-digit expiration date (mmyy) private $securityCode; # the ...
true
97b1159123c2221014b44e7866301ecb8269aa0b
PHP
NipunSingh/MusicMetadataDatabasesClassProject
/userManagement.php
UTF-8
2,559
2.703125
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['username'])) { header("Location: signin.php"); } include_once 'connection.php'; $user_q = "SELECT id, is_admin FROM `music`.`web_user` where `username`='".$_SESSION['username']."'"; $results = mysqli_query($conn,$user_q); $user_info =...
true
8d3d9a65c57d613c507f3fd2cf7a99f5d2c03efb
PHP
eaderhold/SHMT
/tests/construct.phpt
UTF-8
573
2.625
3
[ "MIT" ]
permissive
--TEST-- SHMT: Test SHMT constructor --FILE-- <?php $sTmpFile = tempnam(sys_get_temp_dir(), 'shmt_'); $aData = ['foo' => 'bar', 'bar' => 'baz', 666 => 'evil', 'evil' => 666]; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ var_dump(SHMT::create($sTmpFile, $aData)); /* - - - - - - - - - - - - - - -...
true
90a168cd991e0b459e3b99094639a23085d44a32
PHP
AKikhaev/platform
/public_html/akcms/models/CMSFieldBool.php
UTF-8
356
2.734375
3
[]
no_license
<?php /** * Field int */ class CMSFieldBool extends CMSFieldAbstract { protected static $typeDb = 'BOOLEAN'; public static function dbType() { return self::$typeDb; } public static function quote(pgdb $sql,$v){ return $sql->b($v); } public static function quoteArray(pgdb $sql,array $a) { return self:...
true
e00013ec5e51be8aa87670a156408c61ce76f460
PHP
draganaisak/todo-api
/login.php
UTF-8
714
2.640625
3
[]
no_license
<?php include_once("connection.php"); $request_body = file_get_contents('php://input'); $data = json_decode($request_body, true); $username = $data['username']; $password = $data['password']; $userFound = false; try { $sql = "SELECT * FROM users WHERE username =? && password =?"; $statement = $co...
true
7f854f879e328ee86e32f5af30b2e27082b9b898
PHP
firebug-debug/heypass
/public/install/Helper.php
UTF-8
9,611
2.671875
3
[ "Apache-2.0" ]
permissive
<?php //安装助手类 class Helper{ //返回json数据 public function json($code, $msg, $data = ''){ //设置响应头 header('Content-type: application/json;charset=UTF-8'); echo json_encode(array('status' => $code, 'mess' => $msg, 'data' => $data)); die; //退出脚本运行 } //获取环境信息 public function getInfo(){ $data = ar...
true
8e947c88afabace93b9b096f7ee61e74f79b7223
PHP
agenciadorio/agenciadorio.github.io
/mvcdn/wp-content/themes/structurepress-pt/vendor/proteusthemes/visual-composer-elements/vc-shortcodes/shortcodes/vc-facebook.php
UTF-8
3,503
2.640625
3
[]
no_license
<?php /** * Facebook content element for the Visual Composer editor */ if ( ! class_exists( 'PT_VC_Facebook' ) ) { class PT_VC_Facebook extends PT_VC_Shortcode { // Basic shortcode settings function shortcode_name() { return 'pt_vc_facebook'; } // Initialize the shortcode by calling the parent constructor ...
true
590494cc9e37c89a283b764e3c3bfba03d599e87
PHP
jcmayrina/suntrust-responsive
/classes/usercontrl.php
UTF-8
1,758
2.578125
3
[]
no_license
<?php class Usercontrl extends Dbh{ public function setEmail(){ $email = $_POST['email']; $stmt = $this->connect()->prepare("INSERT INTO `email` (email_add) VALUES (?)"); if($stmt->execute([$email])){ } else echo "failure"; } public function getEm...
true
2e4f769dc47f1a34a7c83015b2661eed0a216bf2
PHP
ecjia/ecjia-daojia
/content/apps/mobile/classes/User.php
UTF-8
1,766
2.59375
3
[]
no_license
<?php namespace Ecjia\App\Mobile; use Ecjia\App\Mobile\Models\MobileDeviceModel; use Royalcms\Component\DateTime\Carbon; class User { const TYPE_USER = 'user'; const TYPE_ADMIN = 'admin'; const TYPE_MERCHANT = 'merchant'; protected $user_id; protected $user_type; ...
true
27efe3fbb223d6d3b7e8621e4f033eceed22143d
PHP
dharmaelms/elmstest
/database/seeds/AttributesTableSeeder.php
UTF-8
2,083
2.578125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB as DB; use Illuminate\Support\Facades\Schema as Schema; class AttributesTableSeeder extends Seeder { public function run() { // Collection name $collection = 'attributes'; // Removing existing collection S...
true
31a05c6549a27675e2bd38b4ca36927f9d94e73f
PHP
ypid/suncalc-php
/lib/datetime/DTPeriod.enum.php
UTF-8
815
2.890625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
<?php class datetime_DTPeriod extends Enum { public static function Day($n) { return new datetime_DTPeriod("Day", 2, array($n)); } public static function Hour($n) { return new datetime_DTPeriod("Hour", 3, array($n)); } public static function Minute($n) { return new datetime_DTPeriod("Minute", 4, array($n)); } publ...
true
c9f08baa60a25b90f67d01fbe40e36e33ed8c4b1
PHP
fallenflash/PogoApi
/classes/Construct/Pokemon.php
UTF-8
11,611
2.6875
3
[]
no_license
<?php namespace PogoApi\Construct; class Pokemon { use \PogoApi\Traits\Construct; public $gender; public $moves; public $name; public $dex; public $encounter; public $size; public $family; public $model; public $buddy; private $data; public function __construct($data, ...
true
807170fcdaf4ff0f59333a4291ef2907b1e073fd
PHP
Berzel/lumen-testing
/tests/Feature/ChangePasswordTest.php
UTF-8
6,282
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Tests\Feature; use App\Events\PasswordChanged; use App\User; use App\Tests\TestCase; use App\Utillities\HttpStatus; use Illuminate\Support\Facades\Hash; use Laravel\Lumen\Testing\DatabaseMigrations; use Laravel\Lumen\Testing\DatabaseTransactions; class ChangePasswordTest extends TestCase { us...
true
f41693cf5bcf28e6e1c7a693eebcc66051a9e702
PHP
aztec212/desing-patterns
/factory/simple-factory/Pizza/VeggiePizza.php
UTF-8
415
3.015625
3
[]
no_license
<?php namespace SimpleFactory\Pizza; use SimpleFactory\Contracts\PizzaContract; class VeggiePizza implements PizzaContract { public function prepare() { echo 'prepare' . PHP_EOL; } public function bake() { echo 'bake' . PHP_EOL; } public function cut() { echo...
true
0f776597d8bfcbfc59b2e618957002fd2eaffb4a
PHP
isntw/gestiune-transport
/app/Console/Commands/minifyAssets.php
UTF-8
3,222
2.59375
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use MatthiasMullie\Minify; class minifyAssets extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'assets:minify'; /** * The console command descri...
true
4089c951b4c5b3bb89e000f596fb395b69dd6f2f
PHP
black-project/yo-php
/tests/Yo/SendYoServiceTest.php
UTF-8
2,502
2.640625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Yo package. * * (c) Alexandre Balmes <alexandre@lablackroom.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Yo; use Geo\Coordinates; use Yo\Service\SendYoService; /** * Class S...
true