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
d5ac5e92a6f80f9f344eb2c4249031beb35ac4eb
PHP
razsiddiq/hrm
/hrmsapp/models/Department_model.php
UTF-8
1,532
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class department_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function get_departments() { return $this->db->get("xin_departments"); } public function read_departm...
true
ad5baf02fa5b20caca444844f486c9b5a25ba36d
PHP
babacar44/SYMFONY-projet1
/src/Entity/CategoryService.php
UTF-8
1,787
2.78125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\CategoryServiceRepository") */ class CategoryService { /** * @ORM\Id() * @ORM\GeneratedValue() ...
true
82184519d4738d6d700e13fc554717332596499f
PHP
zhaodifangsi/ForU-CMS
/library/cls.cart.php
UTF-8
10,464
3.484375
3
[ "MIT" ]
permissive
<?php /** * 购物车基本功能 * 1) 将物品加入购物车 * 2) 从购物车中删除物品 * 3) 更新购物车物品信息 【+1/-1】 * 4) 对购物车物品进行统计 * 1. 总项目 * 2. 总数量 * 3. 总金额 * 5) 对购物单项物品的数量及金额进行统计 * 6) 清空购物车 * * @author quanshuidingdang */ class Cart { //物品id及名称规则,调试信息控制 private $product_id_rule = '\.a-z0-9-_'; //小写字母 | 数字 | ._- private $product_name_rul...
true
4efaf5c4720a4d1dca33ed634596d1ab300ad491
PHP
RFeener/Bitter-SocialMediaWebsite
/www/CodeAlongs/Chapter15 _proc.php
UTF-8
676
2.890625
3
[]
no_license
<?php //Check to see if file was uploaded if (empty($_FILES['pic']['name'])) { echo "Error: File not submitted"; } else { // 1 MB is the largest file size by default if ($_FILES['pic']['size'] > 1024 * 1024) { echo "Error: File must be under 1MB"; unlink($_FILES['pic']['...
true
60c67f2e897e0dd446c659fcfe6622192b426f3a
PHP
barkow/Raspi-RFID
/rfidEventStorage/rfidEventStorage.php
UTF-8
3,202
2.75
3
[]
no_license
<?php ini_set('display_errors', 1); error_reporting(E_ALL); require 'Slim/Slim.php'; \Slim\Slim::registerAutoloader(); require 'Views/jsonResponse.php'; class eventStorageDB extends SQLite3{ function __construct(){ $this->open('./db/test.db', SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE); } functi...
true
6f12762747d3581701c479e14b424c99bf1ebd4a
PHP
budkovsky/dsig-xml-builder
/src/Partial/EntityAdapterTrait.php
UTF-8
932
2.703125
3
[]
no_license
<?php declare(strict_types = 1); namespace Budkovsky\DsigXmlBuilder\Partial; use Budkovsky\DsigXmlBuilder\Abstraction\AdapterInterface; /** * Trait for entites contain adapter property */ trait EntityAdapterTrait { /** @var AdapterInterface */ protected $adapter; /** * Setter for entity adapter ...
true
8f241d82dc6eb0b03c16711f19e1a055afa48ceb
PHP
devmyqi/php-exams
/inc/exam.php
UTF-8
8,045
2.90625
3
[]
no_license
<?php /* meta information filename: dev/inc/exam.php description: exam class for exams version: v0.0.2 (new approach) author: Michael Wronna, Konstanz created: 2019-11-15 modified: 2019-11-21 */ class Exam extends Getter { protected $defaults = [ 'courses' => [], 'questions' => [], // 'previous' => False...
true
84dffd2201ac80301f64b70c22f1c2a5bc1e43b9
PHP
pantharius/helpers
/src/DB/DBManager.php
UTF-8
4,185
3.234375
3
[]
no_license
<?php namespace JDOUnivers\Helpers\DB; use PDO; use PDOException; /** * Implement the adapter for PDO */ class DBManager { private $pdo = false; protected static $instance; protected $sql; // to display errors /** * Create the pdo instance */ private function __construct($host = DB_H...
true
cccd62f1972d4b76a0a0ededd52280e79b85e9f5
PHP
MrAlejandro/practice-oop
/factory/factory_method/Chicago/ChicagoStyleCheesePizza.php
UTF-8
401
3.1875
3
[]
no_license
<?php class ChicagoStyleCheesePizza extends Pizza { public function __construct() { $this->name = 'Chicago style Sauce and Cheese Pizza'; $this->dough = 'Thin Crust Dough'; $this->sauce = 'Marinara Sauce'; array_push($this->toppings, 'Grated Reggiano Cheese'); } public ...
true
24725b80d52d5c02c9e2da1ef0967814bdabf9aa
PHP
Nelidamontes/Prueba
/modelo/proceso.php
UTF-8
1,702
2.984375
3
[]
no_license
<?php require_once('../db/conexion.php'); class Proceso{ private $idProceso; private $numProceso; private $descripcion; private $sede; private $presupuesto; public function Proceso(){ $parametros=func_get_args(); $cantidad=func_num_args(); $funcionConstructor= '_constructor'.$can...
true
f96751a998ddf1ecc6ae979d71f811fced042c0d
PHP
p-brz/HouseHub
/tests/househub/services/ServiceStructure.classTest.php
UTF-8
2,190
2.5625
3
[]
no_license
<?php namespace househub\services; /** * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-12-03 at 14:28:04. */ class ServiceStructureTest extends \PHPUnit_Framework_TestCase { /** * @var ServiceStructure */ protected $object; /** * Sets up the fixture, for example, opens a network ...
true
1fe2b58e5f477d23c23af0149361b878e6fe250c
PHP
albertpatera/nettecms
/app/components/ArticleControl.php
UTF-8
582
2.65625
3
[]
no_license
<?php use Nette\Application\UI; class ArticleControl extends UI\Control { public function render() { $this->template->setFile(__DIR__ . '/../presenters/templates/article/default.latte'); $this->templatel->render(); echo "hello box world"; } protected function createCompomentAddCommentForm() { $form...
true
41f37659fad00c1b19c39dd3decd4f99d967aaae
PHP
ganeshkavhar/PHP-Course
/Function 6/globalv var.php
UTF-8
414
3.796875
4
[]
no_license
<?php $num1 = 5; $num2 = 2; function multiply(){ global $num1; // Accessing global variables from function scope requires this explicit statement global $num2; $answer = $num1*$num2; return $answer; } // When in the global scope, regular global variables can be used // without explicitly stating...
true
8d1b187f85a9be4b779685e0d15e42b399f79a0a
PHP
adibhanna/agency
/app/Agency/Api/Mappers/PostMapper.php
UTF-8
1,261
3
3
[]
no_license
<?php namespace Agency\Api\Mappers; use Agency\Api\PostsCollection; use Agency\Post; class PostMapper{ protected $post; protected $posts_collection; public function __construct() { $this->image_mapper = new ImageMapper(); $this->video_mapper = new VideoMapper(); $this->tag_mapper = new TagMapper(); } ...
true
4c103a6d8088c735b01cc4d6b0a58035f362ae0b
PHP
Elimuswift/mpesa
/src/Mpesa/B2C/Events/B2CResultReceived.php
UTF-8
412
2.5625
3
[ "MIT" ]
permissive
<?php namespace Elimuswift\Mpesa\B2C\Events; /* * This Event Will be fired whenever a B2C Payment Result is intercepted */ use Elimuswift\Mpesa\B2C\Response\PaymentReceived; class B2CResultReceived { /** * PaymentReceived. * * @var PaymentReceived */ public $response; public functio...
true
fae5f58d56fb14c4a434e2fa5977350ae6377ba1
PHP
zdanek/loggers_preso
/php/classes/UserRepository.php
UTF-8
3,048
2.828125
3
[]
no_license
<?php class UserRepository { private static $inst; public static function getInstance() { if (!self::$inst) { self::$inst = new UserRepository(); } return self::$inst; } public function findAll() { $users = array(); $userRecords = getDatabase()->al...
true
0f57d922b13b4c49a6fdaec6c018ba91ad5262d4
PHP
DOOGIE-CHOE/HowTo
/php/arraytest.php
UTF-8
289
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Daniel * Date: 11/1/2016 * Time: 2:49 PM */ $a = array( 'a' => 'a', 'b' => 'b', "qweqwe" => "shit" ); if(isset($a['qweqwe'])){ if($a['qweqwe']){ echo $a['qweqwe']; } } foreach ($a as $key) { ${$key} = "A"; }
true
46c27bc2d77b1b39f0c7d5b3fadb17a8f4449c70
PHP
collecthor/data-interfaces
/src/JavascriptVariableInterface.php
UTF-8
682
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace Collecthor\DataInterfaces; /** * This interface extends the variable interface and adds methods for doing the annotation on the client side. */ interface JavascriptVariableInterface extends VariableInterface { /** * This creates a plain javascript object with the fo...
true
c83c6d14f0a8f8f57f5a5ae9c3666a0669b77397
PHP
pstamatop/social-security-website
/src/login.php
UTF-8
1,979
2.578125
3
[]
no_license
<?php require_once './db-connection.php'; // echo $_SESSION["user-id"]; $userErr = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { // if($_POST){ $email = $_POST["email"]; $pass = $_POST["password"]; $query = "SELECT * FROM Users WHERE email='". $email . "' AND password='" . $pass . "';"; ...
true
fc9425ee8529a51deb058857715316dfaa2e6016
PHP
LenaYu2016/phpfinal
/Auth/controllers/RegisterController.php
UTF-8
1,287
2.75
3
[]
no_license
<?php namespace Project\Auth\controllers; use Project\Auth\models\RegisterModel; use Project\Classes\Helper; use Project\Validation\Validator; class RegisterController extends AuthController{ public function __construct() { parent::__construct(); $this->model = new RegisterModel(); } // GET /Auth/Re...
true
0e9e7c219dbc27374bc7c23794996337fbcf1c73
PHP
trm2007/NewCMS
/repositories/exceptions/NewRepositoryExceptions.php
UTF-8
735
2.71875
3
[]
no_license
<?php namespace NewCMS\Repositories\Exceptions; use TRMEngine\Exceptions\TRMException; class NewRepositoryExceptions extends TRMException { public function __construct( $message = "", $code = 0, \Throwable $previous = NULL) { $message .= PHP_EOL . " Ошибка при работе с репозиторием в NewCMS! " . PHP_...
true
65ed182b30afc374bfc874f631e1dd6fda6ab85d
PHP
luigif/WsdlToPhp
/samples/xignite-insider/Array/Holding/XiInsiderTypeArrayOfNonDerivativeHolding.php
UTF-8
2,440
2.65625
3
[]
no_license
<?php /** * Class file for XiInsiderTypeArrayOfNonDerivativeHolding * @date 08/07/2012 */ /** * Class XiInsiderTypeArrayOfNonDerivativeHolding * @date 08/07/2012 */ class XiInsiderTypeArrayOfNonDerivativeHolding extends XiInsiderWsdlClass { /** * The nonDerivativeHolding * Meta informations : * - minOccur...
true
9f58e3cbc1f36ce41e7c7e5917416b1982a5d291
PHP
creatuity/magento2-welcome-to-machine
/app/code/Creatuity/WelcomeToMachine/Controller/To/NegateYear.php
UTF-8
642
2.59375
3
[]
no_license
<?php namespace Creatuity\WelcomeToMachine\Controller\To; /** * Description of newPHPClass * * @author m.ostrowski */ class NegateYear extends \Creatuity\WelcomeToMachine\Controller\Base { public function execute() { try{ $albumId = $this->_ensureParam('album_id'); ...
true
b6e01e74ba5bea463c3934440a4a1e134934fe3c
PHP
niki4Him/todoapp
/app/Observers/TodoObserver.php
UTF-8
906
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use App\Models\Todo; use Illuminate\Support\Str; class TodoObserver { /** * Handle the Todo "creating" event. * * @param \App\Models\Todo $todo */ public function creating(Todo $todo) { $this->slugOperation($todo); } /** * Handle ...
true
d845417e973eb1aeecb4fe97c8234d08d0dfb1e4
PHP
alisher-radjabov/php-oop-concepts
/api/Classes/Main/AbstractCardCreator.php
UTF-8
921
3.25
3
[]
no_license
<?php /** * AbstractCardCreator class pattern */ namespace classes\main; use \classes\main\BoardingCard; use \Exception; /** * AbstractCardCreator creates a type of boarding card */ abstract class AbstractCardCreator { /** * Creates an instance of a boardingcard. * @return BoardingCard If $boardin...
true
bd6fa921acd056b8f93f0f158afc9c81a7ba2838
PHP
jlmh1989/F073D15C1A5C7
/protected/models/Courses.php
UTF-8
6,364
2.53125
3
[]
no_license
<?php /** * This is the model class for table "tbl_e24_courses". * * The followings are the available columns in table 'tbl_e24_courses': * @property integer $pk_course * @property integer $fk_level * @property integer $fk_client * @property integer $fk_teacher * @property integer $fk_type_course * @property ...
true
af801ca254bbb42f2d69aa5588071e8f5bd36cc6
PHP
marceloleob/shekinah
/app/Services/FeatureService.php
UTF-8
1,868
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Models\Feature; use App\Models\PropertyFeature; use App\Services\BaseService; use Illuminate\Support\Arr; class FeatureService extends BaseService { /** * Checkbox values * * @return array */ public static function options() { return Featu...
true
a0753939c4906695ac8b7cda9031373b7e3cd979
PHP
jdgonzalez907/usbmed
/application/Libs/Alerta.php
UTF-8
1,470
2.875
3
[]
no_license
<?php /* * 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. */ namespace Mini\Libs; /** * Description of Alerta * * @author ingeniero.analista1 */ class Alerta { ...
true
b22eaa122c7c103ab120eb29173bb834963ac1d2
PHP
nupagachi/trainning_para
/app/ChatWork/ChatWorkAPI.php
UTF-8
3,545
2.6875
3
[ "MIT" ]
permissive
<?php class ChatWorkAPI { public function __construct() { } public function callAPI($method, $url, $data) { $curl = curl_init(); switch ($method) { case 'POST': curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'POST'); if ($data) { ...
true
f2b227588f5950083d11f47b0fb2431d0c30300b
PHP
afragen/git-updater
/src/Git_Updater/Ignore.php
UTF-8
1,668
2.765625
3
[ "MIT" ]
permissive
<?php /** * Git Updater * * @author Andy Fragen * @license MIT * @link https://github.com/afragen/git-updater * @package git-updater */ namespace Fragen\Git_Updater; /** * Class Ignore * * For when you want Git Updater to ignore specific repositories. */ class Ignore { /** * Holds array of repo...
true
5ae89db829631f47033826a77680f1dfb5612f2f
PHP
roundpartner/cloud
/src/Queue/SeqQueue.php
UTF-8
3,173
2.84375
3
[]
no_license
<?php namespace RoundPartner\Cloud\Queue; use GuzzleHttp\Client; use RoundPartner\Cloud\Queue\Entity\SqsMessage; use RoundPartner\Cloud\Queue\Entity\Stats; class SeqQueue { protected $queue; /** * @var Client */ protected $client; /** * @param \GuzzleHttp\Client $client * @param...
true
8569d1a2d755fe2214fbeff78680fd98ce5385fd
PHP
WordPressUtilities/wpudebugtoolbar
/wpudebugtoolbar.php
UTF-8
5,919
2.578125
3
[ "MIT" ]
permissive
<?php /* Plugin Name: WP Utilities Debug toolbar Description: Display a debug toolbar for developers. Version: 0.8.1 Author: Darklg Author URI: http://darklg.me/ License: MIT License License URI: http://opensource.org/licenses/MIT */ class WPUDebugToolbar { public $plugin_version = '0.8.1'; private $hooks = ...
true
f31b5f32e2ceeee4cf1b0b1a817c218cdaf09b26
PHP
dzineer/outside-joomla-payinvoice
/test/suites/unit/helpers/PayInvoiceHelperFormatTest.php
UTF-8
2,919
2.640625
3
[]
no_license
<?php /** * Tests for the PayInvoiceHelperConfig class. * * @package Payinvoice.UnitTest * @since 1.1.0 * @author Gaurav Jain * * @runInSeparateProcess */ // XITODO : defines.php of component also require_once JPATH_SITE.'/components/com_payinvoice/payinvoice/helpers/format.php'; class PayInvoic...
true
48ad2ddf0921eb3186df9db4969ea7faf448ced1
PHP
nigelhough/php_graphs
/testPie.php
UTF-8
544
2.828125
3
[]
no_license
<?php include 'graphs.php'; $MyGraph = new php_graph(1,2); $MyGraph->addDataItem('Seg 1',347,9); $MyGraph->addDataItem('Seg 2',720,8); $MyGraph->addDataItem('Seg 3',512,7); $MyPie = $MyGraph->drawPie("pie1","jpg",400,400,"Pie Chart"); echo "<div>"; echo "<img src='$MyPie?".date("dmYHi...
true
a68383879aace6697a1f55daa41dd77ddede18ea
PHP
1-Touch/midrubPost
/application/controllers/Invoices.php
UTF-8
32,063
2.625
3
[]
no_license
<?php /** * Invoices Controller * * PHP Version 5.6 * * Invoices file contains the Invoice Controler * * @category Social * @package Midrub * @author Scrisoft <asksyn@gmail.com> * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License * @link https://www.midrub.com/ */ if ( !d...
true
40816eb54923de0201a7206c9b8c2ce233c7fc44
PHP
renattomartins/photo-viewer
/src/Controllers/PhotosControl.php
UTF-8
5,373
2.859375
3
[]
no_license
<?php namespace Controllers; use Models\PhotoRepository; use Models\PhotoRecord; use Components\Notifications\Notification; use Components\FileUploader\UploadedPhoto; use Components\FileUploader\UploadedFileException; use Core\FileNotFoundException; /** * Classe PhotosControl. * * Cada operação dessa classe repre...
true
241e90e5d015fedb34c79f62aa31707d9c0b23ab
PHP
Su-Tangnu/NotifyMe
/passwordChange.php
UTF-8
4,634
3.140625
3
[]
no_license
<?php //We use sessions to ensure that people can only see the homepage //once they have logged in. session_start(); //mysqli_connect(server,username,password,database) $conn = mysqli_connect("localhost","root","","notifyme_db"); ?> <!DOCTYPE html> <html> <head> <title>Change Your NotifyMe! Password</t...
true
b4d05bcc7ed794d21ab42754199f4dd83413ef99
PHP
google-code/acinonyx
/Acinonyx/Features.php
UTF-8
7,303
3.03125
3
[]
no_license
<?php /** * A class which provides all the functions to interact with the * more special features of the IMDb iPhone API. * * @package Acinonyx * @class Acinonyx_Features * @extends Acinonyx_Base * @author John McClane * @copyright John McClane 2009 * @version 0.9.0 */ require_once (dirname(__...
true
7c0598a12c2c1bcda1545de971558dd5c5e3e333
PHP
charlesmtz1/GL-Intranet
/Gonzalez_Leal/Presupuesto Taller.php
UTF-8
48,905
2.53125
3
[]
no_license
<?php session_start(); if(empty($_SESSION['username'])){ header("Location: ../login.php"); }else{ $buscar = null; $folio = $marca = $tipo = $modelo = $placas = $cia = $siniestro = null; $busqueda_exitosa = false; $presupuesto_exitoso = false; $error_busqueda = null; $conc...
true
56fefd9243d922897c9464b4aa333afd70d2dd43
PHP
saveryanov/slinker
/includes/database.php
UTF-8
2,469
3.0625
3
[]
no_license
<?php require_once("config.php"); /* * Выполняет подключение к БД * Возвращает PDO объект для работы с базой */ function get_db_handler($conf = array()) { if(empty($conf)) { $conf = get_config(); } $dbh = new PDO('mysql:host=' . $conf['host'] . ';dbname=' . $conf['database'] . ';charset=UTF8', $conf['username'...
true
bd048a79aea96d5f75656fe0ee8fae495d06d2b1
PHP
alecslupu/sfshop
/plugins/sfsCorePlugin/modules/core/lib/BaseCoreActions.class.php
UTF-8
3,138
2.5625
3
[ "MIT" ]
permissive
<?php /** * sfShop, open source e-commerce solutions. * (c) 2008 Dmitry Nesteruk <nesterukd@gmail.com> * * Released under the MIT License. * * For the full copyright and license information, please view the LICENSE file. */ /** * Base core actions. * * @package plugin.sfsCorePlugin * @subpackage modul...
true
862ae8c54a4008c3fe5de930499cf39825ddf932
PHP
tenshi98/Descontinuados-PHP
/easy_pago/web_easy_pago/sendemail.php
UTF-8
3,725
2.578125
3
[]
no_license
<?php /**********************************************************************************************************************************/ /* Se llaman a los archivos necesarios */ /**********************************************...
true
39771b82f15492ad404e8c1ad0f23dde242ce9a0
PHP
shrry2/arcadia
/app/app/Http/Controllers/ProfileController.php
UTF-8
1,151
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Str; use Illuminate\Support\Facades\Hash; use \App\User; class ProfileController extends Controller { public function edit(Request $request) { return view('profile.edit', ['user' => $request->user()]); } ...
true
abef23ce13972c6a02f29ee054a38c3759e721fb
PHP
CatLabInteractive/oauth2
/src/CatLab/OAuth2/Models/AuthorizeController.php
UTF-8
2,422
2.8125
3
[ "MIT" ]
permissive
<?php namespace CatLab\OAuth2\Models; /** * Class AuthorizeController * @package CatLab\OAuth2\Models */ class AuthorizeController extends \OAuth2\Controller\AuthorizeController { /** * Internal method for validating redirect URI supplied * * @param string $inputUri The submitted URI to be valid...
true
59aa22d37c63b9a44eead357e62e429a84469e70
PHP
shwetavarma07/crime-report
/crimereport/login.php
WINDOWS-1252
2,346
2.828125
3
[]
no_license
<?php if(isset($_SESSION['login_user'])) { header("location: home.php"); } session_start(); // Starting Session $error=''; // Variable To Store Error Message if (isset($_POST['submit'])) { if (empty($_POST['username']) || empty($_POST['password'])) { $error = "Username or Password is invalid"; } else { $us...
true
a774c4704602a6a2f0c1706cc4d502db2b889da7
PHP
hmones/wib_portal
/app/Http/Middleware/B2bRounds.php
UTF-8
1,114
2.515625
3
[]
no_license
<?php namespace App\Http\Middleware; use App\Models\B2bApplication; use App\Models\Round; use Closure; use Illuminate\Http\Request; class B2bRounds { public function handle(Request $request, Closure $next) { $shouldRedirect = false; $message = null; if ($request->round->status === Ro...
true
6995f9c21cf7be22ae2735a9be8fee3b996f691a
PHP
alex-chambet/appliedSecurityLaboratory
/webserver/src/Security/Encoder/ShaPasswordEncoder.php
UTF-8
712
2.828125
3
[]
no_license
<?php namespace App\Security\Encoder; use Symfony\Component\Security\Core\Encoder\BasePasswordEncoder; use Symfony\Component\Security\Core\Exception\BadCredentialsException; class ShaPasswordEncoder extends BasePasswordEncoder { /** * {@inheritdoc} */ public function encodePassword($raw, $salt) ...
true
81f1cd593b66d76fea99aff77c06645a565e1692
PHP
silverbrave/pro
/local/app/Http/Controllers/ParcoursController.php
UTF-8
1,510
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Parcour; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Input; class ParcoursController extends Controller { public function index(){ $parcours = Parc...
true
fbfe6648b7db0895e3fc59bcd85463b015ff3d48
PHP
daudmalik06/ReconFalcon
/vendor/krakjoe/pthreads-polyfill/src/Worker.php
UTF-8
1,363
2.765625
3
[ "MIT" ]
permissive
<?php if (!extension_loaded("pthreads")) { class Worker extends Thread { public function collect(Closure $collector = null) { foreach ($this->gc as $idx => $collectable) { if ($collector) { if ($collector($collectable)) { unset($this->gc[$idx]); } } else { if ($this->collector($colle...
true
390b01cbb394033cfa37185b79ffd3f357eaca61
PHP
abell25/SmartSocket
/controllers/account_controller.php
UTF-8
3,606
2.515625
3
[]
no_license
<?php if('POST' == $_SERVER['REQUEST_METHOD']) { session_start(); $user_id = $_SESSION['user_id']; $devices = getDevices($user_id); $username = mysqli_real_escape_string($connection, $_POST['username']); $email = mysqli_real_escape_string($connection, $_POST['email']); $power_cost = mysqli_real_escap...
true
48f645c6694bb1aecc4befd534fd2e5ecd9a68f8
PHP
danudiningrat/KuliahWeb
/operator.php
UTF-8
186
2.796875
3
[]
no_license
<?php $a=10;$b=20; $c=$b % $a; $a +=$c; $b *=$a; $c &=1; $c |=$a; $d=($a>$b); echo "Nilai a=$a <br>"; echo "Nilai b=$b <br>"; echo "Nilai c=$c <br>"; echo "Nilai d=$d <br>"; ?>
true
9c96d328833ca7cbd6f7d7252b6b4cf1f31769c0
PHP
matteotealdi/Informatica
/SLOTMACHINEX/gioca.php
UTF-8
2,253
2.53125
3
[]
no_license
<?php session_start(); $frutta=["R","G","B"]; $estrazione = []; $valEstratti = []; if(isset($_SESSION["nPartiteSenzaPunti"])){ $esistePunteggioUltime3Mani=$_SESSION["nPartiteSenzaPunti"]; }else{ $esistePunteggioUltime3Mani=0; } $esistePunteggioUltime3Mani=0;...
true
a86bc0bc63c214d98d16cf8724663fbd475883b1
PHP
cozyphp/contracts
/src/Comparable.php
UTF-8
936
3.234375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Cozy.Contracts * * (c) Nestor Picado <info@nestorpicado.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cozy\Contracts; /** * Defines a generalized comparison method that a value type or class impleme...
true
4b9feaa24d66ab6b9a07776a5d542ac1a61cbd9e
PHP
alistairshaw/ambitiousmail-relay
/app/AmbitiousMailSender/CampaignEmails/CampaignEmailFactory.php
UTF-8
1,145
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\AmbitiousMailSender\CampaignEmails; use App\AmbitiousMailSender\Base\Entity\AbstractEntityFactory; use App\AmbitiousMailSender\Base\Entity\EntityFactory; use App\AmbitiousMailSender\Base\ValueObjects\DateTime; use App\AmbitiousMailSender\Base\ValueObjects\Email; class CampaignEmailFactory extends ...
true
108cf23b8f86f50435a5dbc701c93803ac681866
PHP
micheldesilets/lesnormandeaudesilets
/priv/php/factories/json/products/GetMainFolderProduct.php
UTF-8
2,025
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: User * Date: 2019-03-04 * Time: 15:09 */ namespace priv\php\factories\json\products; use priv\php\{factories\json\factory as factory,connection as con, programs as prog,classes\business as business}; class GetMainFolderProduct implements factory\JsonProduct { pri...
true
8180bd9f18b00e93d18406451d377c3c9aeadeb5
PHP
tunjioye/result-request-system
/app/Requester.php
UTF-8
930
2.640625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Requester extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'requesters'; /** * The attributes that are mass assignable. * * @var array */ protect...
true
503151940339d7157bb52e9eab1084d5525ec3b6
PHP
yebanliuying/tianqiaodi
/common.php
UTF-8
973
2.859375
3
[]
no_license
<?php /** * 常用函数库 */ !defined('IN_Q') && exit('Access denied!'); //模板调用 function display($tpl, $T=array()){ !empty($T) && extract($T); $tpl_file = 'template/' . $tpl . '.tpl.php'; if(!include_once($tpl_file)){ exit('找不到' . $tpl . '模板文件。'); } exit; } //页面跳转 function to_url($url, $time=0) { header("refresh:...
true
379b08c82d961f17efd53303bb8997871409a12b
PHP
webstream-framework/WebStream
/src/DI/Test/InjectorTest.php
UTF-8
2,669
2.640625
3
[ "MIT" ]
permissive
<?php namespace WebStream\DI\Test; require_once dirname(__FILE__) . '/../Modules/Container/Container.php'; require_once dirname(__FILE__) . '/../Modules/AnnotationException.php'; require_once dirname(__FILE__) . '/Fixtures/Injected.php'; require_once dirname(__FILE__) . '/Fixtures/StrictInjected.php'; /** * Injector...
true
95be77dbb73fbbd5d80cf98f9b97864dd383ebe4
PHP
corbosman/advent2020
/app/Commands/Advent16b.php
UTF-8
4,084
2.84375
3
[]
no_license
<?php namespace App\Commands; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Str; use LaravelZero\Framework\Commands\Command; class Advent16b extends Command { protected $signature = '16b'; protected $description = 'Advent 16b'; public function handle() { $input = trim(fi...
true
a79af99beadfce49a827b2f7fa88482ab7ddf017
PHP
yommie/symfony-docker-social-app
/app/src/Service/SocialInteraction/Follow.php
UTF-8
2,115
2.890625
3
[ "MIT" ]
permissive
<?php namespace App\Service\SocialInteraction; use App\Entity\User; use App\Entity\Followers; use App\Repository\FollowersRepository; use Doctrine\ORM\EntityManagerInterface; use App\Service\SocialInteraction\Exception\SameUserException; use App\Service\SocialInteraction\Exception\NotFollowingException; use App\Servi...
true
2cbff860b0177a584f2c31a0d68339440def2f1b
PHP
LLDetails/jxnips
/app/DeliveryMode.php
UTF-8
1,175
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * App\DeliveryMode * * @property integer $id * @property integer $company_id * @property string $mode * @property float $costs * @property string $deleted_at * @property \Carbon\Carbon $created_at * @property \Carbon\Carbon $updated_at * @pro...
true
298fba9ef36be5036891c694ed7054c600650656
PHP
tsugiproject/tsugi
/vendor/cboden/ratchet/src/Ratchet/Wamp/WampServer.php
UTF-8
1,858
2.71875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace Ratchet\Wamp; use Ratchet\MessageComponentInterface; use Ratchet\WebSocket\WsServerInterface; use Ratchet\ConnectionInterface; /** * Enable support for the official WAMP sub-protocol in your application * WAMP allows for Pub/Sub and RPC * @link http://wamp.ws The WAMP specification * @link https://...
true
1cecb6b7ec19e754c6cc3bcb901c0654fe487b52
PHP
608emenu/emenu
/Application/Admin/Controller/PublicController.class.php
UTF-8
959
2.5625
3
[]
no_license
<?php namespace Admin\Controller; use Think\Controller; class PublicController extends Controller { function _initialize() { if (! $_SESSION ["wadmin"]) { $this->redirect ( "Admin/Login/index" ); } // $_GET = $this->_get(); // $_POST = $this->_post(); } public function upload() { $upload = new \Think...
true
737b780f0f79617debc43783d43bff5734ec5366
PHP
darsyn/datetime
/src/Date.php
UTF-8
501
2.96875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Darsyn\DateTime; class Date extends DateTime implements DateInterface { public function __construct(?string $datetime = null, ?\DateTimeZone $timezone = null) { $datetime = new \DateTime($datetime ?: 'now', $timezone); parent::__construct($datetime->for...
true
7a5abe1eebdfc76c81c69c6788003e4cb6fbcf3f
PHP
lars0n/MaFormationWF3
/exam_phpSql/exercice2/poo/class/Validation.php
UTF-8
1,067
2.984375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Hello * Date: 08/08/2017 * Time: 16:18 */ class Validation { public $errors = []; public $post; public function __construct($post){ $this->post = $post; } public function isEmpty($field, $errorMsg){ if(isset($this->post[$field]) && e...
true
c9fbfa09dca9abeee35200fcd10a481ba63fb8cd
PHP
izzyolejnik/HotSpotz
/lib/helpers/userActions.php
UTF-8
1,822
3.125
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "HotSpotz"; $table = "Locations"; // Creates Table name Locations // Get actions from app to do operations in the database $action = $_POST["action"]; //Create Connection $conn = new mysqli($servername, $...
true
44b32602437cc8cf0c6dec0d09c13bc1ce6dace0
PHP
barutbogdan/rossodivino
/app/HasSeoMeta.php
UTF-8
735
2.609375
3
[ "MIT" ]
permissive
<?php namespace App; /** * Trait HasSeoMetas * @package App */ trait HasSeoMeta { /** * @return string|null */ public function getSeoTitleAttribute() { $translation = $this->getTranslation(); return $translation->seo_title ?: $translation->name; } /** * @return ...
true
ac14d2a390ec1436fb1d8fccf49646906e8ec9c5
PHP
erhanyi/php
/app/views/isimListele_view.php
UTF-8
1,196
2.8125
3
[]
no_license
<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="tr" xmlns="http://www.w3.org/1999/xhtml"> <head> <title> İsim Listesi </title> </head> <body> <h1>Yeni İsim</h1>...
true
52e6a4b941ba031a8ec6df36713181802c38b89e
PHP
4Shaneob/NewUITest
/logout.php
UTF-8
135
2.5625
3
[]
no_license
<?php session_start(); if (session_destroy()) //Destroy all sessions { header("Location: index.html"); //Redirecting to Home Page } ?>
true
2327d3917f526aa4ba59462e8f0260f4ed2cc524
PHP
Baderf/endproject
/apps/app_frontend/controllers/dashboard.php
UTF-8
305
2.546875
3
[]
no_license
<?php class dashboard extends user_controller{ public function __construct(){ parent::__construct(); } public function index(){ $this -> view -> data['username'] = sessions::get('uname'); $this -> view -> render("dashboard/index", $this -> view -> data); } }
true
eb6b56629db186fe7cebad83cfe1bdc0acee912d
PHP
maxquebral/StepTheFkUp
/packages/Pagination/src/Interfaces/PagePaginationDataResolverInterface.php
UTF-8
491
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace StepTheFkUp\Pagination\Interfaces; use Psr\Http\Message\ServerRequestInterface; interface PagePaginationDataResolverInterface { /** * Resolve page pagination data for given request. * * @param \Psr\Http\Message\ServerRequestInterface $request * * ...
true
5b0d8e8ab8c68c7256a860f6f9b79d222deefdf2
PHP
zwillianmattos/ecommerce-admin
/application/helpers/loja_helper.php
UTF-8
1,017
3.171875
3
[]
no_license
<?php function last_query(){ $ci = & get_instance(); debug( $ci->db->last_query() ); } function debug( $data ){ echo "<pre>"; print_r( $data ); echo "</pre>"; exit(); } function getSession($index) { // Recupera o ponteiro da instancia do CodeIgniter $CI = &get_instance(); // Se ...
true
77c8c048583f26312a3e890ea4a94257d387ef85
PHP
kassner/log-parser
/tests/Format/LocalIpAddressTest.php
UTF-8
924
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace Kassner\LogParser\Tests\Format; use Kassner\LogParser\LogParser; use Kassner\LogParser\Tests\Provider\IpAddress as IpAddressProvider; /** * @format %A * * @description Local IP-address */ class LocalIpAddressTest extends IpAddressProvider { protected $parser; protected function setUp(): ...
true
5e4b0bcb2edb3c94eb76a14aa5df5c66e753878d
PHP
EdeMeijer/serialize-debugger
/src/EdeMeijer/SerializeDebugger/Type/AbstractType.php
UTF-8
456
2.671875
3
[ "MIT" ]
permissive
<?php namespace EdeMeijer\SerializeDebugger\Type; use EdeMeijer\SerializeDebugger\Exception; abstract class AbstractType implements TypeInterface { /** * @param string $key * @throws Exception * @return string */ public function formatKeyAccess($key) { throw new Exception('Not...
true
071ccff4d15442aad12d7d4b1c698916b7ecc807
PHP
keepcalmdev/PPP-Loan
/action.php
UTF-8
6,669
2.78125
3
[]
no_license
<?php //Import PHPMailer classes into the global namespace //These must be at the top of your script, not inside a function use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; //Load Composer's autoloader require 'vendor/autoload.php'; //Instantiation and passing `true`...
true
829870971f3a67939364f737fc95bc35b9dd0fc9
PHP
dmt-software/app-skeleton
/tests/Middlewares/TrimTrailingSlashMiddlewareTest.php
UTF-8
1,785
2.515625
3
[ "MIT" ]
permissive
<?php namespace DMT\Test\Middlewares; use DMT\Middlewares\TrimTrailingSlashMiddleware; use GuzzleHttp\Psr7\HttpFactory; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\ServerRequest; use PHPUnit\Framework\TestCase; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; class Trim...
true
d27f82d77d89ef5976c113611b53c0d79849ef17
PHP
hmk2992000/Nexus
/Shoes/public/php/updateCart.php
UTF-8
2,775
2.515625
3
[]
no_license
<?php session_start(); // id ở đây thực ra là số thứ tự sản phẩm trong cart if(isset($_POST['id']) && isset($_POST['num']) && isset($_POST['size']) && isset($_POST['product_id'] )) { $id = $_POST['id']; $num = $_POST['num']; $size = $_POST['size']; $cart ...
true
5dcb351a644a807d733e0325d74488cb2b5f0fa4
PHP
duantuo/laravel
/blog/app/Http/Controllers/Admin/ArticleController.php
UTF-8
4,332
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Model\Category; use App\Http\Model\Article; use App\Http\Requests; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Validator; class ArticleController extends CommonController { //get. admin/article 全部文章列表 ...
true
4e7f352140747c3a20aa376c9f5b2060bad532d3
PHP
nicodeforge/nicodeforge.github.io
/renfo/code/functions/update_password.php
UTF-8
1,665
2.703125
3
[]
no_license
<?php session_start(); $token = isset($_POST['token']) ? $_POST['token'] : NULL; $password = isset($_POST['password']) ? $_POST['password'] : NULL; $pass = sha1($password); include './db.inc.local.php'; $mysqli = new mysqli($db_host, $db_user, $db_pass, $db_database); if($mysqli === false){ die("ERROR: Cou...
true
c11d7e2f3f1bdd0411e32d0cf16725975975c807
PHP
DigitalState/Core
/src/Formio/Model/Attribute/Display.php
UTF-8
590
2.78125
3
[ "MIT" ]
permissive
<?php namespace Ds\Component\Formio\Model\Attribute; /** * Trait Display * * @package Ds\Component\Formio */ trait Display { /** * @var string */ private $display; # region accessors /** * Set display * * @param string $display * @return object */ public functio...
true
e2dbb9ad701ce16bfbf04370accea6172bc66264
PHP
mentimjojo/Custom_FrameWork
/framework/Libraries/Files/Upload.php
UTF-8
10,613
3.15625
3
[]
no_license
<?php class Upload { /** * File(s) types allowed * @var array */ private $file_types = array(); /** * Set minimal size of the file(s). Default is 0 * Size in Bytes * @var int */ private $min_size = 0; /** * Max size of the file(s), default is 50MB * S...
true
396ed641dba4ad731e8dfeb713c8d8df4e9f0356
PHP
manytimes1/tech-module-php
/05.Arrays Advanced - Exercise/03.HouseParty.php
UTF-8
663
3.15625
3
[ "MIT" ]
permissive
<?php $totalGuests = intval(readline()); $guestsList = []; for ($i = 0; $i < $totalGuests; $i++) { $list = explode(" ", readline()); if (count($list) == 3) { if (in_array($list[0], $guestsList) == false) { $guestsList[] = $list[0]; } else { echo "$list[0] is already in ...
true
e162bd18da377cc9d9a15a6bb30cafdf0ef9667a
PHP
rpeterson/laravel-fdb
/src/FDB/fdb.subspace.php
UTF-8
2,853
2.765625
3
[ "MIT" ]
permissive
<?php /* Copyright (c) 2013 FoundationDB, LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify,...
true
091cfe01b2761d326a330df2d997dea7d8fcab9e
PHP
drouxel/sortirEni
/src/Controller/EtatController.php
UTF-8
1,293
2.515625
3
[]
no_license
<?php namespace App\Controller; use App\Repository\EtatRepository; use App\Repository\SortieRepository; use Doctrine\ORM\EntityManagerInterface; use Exception; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; class EtatController extends AbstractContro...
true
fa11cb560dbf328c56f922fdab80a773cdeb5310
PHP
mgsistemas/eventos
/app/model/cliente/Cliente.class.php
UTF-8
2,936
2.734375
3
[]
no_license
<?php /** * Cliente Active Record * @author <your-name-here> */ class Cliente extends TRecord { const TABLENAME = 'clientes'; const PRIMARYKEY= 'id'; const IDPOLICY = 'max'; // {max, serial} private $tipo_pessoa; private $apelido; use SystemChangeLogTrait; /** * Con...
true
8ae984a4aabcd76faf4d1a1a98a9c7a5c1301ee6
PHP
jeremieGenet/Espace_membre_v2
/class/DataBase.php
UTF-8
1,680
3.640625
4
[]
no_license
<?php namespace jeremie; use PDO; // IMPORTANT (comme on a un namespace, il faut déclarer l'utilisation de PDO (classe native de php)) class DataBase{ private $pdo; public function __construct($login, $password, $database_name, $host = 'localhost'){ $this->pdo = new PDO("mysql:dbname=$database_name...
true
56771566b8cda98d7d6a18262f0da3fac6004262
PHP
waqar300/Portfolio
/class.php
UTF-8
829
3.5
4
[]
no_license
<?php class radio{ public $volume; public $tune; public function volumeUp(){ $this->volume++; } public function volumeDown(){ $this->volume--; } public function __construct($v, $t){ $this->volume = $v; $this->tune = $t; // $this->getTune(); } ...
true
3fdb6ff3e01cdc0eb034e668642958cc3cef20e6
PHP
epicwhale/DrupalConnect
/lib/DrupalConnect/Mapping/Type.php
UTF-8
641
2.90625
3
[]
no_license
<?php namespace DrupalConnect\Mapping; interface Type { /** * Converts a value from its PHP representation to Drupal's data representation * of this type. * * @abstract * @param mixed $value Value to convert * @return mixed The database representation of the value */ public f...
true
6a6bfda6ceaa7f6b983ad639514f638739742445
PHP
julienvaslet/money
/classes/database/ThirdParty.class.php
UTF-8
718
2.75
3
[]
no_license
<?php namespace database; require_once( dirname( __FILE__ )."/Object.class.php" ); final class ThirdParty extends Object { protected static $schema = "money"; protected static $table = "third_party"; protected static $fields = array( "third_party_id" => array( "type" => "integer", "bits" => 24, ...
true
67ec8dc8d504cfd9f724e60780d86ba104104cd1
PHP
ffquintella/CCM
/app/class/configurationsManager.class.php
UTF-8
4,350
2.96875
3
[ "MIT" ]
permissive
<?php /** * Created by Felipe Quintella. * User: felipe.quintella * Date: 6/01/17 * Time: 14:06 * * @author Felipe F Quintella <felipe.quintella@fgv.br> * * @since 0.1 * */ namespace ccm; include_once ROOT . "/baseincludes.php"; require_once "secure.class.php"; require_once "singleton.class.php"; require_...
true
a909dc698fcf256bc8c36eedaa0d264cf4b69879
PHP
Lukas713/lukas713.com
/App/Models/Images.php
UTF-8
7,273
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Korisnik * Date: 04/02/2019 * Time: 16:57 */ namespace App\Models; use \App\Config; use PDO; class Images extends \Core\Model { public $errors = []; /** * takes assoc array as parameter and creates properties * * @param assoc array * @return ...
true
65ac266866bdb801d897ea047bc39c7bdf3b2388
PHP
youilab/OurWay
/api/rutas.php
UTF-8
376
2.609375
3
[]
no_license
<?php $enlace = mysqli_connect("127.0.0.1", "root", "mrHDEZ93.", "OurWay"); $rutas = array(); if ($resultado = $enlace->query("select * from Rutas;")){ while ($fila = $resultado->fetch_row()) { $tmp = new stdClass(); $tmp->{"id"} = $fila[0]; $tmp->{"url"} = $fila[1]; $tmp->{"nombre"} = $fila[2]; array_pu...
true
08307c46c73c2edc290d804cce884162ef6e2c78
PHP
runehvalsoerasmussen/FMWeb
/readsql.php
UTF-8
1,104
2.96875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>SQL Test</title> </head> <body> <?php echo "Pkt 1<br> \n"; $grpID = $_POST["grpNbr"]; echo $grpID; #$sql = "SELECT * FROM `DKData` LIMIT 0, 30 "; #echo $sql; #echo "Pkt 1.5 <br> \n"; #$pdo = new PDO('mysql:host=example.com.mysql;dbname=database', 'user', 'password');...
true
f095082614fb5e525673c542289a2496b93149c4
PHP
KieranFarrerDev/Restful-Currency-Conversion-API
/rates.php
UTF-8
1,708
2.796875
3
[]
no_license
<?php @date_default_timezone_set("GMT"); if (file_exists('rates.xml')) { copy('rates.xml', 'rates'.'_'.time().'.xml'); $xml = simplexml_load_file('rates.xml'); foreach($xml->rate as $r) { if ((string) $r['live'] == '1') { $live[] = (string) $r['code']; } } }...
true
b45646c10c7546e4365681d1f3c1e5ccf9160c48
PHP
gregmag/navplan2
/src/php/Navplan/User/Domain/LoginRequest.php
UTF-8
389
2.921875
3
[]
no_license
<?php declare(strict_types=1); namespace Navplan\User\Domain; class LoginRequest { public $email; public $password; public $rememberMe; public function __construct( string $email, string $password, bool $rememberMe ) { $this->email = $email; $this->pa...
true
ce883aff2f97e045a3925ef17776c06f0ce62324
PHP
frsd1/bth
/bth/dbwebb/oophp/kmom02/source.php
UTF-8
741
2.640625
3
[ "MIT" ]
permissive
<?php /** * This is a Web pagecontroller. * */ // Include the essential config-file which also creates the $web variable with its defaults. include(__DIR__.'/config.php'); // Add style for csource $web['stylesheets'][] = 'css/source.css'; // Create the object to display sourcecode //$source = new CSource(); $s...
true
1147d8613f88cadde0a2850fd62fd460d012158f
PHP
easy-swoole/consul
/src/Request/Catalog/Services.php
UTF-8
994
2.625
3
[]
no_license
<?php namespace EasySwoole\Consul\Request\Catalog; use EasySwoole\Consul\Request\BaseCommand; class Services extends BaseCommand { public $url='catalog/services'; /** * @var string */ protected $dc; /** * @var string */ protected $node_meta; /** * @return string|null...
true
14b69b1d020e370b582974e4b598094b7cd5f0ac
PHP
razikallayi/aihms
/app/Models/Banner.php
UTF-8
607
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Banner extends Model { const IMAGE_LOCATION ="uploads/banner"; public static function getBanner($id=null) { if($id == null) { return self::get(); } else { return self::findOrFail($id); } } // update public function...
true
26e08298d99901777ccb0e4d28aeb33c0e166054
PHP
qg0/yii2-angular
/modules/zipdata/models/Zip.php
UTF-8
3,226
3.09375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace modules\zipdata\models; use yii\db\ActiveRecord; use Yii; /** * Class User * @package modules\users\models * User model. * * @property string $city City * @property string $state_code State code * @property integer $zip Zip * @property string $latitude Latitude * @property string $longitude ...
true
4106f64212e62fc985e1447d752302ae614cbd8a
PHP
eclipxe13/CfdiUtils
/src/CfdiUtils/Nodes/XmlNodeImporter.php
UTF-8
2,064
2.9375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace CfdiUtils\Nodes; use DOMElement; use DOMNode; use DOMText; class XmlNodeImporter { /** * Local record for registered namespaces to avoid set the namespace declaration in every child * @var string[] */ private $registeredNamespaces = []; public function import(DOMElement $e...
true