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
d24b010040b5359ec2abca8e28e0eb6a1192bc26
PHP
JosephSilber/bouncer
/src/Conductors/RemovesRoles.php
UTF-8
3,564
2.703125
3
[ "MIT" ]
permissive
<?php namespace Silber\Bouncer\Conductors; use Silber\Bouncer\Helpers; use Silber\Bouncer\Database\Role; use Silber\Bouncer\Database\Models; use Illuminate\Database\Eloquent\Model; class RemovesRoles { /** * The roles to be removed. * * @var array */ protected $roles; /** * Cons...
true
1d6f7084d26f5e16cbe4b6c661001e6f59c1fb34
PHP
aagarciga/vfp_business_solutions
/Application/Models/Repositories/SOEDISTATUSRepository.php
UTF-8
4,831
2.765625
3
[]
no_license
<?php /** * Project: VFP Business Series * Copyright: 2014. VFP Business Solutions, LLC */ namespace Dandelion\MVC\Application\Models\Repositories; use Dandelion\Diana\Interfaces\IRepository; use Dandelion\MVC\Application\Models\Entities\SOEDISTATUS; class SOEDISTATUSRepository extends VFPRepository implements ...
true
d3463ac255551f0d98b3a67dff3a461c3d7b97cf
PHP
mundix/amsf01
/app/models/HireMe/Managers/UserProfileManager.php
UTF-8
658
2.78125
3
[ "MIT" ]
permissive
<?php namespace HireMe\Managers; use Commons\Managers\BaseManager; class UserProfileManager extends BaseManager { //Aqui se van a poner las reglasdel controller, de usuarios public function getRules() { $rules = [ 'phone' => '', 'gender' => 'in:male,female', ...
true
6f7f529dda12998fc9941f5858a49a9eac023b0d
PHP
heritiana-nexus/rick-n-morty
/src/Manager/Character/CharacterManager.php
UTF-8
3,131
2.765625
3
[]
no_license
<?php namespace App\Manager\Character; use App\Constant\Pagination; use App\DTO\Character\CharacterDtoOutput; use App\Entity\Character; use App\Entity\Episode; use App\Entity\Location; use App\Manager\PaginationService; use App\Repository\CharacterRepository; use App\Transformer\Character\OutputTransformer; use Doctr...
true
f407824ba0efb4f4661d589fff4618d9df681014
PHP
HollerLondon/sfRackspaceCloudDBPlugin
/lib/vendor/php-clouddb/clouddb/CloudDatabase.php
UTF-8
1,159
3.125
3
[ "MIT" ]
permissive
<?php /** * Rackspace CloudDB database isntance * * @author Sergei Krot <sergey.krot@holler.co.uk> */ class CloudDatabase { public $name, $characterSet, $collate; /** * @param array $response */ public function __construct($response=array()) { if (!empty($response)) { ...
true
64d0eb890f89e66926e60739247ba74813ee447f
PHP
xiwnida/School
/PHP/JKTVR18_PHP/Teema4_ArrayMVC/MVC_BooksList/model/modelCountry.php
UTF-8
737
2.71875
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. */ /** * Description of modelCountry * * @author pupil */ class modelCountry { public static function getCountryList(...
true
f0522904e18aa0e3efeff05b782901a2ed86ade3
PHP
LittleGeorgeWatchingStar/Rialto2020
/src/Rialto/Web/Serializer/DateTimeNormalizer.php
UTF-8
1,099
2.953125
3
[]
no_license
<?php namespace Rialto\Web\Serializer; use DateTimeInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; /** * Allows Rialto to consistently serialize DateTime instances. */ class DateTimeNormalizer implements NormalizerInterface { /** * Checks whether the given class is supported f...
true
f4fc1f3d54181c14dd3f363dfbed6eba3f3a1a87
PHP
ajgon/lint-pack
/test/fixtures/phpcs/BadFile.php
UTF-8
576
2.65625
3
[ "MIT" ]
permissive
<?php /** * Bad Class * * PHP version 5.5 * * @category Test * @package AjgonLintPackBundle * @author Igor Rzegocki <ajgon@irgon.com> * @license https://raw2.github.com/ajgon/lint-pack/master/LICENSE MIT * @link https://github.com/ajgon/lint-pack */ /** * Bad Class * * @category Test * @package ...
true
72ebdf854a5e0e4c81cf15229fbe01ba9bf03fd1
PHP
saturnessa/Nataha-Telegram-Bot
/Bots/IRCBot.php
UTF-8
1,926
3.046875
3
[]
no_license
<?php declare(strict_types = 1); namespace Bots; abstract class IRCBot extends SocketBot{ /** * @var string */ protected $username; /** * @var string */ protected $password; /** * @var array */ protected $channels; protected $timeoutMicro = 10000; pu...
true
4960dbdc972408c7e7ac9a7675b988c92a5e4deb
PHP
lkorponai/laravel-presentation
/app/Services/Factory/ApiUserFactory.php
UTF-8
418
2.75
3
[]
no_license
<?php namespace App\Services\Factory; use App\Models\Phone; use App\Models\User; class ApiUserFactory extends AbstractModelFactory { public static function createModel(array $rawData) { $user = new User(); $user->name = $rawData['name']; $phone = new Phone(); $phone->number...
true
284d9477c5cc2b1dd38bb53ef7e770f8185e5961
PHP
jfmc/logen
/weblogen/public_html/bug_common.php
UTF-8
4,000
2.90625
3
[]
no_license
<? // Function taken from // http://www.php.net/manual/en/function.mysql-real-escape-string.php // should prevent sql injection attacks function quote_smart($value) { // Stripslashes if (get_magic_quotes_gpc()) { $value = stripslashes($value); } // Quote if not integer if (!is_numeric($value)) { $value = "'" ....
true
c8a04a15d6326f3dc75a19c399cb752d45a152b1
PHP
alcr33k/Rest-Horoscopes
/generateHoroscope.php
UTF-8
3,659
2.546875
3
[]
no_license
<?php function setHoroscope($birthYear, $birthDate) { if ($birthDate >= date('m-d', strtotime($birthYear . '-01-20')) && ($birthDate < date('m-d', strtotime($birthYear . '-02-18')))) { $_SESSION['horoscope'] = generateHoroscope('vattumannen', 2, 3, 1); } else if ($birthDate >= date('m-d', strtotime...
true
c50a73925c53270c2d5e1f7ff8a9db5dd368215a
PHP
Gregwar/CaptchaBundle
/Controller/CaptchaController.php
UTF-8
2,431
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Gregwar\CaptchaBundle\Controller; use Gregwar\CaptchaBundle\Generator\CaptchaGenerator; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; /** * Generates a captcha via a URL. * * @author Jeremy Livingston <jeremy.j.livingston@gma...
true
4fc0e11371185aa69eb8c5e8a7fa7ae063feb5b4
PHP
dang-geoffrey/db_temple
/validate/classMySql.php
UTF-8
14,407
3.234375
3
[]
no_license
<?php class classMySql { private $mysqlHost; private $mysqlUser; private $mysqlPassword; private $mysqlDatabase; private $connectionHandle; private $query; private $mysqlDataArray; private $resultSet; private $resultRow; /*-------------------------------------------------------------------------------------...
true
ba808442f0f7c88a56d4a4d595b1cec4bcd11e92
PHP
penyarik/geo
/components/Img.php
UTF-8
595
2.734375
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. */ /** * Description of Img * * @author user76 */ class Img { static public function mainImg($images) { $img_...
true
742b51bbef75170e94a6e9292cfbfed4afaf13b0
PHP
mathh95/delion
/admin/controler/controlFidelidade.php
UTF-8
4,200
2.6875
3
[]
no_license
<?php include_once MODELPATH."/fidelidade.php"; include_once "seguranca.php"; protegePagina(); class controlerFidelidade { private $pdo; function insert($fidelidade){ try{ $stmte =$this->pdo->prepare("INSERT INTO tb_fidelidade(fid_descricao, fid_hist...
true
83dcde342ab38becc17f39fd9a4c1499d11d48aa
PHP
umayanga123/ADMS_WEB
/Model/AdminConsole/disease.php
UTF-8
2,996
2.515625
3
[]
no_license
<?php session_start(); include_once("../../Controller/DBConnection/DBConnectionController.php"); class getDiseaseDetails { public function confirmDisease() { // Create connection $dbConn = new DBConnectionController(); $conn = $dbConn->getConnetion(); if (isset($_POST["confir...
true
3181cf805913504f3fa1ccf9762e7e55872a02a1
PHP
hungnv038/1724fhl
/app/libs/YoutubeVideoHelper.php
UTF-8
940
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: michael * Date: 3/11/15 * Time: 17:17 */ class YoutubeVideoHelper { public function getPlaylistId($chanel_name) { $client=new Google_Client(); $client->setDeveloperKey(Constants::DEVELOPER_KEY); $youtube=new Google_Service_YouTube($client); ...
true
4cab7277108b4df843716cc729a533bd29e3e986
PHP
duongphuhiep/hcqh
/backend/blog.php
UTF-8
4,544
2.6875
3
[]
no_license
<?php define("NB_POSTS_IN_PAGE", 10); // A page has 10 blog posts define("QUOTE_SIZE", 256); require_once("mainBackEnd.php"); //require_once("lib/ChromePhp.php"); require_once("lib/Encoding.php"); use \ForceUTF8\Encoding; // $blogFolderPath = joinPaths(BASE_DIR, "/content/blog"); $requestMethod = $_SERVER['REQUEST_M...
true
cb10ae9cf52d2cfc24abe62823d77157a305232b
PHP
alok-sm/crowdsBackend
/database/migrations/2016_11_05_023929_create_domain_counts.php
UTF-8
691
2.6875
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDomainCounts extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('domain_counts', function(Blueprint $table) { $table->integer('domain_id'); ...
true
2be0b39d004b5db4b77aa54baa1135b35cae33c5
PHP
christech1117/disability_back
/database/migrations/2018_06_20_034034_create_company_jobs_table.php
UTF-8
983
2.609375
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCompanyJobsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('company_job...
true
076a7e99c04a204330b4fda378546d9917d1a470
PHP
Teplitsa/vse.to
/modules/frontend/views/frontend/menu/menu-main.php
UTF-8
584
2.59375
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); ?> <ul class="main-menu"> <?php foreach ($items as $item) { // Build menu item class $class = ''; if ( ! empty($item['selected'])) { $class .= ' current'; } echo ...
true
475e8d7d27252316a50d6d99f5199820a56f1383
PHP
d4rksid3rs/CMS-GDG
/nchart.php
UTF-8
4,522
2.71875
3
[]
no_license
<?php function startsWith($haystack, $needle) { return !strncmp($haystack, $needle, strlen($needle)); } require('API/db.class.php'); $fromDate = $_GET['fromDate']; $toDate = $_GET['toDate']; if (!isset($fromDate)) { $fromDate = date('Y-m-d', time()); } if (!isset($toDate)) { $toDate = date('Y-m-d', time()...
true
7ed459bb9cda5b7a87436de2d17cec524a27216a
PHP
hamaryuginh/HamaryuginhMandrillBundle
/Model/Response/Message/SearchResponse.php
UTF-8
803
2.71875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Hamaryuginh * Date: 14/11/2014 * Time: 21:41 */ namespace Hamaryuginh\MandrillBundle\Model\Response\Message; /** * Class SearchResponse * @package Hamaryuginh\MandrillBundle\Model\Response\Message * @method SearchResponse setMessages(array $messages) * @method array g...
true
88f42d24f4222c6ca551d1a3ff413c8c6ed159d1
PHP
iic-maninder/campus-management-system
/modules/News/lib/class.news_field.php
UTF-8
1,325
2.765625
3
[]
no_license
<?php class news_field { private $_data = array(); public function _get_data($key) { if( isset($this->_data[$key]) ) return $this->_data[$key]; } public function __get($key) { switch( $key ) { case 'alias': $alias = munge_string_to_url($this->name); return $alias; case 'id':...
true
c374efde4f17f58c38c2944447950142f22abbf6
PHP
EroStackOverFlow/nippanim
/src/Triv/AnimesBundle/Entity/Episodes.php
UTF-8
5,533
2.59375
3
[ "MIT" ]
permissive
<?php namespace Triv\AnimesBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * Episodes * * @ORM\Table() * @ORM\Entity * @ORM\HasLifecycleCallbacks() */ class Episodes { /** * @var integer * * @ORM\Column(name="id", type="integer") ...
true
4864ea2d87e36e72a9dd3382e4cf43803b37591d
PHP
Vaalyn/BRG-Panel
/src/Model/Role.php
UTF-8
692
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace BRG\Panel\Model; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsToMany; class Role extends Model { public const TABLE_NAME = 'role'; public const PRIMARY_KEY = 'role_id'; protected $connection = 'panel'; protected $table = self::TABLE_NAME; protec...
true
7c0802091e263f6a1b823d4398d55ad653ed4b14
PHP
unicornonacid/design-patterns
/src/NullObject/ProductRepository.php
UTF-8
295
3.046875
3
[]
no_license
<?php declare(strict_types=1); namespace NullObject; class ProductRepository { public function findById(int $id): ProductInterface { /** * If product was found return Product. * If not, return NullProduct */ return new NullProduct(); } }
true
d801d15831e19518a599ef56fc0d06f111ad7d23
PHP
PhpFox-code/pagination
/tests/URLTest.php
UTF-8
1,079
2.796875
3
[]
no_license
<?php namespace Procivam\Pagination\Tests; use Procivam\Pagination\System\Setting; use Procivam\Pagination\System\URL; class URLTest extends \PHPUnit_Framework_TestCase { public function testConstructorWrongParameterPage() { $this->expectException(\InvalidArgumentException::class); $setting =...
true
5ba930237b2bffee4cebd119784aabc6deecc187
PHP
carloFanc/Basi-di-Dati
/pages/classprenbici.php
UTF-8
1,079
2.578125
3
[]
no_license
<?php require_once("../session.php"); require_once("../class.user.php"); $auth_user = new USER(); $umail = $_SESSION['user_email']; $stmt = $auth_user->runQuery('CALL ClassificaPrenBici()'); $stmt->execute(); ?> <body> <div > <h1 align="center">Classifica in base alle prenotazioni Bici</h1> ...
true
d8ff4b165b5fb7d86da7723c524d90bab0ba8f03
PHP
itarvin/leetcode
/php/415addStrings.php
UTF-8
1,008
3.75
4
[]
no_license
<?php /* * 给定两个字符串形式的非负整数 num1 和num2 ,计算它们的和。 * 提示: * * num1 和num2 的长度都小于 5100 * num1 和num2 都只包含数字 0-9 * num1 和num2 都不包含任何前导零 * 你不能使用任何內建 BigInteger 库, 也不能直接将输入的字符串转换为整数形式 * } */ class Solution { /** * @param String $num1 * @param String $num2 * @return String */ function addStrings($num1,...
true
025fbe73c5b6b366f67ff516904cd9cdbb34c5a7
PHP
oliverportmo/phourus
/app/php/rest/tests/curl/sessionTest.php
UTF-8
1,710
2.75
3
[]
no_license
<?php require_once 'curl.php'; class sessiontest extends PHPUnit_Framework_TestCase { # GET public function testsession(){ // Valid $options= array(); $default_token= 'ENlnLTHKlpkr5XYeaS7G'; $default_user_id= 1; //$r= curl("session/", $options); /*$this->assertEquals($default_token, $r['id']); $th...
true
085d5aa92e79f15650fa440a6ecb6527d486e23f
PHP
isfett/php-analyzer
/src/Builder/ConditionListBuilderInterface.php
UTF-8
476
2.578125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types = 1); namespace Isfett\PhpAnalyzer\Builder; use Isfett\PhpAnalyzer\DAO\ConditionList; /** * Interface ConditionListBuilderInterface */ interface ConditionListBuilderInterface { /** * @return ConditionList */ public function getConditionList(): ConditionList; /** ...
true
e205e278b663d09d5f8cc358322fbdeaf0bf113d
PHP
SamehMohamedAhmedOmr/social-magazine-backend
/Modules/Article/Database/Migrations/2020_11_21_120051_create_articles_table.php
UTF-8
1,877
2.515625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateArticlesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('articles', fun...
true
a16c63eb452ff2b3756290e6e966d0cd8fc5f961
PHP
guiluchesi/maispet-php-mysql
/Controller/LoginController.php
UTF-8
1,625
2.578125
3
[]
no_license
<?php /** * Project: Mais Pet * Created: 14/09 * User: Jeniffer Carvalho * Usage: Controller do login Cliente */ session_save_path("/tmp"); require_once "Model/Proprietarios.php"; $resultado = ''; $loginProprietario = new Proprietarios(); if( isset($_POST['fazerLogin']) ) { $user = isset($_POST['usua...
true
3d3717e261ac119f6e2b9b6d61757ec977b5df2d
PHP
Zaffar-Hussain/Web_Development
/project/dbfunctions.php
UTF-8
16,224
2.796875
3
[]
no_license
<?php function connection() { $servername="localhost"; $username="root"; $password=""; $dbname="hotelmanagement"; $conn=mysqli_connect($servername,$username,$password,$dbname); if(!$conn) { die("connection failed:".mysqli_connect_error()."<br><br>"); } return $conn; } function closeconnection($conn) { mysq...
true
ba091fe803370444d8ed9dbd0411c42b46a18961
PHP
browscap/browscap
/tests/BrowscapTest/Filter/FullFilterTest.php
UTF-8
4,069
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace BrowscapTest\Filter; use Browscap\Data\Division; use Browscap\Data\PropertyHolder; use Browscap\Filter\FilterInterface; use Browscap\Filter\FullFilter; use Browscap\Writer\IniWriter; use Browscap\Writer\WriterInterface; use PHPUnit\Framework\ExpectationFailedException; use PH...
true
9b7bcaa4b921723ee67fd6d42a71fd4c25e8ce7a
PHP
pullemall/ATM
/index.php
UTF-8
1,825
2.703125
3
[]
no_license
<?php namespace App; use App\Core\AnnotationParser; use App\Core\Schema; use App\Views\UserLoginView; use App\Views\UserRegisterView; include "autoload.php"; $option = $argv[1] ?? null; $optionsList = array("Show balance", "Transfer money", "Withdraw money", "Deposit money"); $objectsList = array( "Show balance...
true
b7caf67fe2d28fe9f92026444244475bf410c0ce
PHP
hishamwebdeveloper/Portfolio
/Projects/PHP MySQL Share Feed/models/shares.php
UTF-8
754
2.71875
3
[]
no_license
<?php class SharesModel extends Model { public function Index() { $this->query('SELECT * FROM news'); $rows = $this->resultSet(); return $rows; } public function add(){ // Sanitize POST if(isset($_POST['add'])){ if($_POST['NewsTitle'] == '' || $_POST['NewsText'] == '' ){ return; } // ...
true
1b77e980c9cacc49e7595f6f0dc456a594d62ada
PHP
SGuskov71/KOMETA
/sys/mb_common.php
UTF-8
29,245
2.625
3
[]
no_license
<?php Class JSON_Result { //стандартный объект возврата JSON данных public $success; //признак успеха выполнения public $msg; //сообщение обработчика public $result; //запрошенный результат function __construct($_success, $_msg, $result) { $this->success = $_success; $this->msg = $_msg; $this->re...
true
e328dfa3c0aad1301bc0eacfaa7523d2723af32f
PHP
dravecca00/sailingresults.devsport.net
/regatta.php
UTF-8
1,622
2.640625
3
[]
no_license
<?php include ("database_local.php"); include ("funciones.php"); // evento id pasado desde la url redirect $regatta_id = $_GET['id']; $i=0; $lista=null; $clases = null; $query = $db->query("SELECT * FROM events INNER JOIN regattas ON events.regatta_id=regattas.id WHERE events.regatta_id=".$regatta_id." "); while ($ro...
true
8ae7cf2174f5a8bf8823efb2a655404627bd69f6
PHP
HanFez/hiyik-manage-system
/app/Helper/functions.php
UTF-8
604
2.84375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: HanFei * Date: 2018/12/13 * Time: 10:24 */ function test(){ echo "测试帮助函数引入"; } /** * rgba转int * param r,g,b,a */ function turnInt($R,$G,$B,$A){ $color = 0; if($A>100 || $A<0){ return "Please input data between 0-100"; } $color = $color+(($R<<...
true
12fc5f25896499424fe3a052c4dc91fd46277b9d
PHP
xavier-triplett/JunkApp
/PHP/public/junkDelete.php
UTF-8
969
2.890625
3
[]
no_license
<?php // For PUT and POST requests the params go into the body // x-www-form-urlencoded require_once '../include/connect.php'; $dbh = new_pdo(); if ($_SERVER['REQUEST_METHOD'] == 'DELETE') { $input = file_get_contents("php://input"); $data = json_decode($input); try { $sql = "DELETE FROM Ite...
true
728d11567932929d3133ad3ed71873cb65d1a385
PHP
phacility/phabricator
/src/applications/phid/remarkup/PhabricatorHandleRemarkupRule.php
UTF-8
3,033
2.53125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class PhabricatorHandleRemarkupRule extends PhutilRemarkupRule { const KEY_RULE_HANDLE = 'rule.handle'; const KEY_RULE_HANDLE_ORIGINAL = 'rule.handle.original'; public function apply($text) { return preg_replace_callback( '/{(PHID-[a-zA-Z0-9-]*)}/', array($this, 'markupHandle'), ...
true
566297f510dc5377113c2256c5334280ce14b7f3
PHP
PedroBSanchez/albuns-php
/src/dados/Estrelas.php
UTF-8
1,757
3
3
[]
no_license
<?php namespace Dados; class Estrelas { public function existeVoto($musica, $usuario) { $conn = Connection::getInstance()->connection; $sql = 'SELECT cod_usuario, cod_musica from estrela where cod_musica = :cod_musica and cod_usuario = :cod_usuario'; $sth = $conn->prepare($...
true
262d61416b0587ae7386372c31f08c2c216a0b54
PHP
islomar/cqrs-ddd-php-example
/src/Context/Video/Module/Video/Application/Update/UpdateVideoTitleCommand.php
UTF-8
620
2.71875
3
[]
no_license
<?php namespace CodelyTv\Context\Video\Module\Video\Application\Update; use CodelyTv\Shared\Domain\Bus\Command\Command; use CodelyTv\Types\ValueObject\Uuid; final class UpdateVideoTitleCommand extends Command { private $id; private $newTitle; public function __construct(Uuid $commandId, string $id, stri...
true
618609be58caf2429039f30dccbf9780ebc57efd
PHP
12meses12katas/Junio-Simple-Lists
/gonzalo123/php/SimpleList/Item.php
UTF-8
325
3.03125
3
[]
no_license
<?php namespace SimpleList; class Item { private $key; private $value; function __construct($key, $value) { $this->key = $key; $this->value = $value; } public function value() { return $this->value; } public function key() { return $this->key; ...
true
5092c8c949b52ed62d2ac375a26e0c8ae00b721d
PHP
toshko93/PHP-Repository
/PHP-Htdocs/03.PHP-Syntax-Advanced-Lab/03.PeriodicTable.php
UTF-8
478
3.390625
3
[]
no_license
<?php $input_string = trim(fgets(STDIN)); $elements = explode(', ', $input_string); $result_array = array(); for ($i = 0; $i < count($elements); $i++) { $current_element = $elements[$i]; if (isset($result_array[$current_element])) { $result_array[$current_element]++; } else { ...
true
fdd106437662950a51f24d72049cb7e621dda98d
PHP
eteslya/demo
/application/modules/Ynaffiliate/Form/Admin/Signup/Affiliate.php
UTF-8
1,805
2.515625
3
[ "Apache-2.0" ]
permissive
<?php class Ynaffiliate_Form_Admin_Signup_Affiliate extends Engine_Form { public function init() { // Get step and step number $stepTable = Engine_Api::_()->getDbtable('signup', 'user'); $stepSelect = $stepTable->select()->where('class = ?', str_replace('_Form_Admin_', '_Plugin_', get_class($...
true
611aea25a348bf3125fa5d945ca889b52f45b46f
PHP
Alex-Espressone/FroshWebP
/Components/WebpEncoderInterface.php
UTF-8
387
2.65625
3
[ "MIT" ]
permissive
<?php namespace FroshWebP\Components; /** * Interface WebpEncoderInterface */ interface WebpEncoderInterface { /** @return string */ public function getName(); /** * @param resource $image * @param int $quality * * @return string */ public function encode($image, $qual...
true
83bc8dcda14fc7c2d9f99111a886a5d5b8a49860
PHP
aparece1241/cookingtech_backend
/app/Http/Controllers/CommentController.php
UTF-8
3,376
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Comment; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\DB; use Symfony\Component\HttpKernel\Event\ResponseEvent; class CommentController extends Controller { /** * return a listing of the Comments. ...
true
566801e3e9effc978a0edce9e26819d24baf41b8
PHP
w4967893/local_tigerwell
/application/controllers/admin/CustomerController.php
UTF-8
1,589
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class CustomerController extends AdminBase { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index ...
true
74633a5278d82e26ec69f9002f076424933480b4
PHP
GOVER-IT/travelkuy
/simpan.php
UTF-8
1,308
2.6875
3
[]
no_license
<?php include "koneksi.php"; //menangkap hasil submit pada element form melalui method POST $nama = $_POST['nama']; $lokasi = $_POST['lokasi']; $deskripsi = $_POST['deskripsi']; $gambar = $_FILES['gambar']['name']; $tmp = $_FILES['gambar']['tmp_name']; //rename nama gambar dengan menambahkan tgl dan jam u...
true
3899f9003fd83d3c73494dc8efe79618b6083370
PHP
ZacheryGlass/Game-Review-Website
/submit.php
UTF-8
2,988
2.625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <?php include "include/head.php"; ?> <title>Submit a Review</title> </head> <body> <?php include "include/nav.php"; ?> <div class="container"> <?php include "include/side.php"; ?> <div id="main" class="col-md-9"> <h1>Submit a Game for R...
true
30babcd1c091bb60a0cb7c3bfac4466e7c5f9dc9
PHP
hostnet/wsdl2php
/test/resource/Providers/EBay/generated/subnamespaces/Controle/sub1/sub2/SkypeMeNonTransactionalEnabledDefinitionType.php
UTF-8
682
2.578125
3
[]
no_license
<?php namespace Controle\sub1\sub2; /** * SkypeMeNonTransactionalEnabledDefinitionType * Defines the feature of adding Skype buttons to listings for nontransactional formats (e.g., * the advertisement format). If the field is present, the corresponding feature applies to * the category. The field is returned as a...
true
e87e769e8a81fdf2c49a2d7c819ac3522dbe3606
PHP
martindilling/martindilling
/app/MDH/Events/Observers/PostsObserver.php
UTF-8
660
2.546875
3
[ "MIT" ]
permissive
<?php namespace MDH\Events\Observers; use Cache; use Clockwork; class PostsObserver { public function saved($event) { $this->cacheClearShow($event->id); $this->cacheClearAll(); } public function deleted($event) { $this->cacheClearShow($event->id); $this->cacheClea...
true
aeb67234ecd7d519818385ea98d82bb7cba72f16
PHP
BenzPowder/E-Office
/modules/scholar_b/models/Listport.php
UTF-8
2,667
2.53125
3
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace app\modules\scholar_b\models; use Yii; /** * This is the model class for table "listport". * * @property string $teacher_id_card * @property int $project_code * @property int $project_type_id * @property string $project_name * @property int $id_portfolio * @property string $port_name * @prop...
true
743c7077058fe62c20f2d3ebf42cf67cea3084ac
PHP
szczepan13/hackaton
/project1/app/Library/XapiProvider.php
UTF-8
990
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Library; class XapiProvider{ private $headers; private $response; const PROVIDER_URL = 'https://xap.ix-io.net/api/v1/'; public function __construct() { $this->headers = array( "Accept" => "application/json", "Authorization" => "ab16_Fru:8...
true
fb2bd1aafc20e401d41ac1c04fc46540552abf25
PHP
dgsmarques/lojaestore
/app/Models/Produto.php
UTF-8
1,052
2.53125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Produto extends Model { /* |-------------------------------------------------------------------------- | Produto Model |-------------------------------------------------------------------------- | | Este model é reponsa...
true
dad44f9aa0909605f0e622ba2e825b3742afda98
PHP
bayanah/shop
/application/controllers/Home.php
UTF-8
3,548
2.515625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Home extends CI_Controller { function __construct() { parent::__construct(); $this->load->helper('form'); } public function index($category_id = 0) { $viewData = []; $search = $this->input->get('s...
true
763a328fcd538e77100f2855011455d3224d3ffa
PHP
sonata-project/exporter
/tests/Writer/XmlExcelWriterTest.php
UTF-8
4,261
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\Exporter\Tests\Writer...
true
a47c5f313404b7ece596c3f69236807b1419e641
PHP
MuGuiLin/PHP
/Date&Time_FN/newfile.php
UTF-8
764
3.15625
3
[]
no_license
<?php ignore_user_abort();//关掉浏览器,PHP脚本也可以继续执行. set_time_limit(3000);// 通过set_time_limit(0)可以让程序无限制的执行下去 $interval=5;// 每隔5s运行 //方法1--死循环 // do{ // echo '测试'.time().'<br/>'; // sleep($interval);// 等待5s // }while(true); //方法2---sleep 定时执行 //require_once './curlClass.php';//引入文件 ...
true
fd48f2593dcca13703c0990c2bcd010f0d0373c9
PHP
XD-OB/PHP-Piscine
/day01/ex03/ft_split.php
UTF-8
394
2.953125
3
[]
no_license
<?php function ft_split($str) { $tab = trim(preg_replace('/\s+/', ' ', $str)); $tab = explode(" ", $tab); $len = 0; foreach ($tab as $elt) $len++; $i = 0; while ($i < $len) { $j = 0; while ($j < $len - $i - 1) { if (strcmp($tab[$j], $tab[$j + 1]) > 0) { $tmp = $tab[$j]; $tab[$j] = $tab[$j + 1]; ...
true
881b8bb15f418db5707e8b1dcbbd198a8a43fcc6
PHP
14dtj/Gofit
/controller/db.php
UTF-8
341
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: tjDu * Date: 2016/11/2 * Time: 20:10 */ class db { public static $pdo = null; private function __construct() { } public static function getPdo() { if (self::$pdo == null) self::$pdo = new PDO('sqlite:temp.db'); return ...
true
26e44523c36781264a1c5dbf6e45773dbc48c9d1
PHP
coincity/Mini-Geo
/application/model/game_model.php
UTF-8
1,147
3.234375
3
[]
no_license
<?php class gameModel { /** * @param object $db A PDO database connection */ public function getlatlng($photo) { $sql = "SELECT lat,lng FROM photos WHERE id = :id"; $query = $this->db->prepare($sql); $parameters = array(':id' => $photo); $query->execute($parameter...
true
1a9691e813fad324d65f2256f3ffc7eec76558cb
PHP
mmoreram/RSQueueBundle
/Event/Abstracts/AbstractRSQueueEvent.php
UTF-8
1,288
2.78125
3
[ "MIT" ]
permissive
<?php /** * RSQueueBundle for Symfony2 * * Marc Morera 2013 */ namespace Mmoreram\RSQueueBundle\Event\Abstracts; /** * Abstract queue event */ abstract class AbstractRSQueueEvent extends AbstractRSEvent { /** * @var String * * Queue alias */ protected $queueAlias; /** * @...
true
48b3cc01bdab4c3b8e3dd97e525feb8e208eca03
PHP
kisley-viana/ProntuSis
/app/Http/Controllers/ProntuarioController.php
UTF-8
6,688
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Prontuario; class ProntuarioController extends Controller { public function __construct() { $this->middleware('auth'); //$this->middleware('guest')->except('/logout'); } //Listagem de Prontuarios ...
true
36b6690ff1828291dd1c2766846031c44bc06e4c
PHP
PHPNoiseMaker/NoiseMaker
/lib/Model/Datasource/DataSource.php
UTF-8
374
2.90625
3
[ "BSD-2-Clause-Views" ]
permissive
<?php class DataSource { protected $_connected = false; protected $_connection = null; protected $_config = array(); protected $_baseConfig = array(); public function __construct($config) { $this->setConfig($config); } private function setConfig($config) { $this->_config = array_merge( $this-...
true
ac1eed28965f353ede133620555290f51418693f
PHP
UCLALibrary/Testing-Automation
/behat-gui/app/Helpers/helpers.php
UTF-8
1,734
3.0625
3
[ "MIT" ]
permissive
<?php if(! function_exists('rrmdir')){ function rrmdir($dir) { if (is_dir($dir)) { $objects = scandir($dir); foreach ($objects as $object) { if ($object != "." && $object != "..") { if (is_dir($dir."/".$object)) rrmdir($dir...
true
d5e27f874490f3b3685f4fa1619400dac624f7f6
PHP
tkcmuzrepo/muz_repo
/htdocs/function/functionArray.php
UTF-8
4,582
3
3
[]
no_license
<?php function array_values_recursive($ary) { $lst = array(); foreach( array_keys($ary) as $k ){ $v = $ary[$k]; if (is_scalar($v)) { $lst[] = $v; } elseif (is_array($v)) { $lst = array_merge( $lst, array_values_recursive($v) ); } } return $lst;...
true
f0d950ce665e9cf465f7d0f94c9acf2662e76f34
PHP
AMMing/KcvPluginsPage
/php/models/download_count.php
UTF-8
216
2.640625
3
[ "MIT" ]
permissive
<?php /** * softModel */ class downloadCountModel { public $name; public $downloadCount; function __construct($row) { $this->name=$row['name']; $this->downloadCount=(int)$row['count']; } } ?>
true
c2f7669f582aa26746b24330af64696977034fa0
PHP
cbatchi/espace-membre-php
/oop/class/Auth.php
UTF-8
11,751
2.90625
3
[]
no_license
<?php class Auth { /** * @var array $errors; */ private array $errors=[]; /** * @var array $data; */ private array $data; /** * @var Database $connection; */ public Database $connection; /** * @var Helper $helper; */ public Helper $helper; /** * @var Sessions $sessions...
true
5c6994f2b77dddbf900a6f5c55f4e0eb8c1b50fd
PHP
akiyoshi-takazwa/cart-memo-server
/app/Enums/Course/StarCourseType.php
UTF-8
588
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Enums\Course; use MyCLabs\Enum\Enum; /** * @method static StarCourseType SUNSHINE_AIRPORT() * @method static StarCourseType DOLPHIN_MISAKI() * @method static StarCourseType ELECTRO_DREAM() * @method static StarCourseType WARIO_SNOW_MOUNTAIN() */ class StarCourseType extends Enum { privat...
true
e3019b2c37bd199d57e1d4c89c6ca3ae1cdf0c62
PHP
neptune-me/SOFT130002_pj
/php/addCart.php
UTF-8
742
2.625
3
[]
no_license
<?php include_once '../inc/config.inc.php'; include_once '../inc/mysql.inc.php'; function check($id, $userID) { $pdo = connect(); $query = "select * from carts where artworkID = ${id} and userID = ${userID}"; $result = execute($pdo, $query); if ($result->rowCount() != 0) { echo "true"; } e...
true
24369ed9ca7894163c1f29463ced88eec85ba445
PHP
SaifDoghri/2A17-ProjetWeb
/Model/Panier.php
UTF-8
1,036
2.78125
3
[ "Apache-2.0" ]
permissive
<?php class panier { private $id; private $Nom; private $Prix; private $Quantite; private $Image; public function __construct($id,$Nom,$Prix,$Quantite,$Image) { $this->id=$id; $this->Nom=$Nom; $this->Prix=$Prix; $this->Quantite=$Quantite; $this->Image=$Image; } pu...
true
aa625d6d2e2463e6778edcb5c7a41212c7f98fe2
PHP
bmsolutions/splashpayments-php
/lib/invoiceLineItems.php
UTF-8
1,460
2.703125
3
[ "Apache-2.0" ]
permissive
<?php namespace SplashPayments; use SplashPayments\Exceptions\InvalidRequest; class invoiceLineItems extends BaseResource { protected $resourceName = "invoiceLineItems"; /** * @string * The ID of this resource. */ public $id; /** * @string * The date and time at which this resource was create...
true
0e42970854d8e1ded8f316a486d73927b94acf32
PHP
silekeji12138/silekeji
/frontend/models/Prize.php
UTF-8
546
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: M S I LW * Date: 2017/12/17 * Time: 16:25 */ namespace frontend\models; use yii\db\ActiveRecord; class Prize extends ActiveRecord{ public static function tableName() { return 'cb_luck_item'; } public static function prize(){ $result=self::...
true
f724d37a22cd406fa433d5fc0babc90c9706eeca
PHP
kartik-dutt/Learning-PHP
/src/checkbox.php
UTF-8
376
2.9375
3
[ "MIT" ]
permissive
<html> <head> <title> Checkboxes in PHP </title> </head> <body> <form action="checkbox.php" method="post"> Apples : <input type="checkbox" name="fruits[]" value="apples"> Oranges : <input type="checkbox" name="fruits[]" value="oranges"> <input type="submit"> </form> <?php ...
true
8cf5c25a3cbb6fe3d5e043797b7900538c683415
PHP
Liferbis/Proyectos
/DWES/2-EV/Unidad8/hoja-03/pruebaCliente.php
UTF-8
745
2.546875
3
[]
no_license
<?php $wsdl="http://localhost/proyectos/DWES/2-EV/Unidad8/hoja-03/wsdl/producto/wsdlproductos.xml"; $uri="http://127.0.0.1/wsdl"; try{ $cliente=new SoapClient($wsdl,array('trace'=>1)); $precio=$cliente->getPrecio(1); echo "<br>El precio del articulo con codigo 1 es: ".$precio; // $articulo=$cliente->getProdu...
true
c81fcc5b10b0f0955ccccebeb0fdb6887ee6e3e0
PHP
reportico-web/reportico
/src/ReporticoTheme.php
UTF-8
2,124
2.71875
3
[ "MIT" ]
permissive
<?php namespace Reportico\Engine; /** * Class ReporticoTheme * * Identifies a report output criteria and the associated * criteria header and footers. */ class ReporticoTheme extends ReporticoObject { public $usage = array( "description" => "Theme Loader", "methods" => array( //"...
true
22db7f798c105cd7dc18309b20366fd03a6495e9
PHP
grupopin/testing
/library/Hw/Tidy.php
UTF-8
3,792
2.859375
3
[]
no_license
<?php /** * The class is built to run tidy from command line * The reason it was built is that merge-spans did not work properly in tidy.so. As per php site there is a bug. * where as tidy which was built from fresh csv is working fine as a standalone version * @author levan * */ class Hw_Tidy{ priva...
true
47efcc73be6c6a76e1a47518c4fb950590709fcf
PHP
aaronbarnett/percona-world
/model.php
UTF-8
1,975
3.28125
3
[]
no_license
<?php require_once('config.php'); class Model { var $pool; function Model() { $this->pool = array(); } /** * Obtain all the cities from a given country, ordered by name or * population. It returns an array with names, districts and populations. */ function get_country_cities($country, ...
true
0dde798e963b8b929242858e7dc0c4029d307d56
PHP
sidshahz1/food-odering-application--php
/server/user.php
UTF-8
1,345
2.625
3
[]
no_license
<?php // session start and database connection include('../utilities/dbConnection.php'); // order item route controller if(isset($_POST['orderItem'])){ //check user loged in or not if(isset($_SESSION['user']) and !$_SESSION['isRestro']){ //create variables for all user input $itemId=m...
true
c5777b1740b4e95bd5915799f6ada5aca04cd68e
PHP
jhosno/bivlu
/app/Http/Controllers/QueryController.php
UTF-8
6,167
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Human; use App\Query; use App\User; use Illuminate\Http\Request; class QueryController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(Request $request) { ...
true
719cb2fb1ea62ea1b77b9b817c77ed2664405009
PHP
MilesAdamson/climbing-photos
/report_photo.php
UTF-8
1,324
2.640625
3
[]
no_license
<?php include_once 'strings.php'; include_once 'connect.php'; include_once 'connect.php'; include_once 'select_photo.php'; include_once 'delete_photo.php'; Header(CONTENT_TYPE_HEADER); /* Increases the report count of a photo by one. */ if($_SERVER["REQUEST_METHOD"]=="POST") { global $connect; if (isset($_POST[...
true
a038d4c3b78569b3beca6a085c81727a0052f088
PHP
yjiq150/php-spidermonkey
/tests/feature16967.phpt
UTF-8
537
2.796875
3
[]
no_license
--TEST-- Feature request 16967 ( Export javascript functions from Javascript to PHP ) --FILE-- <?php $js = new JSContext; $window = new stdClass; $window->foo = function() { echo "bar"; }; $js->assign('window', $window); $script = <<<JS window.foo(); window.onload = function () { return 'foobar'; ...
true
24c5db310782ab175746fd49aba98c154e56c571
PHP
yiisoft/db-sqlite
/src/QueryBuilder.php
UTF-8
2,254
2.640625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Yiisoft\Db\Sqlite; use Yiisoft\Db\QueryBuilder\AbstractQueryBuilder; use Yiisoft\Db\Schema\QuoterInterface; use Yiisoft\Db\Schema\SchemaInterface; /** * Implements the SQLite Server specific query builder. */ final class QueryBuilder extends AbstractQueryBuilder { /** ...
true
d3538970cd541d5366c47570c74e76e49789746b
PHP
agentmedia/phine-framework
/src/Access/Base/GrantResult.php
UTF-8
860
2.90625
3
[ "Apache-2.0" ]
permissive
<?php namespace Phine\Framework\Access\Base; use Phine\Framework\System\Enum as Enum; class GrantResult extends Enum { /** * Result if access is allowed * @return GrantResult */ static function Allowed() { return new self('Allowed'); } /** * Result if accessor is ...
true
8b17bbd1abbb853778fe39dba136283d93604115
PHP
HolgerZerbe/PHP_course
/05_PHP-Funktionen_vordefiniert/explode.php
UTF-8
1,030
3.234375
3
[]
no_license
<?php $ergebnis = explode("/", "Apfel/Birne/Ananas/Kirsche"); $ergebnis2 = explode("/", "Apfel/Birne/Ananas/Kirsche", 3); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>05_übung_17</title> </head> <body> ...
true
d838229883a4d36805efd5c2b14b75c84c17876e
PHP
FansWorldTV/web
/vendor/predis/lib/Predis/Connection/ReplicationConnectionInterface.php
UTF-8
1,123
2.671875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * This file is part of the Predis package. * * (c) Daniele Alessandri <suppakilla@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Predis\Connection; /** * Defines a group of Redis servers in a mast...
true
38975dc01f0709e2f0815f5e69785f505d51bc1a
PHP
dbrdarski/faculty-project
/core/Controllers/CourseController.php
UTF-8
3,646
2.515625
3
[]
no_license
<?php namespace Core\Controllers; // use \Core\Authentication\Auth; use \Core\Models\Course; use \Core\Containers\Environment; use Respect\Validation\Validator as v; use \Core\Containers\View; use \Core\Containers\Model; class CourseController extends Controller{ public function courseIndex($req, $res, $args) ...
true
55e9741aa4fae4abac575b6dd39b7ffecb94a03f
PHP
dferriz/php-design-patterns
/src/Creational/AbstractFactory/FornitureExample/Traits/VictorianForniture.php
UTF-8
337
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace DesignPatterns\Creational\AbstractFactory\FornitureExample\Traits; use DesignPatterns\Creational\AbstractFactory\FornitureExample\FornitureStyle; trait VictorianForniture { public function style(): FornitureStyle { return new FornitureStyle(FornitureStyle::VI...
true
137e6194ee68893f9e11cd0e96b2d735ee1f4f70
PHP
DongMeiLambkin/php-111111
/fuxi/05edit.php
UTF-8
1,284
2.578125
3
[]
no_license
<?php include "common.php"; // print_r($_GET); $id = $_GET["id"]; $conn = connect("fuxi"); $sql = "select * from student where id='{$id}' "; $res = query($conn,$sql); // print_r($res); $data =$res["data"][0]; // print_r($data) //得到对应的数组 ?> <!DOCTYPE html> <html lang="en"> <head> ...
true
69c5d4584a241f9f238f449d183d41b5e2e08892
PHP
Christos-Papoulas/pokeking
/app/Console/Commands/FetchPokemonProfiles.php
UTF-8
2,924
3.046875
3
[]
no_license
<?php namespace App\Console\Commands; use App\Pokemons; use GuzzleHttp\Client; use App\PokemonProfiles; use Illuminate\Console\Command; use GuzzleHttp\Exception\ClientException; class FetchPokemonProfiles extends Command { /** * The client for the HTTP requests. * * @var GuzzleHttp\Client */ ...
true
a5c75ec4ce375ff482011e109ddf6bf63f7eeb8d
PHP
anood11/horde-hatchery
/news/lib/Categories.php
UTF-8
18,752
2.765625
3
[]
no_license
<?php /** * News Category Class. * * $Id: Categories.php 1261 2009-02-01 23:20:07Z duck $ * * Copyright 2009 The Horde Project (http://www.horde.org/) * * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. * * @author Duc...
true
febf0b39880422d5fcc8bba123be33dca6b3d1b5
PHP
favrik/elevator
/src/Favrik/Schedule/SCANSchedule.php
UTF-8
3,875
3.015625
3
[]
no_license
<?php namespace Favrik\Schedule; use Favrik\Schedule\ScheduleInterface; class SCANSchedule implements ScheduleInterface { public $queue; private $requests; private $state; public function __construct($requests, $initialState) { $this->requests = $requests; $this->state = $initia...
true
2e83f223775e1a546c182cc29867d8345ec1babc
PHP
limitless-brain/emotional-backend
/app/Http/Controllers/SongController.php
UTF-8
3,686
2.796875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Interaction; use App\Models\Song; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; class SongController extends Controller { /** * The method that returns list of all songs * * @param Request $request * @return JsonResponse ...
true
1e30139773544f042a39bae7a6da275069ddedea
PHP
jan-martinek/peer-blender
/app/model/Ontology/AssignmentDefinition.php
UTF-8
4,044
2.796875
3
[ "MIT" ]
permissive
<?php namespace Model\Ontology; use Model\Entity\Assignment; use Model\Entity\Question; use Model\Ontology\QuestionDefinition; use Model\Ontology\Reading; use DateTime; class AssignmentDefinition implements IDefinition, \Countable { use \Nette\SmartObject; /** @var CourseFactory */ private $factory; ...
true
851b6025221087ba0d6579194fc1e3ec3fd2dfe6
PHP
WeDesignIt/parcel-pro-php-api-client
/src/ParcelPro.php
UTF-8
1,635
2.609375
3
[ "MIT" ]
permissive
<?php namespace WeDesignIt\ParcelPro; use WeDesignIt\ParcelPro\Endpoints\Account; use WeDesignIt\ParcelPro\Endpoints\ApiKey; use WeDesignIt\ParcelPro\Endpoints\DistributionLocation; use WeDesignIt\ParcelPro\Endpoints\Shipment; use WeDesignIt\ParcelPro\Endpoints\ShipmentType; use WeDesignIt\ParcelPro\Endpoints\Shippin...
true
deb9b4193876df716447650cf8bcc21819b5af45
PHP
dodo0211/Project_greenRecycle
/common/lib/function.php
UTF-8
426
2.65625
3
[]
no_license
<?php // 결과가 잘못되었을 경우, 경고해주고 뒤로 function alert_back($message) { echo (" <script> alert('$message'); history.go(-1) </script> "); } // 공격성을 가진 클라이언트를 방어 function input_set($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data);...
true