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
29e8cdbfb049af93d16ecf5e993015912c05bed3
PHP
luckyfu/suning
/suning-sdk-php/request/custom/RefundreviewConfirmRequest.php
UTF-8
1,675
2.515625
3
[]
no_license
<?php /** * 苏宁开放平台接口 - * * @author suning * @date 2020-7-30 */ class RefundreviewConfirmRequest extends SuningRequest{ /** * */ private $auditStatus; /** * */ private $auditTime; /** * */ private $auditUser; /** * */ private $returnApplyId; public function getAuditStatus(...
true
cbbbddd64116048e81b0997fc78b9b64ef5fa15d
PHP
grupotesseract/shanti
/app/Repositories/BlocoDescricaoRepository.php
UTF-8
7,458
2.59375
3
[]
no_license
<?php namespace App\Repositories; use App\Models\BlocoDescricao; use InfyOm\Generator\Common\BaseRepository; /** * Class BlocoDescricaoRepository * @package App\Repositories * @version June 4, 2018, 7:41 pm BRT * * @method BlocoDescricao findWithoutFail($id, $columns = ['*']) * @method BlocoDescricao find($id...
true
2ab137059cc53da20c458663bba02b54517a3f58
PHP
pklecha/sklep
/tests/PhotoTest.php
UTF-8
2,228
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: pawel * Date: 24.03.17 * Time: 23:34 */ class PhotoTest extends AbstractDateBaseTest { public function testConnection() { $pdo = $this->getConnection()->getConnection(); $result = $pdo->query("SELECT * FROM user"); $this->assertGreaterThan(...
true
6d035842cebb798c7840aca2a136030319f9b956
PHP
rogeriolins/phpoo4
/modulo02/constante_classe.php
UTF-8
699
3.765625
4
[]
no_license
<?php class Pessoa { private $nome; private $genero; const GENEROS = ['M' => 'MASCULINO', 'F' => 'Feminino']; public function __construct($nome, $genero) { $this->nome = $nome; $this->genero = $genero; } public function getNome() { return $this->nome; } public function getNomeGenero() ...
true
4dd6027db67afdb5249b82c29925677600d7515c
PHP
tongfreedom/building
/common/models/Language.php
UTF-8
1,101
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%language}}". * * @property integer $lan_id * @property string $lan_name * @property string $lan_code * @property integer $create * @property integer $update * @property integer $active */ class Language extends \yii\db\Activ...
true
3927e619cda46f67cfc7294bc6288f0592ad4ddc
PHP
ismaelrojasgarcia/Catalogo
/videojuegos/Videojuegos.php
UTF-8
2,252
2.734375
3
[]
no_license
<?php include("../encabezado/Headeranime.php"); include("../conexion/Conexion.php"); include("VideojuegosBusqueda.php"); ?> <body> <?php $conexion = Conectarse(); if (!$conexion) { echo "<h1>Error en abrir la bases de datos.</h1>"; exit(); ...
true
1bacb5d6be5a35c9e2bcb2fd61d5af768fdddfe5
PHP
jschlies/sample_code
/app/Repositories/ApiLogRepository.php
UTF-8
2,441
2.59375
3
[]
no_license
<?php namespace App\Waypoint\Repositories; use App\Waypoint\Events\RepositoryEventBase; use App\Waypoint\Model; use App\Waypoint\Models\ApiLog; use App\Waypoint\Repository as BaseRepository; /** * Class ApiLogRepository * @package App\Waypoint\Repositories */ class ApiLogRepository extends BaseRepository { /*...
true
60c203c432b5a35b4bac8a0a5770d34e57297683
PHP
thethan/fantasytest
/app/Yahoo/Services/Oauth/RefreshToken.php
UTF-8
1,816
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Yahoo\Oauth; use App\Exceptions\YahooServiceException; use App\Yahoo\YahooService; use App\YahooToken; use Carbon\Carbon; use Illuminate\Support\Facades\Auth; use App\Yahoo\Responses\RefreshToken as RefreshTokenResponse; class RefreshToken extends YahooService { protected $authorization_type ...
true
a966060442a9f24fac3c31f9151ad647783eb4e8
PHP
tvihanta/gallery
/phpbackend/index.php
UTF-8
6,940
2.515625
3
[]
no_license
<?php error_reporting(E_ALL); require('lib/Slim/Slim.php'); \Slim\Slim::registerAutoloader(); require 'lib/Slim/Middleware.php'; global $ROOT_FOLDER, $DOMAIN; $ROOT_FOLDER = "galleries/"; $DOMAIN = "http://localhost/gallery/phpbackend/"; $app = new \Slim\Slim(array( 'debug' => true, 'log.enable'...
true
267b8dc68e77a92fa2c59b146ccb9a4b4f72c4d3
PHP
MateK23/BTU-Classroom-v3.0
/database/migrations/2020_11_26_094518_create_courses_table.php
UTF-8
1,372
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCoursesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('courses', funct...
true
18cf5ee427db6cfc49bcbf60dc692a9383795496
PHP
chilam9x/ship668
/app/Models/SpecialUP.php
UTF-8
1,017
2.515625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class SpecialUP extends Model { protected $table = 'special_u_ps'; protected $appends = ['from_name', 'to_name']; protected $fillable = [ 'weight', 'km', 'price', 'province_from', 'province_to' ...
true
08f6a72e010c8db771523595f0d4de3816c61a44
PHP
fossjon/Web
/reddit/auth.php
UTF-8
11,676
2.515625
3
[]
no_license
<?php include("cred.php"); ?> <?php session_start(); //todo:session expire time $auth = 0; if (array_key_exists("auth", $_SESSION)) { $auth = $_SESSION["auth"]; } $mesg = ""; $post = array( "user" => "", "pass" => "", "cpwd" => "", "mail" => "", "link" => "", "head" => "", "body" => "", "self" => "", ...
true
2d4e527f560671f323585dfedbaf62d549cef988
PHP
mercadolibre/arcanist-extensions
/src/lint/provider/gradle/AndroidGradleLintProvider.php
UTF-8
696
2.59375
3
[ "Apache-2.0" ]
permissive
<?php class AndroidGradleLintProvider implements GradleLintProvider { public function getName() { return 'android'; } public function getTargets() { return array('lint'); } public function shouldLintBinaryFiles() { return true; } public function shouldLintDirectories() { return true; ...
true
a930406b84fa76513a95920da1980d09f8eb55ae
PHP
laSyntez/ImageFactory
/src/ImageFactory/Android/Density/AndroidBitmapGenerator.php
UTF-8
8,823
2.984375
3
[ "MIT" ]
permissive
<?php namespace ImageFactory\Android\Density; use ImageFactory\Image\ImageGeneratorInterface; use ImageFactory\Exception\InvalidDriverException; use ImageFactory\Exception\InvalidCompressionTypeException; use ImageFactory\Android\Exception\InvalidBitmapTypeException; use ImageFactory\Android\Exception\InvalidReferenc...
true
b2febf441d2eda909f612fac1bcb0797a910b771
PHP
bokliam/Web-Development-Sample-2
/lib/Noir/LoginView.php
UTF-8
1,917
3.03125
3
[]
no_license
<?php namespace Noir; /** * View class for the login page */ class LoginView extends View { /** * LoginView constructor. * @param Site $site Site object */ public function __construct(Site $site, $cookie) { parent::__construct($site); $this->setTitle("Ajax Noir Login"); if(iss...
true
9ae52911cb57172460e40ae0b828a3213a6dbbd5
PHP
atk14/Atk14
/src/atk14/helpers/modifier.format_number.php
UTF-8
365
2.8125
3
[ "MIT" ]
permissive
<?php /** * Format the given number according to the current locale * * {$number|format_number} -> 1,234.567 * {$number|format_number:2} -> 1,234.57 * {$number|format_number:0} -> 1,235 */ function smarty_modifier_format_number($number,$decimal_places = null){ if(!strlen($number)){ return ""; } return Atk14Loca...
true
d8eadd3ae595fca83600029a743917c9a5a765aa
PHP
conheocon25/thanhbaothvl
/banhrehoangthuy/mvc/mapper/ResourceExport.php
UTF-8
4,690
2.578125
3
[]
no_license
<?php namespace MVC\Mapper; require_once( "mvc/base/Mapper.php" ); class ResourceExport extends Mapper implements \MVC\Domain\ResourceExportFinder { function __construct() { parent::__construct(); $this->selectAllStmt = self::$PDO->prepare( "SELECT * FROM brar...
true
cef25375bfc566f4269cd5128600093dbb598832
PHP
salihzeki12000/meeting
/app/Models/JoinDot.php
UTF-8
1,321
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017\8\23 0023 * Time: 14:53 */ namespace App\Models; use Illuminate\Support\Facades\DB; class JoinDot extends Base { protected $table = 'join_dot'; public function __construct() { parent::__construct(); $this -> _tabl...
true
a34ba5cdf6b3c1dbfd3950503ff1ea9258715f25
PHP
KPFranceSAS/business-central-php
/src/Schema/EntitySet.php
UTF-8
1,556
2.546875
3
[ "MIT" ]
permissive
<?php /** * @package business-central-sdk * @author Morten Harders 🐢 * @copyright 2020 */ namespace BusinessCentral\Schema; use BusinessCentral\Schema; use BusinessCentral\Traits\HasAnnotations; use BusinessCentral\Traits\HasSchema; use Illuminate\Support\Str; /** * Class EntitySet * * @property Entity...
true
ffc95457987d4c920e91cff6a19ce958f09bf7ba
PHP
fariznugraha23/laravel8-authentication
/app/Http/Livewire/ApmUser.php
UTF-8
3,429
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire; use Livewire\Component; use Livewire\WithPagination; use App\Models\User; class ApmUser extends Component { use WithPagination; public $idz, $user, $name, $username, $email, $level,$password; public $isUser = 0; public $paginate=7; public $search; protected $...
true
50f808b260e8ccf49da22f900d9738e9500a722a
PHP
yyss8/Ysphp
/Ysphp/Lib/Youdao.php
UTF-8
6,084
2.640625
3
[ "MIT" ]
permissive
<?php namespace Ysphp; class Youdao { protected $api_entry = 'http://openapi.youdao.com/api'; protected $ssl_entry = 'https://openapi.youdao.com/api'; /** * @param appId 有道管理页面所提供App ID * @param secret 有道管理页面所提供的密钥 * @param ssl 是否启用SSL接口 ...
true
47a56fb1aa48acef16b8dce21ea3d0af8ff99a7c
PHP
larsbadke/stock-crawler
/src/Crawler/Stock.php
UTF-8
1,376
2.96875
3
[ "MIT" ]
permissive
<?php namespace StockCrawler; use Carbon\Carbon; use Illuminate\Support\Collection; class Stock { protected $stock; public function __construct($stock) { if(!is_object($stock)){ $stock = $this->toObject($stock); } $this->stock = $stock; } public...
true
263deccd997e2739c8ff0ad09c6d6ecb9adc09e1
PHP
didimoner/piqtune
/app/models/model_auth.php
UTF-8
25,362
2.671875
3
[]
no_license
<?php class Model_Auth extends Model { /** * Возвращает инфо о пользователе * @param $login * Логин пользователя * @return array|bool */ public function get_user_by_id($login) { // проверка данных if (!$login) return false; // инициализирую нужные перменные $db_table = 'users'; // готовлю ...
true
33ebe5b3c698ba12d563d8c1fde063c692d73741
PHP
markwalet/laravel-changelog
/tests/Adapters/FeatureAdapterTests.php
UTF-8
1,868
2.6875
3
[ "MIT" ]
permissive
<?php namespace MarkWalet\Changelog\Tests\Adapters; use MarkWalet\Changelog\Adapters\FeatureAdapter; use MarkWalet\Changelog\Exceptions\FileNotFoundException; trait FeatureAdapterTests { public $readPath = __DIR__.'/../test-data/example.xml'; /** * Get an adapter instance. * * @return Feature...
true
2e8e015fafc7dc035138a3a0a595115d51de77b0
PHP
AkiyoS/todo_php
/index.php
UTF-8
5,345
2.546875
3
[]
no_license
<?php try { $pdo = new PDO('mysql:dbname=kadai06_db; charset=utf8;host=localhost','root',''); } catch (PDOException $e) { exit('データベースに接続できませんでした。'.$e->getMessage()); } $stmt = $pdo->prepare("SELECT * FROM kadai06_table"); $status = $stmt->execute(); $view=""; if($status==false){ $error = $stmt->erro...
true
407327bd4f09e67e9b94ee0d11d52b32dc1a510f
PHP
nicoIUT/OpenFoodFact
/CodeIgniter/application/controllers/Produits.php
UTF-8
28,260
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Produits extends CI_Controller { public function __construct() { parent::__construct(); $this->load->helper('url'); $this->load->helper('html'); $this->load->library('session'); $this->load->model...
true
f34a8a0caf21aad32e814ad0c4588297fc8ee912
PHP
Sihan001/face
/app/Application.php
UTF-8
2,377
2.828125
3
[]
no_license
<?php namespace App; class Application { public static $routes = array(); public static $methods = array(); public static $callbacks = array(); public static function __callStatic($method, $params) { $uri = strpos($params[0], '/') === 0 ? $params[0] : '/' . $params[0]; $callback = ...
true
3f61e6d40132a16abd0412bc4240f1b81eae5ace
PHP
Fajarmohamadsidyq/projek
/barang/index.php
UTF-8
2,031
2.71875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body style="background-color:aqua;"> <center> <nav> <a hre...
true
6366c1b892f0d6b7599c5d0e9504e13c4147ab7b
PHP
jefersonbraun/GameNews
/functions.php
UTF-8
7,021
2.515625
3
[]
no_license
<?php /** * GavernWP functions and definitions * * This file contains core framework operations. It is always * loaded before the index.php file no the front-end * * @package WordPress * @subpackage GavernWP * @since GavernWP 1.0 **/ if(!function_exists('gavern_file')) { /** * * Function used to get the...
true
4ba0e1f97e1afc717ddbcdd0fcc583d076594a09
PHP
zzudongxiang/ZZU_Luo.Saixue
/pages/admin/user/import._method.php
UTF-8
4,999
2.71875
3
[ "MIT" ]
permissive
<?php require_once "/var/www/html/config.php"; $ResultData = ["SuccessCount" => 0, "ErrorCount" => 0, "ErrorInfo" => array()]; if(!empty($_FILES['file']['name'])) { require_once PATH."/modules/xls/PHPExcel.php"; require_once PATH."/modules/xls/PHPExcel/IOFactory.php"; require_once PATH."/modules/xls/PHPExce...
true
31e596b25739cbd7d7a38f666c085477172dd36d
PHP
Lebe1ge/ZendBlog
/module/Application/src/Application/Entity/User.php
UTF-8
8,628
2.515625
3
[]
no_license
<?php /** * BjyAuthorize Module (https://github.com/bjyoungblood/BjyAuthorize) * * @link https://github.com/bjyoungblood/BjyAuthorize for the canonical source repository * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Application\Entity; use BjyAuthorize\Provider\Role\ProviderIn...
true
5a07fcb5bc3105a3ee3db13ac1ed46e3ed87ed0f
PHP
margaritazainullina/StepsToSuccessSite
/Language.php
UTF-8
8,175
2.53125
3
[]
no_license
<?php class Language { private $UserLng; private $langSelected; public $lang = array(); public function __construct($userLanguage) { $this->UserLng = $userLanguage; } public function userLanguage() { switch ($this->UserLng) { /* ------------------ ...
true
5e28f6aeef3684f234cb947660113ded3e41408c
PHP
Supay3/Agence
/src/Notification/ContactNotification.php
UTF-8
877
2.875
3
[]
no_license
<?php namespace App\Notification; use App\Entity\Contact; use Symfony\Bridge\Twig\Mime\TemplatedEmail; use Symfony\Component\Mailer\MailerInterface; class ContactNotification { /** * @var MailerInterface */ private $mailer; /** * ContactNotification constructor. * @param MailerInt...
true
9cb5604f6814d8f1db6fa612bcd36acabe885ade
PHP
Quentin57720/bmg
/include/_forms.lib.php
UTF-8
1,031
3.328125
3
[]
no_license
<?php /* * PHP - Bibliothèques de fonctions * Fonctions d'affichage de contrôles HTML */ /** * affiche une liste déroulante * * @param $res : un objet de la classe PDOStatement * @param $nom : le nom (attribut name) de la liste déroulante (par défaut, l'id est identique au nom) * @param $selected...
true
0e02730cec64425ac4acca87d7800b7273f011c1
PHP
Miratechnologies/Bulkmailing
/scripts/upload_images.php
UTF-8
2,191
2.8125
3
[]
no_license
<?php // echo bin2hex(random_bytes(3)); if(isset($_POST["uploadImage"])) { include_once 'dbmodel.php'; include_once 'validation.php'; $imageName = $_POST['image_name']; $validation = new Validation(); if ($validation->validateText($imageName) == false || strlen($imageName) < 1 || strlen($imageNam...
true
7ce8e6ff069790a90a58537e5f3590cfb8920e59
PHP
linmingling/demo
/zt/local_task_mage/libs/privilegedUser.class.php
UTF-8
2,002
2.890625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: tc * Date: 2015/12/3 * Time: 11:50 */ class PrivilegedUser extends User{ private $roles; public function __construct(){ parent::__construct(); } public static function getByUsername($username){ $GLOBALS['db']->where ("name", $username); ...
true
f3839d3455b5c8242251e6ac3b2893f1e847c96d
PHP
pivovarcik/cms-gambik
/server/core/form/ListFilter.php
UTF-8
5,314
2.515625
3
[]
no_license
<?php /** * Třída pro přidání nového hitu * */ class ListFilter extends G_Form { public $registerQuery = array(); public $limity = array(); public $sortlist = array(); public $orderlist = array(); function __construct() { $this->setStyle(BootstrapForm::getStyle()); parent::__construct(true); //$this->i...
true
2c20fcfd9a82b44e0a31d6b6cee64164346611e2
PHP
Arturo96/tienda_tecno
/register_user.php
UTF-8
2,791
2.703125
3
[]
no_license
<?php $location = 'add_user.php'; if (!empty($_POST)) { // Conexión con la BD require_once 'includes/conexion.php'; require_once 'includes/helpers.php'; // Recibir los campos del formulario $submit = $_POST['submitUser']; $email = mysqli_real_escape_string($connection, $_POST['email']); ...
true
749517fe686acfc475d6216b36de7a49bc04713a
PHP
uetiko/sVJrg7eGjFHj4B6j
/pagoFacil/src/Backend/Country/Domain/Country.php
UTF-8
894
3.03125
3
[]
no_license
<?php declare(strict_types=1); namespace Uetiko\Prueba\Backend\Country\Domain; use Uetiko\Prueba\Backend\Country\Domain\CountryId; class Country { /** @var CountryId $id */ private $id; /** @var string $name */ private $name; /** @var string $code */ private $code; public function __const...
true
a589f2f67112ebafb6d5ba2464718a871bf23edb
PHP
jihenchelly/usina
/Bootstrap_Metro_Dashboard-master/ajoutproduit.php
UTF-8
3,635
2.71875
3
[ "MIT" ]
permissive
<?php /*********************************************************************************************************************/ //1- établir la cnx avec la base de données //2- récupérer les informations depuis le formulaire //3- créer un objet chauffeur et l'insérer dans la base [méthode d'insertion dans la base dans l...
true
67590c21c44ba461c3cd95d3834de167e0b57c0f
PHP
laurabschell/laurabschell.github.io
/php/contact-form - OK.php
UTF-8
2,627
2.796875
3
[]
no_license
<?php session_cache_limiter('nocache'); header('Expires: ' . gmdate('r', 0)); header('Content-type: application/json'); require 'php-mailer/PHPMailerAutoload.php'; // Your email address $to = 'lauryschell97@gmail.com'; $subject = $_POST['subject']; if($to) { $name = $_POST['name']; $email = $_POST['email']; ...
true
f7722b231ea700c8c4a19b02e6088277c8167084
PHP
kklingjie/cdvphp
/CdvPHP/Loader/Loader.php
UTF-8
3,603
2.9375
3
[]
no_license
<?php /** * 类的单例, 根据类名加载并实例化该类 * * 自动查找加载类并实例化, 这是一个静态方法类 * * @link http://www.cdvphp.com * @author <fanjiapeng@126.com> * @package CdvPHP\Loader */ class Loader { /** @var array $_class */ protected $_class = array(); /** @var object $_class */ protected static $_obj = null; /** * _i...
true
2b72042866aac0622c524891ff3050c24af2715e
PHP
richbarrett7/ParcelforceTrackingScraper
/src/ParcelforceTrackingScraper.php
UTF-8
3,510
2.9375
3
[]
no_license
<?PHP namespace richbarrett\ParcelforceTrackingScraper; class ParcelforceTrackingScraper { var $url; var $response; function __construct($trackingNumber) { $this->url = 'https://www.parcelforce.com/track-trace?trackNumber=' . $trackingNumber; } function getEvents() { ...
true
896dab0d909b139c4ff47ff8d12ffa9b9ba37595
PHP
salehahmadbabu/local-dir
/doctrine-dbal/index5.php
UTF-8
1,529
2.515625
3
[]
no_license
<?php require "vendor/autoload.php"; $connectionParams = array( 'dbname' => 'cms', 'user' => 'saleh', 'password' => 'Saleh_ahmaD1234', 'host' => 'localhost', 'driver' => 'mysqli', ); $conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams); $qb = $conn->createQueryBuilder(); if ($co...
true
f012eb561d33645a4f98a0fdc6b19b79a59cdb2b
PHP
Dokunet/morningHelper
/Presentation/registration.php
UTF-8
5,107
3
3
[]
no_license
<?php //Included necessary files include('../Persistence/userDao.php'); //add logging config include('Business/loggingConfig.php'); //enabling the session in this file include('Business/session_timeout.php'); session_start(); session_regenerate_id(true); //add needed variables $error = $message = ''; $firstname = $l...
true
79c3b657145230ed6037d9e46cda00fa1a6ecce7
PHP
kibanian/httc
/app/Http/Controllers/Api/CardController.php
UTF-8
2,430
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Card; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; use Exception; use App; class CardController extends Controller { private $cr; function __construct(Request $request) { if($request->isMet...
true
48806bf4ec30adc21cb77642ce648540e4bf0f93
PHP
docb22/ez-publish-cookbook
/EzSystems/CookBookBundle/Command/CookBookCommand.php
UTF-8
2,140
2.5625
3
[]
no_license
<?php /** * File containing the CookBookCommand class. * * @copyright Copyright (C) 2012 eZ Systems AS. All rights reserved. * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 * @version //autogentag// */ namespace EzSystems\CookBookBundle\Command; use Symfony\Bundle\FrameworkBundle...
true
f7444e750be8671894e5607114b17b8a89a3e9de
PHP
troyGH/Cudos
/application/controllers/employee.php
UTF-8
3,593
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Employee extends CI_Controller { // constructor used for needed initialization public function __construct() { parent::__construct(); $this->load->helper(array('form','url','html', 'date')); $this->load->library(array('session')); $this->load->database(); $this->load->model('employee_model'); ...
true
11452887b063c88b54b18696253d8bbd7914516a
PHP
GameFixxer/cms_staging
/src/Client/Order/Persistence/OrderRepositoryInterface.php
UTF-8
438
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Client\Order\Persistence; use App\Generated\Dto\OrderDataTransferObject; interface OrderRepositoryInterface { /** * @return OrderDataTransferObject[] */ public function getOrderList(): array; /** * @param int $orderId * @return \App\Genera...
true
b85a6db10903e298717aa57df4fa912a7e4044b7
PHP
stackboxcms/stackboxcms
/alloy/lib/Alloy/Session.php
UTF-8
1,993
3.125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Alloy; /** * Session Class * Handles and stores user session data * * @package Alloy * @link http://alloyframework.com/ * @license http://www.opensource.org/licenses/bsd-license.php */ class Session { /** * Constructor Fuction * Begins new user session */ public function ...
true
a015179cc624da2b684c85ad4c49f7b61692a8d5
PHP
sicdigital/SIC-Theme-Framework
/library/class-SicPagination.php
UTF-8
3,510
3.390625
3
[]
no_license
<?php class sicPagination{ public $range; public $pages; private $count; public $content; function __construct($range = '3', $pages = ''){ $this ->setRange($range) ->setPages($pages) ->setCount() ->setFirstPage() ->setMaxPages(); } private function setRange($range){ $this->range = ...
true
26b557e3ffbe3d3c77be53bd4e36cb9d25d9152b
PHP
Svarog83/svassets
/src/SVApp/Repositories/Asset.php
UTF-8
455
2.671875
3
[ "MIT" ]
permissive
<?php namespace SVApp\Repositories; use Silex\Application; use SVApp\Classes\Repository; class Asset extends Repository { public function __construct(Application $app) { parent::__construct($app, 'SVApp\Entities\Asset'); } /** * @param $id * @param $cacheAllowed * @return \SVApp\Entities\Asset|\SVApp\Cl...
true
f49cbacdbc64c33305c2f3ce6df308c73be92913
PHP
alirahmanian1/notify
/src/Http/Middleware/MyMiddleware.php
UTF-8
582
2.71875
3
[]
no_license
<?php namespace Anisa\Notification\Http\Middleware; use Closure; class MyMiddleware { public function __construct() { echo "middle"; } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param string|null $...
true
42c79a9af23e1e702cdb92dbf3801bd4015e3fdb
PHP
e-novinfo/mailchimpapi
/app/Generators/CSVGenerator.php
UTF-8
10,516
2.96875
3
[]
no_license
<?php /** * MailChimpApi - CSVGenerator * * @since 16.12.2016 * * @version 1.0.0.0 * * @author e-novinfo * @copyright e-novinfo 2016 */ namespace enovinfo\MailChimpApi\Generators; class CSVGenerator { /********************************/ /********** PROPERTIES **********/ /***...
true
b7b5235c39866f1306441ab0155bc3a60d5b443d
PHP
simplehtmldom/simplehtmldom
/tests/htmldocument_test.php
UTF-8
6,024
2.859375
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/../simple_html_dom.php'; use PHPUnit\Framework\TestCase; /** * Tests for simple_html_dom */ class htmldocument_test extends TestCase { private $html; protected function setUp() { $this->html = new simple_html_dom; } protected function tearDown() { $this->html->clear(); u...
true
dfcb6116c49b29dc92338a60bce1cd5f1e911312
PHP
0x6d617474/budgeteer
/app/Domain/EventSourcing/Contracts/AggregateRoot.php
UTF-8
652
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Domain\EventSourcing\Contracts; interface AggregateRoot { /** * Reconstruct the state of the entity from a message stream. * * @param \App\Domain\EventSourcing\Contracts\Event[] $events */ public static function reconstitute(array $events): self; /** * Accesso...
true
ae643a621fe2cc4f0204eb84f41ada4c139f0de4
PHP
sperelson/YAPHPSite
/libs/view.php
UTF-8
1,015
2.625
3
[ "MIT" ]
permissive
<?php namespace Perelson; /* * The view helper * */ class View { public static function show() { $viewName = "index"; $vars = array(); if (!empty($_SESSION['errors'])) { $errors = $_SESSION['errors']; } if (!empty($_SESSION['remember'])) { $...
true
22ffc74c50d43cd7ee14e5e506df204389849086
PHP
ricky7606/Beelintown
/application/mobile/model/ReplyAdditionDetails.php
UTF-8
1,033
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\mobile\model; //导入模型类 use think\Model; class ReplyAdditionDetails extends Model { // 设置当前模型对应的完整数据表名称 protected $table = 'view_ReplyAdditionDetails'; //在子类重写父类的初始化方法initialize() protected function initialize(){ //继承父类中的initialize() parent::initialize(); //初始化数据表字段信息 $...
true
de50ca9d45936030f22e5bbcb4077255b0418180
PHP
MRCardoso/bsFramework
/yii/models/ProductRequest.php
UTF-8
1,517
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use app\commands\MyModel; use Yii; /** * This is the model class for table "product_request". * * @property integer $product_id * @property integer $request_id * @property integer $quantity * @property string $price * * @property Product $product * @property Request $request */ ...
true
f9e8927added800d7e200b50283fa7953a596127
PHP
m1caell/sig-porto
/controller/register-controller.php
UTF-8
791
2.65625
3
[ "MIT" ]
permissive
<?php include("../services/connection.php"); $user = mysqli_real_escape_string($conexao, $_POST['user']); $email = mysqli_real_escape_string($conexao, $_POST['email']); $password = mysqli_real_escape_string($conexao, $_POST['password']); if (empty($_POST['user']) || empty($_POST['password']) || empty($_POST['email'])...
true
f6cd9449e1e2db93007afe41e6639e6a72eb3a7b
PHP
mohanraju/AGHATE
/commun/ajax/ajax_codage_get_historique_cma.php
UTF-8
2,492
2.625
3
[]
no_license
<?php ######################################################################################### # MODULE HISTORIQUE Diagnostique patient # # ######################################################################################## require("../../user/session_check.php"); //--------------------------------------...
true
01da6ddabc933084688f8fad42b0a61eb00a9f25
PHP
Arry1991/webHostingTest-master
/react-backend/business/displayCheckin.php
UTF-8
2,564
3.078125
3
[]
no_license
<?php /*This file will display the patron info base on **selected business. It will send info as json to **the front-end. */ header('Content-Type: application/json'); //start the session session_start(); //Check if the user is login if (isset($_SESSION['owner_id'])) { //Check if the user selected a business if...
true
2387a983d154dfc51c7b990a607f519dcccf3d2a
PHP
fsdevcoder/ipoh-drum-laravel-api
/app/Module.php
UTF-8
495
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Module extends Model { /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'status' => 'boolean', 'created_at' => 'datetime', 'updated_at' => 'datetime'...
true
51d597ad1849596aed2f78265f21934914aaeb4d
PHP
Anubhav652/ImageUploader
/profile.php
UTF-8
6,814
2.5625
3
[ "Apache-2.0" ]
permissive
<!DOCTYPE HTML> <?php include 'uploads/images_sqlite.php'; if (!isset($_COOKIE['LoggedIn'])) { echo '<script>location.href="index.php"</script>'; } $Login = $_COOKIE['LoggedIn']; $Yes = ""; $arrayToAns = ""; $information = ""; // $answer1 = $Login.",".getUserImageCount($Login); $Option1 = "Account Name,Im...
true
7aa8cc29ad7fafbaaa04f0ea1f4e7cdb135186d4
PHP
jessicavicentini/php-mod3
/mod1/exercicio7.php
UTF-8
742
3.21875
3
[]
no_license
<?php if (!isset($argv[1]) || !isset($argv[2])) { echo 'Dígite corretamente o nome do livro e o tipo de usuario(professor ou aluno)' . PHP_EOL; exit; } $name = $argv[1]; $user = $argv[2]; switch ($user) { case 'professor': echo 'Recibo:' . PHP_EOL . ...
true
57879555c4e4764d22e52279177bfe6ec0f9daa0
PHP
airplanemodes/estore-blog
/products.php
UTF-8
2,095
2.671875
3
[]
no_license
<?php $page_title = "Products"; include './connect.php'; include_once './util.php'; session_start(); if (!user_verify()) { header('location:login.php?auth=error'); exit; # stops all code } // gets data rows of the connected user $query_show = "SELECT * FROM pro...
true
4f0942ececc5d313b06486c994349612c0483dbe
PHP
kdemane/reorg
/application/db/db.php
UTF-8
940
2.875
3
[]
no_license
<?php class db { private $dbh; function __construct() { $dsn = 'mysql:dbname=reorg;host=127.0.0.1'; $user = 'root'; $password = ''; try { $this->dbh = new PDO($dsn, $user, $password); } catch (PDOException $e) { echo 'Connection failed: ' . ...
true
4b56f6229f6ff0288e9d9801bae61c64784bf78a
PHP
cusquiskas/animales
/backoffice/shopping.php
UTF-8
2,013
2.5625
3
[]
no_license
<?php session_start(); error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); header('Content-Type: application/json; charset=utf-8'); require_once 'conect/conf.php'; //información crítica del sistema require_once 'conect/dao.php'; //control de comunicación con la base de datos MySQL require_once 'session/init.php'; ...
true
191f8a2ae4a3750d75909cb3f4c36e5e6820e3df
PHP
Krotorator/Purple
/src/mail.php
UTF-8
987
2.71875
3
[]
no_license
<?php if (isset($_POST['userName']) && isset($_POST['userMail']) && isset($_POST['userTel'])) { $name = $_POST['userName']; $name = htmlspecialchars($name); $name = urldecode($name); $name = trim($name); $email = $_POST['userMail']; $email = htmlspecialchars($email); $email = urldecode($ema...
true
695280951b896e5e61bca77ed541594d5da90e0f
PHP
buhr3940/HW6-APIs
/twillio.php
UTF-8
469
2.578125
3
[]
no_license
<html> <meta http-equiv="refresh" content="1"> <body> <table border="1"> <?php include_once("config.php"); $sql = "SELECT * FROM twilio order by ts desc limit 50"; print ""; if ($result=mysqli_query($db,$sql)) { // Fetch one and one row while ($row=mysqli_fetch_row($result)) { printf("<tr><td>%s</td><td>...
true
b95e73f0b6a86640be129b8390bcaeb1f1f8c8de
PHP
denismitr/micro
/app/Auth/JwtAuthInterface.php
UTF-8
246
2.859375
3
[]
no_license
<?php namespace App\Auth; interface JwtAuthInterface { public function attempt(?string $username, ?string $password): ?string; public function authenticate(string $token); public function hashPassword(string $password): string; }
true
0179376760055454edeeb57e1d330286f3cef3b1
PHP
Gezzd/gallery
/background/background/application/controllers/gallery/GalleryBackground.php
UTF-8
16,703
2.625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class GalleryBackground extends CI_Controller { public function __construct() { parent::__construct(); date_default_timezone_set("PRC"); } public function path() { return '../../uploadImages'; } //主动判断是否HTTPS public function isHTTPS() { if (def...
true
789bbdd7dd6b4eb5799284e4820ec1d96fbd923e
PHP
mmyumu/league-of-lol
/lolol/LOL_DDN/Log.php
UTF-8
3,057
3.03125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php class Log { /** * Classe Log */ /** * Function stringifyArray * * @param $p_aData array Array to be stringified * @param $p_iLvl int Level of stringification */ function stringifyArray ($p_aData, $p_iLvl = 0) { $sData = ''; $bFirst = true; if (is_array($p_a...
true
69f05374f2d3ac1fd7c9077ee329602ead2c3d86
PHP
dazz/repo-pr-stats
/src/Service/Storage/Storage.php
UTF-8
3,006
2.703125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the RepoPrStats application. * * (c) Anne-Julia Scheuermann * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Dazz\PrStats\Service\Storage; use Dazz\PrStats\Service\Exception\NoRecordCreate...
true
96162847e18c2ffce2b3d06a19826437067d09dd
PHP
aharley40/Emergence-Skeleton
/php-classes/WebdavRequestHandler.class.php
UTF-8
2,879
2.6875
3
[ "MIT" ]
permissive
<?php class WebdavRequestHandler extends RequestHandler { static public function handleRequest() { // retrieve authentication attempt $authEngine = new Sabre_HTTP_BasicAuth(); $authEngine->setRealm('Develop '.$_SERVER['HTTP_HOST']); $authUserPass = $authEngine->getUserPass(); // try to get user $user...
true
44fe6cc3235b8e548960f71a031fb70e55fa96ae
PHP
11att3r5/Front-Yard-Fairways-
/pagelets/Assignments.inc.php
UTF-8
3,894
2.765625
3
[]
no_license
<div class="dashboard"> <?php include("includes/dashboard-nav.inc.php"); ?> <div class="dash-display"> <div id="assignments"> <h2>Assignments</h2> <?php require_once('DB-info.php');//connect to DB. if (isset($_POST['submit'])) { $CusNum = $_POST['CusNum']; $Emp = $_POST['EmpNum'];...
true
c08cee02f2c95eba26edaab5820d9a049c652fb4
PHP
hi-iwd/paypalpos
/Api/Data/BundleOrderItemOptionInterface.php
UTF-8
723
2.53125
3
[]
no_license
<?php namespace IWD\PaypalPos\Api\Data; interface BundleOrderItemOptionInterface { /** * @return int */ public function getOptionId(); /** * @param int $optionId * @return $this */ public function setOptionId($optionId); /** * @return string */ public functio...
true
fc8a8a71c795b01d0d4d37364a06de23b4d925b4
PHP
hnomkeng/travian-kingdom
/game/s1/engine/building.php
UTF-8
56,391
2.609375
3
[]
no_license
<?php /* * Develop by Phumin Chanthalert from Thailand * Facebook : http://fb.com/phoomin2012 * Tel. : 091-8585234 (Thai mobile) * Copy Rigth © Phumin Chanthalert. */ class Building { private $html = ""; public $data = null; public $buildArray = null; public function getQueue($id = null) { ...
true
3bfe409ec078f885e0b1fd2d213b55672ee0b2e2
PHP
Stolz/php-stubs
/res/php/nis/functions/yp-all.php
UTF-8
226
2.5625
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Traverse the map and call a function on each entry * * @phpstub * * @param string $domain * @param string $map * @param string $callback * * @return void */ function yp_all($domain, $map, $callback) { }
true
796fbb81f8f681578381d155c8723a872c02f114
PHP
rolmax1/workflow
/src/Netzmacht/Workflow/Handler/Listener/EventDispatchingListener.php
UTF-8
2,796
2.515625
3
[]
no_license
<?php /** * @package workflow * @author David Molineus <david.molineus@netzmacht.de> * @copyright 2014 netzmacht creative David Molineus * @license LGPL 3.0 * @filesource * */ namespace Netzmacht\Workflow\Handler\Listener; use Netzmacht\Workflow\Flow\Context; use Netzmacht\Workflow\Flow\Item; use N...
true
06595dafd558df2764a3f5351227a3d409f5cc39
PHP
MarioLegenda/langland-v2
/src/DataSourceLayer/DataSourceSetupInterface.php
UTF-8
196
2.609375
3
[]
no_license
<?php namespace App\DataSourceLayer; interface DataSourceSetupInterface { /** * @return DataSourceInterface */ public static function createDataSource(): DataSourceInterface; }
true
9fc8efafe7edaec32c7ba016bc674168e1fad455
PHP
alexmorales26/cst336
/Final_Project/delete.php
UTF-8
2,064
2.578125
3
[]
no_license
<?php include'inc/adminHeader.php'; session_start(); if(!isset($_SESSION['username'])) // validates that the admin is logged in { header("Location: index.php"); } ?> <script> var btn=document.getElementById("delete"); btn.disabled=true; </script> <style> .del{ pointer-events:none; } </sty...
true
53e82c43f7492437b512a4c1cdda0227050e5941
PHP
fly-studio/laravel-addons-core
/src/Models/Relations/HasOneOrManyBy.php
UTF-8
5,278
2.671875
3
[ "MIT" ]
permissive
<?php namespace Addons\Core\Models\Relations; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Relations\Relation; abstract class HasOneOrManyBy extends Relation { protected $callable; private $parentKeys = []; public function __const...
true
ace0020201fd36ce78dd242381f08cf6a2ed7d85
PHP
antonio-maldonado/paginaSIIES
/php/saveCatalogo.php
UTF-8
7,597
2.578125
3
[]
no_license
<?php session_start(); require 'data.php'; $message=''; if(isset($_SESSION['user_id'])){ $records=$conn->prepare('SELECT * FROM usuario WHERE idUsuario=:id'); $records->bindParam(':id',$_SESSION['user_id']); $records->execute(); $results=$records->fetch(PDO::FETCH_AS...
true
93735a51fa62aa0bc24d9a97b856591f4afde48a
PHP
trevorassaf/msbs
/projects/ctl_packet/src/model/region_table.php
UTF-8
685
2.640625
3
[]
no_license
<?php require_once("ExternalDependencies.php"); /** * createRegionTableBuilder() * @relationships: * - many-to-many: Surgery */ function createRegionTableBuilder() { $table_builder = new TableBuilder(); $column_builder = new ColumnBuilder(); // Compose column $table_builder->setName("Region"); $regi...
true
08bb12d71ed2b35cb119ed3a43f1222833ffec6b
PHP
dietervyncke/dry-dbi
/src/BuildHandler.php
UTF-8
2,604
3.109375
3
[]
no_license
<?php namespace Tnt\Dbi; use Tnt\Dbi\Contracts\StatementInterface; abstract class BuildHandler { /** * The table the BuildHandler works on * @var string */ private $table; /** * The output query * @var string */ private $query = ''; /** * The output query para...
true
3a099354cb566cdfda9b12a0bd5a498cd29b3371
PHP
EderAndre/crudmaker
/application/models/Configs.php
UTF-8
1,495
2.53125
3
[]
no_license
<?php class Model_Configs { protected $_table; public function getTable() { if(null ===$this->_table) { require_once APPLICATION_PATH.'/models/DbTable/Configs.php'; $this->_table= new Model_DbTable_Configs; } return $this->_table; } public function listaConfigs() { return $this->get...
true
1d5d0fd43d961b6982d5590934c67f7567e07d17
PHP
Vrtak-CZ/NJLogParser
/index.php
UTF-8
2,158
2.609375
3
[]
no_license
<?php namespace NJLogParser; require_once __DIR__ . "/libs/nette.min.php"; require_once __DIR__ . "/libs/Curl.php"; require_once __DIR__ . "/libs/CurlResponse.php"; require_once __DIR__ . "/libs/Parser.php"; use Nette\Diagnostics\Debugger; set_time_limit(0); Debugger::enable(Debugger::DEVELOPMENT, __DIR__); Debugger...
true
02ef1668e572488f2dad58bd75bda456de53468d
PHP
muceliFederica/progettoAMM
/ProgettoAMM2015/php/controller/BaseController.php
UTF-8
6,509
2.578125
3
[]
no_license
<?php include_once basename(__DIR__) . '/../view/ViewDescriptor.php'; include_once basename(__DIR__) . '/../model/UtenteFactory.php'; include_once basename(__DIR__) . '/../model/User.php'; include_once basename(__DIR__) . '/../model/ProdottoFactory.php'; class BaseController { const user = 'user'; const ruol...
true
952d0efd3a263fb7ad6ee1f797685440d0b64f18
PHP
doanphihung/Book-Store
/Book_Store/app/Http/Repositories/Page/AuthorRepository.php
UTF-8
407
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Repositories\Page; use App\Models\Author; class AuthorRepository { protected $authorModel; public function __construct(Author $author) { $this->authorModel = $author; } public function getAllBookByAuthor($id) { $author = $this->authorModel->with('book...
true
e71a6d342d65b9e0583d8c955658d7484622044b
PHP
rus87/my-store
/src/AppBundle/Event/MyEvent.php
UTF-8
302
2.578125
3
[]
no_license
<?php namespace AppBundle\Event; use Symfony\Component\EventDispatcher\Event; class MyEvent extends Event { private $data; public function __construct($input) { $this->data = $input; } public function getData() { return $this->data; } }
true
a1d8d66e7926385cf1527d5f7b4787ac260138b5
PHP
musps/mds-pokemon-api
/public/test.php
UTF-8
295
2.75
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); class Test { /** * @type('string') * */ public $name = 'toto'; } $ra = new ReflectionAnnotatedClass('Test'); $e = new Test(); echo '<pre>'; print_r($ra); echo '</pre>';
true
7ef0293296cadbc0e13b13346c4f5297cb1ec33e
PHP
nozreh/dennismelo
/assets/php/mail2.php
UTF-8
1,394
2.609375
3
[]
no_license
<?php require 'Mandrill.php'; $mandrill = new Mandrill("PRgkkKrIhLWZvXbFh9YugA"); $recipient = 'mmbtiempo86@gmail.com'; // If are not using environment variables to specific your API key, use: // $mandrill = new Mandrill("YOUR_API_KEY") // check for empty required fields if (!isset($_POST['name']) || !isset($_P...
true
58d2d954094b4abeda63badfb01be623d2daad20
PHP
MarioLegenda/iWant
/src/Cache/Cache/ShippingCostsCache.php
UTF-8
4,093
2.796875
3
[]
no_license
<?php namespace App\Cache\Cache; use App\Doctrine\Entity\ShippingCostsItem; use App\Doctrine\Repository\ShippingCostsItemRepository; use App\Library\Util\Util; use App\Cache\Exception\CacheException; class ShippingCostsCache { /** * @var ShippingCostsItemRepository $shippingCostItemRepository */ pr...
true
cbdb6be46cfeeb75682c1f9b2a6203bcf49e74d6
PHP
soon0009/membership-database
/view/form.php
UTF-8
349
2.765625
3
[]
no_license
<?php $member = new Member(); if (isset($_POST['firstname'])) { $member->firstname = $_POST['firstname']; $member->lastname = "foo"; $member->password = "bar"; $member->addMember(); print "<h2>Added record</h2>"; } ?> <form method="post"> <input type="text" name="firstname" value=""/> <input type="subm...
true
6b15aae5c10bb1439d28bc7a6614081d6e558991
PHP
Scheyk/LMSCF-Kathrin-Schey-CR11
/admin.php
UTF-8
4,062
2.671875
3
[]
no_license
<?php ob_start(); session_start(); // if session is not set this will redirect to login page if(!isset($_SESSION['admin']) && !isset($_SESSION['user'])){ header("Location: index.php"); exit; } if(isset($_SESSION['user'])) { header("Location: home.php"); exit; } require_once 'db_conn.php'; // sele...
true
9d60e04892cf0a686a5b0286eb0a001a00d55778
PHP
Shofiul-Alam/magento-app
/src/vendor/temando/module-shipping-m2/Webservice/Processor/OrderOperation/CollectionPointManifestProcessor.php
UTF-8
3,242
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "OSL-3.0", "AFL-2.1", "AFL-3.0", "MIT" ]
permissive
<?php /** * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license */ namespace Temando\Shipping\Webservice\Processor\OrderOperation; use Magento\Framework\EntityManager\HydratorInterface; use Magento\Framework\Exception\LocalizedException; use Magento\Sales\Api\Data\OrderInterface a...
true
29db8bd635fb087d511f739b32d413f7d4ff4d54
PHP
tdeem6/2015.08.14_RepeatCounterReview
/tests/CountRepeatsTest.php
UTF-8
966
3.125
3
[ "MIT" ]
permissive
<?php require_once "src/CountRepeats.php"; class CountRepeatsTest extends PHPUnit_Framework_TestCase { //had this test working fine, once I started adding to the main method the next tests failed function test_singleWordMatch() { $test_CountRepeats = new CountRepeats; ...
true
0686a08c7ce54a25f7d7daca2ad498672b0536ea
PHP
Artm94/Cinemas-Ramar
/cinema/advanced/common/models/Proyeccion.php
UTF-8
2,067
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "proyeccion". * * @property integer $id * @property string $sala_id * @property integer $pelicula_id * @property string $fecha_funcion * @property double $precio * * @property Boletos[] $boletos * @property Salas $sala * @prop...
true
e3f245ca3474253d815a34e072c61928c810f9ef
PHP
JialongLv/LvYaf
/application/library/Queue/Task.php
UTF-8
1,731
2.890625
3
[]
no_license
<?php namespace Queue; //队列生产者 class Task { protected $redis; protected $queue_name; public function __construct() { //获取框架配置 $config = \Yaf_Registry::get('config'); //队列名 $this->queue_name = $config->queue->name; //是否有连接redis $redis = \Yaf_Registry::...
true