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
8385a5c6419fe9d41ba21c0555a11a1886076a45
PHP
pluswerk/grumphp-typo3scan-task
/t3scan/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php
UTF-8
668
2.71875
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace PhpParser\Node\Stmt; use PhpParser\Node; class For_ extends Node\Stmt { /** @var */ public $init; /** @var */ public $cond; /** @var */ public $loop; /** @var */ public $stmts; /** @param @param */ public function __construct(array $subNodes = [], array $attributes = [...
true
e42791a2c65f011701b0dbbc0ea942104cd967f1
PHP
programmingJOJO/Soundmap
/soundmap/inc/actions/backend/story-edit-do.php
UTF-8
1,059
2.609375
3
[]
no_license
<?php require_once "inc/models/stories.php"; $action = 'story-edit-prepare'; $again = true; $path = ''; if(isset($_POST['abort'])) { $action = 'stories-show-prepare'; } else if(isset($_POST['name']) && $_POST['name'] != '' && count($_POST['sequence']) > 0) { $id = $_POST['id']; $name = $_POST['name']; $descrip...
true
2d1bcf4142f7fccc218f57fff64db14d0932c2b3
PHP
de-3-musketiers-1-met-achterstand/fifa-Php
/PHP/logincontroller.php
UTF-8
6,368
2.71875
3
[]
no_license
<?php require 'config.php'; if ($_SERVER['REQUEST_METHOD'] !== 'POST' ) { header('location: index.php?error=wrongpage'); exit; } if ($_POST['type'] === 'register') { $username = $_POST['username']; $password = $_POST['password']; $hashedpwd = password_hash($password, PASSWORD_DEFAULT); ...
true
888d2e7f001b3f464d08aafb8b928ec909acdff0
PHP
PHLAK/Twine
/tests/Methods/HexEncodeTest.php
UTF-8
728
2.984375
3
[ "MIT" ]
permissive
<?php namespace PHLAK\Twine\Tests\Methods; use PHLAK\Twine; use Yoast\PHPUnitPolyfills\TestCases\TestCase; class HexEncodeTest extends TestCase { public function test_it_can_be_hex_encoded() { $string = new Twine\Str('john pinkerton'); $hex = $string->hexEncode(); $this->assertInsta...
true
c6e5c06b1b7f2e25ee44244280699e004f032d47
PHP
andreyillo/interfaces
/robot.php
UTF-8
459
2.890625
3
[]
no_license
<?php include('animal.php'); class Robot implements locomocion{ public $tipo; function __construct($tipo){ $this->tipo=$tipo; } function emitirsonido($sonido){ echo 'los robots tipo'.$this->tipo;'emiten sonido de'.$sonido; } function movimiento(){ echo 'su movimiento e...
true
e1e68e91a4703726ff85037e46d2ae9e77a376cb
PHP
wwjimenez/rsc
/models/Partida.php
UTF-8
1,182
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "partida". * * @property integer $id * @property integer $partida * @property string $nombre * @property integer $estatus * @property ProyectoDistribucionPresupuestaria[] $proyectoDistribucionPresupuestarias */ class Partida extends...
true
1d098617dfa3dcc3ea0265cdd0fdbf2201d98aa6
PHP
baseball19k/DIG3134
/testmig/tabletest.php
UTF-8
474
2.6875
3
[]
no_license
<?php $username = "ja213385"; $password = "Ba\"$\"eball19k"; $dbname = "ja213385"; $connection = mysqli_connect("localhost" , "$username" , "$password", "$dbname") or die(mysql_error());$sql = "CREATE TABLE users3 ( ID int NOT NULL AUTO_INCREMENT, PRIMARY KEY(ID), Username varchar(20), Password varchar(20), FirstN...
true
3d248bb01811633dc281f97a387d8db3b9cc8366
PHP
pdelbar/one-content-system-plugin
/forms/form/widget/scalar/checkbox_tbd.php
UTF-8
4,965
2.828125
3
[]
no_license
<?php /** * Handles the checkbox widget * * @TODO review this file and clean up historical code/comments ONEDISCLAIMER **/ Class One_Form_Widget_Scalar_Checkbox extends One_Form_Widget_Scalar { /** * Class constructor * * @param string $id * @param string $name * @param string $label * @param array...
true
dfacfe40dab522bc0e6d11737c9b94b520d2f8aa
PHP
ziganshinalexey/vk-group-analyzer
/back/protected/api/v1/actions/vk/AnalyzeAction.php
UTF-8
1,569
2.609375
3
[]
no_license
<?php declare(strict_types = 1); namespace app\api\v1\actions\vk; use app\api\v1\forms\vk\AnalyzeForm; use ReflectionException; use Userstory\ComponentApiServer\actions\AbstractApiAction; use yii; use yii\base\InvalidConfigException; /** * Класс AnalyzeAction Реализующий апи действие. */ class AnalyzeAction exten...
true
fa12d0d696b387ca4380415eb883b9f3404ee22a
PHP
php-api-clients/github
/src/Resource/Url.php
UTF-8
652
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ApiClients\Client\Github\Resource; use ApiClients\Foundation\Hydrator\Annotation\EmptyResource; use ApiClients\Foundation\Resource\AbstractResource; /** * @EmptyResource("EmptyUrl") */ abstract class Url extends AbstractResource implements UrlInterface { /** * @var...
true
6613bc2652cdf0b8abee69e1e4563795c34dfc16
PHP
linuxserver/Heimdall
/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php
UTF-8
6,192
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the Monolog package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Handler; use Monolog\Logger; use Monolog...
true
85c6ae0ae0c9f12b7561108d9b050822f09b9730
PHP
davidus-sk/CyberPower
/cpats_graph.php
UTF-8
3,290
2.765625
3
[ "MIT" ]
permissive
<?php /** * Simple script to produce ATS power and environmental graphs * * (c) 2016 David Ponevac (david at davidus dot sk) www.davidus.sk */ // include classes include(dirname(__FILE__) . '/class/CPATS.php'); include(dirname(__FILE__) . '/CBW/RRD.php'); // get options $options = getopt('h:o:'); ...
true
8c2abb3a40f8b12f9e707fa89cc654ce665eb238
PHP
NoxLogic/HTRouter
/htrouter/Module/Alias.php
UTF-8
4,120
2.78125
3
[]
no_license
<?php /** * Alias module */ namespace HTRouter\Module; use HTRouter\ModuleInterface; class Alias implements ModuleInterface { public function init(\HTRouter $router) { $this->_router = $router; $router->registerDirective($this, "Redirect"); $router->registerDirective($this, "Redire...
true
4fca3d6d6eac4b9bbe3c3002c58114943af3c5ce
PHP
szy4211/translate
/src/Translate.php
UTF-8
2,587
2.765625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the szy4211/translate. * * (c) zornshuai <zornshuai@foxmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Szy4211\Translate; use Szy4211\Translate\Contracts\GatewayInterface; use Szy4211\Transla...
true
38f0ab8abed6df05e7c25aabf95c329542f7a3c1
PHP
adalbertobeto/chamados_veiculos
/protected/controllers/backup/ChamadoController.old.php
UTF-8
10,123
2.625
3
[ "Apache-2.0" ]
permissive
<?php class ChamadoController extends Controller { /** * @var string the default layout for the views. Defaults to '//layouts/column2', meaning * using two-column layout. See 'protected/views/layouts/column2.php'. */ public $layout='//layouts/column1'; /** * @return array action filters */ public functi...
true
4003519ba83207012e4ebebc9af4de91abf286de
PHP
dukem1/edu
/src/OOP/Creational/Builder/Builder.php
UTF-8
378
2.53125
3
[]
no_license
<?php namespace OOP\Creational\Builder; /** * Builder interface for report building. */ interface Builder { public function setKey(int $key): Builder; public function buildPager(): Builder; public function buildHeader(): Builder; public function buildContent(): Builder; public function buildFoot...
true
64ca50eda62f03c0e8c48a9e2e77f08590d07bc6
PHP
Serega8/dreamtehnostroi
/application/classes/Model/Currency.php
UTF-8
1,336
2.625
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); class Model_Currency extends ORM { protected $_table_name = 'currency'; public function get_currency() { $model = ORM::factory('Currency'); $all = $model->where('status', '=', '0')->find_all(); $result = array(); fo...
true
3e32308f6709ebbfe210b5ec099f4a2eed17db4d
PHP
cralk-d/house-renting
/app/Notifications/NewPost.php
UTF-8
1,242
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Notifications; use App\Post; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class NewPost extends Notification { use Queueable; private $post; /** * Create a ...
true
7fd5a8908b02ae445697f0b8d037531f21961b1b
PHP
bradynpoulsen/kotlin-collections-php
/tests/Sequences/Internal/Operations/Intermediate/InstanceFilteringSequenceTest.php
UTF-8
2,247
2.5625
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace BradynPoulsen\Kotlin\Sequences\Internal\Operations\Intermediate; use BradynPoulsen\Kotlin\Sequences\Internal\Base\EmptySequence; use BradynPoulsen\Kotlin\Types\Types; use PHPUnit\Framework\TestCase; use function BradynPoulsen\Kotlin\Sequences\sequenceOf; /** * @covers \Brady...
true
0531e32bc61c099749e430b5accf61034c378ace
PHP
chriscchen426/Jolt
/Jolt_newUI/conductor/upload_csv.php
UTF-8
12,736
2.59375
3
[]
no_license
<?php //USER Story: Client wants to be able to register students into a class for exams thorugh uploading .CSV file. //Version: OES1.2 //Developed by: DIPAKKUMAR PATEL session_start(); if(!isset($_SESSION['tcname'])){ header('Location: index.php'); } error_reporting(E_ALL ^ E_NOTICE); $errors = array(); $success = ...
true
4a003a6beff5b42bda3aada877a30f805dc6e896
PHP
sashakypinko/hand_seam_backend
/app/Models/Statistic.php
UTF-8
861
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * @method create(array $array) * @method static select(string $string) * @method static selectRaw(string $string) */ class Statistic extends Model { /** * @var string[] */ ...
true
1b7c4512faf9a318fecae7ecc4bb0c648aa69ff3
PHP
dMedinaO/siru
/reporter/php/reportes/createNewReport.php
UTF-8
2,471
2.515625
3
[]
no_license
<?php session_start(); include("../connection.php");#incluimos la base de datos $idUSer = $_SESSION['userName']; #hacemos la obtencion de los datos $dateInput = $_REQUEST['dateInput']; $urgente = $_REQUEST['urgente']; $detail = $_REQUEST['detail']; $idcategory = $_REQUEST['idcategory']; $idSubsector = $_REQ...
true
fa48fe62b72f7926066f1845f76b01e3a182aa17
PHP
ushiho/ae-tm
/src/Service/ExcelGenerator.php
UTF-8
13,010
2.53125
3
[]
no_license
<?php namespace App\Service; use App\Entity\FuelReconciliation; use App\Entity\Project; use App\Model\PrintSide; use Doctrine\ORM\EntityManagerInterface; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Style\Alignment; use PhpOffice\PhpSpreadsheet\Style\Border; use PhpOffice\PhpSpreadsheet\Styl...
true
02b46d77fbafedd76da3bfcdfd1630483c24843b
PHP
bebetojefry/ktta_mgr
/vendor/nelmio/alice/src/Nelmio/Alice/Instances/Processor/Methods/Reference.php
UTF-8
2,338
2.875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Alice package. * * (c) Nelmio <hello@nelm.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Nelmio\Alice\Instances\Processor\Methods; use Nelmio\Alice\Instances\Collection; use Nel...
true
f24ef2f93d5b01d79a9c601eedb7e2ee91f124a2
PHP
enphpity/pdorm
/tests/Cases/System/ConnectionTest.php
UTF-8
2,172
2.546875
3
[ "MIT" ]
permissive
<?php namespace Enphpity\Pdorm\Test\Cases\System; use Enphpity\Pdorm\System\Connection; use PHPUnit\Framework\TestCase; use RuntimeException; class ConnectionTest extends TestCase { protected $conn; public function testConstructor() { $config = [ 'driver' => 'sqlite', 'pa...
true
9bd4397fac0e70bd89b3b0399a913f8545a86a8b
PHP
edladym/CharacterGenerator
/src/Character.php
UTF-8
821
3.078125
3
[]
no_license
<?php include('CharacterGenerator.php'); class Character{ public $name; public $race; public $class; public $height; public $eye_color; public $hair_color; public $build; public $stats; public function __construct(){ $this->name = CharacterGenerator::generateName(); ...
true
e3f84a008a4b5f7af2df6fec6ff9bbdd5e3240ad
PHP
jcarlosMariscal/notiBooks
/busqueda/resultado.php
UTF-8
11,349
2.625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="css/busqueda.css"> </head> <body> <main class="main"> ...
true
9fec386c9957e2f83a1ae7b48cc3f720887cda40
PHP
Dayran/kingdom-server-bundle
/Service/ServerManager.php
UTF-8
2,768
2.5625
3
[ "MIT" ]
permissive
<?php /** * MIT License * * Copyright (c) 2017 Frisks * * 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, mo...
true
2835c8afc4971a739609fb7dc418900a277a0ad6
PHP
ioan-ghisoi-cko/checkout-ubercart-module
/uc_checkoutpayment/includes/checkout-php-library/com/checkout/Apiservices/Sharedmodels/Chargeback.php
UTF-8
6,931
2.640625
3
[ "MIT" ]
permissive
<?php /** * Checkout.com Apiservices\Sharedmodels\Chargeback. * * PHP Version 5.6 * * @category Api Services * @package Checkoutapi * @license https://checkout.com/terms/ MIT License * @link https://www.checkout.com/ */ namespace com\checkout\Apiservices\Sharedmodels; /** * Class Charge Back. * * @catego...
true
745934d2026efea21a56cd243d69b125db0b87cb
PHP
rustxj/sfpay
/application/api/controller/Base.php
UTF-8
1,763
2.5625
3
[]
no_license
<?php namespace app\api\controller; use think\Cache; use think\Controller; use think\exception\HttpException; use think\response\Json; use think\response\Jsonp; class Base extends Controller { /** * Base constructor. */ public function __construct() { parent::__construct(); if ($...
true
4ab5f6a196ba6ef5aa827349bdcc9682bba82b9c
PHP
Seif-Abaza/CoinBack.io
/app/libraries/Helpers/ApiHelper.php
UTF-8
3,425
2.6875
3
[]
no_license
<?php namespace Helpers; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Log; use RestAPI; class ApiHelper { public static $stubBtcPrice = 300; // needed for unit testing, to keep it simple for every1, no reason of doing...
true
3d70c264ed3f562de9019fe19cc064fdbdd854a3
PHP
JocelynRAZAFY/vuejsymf
/src/Manager/CustomManager.php
UTF-8
3,136
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dave * Date: 28/05/19 * Time: 13:00 */ namespace App\Manager; use App\Entity\Custom; use App\Repository\CustomRepository; use Doctrine\ORM\EntityManagerInterface; use phpDocumentor\Reflection\Types\This; use Psr\Log\LoggerInterface; use Symfony\Component\DependencyInjectio...
true
cde49f502810d62f6a0ceb70dd0217439fdb5996
PHP
mfizuman/BSL-Cricket-Club
/BSL_Cricket_Club/Admin_playerShow.php
UTF-8
1,701
2.546875
3
[]
no_license
<?php include_once ('connection.php'); include_once ('header.php'); include_once ('sidebar.php'); if($_SESSION['user_logged']) { ?> <link rel="stylesheet" type="text/css" href="style.css"> <div class="container"> <div class="playertitle"> <h2>Our players</h2> </div> <di...
true
dac57741a010b66f61054367b81938165704b032
PHP
bustamantegelo/sebione
/app/Libraries/ImageLib.php
UTF-8
5,198
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Libraries; use finfo; use Illuminate\Support\Facades\File; /** * ImageLib * @package App\Libraries * @author Angelo C. Bustamante <bustamantegelo@gmail.com> * @since 11/03/2021 * @version 1.0 */ class ImageLib { /** * get upload path * @return \Illuminate\Config\Repository...
true
a55c552708d0e8e871b2b1fafab09b6b586e0947
PHP
euriale/render
/models/tarifa.class.php
UTF-8
444
2.8125
3
[]
no_license
<?php class tarifa{ private $slots; private $valor; function tarifa($slots=null,$valor=null){ $this->slots=$slots; $this->valor=$valor; } function devuelve_tarifa(){ $bd = new bd(); $query1 = new query('SELECT * from tarifas where slots="'.$this->slots.'"',$bd); if($query1->n){ foreach (...
true
2a4264232d4bc7dd9dcaadb953e6ec327d0fe6e4
PHP
CyrilleRieau/projet_poo
/PetitChien.php
UTF-8
821
3.21875
3
[ "MIT" ]
permissive
<?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. */ /** * Description of PetitChien * * @author rieau */ class PetitChien { public $nom; public $race; public $dateden...
true
1d523ff70f025d9638df556a5e09d365c09d17cf
PHP
Germanocassama/repositorioPHP7
/POO/atributosMetudos.php
UTF-8
950
4.03125
4
[]
no_license
<?php // Getter e setters /** * */ class Carro{ private $modelo; private $motor; private $ano; // Modelo public function getModelo(){ return $this->modelo; } public function setModelo($modelo){ $this->modelo = $modelo; } // Motor public function getMotor():float{ return $this->motor; ...
true
7595ea72f281c341fea0b0baae6b17a9a954b2c2
PHP
anishadhikarigithub/anish-PHP
/anish PHP/facebook.php
UTF-8
599
2.96875
3
[]
no_license
<?php $ribeshemail="ribesh@hotmail.com"; $ribeshpass="hhh"; $anishemail="anish@hotmail.com"; $anishpass="jjj"; $email=$_POST["email"]; $pass= $_POST["pass"]; switch ($email) { case $ribeshemail: if($pass==$ribeshpass) { echo "hello ribesh"; } else { ec...
true
aa9d987ae8d98fbc0f1829d92ae612e077ae4824
PHP
lingp/DesignPatterns
/Structural/DataMapper/User.php
UTF-8
974
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: win7 * Date: 2018/4/11 * Time: 18:28 */ namespace Structural\DataMapper; /** * 这是数据库记录在内存的表现层 * * 验证也在该对象中 */ class User { protected $user_id; protected $username; protected $email; public function __construct($id = null, $username = null, $email ...
true
a9d92968f70641ecebd706a0f98b8244960093ba
PHP
EvilFreelancer/resova-api-php
/src/Endpoints/Baskets/Purchases.php
UTF-8
2,636
2.828125
3
[ "MIT" ]
permissive
<?php namespace Resova\Endpoints\Baskets; use Resova\Client; use Resova\Models\PurchaseRequest; class Purchases extends Client { /** * Create a basket purchase * Creates a new basket purchase object * * @param PurchaseRequest $purchase * * @return $this */ public function c...
true
e7414fe7a1ffc8278445d54f46dfb50704ba702a
PHP
villeglad/testingDemo
/tests/RegisterTest.php
UTF-8
572
2.515625
3
[]
no_license
<?php use Illuminate\Foundation\Testing\DatabaseMigrations; class RegisterTest extends TestCase { use DatabaseMigrations; // Assert that register form can be used for registering a new user /** @test */ function it_should_register_new_user() { $this->visit('/register') ->see(...
true
ac9de3efc9fc4e9a8162c0c49ccdabf73cf9277e
PHP
AtymTima/SatPhys
/registration.php
UTF-8
625
2.609375
3
[]
no_license
<html> <head> <title>Registration</title> </head> <body> <?php $Name = $_POST['Name']; $Login = $_REQUEST['Login']; $Password = $_REQUEST['Password']; $PasswordAgain = $_REQUEST['PasswordAgain']; $conn= new mysqli("127.0.0.1", "root", "", "data") or die ("Can't connect to db"); $queryvar = "INSERT INTO `sat`...
true
2526e5236c275996cbf9c1c96322010093bb4b41
PHP
lkiesow/ilias-opencast-plugin
/classes/Event/class.xoctEventOwnerFormGUI.php
UTF-8
3,161
2.515625
3
[]
no_license
<?php use srag\DIC\OpenCast\DICTrait; /** * Class xoctEventFormGUI * * @author Fabian Schmid <fs@studer-raimann.ch> */ class xoctEventOwnerFormGUI extends ilPropertyFormGUI { use DICTrait; const PLUGIN_CLASS_NAME = ilOpenCastPlugin::class; const F_OWNER = 'owner'; /** * @var xoctEvent */ protected $obje...
true
c3b20000bab5840cea54bd7b1235ec1dc74a3322
PHP
f500/equatable
/tests/Exceptions/InvalidArgumentExceptionTest.php
UTF-8
4,904
2.859375
3
[ "MIT" ]
permissive
<?php /** * @license https://github.com/f500/equatable/blob/master/LICENSE MIT */ declare(strict_types=1); namespace F500\Equatable\Tests\Exceptions; use F500\Equatable\Exceptions\InvalidArgumentException; use PHPUnit\Framework\TestCase; use stdClass; /** * @copyright Copyright (c) 2015 Future500 B.V. * @autho...
true
315f8759d32ba629301398bdb3029c06c602dd68
PHP
FTM-group/API
/Model/RequestedGame.php
UTF-8
2,560
2.65625
3
[]
no_license
<?php class RequestedGame { function addRequestedGames($data){ try{ include '../Bdd/connexion_user.php'; $sql = $bdd->prepare("INSERT INTO game_request(name_game_request, id_user) VALUES (:name_game, :id_user)"); $sql->bindParam(':name_game', $data['name_game']); ...
true
00c07a8fb920ddb81b87c6390ef747f2c7ee43da
PHP
guinhx/CleanFactions
/src/Clean/object/Claim.php
UTF-8
1,286
3.046875
3
[]
no_license
<?php namespace Clean\object; class Claim { /** @var int */ private $fid; /** @var string */ private $owner; /** @var int */ private $x; /** @var int */ private $z; /** @var string */ private $world; /** * @return int */ public function getFid()...
true
b78c0585931a9b542675cbaddb2a1df0d089b1d1
PHP
UzuLaura/commission-task
/src/Service/Operations/CashOut.php
UTF-8
2,924
2.71875
3
[]
no_license
<?php declare(strict_types=1); namespace Laura\CommissionTask\Service; class CashOut extends Data { /** * @var array data of all cash out operations */ private $data; /** * Set cash out operations data. * * @throws \Exception */ private function setCashOutData() { ...
true
2e03c87bd60a2f070b889c0b3879bf6bdf641be8
PHP
rustyraz/shopping_cartv1.0
/login.php
UTF-8
2,845
2.78125
3
[]
no_license
<?php //we call the config.php file for db connection and session checking include 'config.php'; //example of how to insert a customer into the table //mysql_query("INSERT INTO customers(first_name,last_name,email,password) VALUES('Peter','Ngesh','pngesh@gmail.com','".md5("test123")."')"); $page_title = "Login page :...
true
781b89dac0d061d90a3b51cefae659dbbaec9905
PHP
mark1979smith/hunkydorycakes
/application/models/.svn/text-base/Product.php.svn-base
UTF-8
3,936
2.9375
3
[]
no_license
<?php class HC_Model_Product extends HC_Model_Abstract { private $_cakeId = null; public function __construct() { parent::__construct(); } /** * Set the cake id * @param integer $cakeId */ public function setCakeId($cakeId) { $this->_cakeId = $cakeId; return $this; } /** * Get the cake i...
true
31e2951b57235206ca95263f77b1cc8264776064
PHP
MaksGalingumas/virtualus-treneris
/src/AppBundle/Service/CurrentUserService.php
UTF-8
395
2.546875
3
[]
no_license
<?php namespace AppBundle\Service; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; class CurrentUserService { protected $tokenStorage; public function __construct(TokenStorage $tokenStorage) { $this->tokenStorage = $tokenStorage; } public function getUser(...
true
9b0268616830875b2f1cb6d01b4465912e0fabfb
PHP
asarandi/piscine-php
/day_07/submit/ex06/UnholyFactory.class.php
UTF-8
1,347
3.734375
4
[]
no_license
<?php class UnholyFactory { private $requested = []; public function absorb($f) { //expects an instance of Fighter class //stores instances in a $k => $v array // ($k = fighter type) if ($f instanceof Fighter) { $skill = ...
true
89d1498bc8420d73b4fce53a67b3f3ce26f365e1
PHP
eazulay/mantis
/core/classes/MantisFormattingPlugin.class.php
UTF-8
2,415
2.6875
3
[ "MIT" ]
permissive
<?php # MantisBT - a php based bugtracking system # Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge. # MantisBT is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of t...
true
14c98c5863ce831df514207d5faffa5ed705bd3e
PHP
dpesch/rector
/packages/BetterPhpDocParser/src/PhpDocNode/Symfony/SymfonyRouteTagValueNode.php
UTF-8
1,895
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Rector\BetterPhpDocParser\PhpDocNode\Symfony; use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode; use Symfony\Component\Routing\Annotation\Route; final class SymfonyRouteTagValueNode extends AbstractTagValueNode { /** * @var string */ public cons...
true
6ac5160d29bd6f119f07f6c0f1e714cef58a4e00
PHP
cristian-sima/yoy
/app/SituatieMecanicaGrafica.php
UTF-8
3,765
2.53125
3
[]
no_license
<?php require_once "Aparat.php"; require_once "Utilizator.php"; require_once "SituatieGrafica.php"; class SituatieMecanicaGrafica extends SituatieGrafica { private $idCompletare = null; private $filterFrom = null; private $filterTo = null; public function __construct($from, $to, $firma) { $this->filterFrom = $f...
true
74bd26136ab3163c83aa50c59266daf495a47973
PHP
Tanoro/toyframework
/src/Helper.php
UTF-8
602
3.140625
3
[]
no_license
<?php class Helper { // Get generic drop menu public function array2select($array, $match=null, $usekey=false) { $options = ''; if (sizeof($array) == 0) { $options = '<optgroup label="-No Options-"></optgroup>'; } foreach($array AS $key => $value) { if ($usekey) { $options .= '<option val...
true
22e6378626be8508e28ab7742c74c0d6894c5a0d
PHP
uent/pruebasJump
/database/seeds/HousesTableSeeder.php
UTF-8
529
2.796875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Faker\Factory as Faker; use App\House; use App\Person; class HousesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create(); $people = Person::pluck('id')->toArr...
true
d4baf04fa66de52733f914f433560ab85734f7f6
PHP
CeusMedia/HydrogenModules
/src/Work/Missions/classes/View/Helper/Work/Mission/Filter/Worker.php
UTF-8
4,992
2.546875
3
[]
no_license
<?php use CeusMedia\Common\UI\HTML\Elements as HtmlElements; use CeusMedia\Common\UI\HTML\Tag as HtmlTag; use CeusMedia\HydrogenFramework\Environment\Web as WebEnvironment; class View_Helper_Work_Mission_Filter_Worker { protected WebEnvironment $env; protected array $words; protected ?View_Helper_ModalRegistry $mod...
true
919895f86fa84f27a409060defde7571b55281fd
PHP
jinyphp/board
/src/Setting.php
UTF-8
580
2.671875
3
[]
no_license
<?php /* * This file is part of the jinyPHP package. * * (c) hojinlee <infohojin@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Jiny\Board; trait Setting { private function setting() { //$body...
true
54c339b723f0239e7df37475c8de364b0d8271ea
PHP
Ali-Raza24/store-crm
/app/Http/Requests/CustomerRequest.php
UTF-8
1,164
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use App\Rules\AlphaSpaces; use App\Rules\OnlyNumbers; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Request; class CustomerRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ ...
true
4dd6a83119376dd8e425665e168f15265b922973
PHP
duybui2308/TracNghiemOnline
/app/models/QuestionModel.php
UTF-8
871
3
3
[]
no_license
<?php class QuestionModel extends DB{ //Thêm cau hoi public function addQuestion($examId, $content){ $qr = "INSERT INTO questions(exam_id, content) VALUES ('$examId', '$content')"; if(mysqli_query($this->con, $qr)){ return true; } return false; } //Xoa cau hoi public fun...
true
80096c142028696d33eb7954e310cb41f36d0611
PHP
timon3355/Bilder-Datenbank
/controller/LoginController.php
UTF-8
3,100
3.046875
3
[ "MIT" ]
permissive
<?php require_once '../repository/UserRepository.php'; class LoginController { /* * Funktion um sich einzuloggen. */ public function index() { $userRepo = new UserRepository (); $password = $_POST ['passwort']; $name = $_POST ['benutzername']; // Hier wird überprüft ob das Login Valid ist. $mes...
true
d93965f58718fef96100f6528e14e3bc4518b315
PHP
fumiyatakamura/Timewall
/getImageGallery.php
UTF-8
1,336
2.9375
3
[]
no_license
<?php // empty JSON $methodType = $_SERVER['REQUEST_METHOD']; $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "timewall"; if ($methodType === 'GET') { try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); $co...
true
83418155a631fb4be48a93fd4fd5b253949a064b
PHP
wowioboy/Panel-Flow
/WEvolt_BU/includes/create_job_inc.php
UTF-8
28,699
2.625
3
[]
no_license
<? include_once($_SERVER['DOCUMENT_ROOT'].'/includes/content_functions.php'); function convert_datetime($str) { list($date, $time) = explode(' ', $str); list($year, $month, $day) = explode('-', $date); list($hour, $minute, $second) = explode(':', $time); $timestamp = mktime($hour, $minute, $second, $mont...
true
0f28b3fa8c09869107f61b56f8fbb0466cde3991
PHP
deepak-shah-np/contacts-app
/app/ContactsApp/Repositories/Contacts/ContactsRepository.php
UTF-8
2,808
2.859375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: deepak * Date: 5/18/17 * Time: 8:50 PM */ namespace App\ContactsApp\Repositories\Contacts; use App\ContactsApp\Models\Contacts; use Illuminate\Database\QueryException; use Spatie\Activitylog\Models\Activity; /** * Contacts related query * Class ContactsRepository * @...
true
9a38f8e58596fb9d95c751a2b2820f77c7f83abe
PHP
LaraCrafts/laravel-url-shortener
/src/Contracts/Shortener.php
UTF-8
294
2.875
3
[ "MIT" ]
permissive
<?php namespace LaraCrafts\UrlShortener\Contracts; interface Shortener { /** * Shorten the given URL. * * @param \Psr\Http\Message\UriInterface|string $url * @param array $options * @return string */ public function shorten($url, array $options = []); }
true
08ee73337572188dd9bf3a3c463f49f6ea3c6f55
PHP
renkun/scaffold
/Modules/Setting/Models/Setting.php
UTF-8
1,116
2.515625
3
[ "MIT" ]
permissive
<?php namespace Modules\Setting\Models; use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\Traits\HasActivity; class Setting extends Model { use HasActivity; public $table = 'z_settings'; public $fillable = [ "name", "value", "settable_id", "settable_type" ...
true
e22e535e23b96fa5d9a8e08a4bca1a1d288cc5e6
PHP
JennyWang2000/web
/Business_Web/database/ProductDataService.php
UTF-8
4,934
3.359375
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', 1); class ProductDataService { function findByProductName($n){ // $n is the search string. returns an array of products $db = new Database(); //testing //echo "testing the db data<br>"; //print_r($db); //echo "...
true
afa11ef1a588af67c8ebb228ed0390da0a7707e7
PHP
ShaikhDanish04/OpenMarket
/connect.php
UTF-8
585
2.59375
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "openmarket"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } date_default_timezone_set('Asia/Kol...
true
d849c7377586c3b75359df2e66ea8315ee7515c4
PHP
esidor/dto-bundle
/Reflection/DtoReflectionClass.php
UTF-8
1,238
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types = 1); /* * This file is part of the DTO Bundle. * * (c) Eryk Sidor <eryksidor1403@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Esidor\DtoBundle\Reflection; use Esidor\DtoBundle...
true
433b5fdba2d1f40f6fbf1127187fff9a22cc4284
PHP
tsw79/youvids
/src/domain/mappers/CommentMapper.php
UTF-8
1,336
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: tharwat * Date: 5/25/2019 * Time: 02:04 */ namespace youvids\domain\mappers; use phpchassis\data\db\base\DatabaseAdapterInterface; use phpchassis\data\entity\EntityInterface; use phpchassis\data\mapper\{ AbstractDataMapper, BaseDataMapper, DataMapperInterface }; use yo...
true
e7dd43e718727fe9ff0d5bc373344838ddce1e91
PHP
CatherineAbd/POO
/Exo2/Model/AccountBank.php
UTF-8
1,447
3.5625
4
[]
no_license
<?php declare(strict_types=1); class AccountBank { private $_holder; private $_balance; private $_interestRate; private $_currency; /** * Default constructor */ public function __construct(string $newHolder, int $newBalance, int $newRate, string $newCurrency) { $thi...
true
a5b3331c353c05160425cb4cfecc5794f32e5cb0
PHP
CRAEW/learning-php
/exercises/2.data-sharing/cookie.php
UTF-8
1,202
2.859375
3
[]
no_license
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Cookies</title> </head> <body> <h1>Remember the cookie!</h1> <p>Write a message in the text area and reload the page.</p> <form id="cookieform" action="" method="get"> <textarea id="message" name="message" ...
true
7b5c6ff54d49d08947d721dd14033d8bebdcabf1
PHP
kongnakornna/backendhmvc
/application/libraries/cpanel/cpanel_api_cron.php
UTF-8
5,894
2.796875
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Description of cpanel_api_cron * * @author nunenuh@gmail.com */ class Cpanel_Api_Cron extends Cpanel_Api_Query{ private $param=array(); function __construct($param) { $this->param = $param; parent::__construct(...
true
74d6b4d11aaaea70b9d8999b0a869b5a72187d80
PHP
Innovasoft131/Eurolatina-Administrativa-V2
/modelos/pieza.modelo.php
UTF-8
13,295
2.8125
3
[]
no_license
<?php require_once "conexion.php"; class ModeloPiezas{ static public function MdlObtenerModelo($tabla, $item, $valor){ if($item != null){ $res = array(); $stmt = Conexion::conectar()->prepare("SELECT * FROM $tabla WHERE $item LIKE '$valor%'"); // $stmt -> bindParam(":".$item, $valor, PDO::PARAM_...
true
663d3ca5fa601c71588a8238db8d9b7435fc233d
PHP
veezex/medical-aggregators
/src/Docdoc/Models/District.php
UTF-8
510
2.625
3
[ "MIT" ]
permissive
<?php namespace Veezex\Medical\Docdoc\Models; class District extends Model { protected $required = ['Id', 'CityId', 'Name']; /** * @return int */ public function getCityId(): int { return $this->get('CityId'); } /** * @return int|null */ public function getA...
true
b016de71689d3f1147f1c23d3a944be3a5a2fed0
PHP
paolaperalta/ej_integrador_OOP
/Classes/Curso.php
UTF-8
2,485
3.46875
3
[]
no_license
<?php class Curso { private $nombre; private $codigoCurso; //agrego en Parte E: private $profesorAdjunto; private $profesorTitular; private $cupoMaximo; private $alumnosInscriptos = array(); //para saber si puedo seguir inscribiendo gente necesito saber dos cosas, cual es el cupo maximo y cuanta gente te...
true
de6b73afca87e4824a5e4b6ea2cdfaa780cc6ae8
PHP
RitaPinho/laravel_rita
/app/Http/Controllers/LeaderController.php
UTF-8
6,193
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests\LeaderStoreRequest; use App\Leader; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class LeaderController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ ...
true
e91691d3f34acd685aaaecdc959fef6c76ade857
PHP
mohamedgalallll/childrens-application
/app/Model/MainCategory.php
UTF-8
850
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class MainCategory extends Model { protected $appends = ['name','sub_cat_count']; protected $fillable = [ 'name_ar', 'name_en', 'image_ar', 'image_en', 'icon', 'description_ar', 'descript...
true
59ac503a64a244f77ef1a5fdcdbd6be3193c625d
PHP
tveso/backend
/src/Jobs/UpdateTmdbJobs/UpdateNowPlayingMoviesJob.php
UTF-8
3,795
2.609375
3
[]
no_license
<?php namespace App\Jobs\UpdateTmdbJobs; use App\EntityManager; use App\Services\TheMovieDb\TheMovieDbClient; use App\Services\TheMovieDb\TmdbMovieService; use MongoDB\BSON\ObjectId; use Psr\Log\LoggerInterface; use Symfony\Component\Validator\Constraints\Date; class UpdateNowPlayingMoviesJob { /** * @va...
true
ec4bbd697aa7d2db31bb6313c76a72e1e4b185ee
PHP
charles80929/PHP
/Invoice System/source/library/SessionUtil.php
UTF-8
1,906
3.1875
3
[]
no_license
<?php require_once("Zend/Session.php"); /** * This class is used to read/write to the user HTTP Session * * @package application/library */ class SessionUtil { protected static $_instance; public $namespace = null; /* * Construct if no session is set. */ private function __const...
true
4a3333e26d13e9a97100a749954cf74cb26d9bde
PHP
ShuYaoXiaoJie/shopMFY.github.io
/shopMFY/lib/image.func.php
UTF-8
4,859
2.703125
3
[]
no_license
<?php /*** 验证码 ***/ require_once'string.func.php'; //通过GD库做验证码 function verifyImage($type=1, $length=4, $pixel=50, $line=0, $sess_name="verify1"){ //1. 创建画布 $width = 80; $height = 28; $type = 1; $length = 4; $image = imagecreatetruecolor($width, $height); $white = imagecolorallocate($i...
true
9413d693917be5ec35c269e3532c09dfb396b87b
PHP
sohelreza/student-management
/app/CqExam.php
UTF-8
1,055
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class CqExam extends Model { protected $fillable=[ 'name', 'description', 'teacher_id', 'student_type', 'branch_id', 'class_id', 'batch_id', 'subject_id', 'exam_date', 'start...
true
e18ca2680c54545522687dc65770c1c139843975
PHP
MadeHQ/silverstripe-cloudinary
/src/Traits/Scale.php
UTF-8
1,475
2.734375
3
[]
no_license
<?php namespace MadeHQ\Cloudinary\Traits; use Cloudinary\Transformation\Resize; trait Scale { /** * @param int|string $width * @param int|string $height * @param int|float|string $aspectRatio * @return static */ public function Scale($width, $height, $aspectRatio = null) { ...
true
a1649130ef02dd7c3aeae1a9a8ed70e0c5d83287
PHP
BCarrion/blog
/Core/Util/TreeMap.php
UTF-8
4,223
3.171875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Edgar Andrey Vega Pa * Date: 25/08/2017 * Time: 15:46 */ namespace Core\Util; use Illuminate\Support\Collection; /** * ----------------------------------------------------- * Class TreeMap, this class constructs a new tree map * using the natural ordering of its keys...
true
6e37d91a2f6875a3600977530eeff5a59f4f9b55
PHP
juanmagon1988/Tienda
/app/Http/Controllers/Admin/ProductController.php
UTF-8
4,255
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Requests\SaveProductRequest;//importo el request (lo escribi mal) use App\Http\Controllers\Controller; use App\Category; // Importo los modelos use App\Product; // Importo los modelos class ProductController extends Controller...
true
163c6102a72ced959766336f2e50fccabfcadf51
PHP
Oiseauoui/Homeworks
/homework-2/php_basics_tasks/21.php
UTF-8
184
2.859375
3
[]
no_license
<?php echo 'To boolean <br>'; $a = 0; var_dump( (bool)$a ); echo '<br> Если все верно, то будет присваиватся результат false '; ?>
true
aa019d137edca208309c1b58f187f4cb607dfd2a
PHP
nanbando/nanbando
/src/Backup/DifferentialBackupArchive.php
UTF-8
2,405
2.53125
3
[]
no_license
<?php namespace Nanbando\Backup; use Nanbando\File\MetadataFactory; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; class DifferentialBackupArchive implements BackupArchiveInterface { /** * @var ParameterBagInterface */ private $parentDatabase; /** * @var Met...
true
1fcd2df1cc58b070c14311639876a3c9ca7a84ad
PHP
tungtranduy1003/javascript-learning
/D1/document.getElementById/Changing attribute of an element/1.php
UTF-8
294
2.65625
3
[]
no_license
<!DOCTYPE html> <html> <body> <h2>Yeah</h2> <button type="button" name="button" onclick='document.getElementById("demo").innerHTML = DATE('l')'>Click me to see Date time</button> <p id="demo"> yeah</p> <?php echo DATE('l'); echo "Aaaaa"; var_dump(DATE('l')); ?> </body> </html>
true
367e0a13f8320b13a0c78c796347b015aba75773
PHP
OjenGitMoney/AuctionHub
/post-item.php
UTF-8
2,630
2.578125
3
[]
no_license
<?php session_start(); include 'config.php'; if( isset($_POST["submit"]) ) { $conn = db2_connect( $dbname, $username, $password); if($conn){ $itemName = $_POST['itemName']; $itemDescription = $_POST['itemDescription']; $itemPrice = $_POST['it...
true
82f58088e227da4be3b14db4b79d5331b4ecb93f
PHP
RaphaellaCol/info2180-project4
/logout.php
UTF-8
314
2.59375
3
[]
no_license
<?php include("connect.php"); ?> <?php session_start(); #start the session session_unset(); #removes all variables in session session_destroy(); #destroys session if (!isset($_SESSION['username'])){ echo "Logout Successful! <br />"; header('Location: login.php'); } else{ echo "Logout Failed!<br />"; } ?>
true
1e4779b41662bfdc105efbc20137eb8742b89318
PHP
anhtt57/next_gen
/app/Repositories/Auth/LoginRepository.php
UTF-8
1,248
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Auth; use App\Models\User; use App\Repositories\AbstractRepository; use JWTAuth; use ReceiptValidator\iTunes\Validator as iTunesValidator; use ReceiptValidator\GooglePlay\Validator as PlayValidator; class LoginRepository extends AbstractRepository implements LoginRepositoryInterface {...
true
74c284b7d905811f50863fd2bef81f1bf4f0fbbb
PHP
johnnycea/encuesta
/clases/Encuesta.php
UTF-8
2,569
2.734375
3
[]
no_license
<?php require_once 'Conexion.php'; class Encuesta{ private $tabla; private $id_encuesta; private $descripcion_encuesta; private $estado_encuesta; private $fecha_encuesta; public function setTabla($parametro){ $this->tabla = $parametro; } public function setIdEncuesta($parametro){ $this->id_encuesta = $...
true
59bdd1cafee5b126d8363984fb757f4ac19ad780
PHP
BearBot01/AmbienteWebServidor
/Tarea 1/ejercicio_2.php
UTF-8
814
2.875
3
[]
no_license
<?php if (isset($_POST['btn'])) { $num1 = 1; $aux = 0; $tope = $_POST['Numero']; } ?> <!DOCTYPE html> <html> <head> <title>El resultado</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"> </head> <body> <b...
true
a1029ed4ea2cbd7602b246e4c67148891e3df147
PHP
djblue/comic-book-reader
/api.php
UTF-8
3,193
2.6875
3
[]
no_license
<?php define('ACTIVE', true); // Application Constants define('BASE', dirname(__FILE__)."/"); define('ROOT', dirname($_SERVER['PHP_SELF']).'/'); error_reporting(E_ALL); ini_set('display_errors', 1); require('vendor/autoload.php'); $app = new \Slim\Slim(); require('config.php'); require('book.php'); require('resour...
true
f83a6fe395155dd7c3044784d776cb8648df361c
PHP
haykokalipsis/homework-kittchen
/app/Attribute.php
UTF-8
1,484
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Attribute extends Model { public $table = 'attributes'; public $timestamps = false; static public function store($field_list, $fields, $product) { // foreach (request()->input('additional_fields') as $fieldName) { // ...
true
51546f614c2715f3b73c10f8fde9767a1f2205c3
PHP
bdogan/ubl-tr-generator
/src/Ns.php
UTF-8
1,318
2.9375
3
[]
no_license
<?php namespace UblTr; use UblTr\Exception\NsException; class Ns { /** * Namespace prefix * * @var string */ protected $prefix = null; /** * Namespce uri * @var string */ protected $uri = null; /** * Schema location * @var string|null */ pr...
true
a5d99bebe4939774ef320dfeb9f6e3a81d71e7cb
PHP
dioscouri/f3-lib
/src/Dsc/System.php
UTF-8
7,615
2.78125
3
[]
no_license
<?php namespace Dsc; class System extends Singleton { public $container = null; public function __construct($config=array()) { parent::__construct( $config ); $this->container = new \Dsc\Container; foreach ($config as $key=>$value) { ...
true
02374c780c8149c96d69e11b593b39de3b024b90
PHP
DoooMer/slack-logger
/app/Team.php
UTF-8
726
2.734375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * Модель команды. * * @property string $id * @property string $name * @property string $icon * @property integer $internal_updated_at * @property string $created_at * @property string $updated_at */ class Team extends Model { protected $fi...
true
ccfd24ed44822881985c0ea697e6fb62995c8e72
PHP
kkrieger85/Magento-Slack
/src/app/code/community/Steverobbins/Slack/Model/Api/Abstract.php
UTF-8
5,101
2.875
3
[]
no_license
<?php /** * Slack.com Integration * * PHP Version 5 * * @category Steverobbins * @package Steverobbins_Slack * @author Steve Robbins <steve@steverobbins.com> * @copyright Copyright 2015 Steve Robbins (http://steverobbins.com) * @license http://creativecommons.org/licenses/by/3.0/deed.en_US Creative Com...
true
3b4fcfc760c94082af9af6a33f44819df5c6afd4
PHP
tidepool/assessment-old
/Live BackUps/Live 2.0/prototype/Posts/PostCloudsOld.php
UTF-8
8,810
2.6875
3
[]
no_license
<?php function object2array($object) { if (is_object($object)) { foreach ($object as $key => $value) { $array[$key] = $value; } } else { $array = $object; } return $array; } $ID = -1; $data = $_REQUEST ['data']; $ID = $_REQUEST ['ID']; $xml = simple...
true