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
d19594ed6c63c450113972668a6eaaf7112ac7c4
PHP
victorfdt/theliteracycenter
/app/Http/Middleware/VerifyUserAsAdmin.php
UTF-8
538
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; class VerifyUserAsAdmin { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { # $userId = $r...
true
d974afaa61131389c5e4315585c8d08fabcb29ae
PHP
davidgonsaga/rateable
/src/Repositories/RateRepository.php
UTF-8
1,575
2.53125
3
[]
no_license
<?php namespace Webeleven\Rateable\Repositories; use Illuminate\Support\Facades\DB; use Webeleven\Rateable\Models\Rate; use Webeleven\Rateable\Interfaces\RateRepositoryInterface; class RateRepository extends BaseRepository implements RateRepositoryInterface { public function save($data) { return Rate...
true
b28a43185f4bc7e121cb96e3649686b7276ecace
PHP
adeng322/airlines-webapp
/app/database/migrations/2019_03_10_190733_create_statistics_table.php
UTF-8
1,452
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateStatisticsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { ...
true
9348dd7d19413ebc72b7690cc1fe12aa33b40dde
PHP
kavindumanaram/k_chat
/model/user.php
UTF-8
1,861
2.515625
3
[]
no_license
<?php require_once 'connection.php'; class User { function getuserDetails(){ $conn=new Connection(); $sql="select *from user"; $conn->query($sql); } function getUserPassword1($userName){ $conn=new connection(); $sql="SELECT * FROM user wh...
true
4729ae3acfc2949199c447f96388d3617493e56c
PHP
kingfac/kingfac
/app/Http/Livewire/Admin/Actualites.php
UTF-8
2,954
2.53125
3
[]
no_license
<?php namespace App\Http\Livewire\Admin; use App\Models\actualite; use Livewire\Component; use Illiminate\Support\Facades\Storage; use Livewire\WithFileUploads; class Actualites extends Component { use WithFileUploads; public $actualites; public $selectedId; public $photo; public $titre=""; ...
true
7690d2ca767bbb9816c32eb0f23ea0a15b911ad8
PHP
timber/teak
/lib/Compiler/Method/Method.php
UTF-8
2,435
2.671875
3
[ "MIT" ]
permissive
<?php namespace Teak\Compiler\Method; use phpDocumentor\Reflection\Php\Function_; use Teak\Compiler\ClassList; use Teak\Compiler\CompilerInterface; use Teak\Compiler\Tag\Deprecated; use Teak\Compiler\Tag\Description; use Teak\Compiler\Tag\Link; use Teak\Compiler\Tag\Return_; use Teak\Compiler\Param\Table; use Teak\Co...
true
a99bbbddcc1fa8ca420ce42532c8081c28f2c444
PHP
wpstarter/framework
/src/WpStarter/Wordpress/Admin/Services/ScreenOption.php
UTF-8
1,259
2.59375
3
[ "MIT" ]
permissive
<?php namespace WpStarter\Wordpress\Admin\Services; use WpStarter\Support\Arr; class ScreenOption { protected $priority=10; static protected $booted=false; protected $options=[]; public function __construct() { $this->bootIfNotBooted(); } protected function bootIfNotBooted(){ ...
true
3a5107c07017610d1f44e266b609d1c38394ce09
PHP
dshafik/Squiz-Framework
/DAL/Parsers/DALCaseParser.inc
UTF-8
6,334
2.515625
3
[]
no_license
<?php /** * DALAlterParser. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; ...
true
cf5bd95968944a1ea9296d866500c130f40cb105
PHP
ASIR-CuraValera/Betanetic
/src/DatabaseBundle/Entity/Detallepedidos.php
UTF-8
1,159
2.625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace DatabaseBundle\Entity; /** * Detallepedidos */ class Detallepedidos { /** * @var string */ private $codigoproducto; /** * @var \DatabaseBundle\Entity\Pedido */ private $codigopedido; /** * Set codigoproducto * * @param string $codigoproducto ...
true
deb428ff820621eda35af6b796df2752bde118b4
PHP
saidaltintop/goygoy.edu
/src/GoyGoyEdu/AuthBundle/Entity/Person.php
UTF-8
3,886
2.578125
3
[ "MIT" ]
permissive
<?php namespace GoyGoyEdu\AuthBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Person */ class Person { /** * @var integer */ private $id; /** * @var string */ private $name; /** * @var string */ private $surname; /** * @var string */ ...
true
95535a2c123a89eef9a032e43f4d6403b9a23c0a
PHP
quangminhnguyen/LearnPHP
/tut92.php
UTF-8
477
3.34375
3
[]
no_license
<?php // Every time the page is refresh ==> call the count function to update the text file with the counting value. function hit_count() { $file = fopen('count92.txt', 'r'); // Read current value in the fle count. $current = fread($file, filesize('count92.txt')); fclose($file); // Increment the current valu...
true
6a97f0d44edd58ba3704cce8b2ae7b5d3191ef8f
PHP
elnva/nanodb
/src/AbstractRepository.php
UTF-8
3,888
2.84375
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php declare(strict_types=1); namespace midorikocak\nanodb; use Exception; use midorikocak\querymaker\QueryInterface; use ReflectionException; use function array_filter; use function array_key_exists; use function array_map; use function is_array; use function lcfirst; use function preg_replace; use function str_r...
true
492157c21e446043557ab786c712654dbf743bd6
PHP
MuaathAlhaddad/arabic-learning-platform
/app/Events/MessageSent.php
UTF-8
1,195
2.59375
3
[]
no_license
<?php namespace App\Events; use App\Tutor; use app\Message; use app\Student; use Illuminate\Broadcasting\Channel; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\I...
true
3c380608d79a18ca7e59c5093be80bcde5fa1144
PHP
Seanxuyongfeng/Php
/phoneconnect/lapi/Response.php
UTF-8
441
2.75
3
[]
no_license
<?php class Response{ public static $CODE_OK = 0; public static $CODE_ERRO = 1; /** * result 返回的提示码 * desc 返回的提示信息 * $data 返回的信息 */ public static function json($code, $message='', $data = array()){ if(!is_numeric($code)){ return ''; } $result = array( 'result'=>$code, 'desc'=>$message, 'dat...
true
e96bf85aed71a976d8f35d0ada20f7af3ccdcd4e
PHP
misdianti/berkuliah
/protected/components/TwitterApi.php
UTF-8
989
2.84375
3
[ "MIT" ]
permissive
<?php /** * A class representing Twitter API. * * @author Ashar Fuadi <fushar@gmail.com> */ class TwitterApi extends CComponent { /** * The Twitter username of this application. */ public $username; /** * The initialization method. */ public function init() { } /** * Returns the JavaScript scr...
true
077d5cdeea26f73a3bdd13520770b50f81da331a
PHP
geisagabrielli/HealthApp
/application/app/Entity/Proc.php
UTF-8
2,604
3.09375
3
[]
no_license
<?php namespace App\Entity; use \App\Db\localhost; use \PDO; class Proc{ /** * Identificador único do procedimento * @var integer */ public $id; /** * Nome do Procedimento * @var string */ public $name; /** * Tipo > Procedimento ou Exame * @var string *...
true
153cc8bc9395fc145fa25dddedfa51c1d0e7af17
PHP
VirgilSecurity/virgil-sdk-php
/sample/index.php
UTF-8
2,808
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Copyright (C) 2015-2020 Virgil Security Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * (1) Redistributions of source code must retain the above copyright * ...
true
ed188dd8e385761ed366cb6ea2be54b9a6453a01
PHP
LuizJarduli/Projetos_Web_Tecnico
/projetos_php_mySql/Aulas etc/Upload Aula 12_03/upload.php
UTF-8
2,711
3.078125
3
[]
no_license
<?php $_UP["pasta"] = 'upload/'; $_UP["tamanho"] = 1024 * 1024 * 2; // este tamanho tem que ser informado em bytes.O php por padrão aceita até dois megabytes de tamanho de arquivos, para modificar no php.ini é a linha upload_max_filesize =2M $_UP["extensoes"] = array('jpg','png','gif'); $_UP["renomeia"] = false;// vet...
true
5a1e461ccbf2702c03cd06f8b188b3d0ccf02784
PHP
kunsang/Klatschmohn
/include/include/metaboxes/ThemeMetabox.php
UTF-8
1,005
2.59375
3
[ "MIT" ]
permissive
<?php class ThemeMetabox { public $name = 'Price Table'; public $title; public function getId() { return ''; } public function __construct() { $this->title = HONEY_THEME_NAME.' - '.$this->name; } function getOptions() { return array...
true
b12c394a5db6a9852ee43399952b83ee74fa884e
PHP
amin007/v2
/Aplikasi/Kelas/Kitab/Kawal.php
UTF-8
2,401
2.734375
3
[]
no_license
<?php namespace Aplikasi\Kitab; //echo __NAMESPACE__; class Kawal { #================================================================================================== function __construct() { //echo '<br>class Kawal'; $this->papar = new \Aplikasi\Kitab\Papar(); } #===============================================...
true
faf54b98078659994a490060ca3d0b8426ab2237
PHP
starti-tecnologia/mini-fwk
/src/Console/Command/MakeWorkerCommand.php
UTF-8
1,709
2.78125
3
[]
no_license
<?php namespace Mini\Console\Command; use Commando\Command as Commando; class MakeWorkerCommand extends AbstractCommand { /** * @return string */ public function getName() { return 'make:worker'; } /** * @return string */ public function getDescription() { ...
true
78d9dc95d4a04d7f23c2e93acf75549a51e880b8
PHP
information-machine/information-machine-api-php
/src/Models/Cart.php
UTF-8
2,471
3.15625
3
[ "MIT" ]
permissive
<?php /* * InformationMachineAPILib * * */ namespace InformationMachineAPILib\Models; use JsonSerializable; /** * @todo Write general description for this model */ class Cart implements JsonSerializable { /** * @todo Write general description for this property * @required * @maps cart_id ...
true
dc4e36b2f82e7fb58c6080d1433105938834455a
PHP
amstrad/backstarter
/database/migrations/2018_09_15_000000_create_users_table.php
UTF-8
1,516
2.578125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
true
f2ab2e83ac9cabbe6f66c64578d25561e64456e3
PHP
meiryanne/OrdemServico
/app/Repositories/TelefoneRepository.php
UTF-8
311
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Telefone; class TelefoneRepository extends Repository { public function __construct(Telefone $telefone) { $this->model = $telefone; } public function find($id) { return $this->model->where('cod_cl', $id)->first(); } }
true
41ca0fc8e0536e39f11045ebbe0102713210e5e1
PHP
madayo/serenium-webdriver-template
/tests/Pages/Home.php
UTF-8
694
2.53125
3
[]
no_license
<?php namespace Tests\Pages; use Facebook\WebDriver\WebDriverExpectedCondition; /** * PageObjects<br> * HOME */ class Home extends \Tests\Pages\Contracts\Page { private const SEARCH_INPUT_ID = 'srchtxt'; private const SEARCH_SUBMIT_ID = 'srchbtn'; /** {@inheritdoc} */ protected $title = 'Yahoo! JA...
true
65ae29a17a64898caa63a1bd68a5691ac6acf547
PHP
ShaneRich5/levi-backend
/app/Http/Controllers/OrganizationController.php
UTF-8
3,457
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Address; use App\Models\Church; use App\Models\DistrictOffice; use App\Models\NationalOffice; use App\Models\Organization; use Illuminate\Http\Request; use App\Http\Requests\StoreOrganization; class OrganizationController extends Controller { protected $organi...
true
9f469fc657adb0ff446605e4023d55b4cd1c337c
PHP
offbeatwp/framework
/src/Components/ComponentInterfaceTrait.php
UTF-8
352
2.53125
3
[]
no_license
<?php namespace OffbeatWP\Components; trait ComponentInterfaceTrait { public function render($settings) { $component = container()->make($this->componentClass); if (is_array($settings)) { $settings = (object)$settings; } return container()->call([$component, 'rend...
true
ae917be71e796ed1fa3ee346c5affe85079bac26
PHP
RomainSimplon/Compar_operator
/tp_final_poo/interface_utilisateur/class/TourOperator.php
UTF-8
1,528
3.171875
3
[]
no_license
<?php class TourOperator { private $id; private $name; private $grade; private $link; private $is_premium; private $image; private $imagewb; public function __construct(array $donnees) { $this->hydrate($donnees); } public function hydrate(array $donn...
true
d02dea7237a433c9c4fe609731b12ebf2263d493
PHP
udotb/Niche-Practice
/Modules/User/Database/Migrations/2021_01_19_142212_create_notifications.php
UTF-8
1,172
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateNotifications extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('notifications'...
true
84859847dd0b55e6c43057c1a4a6117efda45f66
PHP
Xqf5683/YB
/YB_homework/G_sn_work/Work/1.php
UTF-8
719
4.40625
4
[]
no_license
作业 1.编写一个带参数函数,函数判断参数大于'a'输出a,大于e输出e,其他情况输出ok 2.编写一个带参数函数,判断参数大于2输出"大于2",否则输出“小于2”,格式要用“ ($a>$b)?"a大于b":"a不大于b"; ”形式 3.写一个例子,利用foreach遍历输出一个数组中的每一个值 <?php if($a>'a') echo"a"; else if($a>'e') echo"e"; else echo"ok"; ?> <?php if($a>2) echo"大于2"; if($a<=2) echo"小于2"; ?> <?php $a = array (1, 2, 3, 5);...
true
371e05e09ddb9ddd7acedded02a4dc3ceb04f6dd
PHP
bilalyasin1616/laravel-template
/api-template/app/Http/Controllers/UserController.php
UTF-8
1,319
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use App\Models\ResponseModel; use JWTAuth; use Tymon\JWTAuth\Exceptions\JWTException; class UserController extends Controller { public function Signup(Request $request){ $user = User::Create($request->input()); ...
true
c0bb07c07e3d4cf363c89c6fb1d354b8183b135e
PHP
britneysiwu/Projek-UAS-Pemrograman-Web
/index.php
UTF-8
1,412
2.640625
3
[]
no_license
<?php require 'functions.php'; $cards = query("SELECT * FROM cards ORDER BY RAND() LIMIT 1;"); session_start(); //menghalangi user pindah ke halaman upload apabila user belum berhasil login if( !isset($_SESSION["login"]) ) { header("Location: login2.php"); exit; } ?> <!DOCTYPE html> ...
true
316234a8da53ede4b9a57f71fcbf6f54b886b59f
PHP
ziopod/Tanuki-core
/classes/Model/Page.php
UTF-8
1,756
2.515625
3
[ "MIT" ]
permissive
<?php defined('SYSPATH') OR die ('No direct script access'); /** * # Page Model * * Model for Tanuki page * * @package Tanuki * @category Model * @author Ziopod <ziopod@gmail.com> * @copyright (c) 2013-2014 Ziopod * @license http://opensource.org/licenses/MIT **/ class Model_Page extends Flatfile { /** * Apply...
true
1d2a31037417a344bacb79585024ef332c06df70
PHP
matkro96/moje-projekty
/JS-przyklady/Untitled Folder/02 Sortable connectWith multiple/classes/classes.php
UTF-8
1,134
3.03125
3
[]
no_license
<?php class Display { private $db; function __construct($db) { $this->db = $db; } public function lots() { $output = ''; $stmt = $this->db->query("SELECT * FROM parts WHERE quantity = 'lots'"); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)...
true
76207566a7b2056dd22a9fae93d2614cfa3995d3
PHP
Akachukwu007/myPorfolio
/selectPage.php
UTF-8
2,187
3.09375
3
[]
no_license
<?php include('conn.php'); if(isset($_GET['id'])){ $id= $_GET['id']; } $sql = mysqli_query($conn, "SELECT * FROM portfolioForm order by id desc") or die ("Could not select portfolioForm" .mysqli_error($conn)); $count = 0; // use $count to identify the first value //check if something is in the database ...
true
11a3f5a0590ffc0830bdc8915751e0e41be02c9f
PHP
smaloron/citation-test
/test-pdo.php
UTF-8
888
3.578125
4
[]
no_license
<?php // Importation de la bibliothèque perso pdo.php require "lib/pdo.php"; // Test de la connexion try { $connexion = getPDO(); echo "ça marche <br>"; // Requête sur la base de données $sql = "SELECT * FROM citations"; $query = $connexion->query($sql); // Récupération des données ligne ...
true
2a7d3f7e42aa0770250eb3aa0377c65ae0dcdf4b
PHP
piraanjung/sirimongkol_new
/migrations/m171225_140146_create_instalmentcostdetails_table.php
UTF-8
1,091
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `instalmentcostdetails`. */ class m171225_140146_create_instalmentcostdetails_table extends Migration { /** * @inheritdoc */ public function up() { $this->createTable('instalmentcostdetails', [ 'id' => $this->p...
true
25b6ea92946545000f88bb424d5ab5e8adb393a7
PHP
IRramanovich/ubertracker
/app/Cars.php
UTF-8
2,423
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Cars extends Model { protected $table = 'Cars'; public $timestamps = false; protected $fillable = ['id', 'car_gov_number', 'car_model', 'production_year', 'buy_date', 'car_bloked', 'car_code']; static public function getAllCars(){ ...
true
fe60f8315449773afbaadc052b39ca7fa3de433d
PHP
hugdru/LBAW
/ltw/ltw-poll/codeIncludes/https.php
UTF-8
747
2.609375
3
[]
no_license
<?php // Set default_charset = "utf-8"; in php.ini if we have access // Avoid browser automatic charset detection which may interpret // certain strings as malicious code for XSS attacks, for instance // if an attacker sends a byte sequence as utf-7, the html-entities // won't detect it and hence escape them. header(...
true
65be8f31ab03cf20c7e84e4993d490adc87039a7
PHP
pazzitiv/lesson-5
/index.php
UTF-8
600
2.9375
3
[]
no_license
<?php require __DIR__ . '/vendor/autoload.php'; use Monad\Monad; use \Monad\Stack; use Notations\Polish; use SortStation\Station; $getString = function (string $item) { $input = $item . fgets(STDIN); return $input; }; $IO = new Monad(); $formula = $IO->apply('') ->map($getString); $Calc = new Monad(); ...
true
6c5245d7284b00d6991bb315a9a1f3888b3a44ea
PHP
emanuele78/mybnb
/app/ReservedDay.php
UTF-8
1,368
2.875
3
[ "MIT" ]
permissive
<?php namespace App; use DB; use Illuminate\Database\Eloquent\Model; class ReservedDay extends Model { public $timestamps = false; protected $casts = [ 'day' => 'date', ]; protected $fillable = ['apartment_id', 'day']; /** * Eloquent relationship * * @return \Illuminate\Data...
true
2403fc0baaefa3569d6b497743440b1babeabcf1
PHP
Lutie/Homeland-Npc
/src/Entity/Character.php
UTF-8
2,995
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity() * @ORM\Table(name="characters") */ class Character { const SEX_UNDEFINED = 0; const SEX_MALE = 1; const SEX_FEMALE = ...
true
49e2c083e32587f87fd329f63b575e314f5384bd
PHP
SoulBringerOnline/ci_project
/www/apiservice/libs/mongo/MongoDB.class.php
UTF-8
1,180
2.734375
3
[]
no_license
<?php namespace Libs\Mongo; class MongoDB { protected $database; // 数据表 protected static $connections = array(); protected function __construct($database) { $this->connection_op = new \MongoClient( $this->config->item('mongodb_op') ); $this->mongo_op = new \MongoDB($this->connection_op, 'gsk'); } public s...
true
b62a5c985186e29d5b6d970b132d0edc78c8843c
PHP
kongpingfan/easy-tips
/algorithm/sort/bubble.php
UTF-8
2,216
3.59375
4
[ "Apache-2.0" ]
permissive
<?php /** * php算法实战 * php algorithm's practice * * 排序算法-冒泡排序 * sort algorithm - bubble sort algorithm * * @author TIGERB <https://github.com/TIGERB> */ /** * 冒泡排序 * bubble sort algorithm * * @param array $value 待排序数组 the array that is waiting for sorting * @return array */ function bu...
true
28fcd227ef471f6c8ab37282efe77cd3221b2535
PHP
lilipbb/webmvc
/app/test/tryTest.php
UTF-8
813
3.515625
4
[]
no_license
<?php namespace Test{ class tryTest{ public static function Test(){ self::Try1(); self::Try2(); } public static function Try1(){ $a="wode"; try{ throw new \Exception("error"); } catch (\Exception $e){ ...
true
0ad2260cd73532116a8b55002fc9854ec8b970ff
PHP
AiScreamBamboozler/php_bootcamp
/rush00/add_to_cart.php
UTF-8
415
2.640625
3
[]
no_license
<?php session_start(); if (isset($_GET["quantity"]) && isset($_GET["ref"])) { if ($_SESSION["cart"][$_GET["ref"]] == NULL) $_SESSION["cart"][$_GET["ref"]] = $_GET["quantity"]; else $_SESSION["cart"][$_GET["ref"]] += $_GET["quantity"]; header("Location...
true
a781262e41503712e1865505feb93aca7ab305e0
PHP
OlgaNesteruk/test
/index.php
UTF-8
610
2.671875
3
[]
no_license
<?php $file = fopen('feed.csv', "r"); echo '<table cellspacing = "0" border = "1" width = "500">'; while(!feof($file)) { $mass = fgetcsv($file, 2000); echo '<tr aling = "center">'; echo '<td width = "25%">'; echo $mass[1]; echo '</td>'; $pants = 'PANTS'; $find = stripos($mass[1], $pants); if...
true
97689eba7e52d53083c065a81f223f3457f451f5
PHP
Kellaritehdas/Karahvi
/karahvi/inc/sana.php
UTF-8
2,896
2.640625
3
[]
no_license
<?php // Haetaan tiedot lomakkeelta $email = $_REQUEST['email']; $muuttuja = $_REQUEST['muuttuja']; $merkki = $_REQUEST['merkki']; $subject = 'Uusi salasana Karahviin'; $url = "http://(web-address)/luouusisalasana.php?muuttuja=".$muuttuja."&valinta=".$merkki; $message = '<p>Olemme saaneet pyyntösi uusia salasana Kara...
true
ad3d0576ccba89bb84ad7e9d9b5920c36028fac2
PHP
strapieno/str-utils
/library/Model/Entity/RoleAwareTrait.php
UTF-8
447
2.734375
3
[]
no_license
<?php namespace Strapieno\Utils\Model\Entity; /** * Class RoleAwareTrait */ trait RoleAwareTrait { /** * @var string */ protected $roleId; /** * @return string */ public function getRoleId() { return $this->roleId; } /** * @param string $roleId * @r...
true
778515c70cc173ccaa39301a4e524f8d903be84c
PHP
andrewscaya/basic-maths-compiler
/src/Node/BinaryOp/AbstractBinaryOp.php
UTF-8
616
3.234375
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace BasicMaths\Node\BinaryOp; use BasicMaths\Node\NodeInterface; abstract class AbstractBinaryOp implements NodeInterface { /** * @var NodeInterface */ private $left; /** * @var NodeInterface */ private $right; public function __constru...
true
e3a571fb860bb749a15ad63b87c6ae7282433b6a
PHP
leuchtdiode/laminas-ecommerce
/src/Cart/Item/Provider.php
UTF-8
724
2.765625
3
[]
no_license
<?php namespace Ecommerce\Cart\Item; use Ecommerce\Common\DtoCreatorProvider; use Ecommerce\Db\Cart\Item\Entity; use Ecommerce\Db\Cart\Item\Repository; class Provider { private DtoCreatorProvider $dtoCreatorProvider; private Repository $repository; public function __construct(DtoCreatorProvider $dtoCreatorProvid...
true
f0114dbc8f0bc5a5126c0f8cc9f9724ab051c167
PHP
oleksiv/seo-analyzer
/src/Entity/SearchResult.php
UTF-8
1,945
2.625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\SearchResultRepository") */ class SearchResult { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @var * @ORM\ManyToOn...
true
c3574967a7a1623d7bd74d82ccc167dc629e9502
PHP
veasey/pagination
/src/paginator.php
UTF-8
1,720
3.421875
3
[]
no_license
<?php namespace Paginator; class Paginator implements Pagination { private $elements; private $elementsPerPage; private $pages; public $currentPage = 1; public function elements(): iterable { return $this->elements; } public function currentPage(): int { return ...
true
feaf9c87e8a6e7481b9e8f607097d60dec8e313f
PHP
aoding9/php2021
/code/1-php基础语法/7-错误处理/1错误类型.php
UTF-8
349
3.5
4
[]
no_license
<?php // 语法错误 变量名开头不能为数字 // echo $1a; // 运行时错误 虽然语法正确,但是没有定义$a // echo $a; // 逻辑错误 代码正常执行,但是由于写代码时逻辑有问题,得不到想要的结果 // 比如把++$a写成$a++导致结果不同 $a = 1; // $b = ++$a *2; $b = $a++ *2; echo $b;
true
dfb9c783830cb81472355479bd9f7ecb3433a6a1
PHP
shivakarna2991/kkphpcode_with_old_features
/core/tools/DumpCounts.php
UTF-8
6,855
2.6875
3
[]
no_license
<?php require_once '/home/idax/DBParams.php'; $layoutids = array(); // Retrieve command line parameters $params = getopt("v:l:"); // layoutid or videoid required, if videoid provided layoutid is ignored and all layouts for the specified video are gathered if (array_key_exists("v", $params)...
true
2ca36f9d10029bfc26447a2c347195033a4056a9
PHP
AmitXShukla/elish-education-portal-app
/local/app/QuizResult.php
UTF-8
4,920
2.671875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Auth; use DB; class QuizResult extends Model { protected $table = 'quizresults'; public static function getRecordWithSlug($slug) { return QuizResult::where('slug', '=', $slug)->first(); } /** * Returns the history of...
true
fe1cb5e4ddc332622ce600cbbf22cb0b494a02f3
PHP
sara-ahrari/eCommerce-website
/update_user.php
UTF-8
563
2.53125
3
[]
no_license
<?php require_once 'helpers.php'; session_start(); if (detected_csrf($_POST['csrf'])) { die('CSRF prevented!'); } $username = get_session_username(); $homeAddress = validated_input($_POST['homeAddress']); updateUser($username, $homeAddress); set_session_homeAddress($homeAddress); redirect('index.php'); functio...
true
331e7a3d0fd9a80fb9f87048b87b347f3d6b75de
PHP
Riowaldy/PKL
/app/Http/Controllers/DynamicPDFController.php
UTF-8
1,536
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; use PDF; class DynamicPDFController extends Controller { function indexProjectPDF() { $posts = $this->get_post_data(); return view('dynamic_pdf')->with('posts', $posts); } function get_post_data() { $posts ...
true
f82f7b874b1f9625ea4bcf2d1d1537e47e8a4f3c
PHP
budde377/Part
/lib/util/task/RequireHTTPSPreTaskImpl.php
UTF-8
981
2.578125
3
[ "MIT" ]
permissive
<?php namespace ChristianBudde\Part\util\task; use ChristianBudde\Part\BackendSingletonContainer; use ChristianBudde\Part\util\helper\HTTPHeaderHelper; use ChristianBudde\Part\Website; /** * Created by PhpStorm. * User: budde * Date: 8/13/14 * Time: 5:05 PM */ class RequireHTTPSPreTaskImpl implements Task{ p...
true
40cf0dcaac335abc01c33fe56a6cb1213e58696a
PHP
haipham/ddfc
/app/Http/Controllers/WelcomeController.php
UTF-8
1,437
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Gaia\Repositories\PostRepositoryInterface; use Gaia\Repositories\NewsRepositoryInterface; use Auth; class WelcomeController extends Controller { protected $postRepos, $newsRepos; /** * Create a new controller instance. * * @return void */ public function __cons...
true
2f35432637cbe294234b5c53548640e4f55153a0
PHP
Childdreams/laravelIoc
/vendor/baofeng/Demo/src/Route/Route.php
UTF-8
1,614
3.1875
3
[]
no_license
<?php namespace baofeng\Demo\Route; class Route implements RouteInterface { private static $get = []; private static $post = []; private static $any = []; /** * method get * @param string $route * @param string $controller */ public static function get(string $route , str...
true
f0e573ef4e9a8c071e5e57698c4e870e1869e04c
PHP
dotmailer/dotmailer-magento2-extension
/Model/Config/Configuration/Fontpicker.php
UTF-8
1,719
2.515625
3
[ "MIT" ]
permissive
<?php namespace Dotdigitalgroup\Email\Model\Config\Configuration; class Fontpicker implements \Magento\Framework\Data\OptionSourceInterface { /** * Options getter. web safe fonts. * * @return array */ public function toOptionArray() { return [ [ 'val...
true
c42a9da2c16fad3c185b890e976095a5867a3b82
PHP
prash1987/GamifyWebsite
/manage_groups.php
UTF-8
7,398
2.515625
3
[ "MIT" ]
permissive
<?php include("header.php"); if(isset($_SESSION['login_user'])) { if(isset($_GET["group_id"])){ $userLoggedIn = $_SESSION['login_user']; $user_obj = new UserClass($con, $userLoggedIn); $group_id=$_GET["group_id"]; $sqlAdmin = mysqli_query($con, "SELECT * FROM groups WHERE group...
true
7e61beb6383a47630fac34e5dae542caf1ce6378
PHP
apetushok/push-notifications
/src/Push/IosService.php
UTF-8
3,332
2.6875
3
[]
no_license
<?php namespace Push; use Push\Service; class IosService implements Service { private $config; private $url_service = 'ssl://gateway.sandbox.push.apple.com:2195'; private $instance; public function __construct($config){ if ( empty($this->instance) ) { if(!is_string($config) || !...
true
c1d298541d47f6c251a64eca6a64ff7542d16c1b
PHP
OpenSeaMap/tidal-scale
/experimental/code/classes/util.class.php
WINDOWS-1252
9,049
3.40625
3
[]
no_license
<?php /* erstellt von Tim Reinartz im Rahmen der Bachelor-Thesis letzte nderung 11.05.11 12:15 Uhr alle wichtigen Funktionen in einer hilfsklasse zusammengefasst */ class Util { /* * Format fr Datum und Zeitangaben * (wie bei date()-Funktion) */ const DATETIME_FORMAT = 'd.m.y H:i'; /* ...
true
51fac40c3a6f54f709de538b0a61fffa96b23730
PHP
sminuwa/lexington
/filter_faculty.php
UTF-8
1,011
2.5625
3
[]
no_license
<?php require "config.php"; require "functions.php"; if(isset($_POST['filter_school'])) { if($_POST['filter_school'] != "") { $school_name = $_POST['filter_school']; // fetching the school id $query_school_id = $conn->query("SELECT * FROM lib_schools WHERE school_name = '$school_name' ") or die("Error...
true
cb818feaf1e9b5ce8565962f78c4145a7af3c1bc
PHP
kidcobain/atencion
/database/factories/UserFactory.php
UTF-8
4,674
2.640625
3
[]
no_license
<?php use Faker\Generator as Faker; /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | This directory should contain each of the model factory definitions for | your application. Factories pro...
true
d14e2783ca9872187f53465018e1657ca3b17640
PHP
ATouhou/wiki-kamus-al-quran-kata-per-kata
/utils/php/quran-rename-words-to-simple-clean-(access-from-db)2.php
UTF-8
1,980
2.59375
3
[]
no_license
<?php set_time_limit(999999); ?> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body onload_XXX='next()'> <?php $surat = $_GET['surat']; if($surat=='') $surat = 1; ?> <?php $conn = mysql_connect("localhost", "webuser", "bismillah"); mysql_set_charset('utf8',$conn); ...
true
ecf1a6c87fd9322431f0a606a0bf13ab5d5598af
PHP
cristianbb98/ProyectoSoftware
/Pruebas/prueba1.php
UTF-8
1,329
3.171875
3
[]
no_license
<?php $n = 2; function polinomioLegendre($n){ if($n==0){ return "1"; }else if($n==1){ return '$x'; }else{ return (1/$n).'*'.((2*$n-1).'*$x*'.polinomioLegendre($n-1).'-'.($n-1)*polinomioLegendre($n-2)); } } function f($x){ global $n; eval('$f='.polinomioLegendre($n).';'); return $f; } f...
true
a054b7a6c65acc181c04817d7fa3315c461dedb7
PHP
n00bsaiboth/LAMP-messaging-system
/messages.php
UTF-8
1,848
2.703125
3
[ "MIT" ]
permissive
<?php session_start(); include("__/php/functions.php"); include("__/php/config.php"); include("__/php/header.php"); if(isset($_SESSION["id"]) && !empty($_SESSION["id"])) { $id = validate($_SESSION["id"]); $id = filter_var($id, FILTER_VALIDATE_INT); // this settype seems t...
true
70d7a79bf0f42c6d5a023d346e26509d36ba2454
PHP
sozgat/LaravelMarketPlace
/tests/Unit/SumTwoNumbersTest.php
UTF-8
519
2.921875
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit; use App\Http\Controllers\SumTwoNumbersController; use PHPUnit\Framework\TestCase; class SumTwoNumbersTest extends TestCase { /** * A basic unit test example. * * @return void */ public function test_sum_two_numbers() { $sumTwoNumbers = new SumTwoNum...
true
1515a2f2d6969b86b9f8761a23e8e68832f72f72
PHP
silvapasache/inventario
/app/Http/Controllers/Auth/RegisterController.php
UTF-8
3,276
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\User; use App\Roles; use Illuminate\Http\Request; use Illuminate\Auth\Events\Registered; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; class Registe...
true
1fca08254e34d08a7ad9f37f7148de8b4f1b5f99
PHP
sekys/php-collection
/protected/classes/BASE/class.ObjectArray.php
UTF-8
1,831
3.203125
3
[ "MIT" ]
permissive
<? class ObjectArray { protected $childs, $activechild, $lastchild; public $data; public function __contruct() { $this->childs = NULL; $this->data = NULL; $this->activechild = false; $this->lastchild = NULL; } public function add($data) { if($this->Is...
true
7f106df72401a75053656b53e2fd147a881481c6
PHP
vavavr00m/noserub
/app/models/services/youtube.php
UTF-8
1,711
2.703125
3
[]
no_license
<?php class YoutubeService extends AbstractService { public function init() { $this->name = 'YouTube'; $this->url = 'http://youtube.com/'; $this->service_type = 6; $this->icon = 'youtube.gif'; $this->has_feed = true; } public function detectService($url) { return $this->ext...
true
5043455802b0f2a6fbec9aeb97e1601e85de5503
PHP
vubla/core
/search/faststringfilter.php
UTF-8
5,491
2.828125
3
[]
no_license
<?php if(!defined('DB_METADATA')){ echo "No config"; exit; } class FastStringFilter extends ConjunctiveStringFilter { function __construct($wid,$search,$fullSearch = null){ parent::__construct($wid,$search,$fullSearch); } protected function filter(array $product_ids){ ...
true
b9f55cc80e1558437bbd7a4e11a455114fbf1548
PHP
ahmed-hassan-sadek/courses
/backend/auther.php
UTF-8
2,801
3.015625
3
[]
no_license
<?php include("connect.php"); class Auther { /** * get data from form and encrept password by use SHA1() * get value of role * check if email or password found */ public static function login() { global $cont; $email = $_POST['email']; $password = SHA1($_POST['p...
true
22c554c5591528dc0ce95501169bac04f838a35a
PHP
freelaxdeveloper/laravel-store
/app/Console/Commands/ImportImage.php
UTF-8
2,268
2.671875
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\{Product,Category}; use Storage; use File; class ImportImage extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'ImportImage'; /** * The co...
true
f8837172837dc09748d74cb712ce853f52c8375d
PHP
tremor-od/pizza.loc
/app/controllers/AuthController.php
UTF-8
3,637
2.828125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: oleg * Date: 29.01.15 * Time: 14:44 */ class AuthController extends HomeController { /* * Construct * @author Tremor */ public function __construct(){ parent::__construct(); } /** * Регистрация нового пользователя * @ret...
true
c684b029890a55f40a931daf5556fe5078465399
PHP
jworksuk/extra-pdo
/tests/ExtraPDOTest.php
UTF-8
5,010
2.65625
3
[ "MIT" ]
permissive
<?php namespace JWorksUK; use JWorksUK\Acme\Model; use PDO; use PHPUnit\Framework\Assert; use PHPUnit\Framework\TestCase; class ExtraPDOTest extends TestCase { public function extraPdoProvider() { return [ [ExtraPDO::createSqliteConnection(__DIR__.'/test.db')], [ExtraPDO::cre...
true
4ad55f4ec6e5d1d297e11e40d45889ab2d1c73ba
PHP
thaerfayyad/adminLte-js
/app/Http/Controllers/UserController.php
UTF-8
3,097
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Symfony\Component\HttpFoundation\Response; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response ...
true
b1fc4b780af35053a6f03ef38e872e62fc060222
PHP
Sprovider90/PhpDesignPatterns
/IMooc/Database/IDatabase.php
UTF-8
252
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2020-06-30 * Time: 15:49 */ namespace IMooc\Database; interface IDatabase{ function connect($host,$user,$pwd,$dbname); function query($sql); function close(); }
true
604fb756b75014995390608fde5d75fbf6ab48ad
PHP
tesav/ParallelComputing
/classes/Begotten.php
UTF-8
3,883
2.84375
3
[]
no_license
<?php defined('R') or die('Доступ запрещен !!!'); /** * Begotten * * Создает объект взаимодействия с порождающим скриптом * * @author Тесминецкий Александр <tesav@yandex.ru> */ class Begotten extends Communication implements IBegotten { /** * Ключ выхода * * @var boolean ...
true
2b87e5d9bc504976878d51346ec8b8b3889b4067
PHP
mayconbordin/laragen
/src/Mayconbordin/Laragen/Generator/LangGenerator.php
UTF-8
2,428
2.828125
3
[ "MIT" ]
permissive
<?php namespace Mayconbordin\Laragen\Generator; use Mayconbordin\Laragen\Exceptions\InvalidFormatException; use Mayconbordin\Laragen\Helpers\FieldValidationHelper; use Mayconbordin\Laragen\Parsers\SchemaParser; class LangGenerator extends Generator { /** * Get stub name. * * @var string */ ...
true
20e6e25aa40b2e1f58d6bb29111654abb0ba4381
PHP
dimaoag/teachme
/shop/repositories/shop/StatusRepository.php
UTF-8
662
3.015625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace shop\repositories\shop; use shop\entities\shop\Status; use shop\repositories\NotFoundException; class StatusRepository { public function get($id): Status { if (!$status = Status::findOne($id)) { throw new NotFoundException('Status is not found.'); } return ...
true
d3a4a384ecb608eb2af29bbe1b93c67467a3dc63
PHP
basbrouwers/dino
/Http/Controllers/AnimalController.php
UTF-8
922
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bas * Date: 10/05/18 * Time: 20:58 */ namespace Modules\Shelter\Http\Controllers; use Illuminate\Http\Request; use Modules\Core\Http\Controllers\BasePublicController; use Modules\Shelter\Repositories\AnimalRepository; use Modules\Shelter\Repositories\BreedRepository; cl...
true
fb7fef351b25669e0341da6300455aef6a9b9206
PHP
matirosero/rachel
/includes/overrides.php
UTF-8
1,065
2.546875
3
[]
no_license
<?php // if ( ! function_exists( 'sydney_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see sydney_custom_header_setup(). */ function sydney_header_style() { if ( get_header_image() && ( get_theme_mod('front_header_type') == 'image' && is_front_page() || get_theme_mod('site_...
true
ba4437b8b46ffc7698405d51ca3398a773d2d45b
PHP
tylerhall/Rockwell
/www/share.php
UTF-8
2,201
2.53125
3
[]
no_license
<?PHP require 'includes/master.inc.php'; if(isset($_POST['btnShare'])) { $Auth->requireUser(); $letters = 'abcdefghjkmnpqrstuvwxyz23456789'; $slug = ''; for($i = 0; $i < 5; $i++) $slug .= substr($letters, rand(0, strlen($letters) - 1), 1); $s = new Share(); $s->user_id = $Auth->id; $s->slug = $sl...
true
ba0fc3ae371889d13a38c561004314fd23c6d9d2
PHP
atrifonoff/My-code
/myself/Codebase.class.php
UTF-8
8,572
2.546875
3
[]
no_license
<?php /** * Анализа кода по брой редове, брой празни редове, * зареждащи се пакети, брой функции и др. * * @category bgerp * @package myself * @author Angel Trifonov angel.trifonoff@gmail.com * @copyright 2006 - 2017 Experta OOD * @license GPL 3 * @since v 0.1 * @title Анализ » Анализ на кода ...
true
ccfe382690a95d854e1f01b73970aebe1f5e15bd
PHP
hnromante/karlaFolio
/registrar.php
UTF-8
5,756
2.8125
3
[]
no_license
<?php #Crear cuenta en el perfil require_once 'core/init.php'; include 'extend/header.php'; //Acá vamos a ingresar datos // echo '<h1>Acá vamos a hacer las pruebas de INSERT</h1>'; // $user = DB::getInstance()->insertar( // 'usuarios', // array( // 'nombreusuario' => 'miguel2', // 'email' =>...
true
a8471c11b7a9acfcbdaf6677a21e849871211c7d
PHP
anirudhv/Culinary-Clicks-Image-Gallery
/doAddCat.php
UTF-8
4,328
2.984375
3
[]
no_license
<?php session_start(); //start new or resume existing session if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $_POST["category"])) { //if the user entered a cuisine name with special characters $_SESSION["badInput"] = "No special characters, numbers or spaces allowed. If a cuisine you would like to enter is m...
true
74e9deab57847f0d59bca0c6b3937dbbf8a1a846
PHP
ambuilding/LevelUp
/oop/solidPrinciples/dependencyInversion/passwordReminder.php
UTF-8
316
2.78125
3
[]
no_license
<?php interface ConnectionInterface { public function connect(); } class DbConnection implements ConnectionInterface { public function connect() { // } } class PasswordReminder { private $dbConnection; function __construct(ConnectionInterface $dbConnection) { $this->dbConnection = $dbConnection; } }
true
eed2e4b03aa492fff8df7bb9ab5915fa5eda7527
PHP
spencerfinnell/curbside
/wp-content/plugins/curbside/includes/class-location.php
UTF-8
552
2.765625
3
[]
no_license
<?php class Curbside_Location { public function __construct( $location ) { $this->location = $location; return $this->location; } public function get_date() { return $this->location->post_date; } public function get_street() { return $this->location->geolocation_street; } public function get_format...
true
86f88e8b5f1d1d96994052bc2d551ffd5827a77c
PHP
shadowdestiny/dockenizacion
/src/tests/unit/LowBalanceEmailTemplateUnitTest.php
UTF-8
2,986
2.59375
3
[]
no_license
<?php namespace EuroMillions\tests\unit; use EuroMillions\web\emailTemplates\EmailTemplate; use EuroMillions\web\emailTemplates\LowBalanceEmailTemplate; use Money\Currency; use Money\Money; use Prophecy\Argument; use EuroMillions\tests\base\UnitTestBase; class LowBalanceEmailTemplateUnitTest extends UnitTestBase {...
true
f1f6be9a4a5d3eab58c157032a4f54a35faa8bb6
PHP
chiiya/tmdb-api-php
/src/Responses/TvCreditsResponse.php
UTF-8
508
2.734375
3
[]
no_license
<?php namespace Chiiya\Tmdb\Responses; use Chiiya\Tmdb\Models\Person\TvCastMember; use Chiiya\Tmdb\Models\Person\TvCrewMember; /** * Class TvCreditsResponse. * * @method TvCastMember[] getCast() * @method TvCrewMember[] getCrew() */ class TvCreditsResponse extends CreditsResponse { public function addCastMe...
true
8f3d5c49e53e77f35b383fa7d79489e47b019e71
PHP
PGB-LIV/php-ms-example
/src/inc/protein_digest.php
UTF-8
3,618
2.6875
3
[ "Apache-2.0" ]
permissive
<?php use pgb_liv\php_ms\Utility\Digest\DigestFactory; use pgb_liv\php_ms\Reader\FastaReader; use pgb_liv\php_ms\Core\Tolerance; use pgb_liv\php_ms\Utility\Filter\FilterMass; set_time_limit(600); define('FORM_FILE', 'fasta'); if (! empty($_FILES) && $_FILES[FORM_FILE]['error'] == 0) { header('Content-type: text/p...
true
8485f084453992df06ffb762d4bba86e5b86ffc5
PHP
lange-cc/Africa-SDG
/libs/controller_model.php
UTF-8
11,048
2.546875
3
[]
no_license
<?php /** * */ class ControllermModel { function __construct() { $this->db = new database(); } public function isYearExist($year){ $exist = $this->db->prepare("SELECT * FROM country WHERE year = :year "); $exist->execute(array( ':year' => $year ...
true
3568ac9240c23cce35c0f803ced77d8ab462061d
PHP
Metrashev/Getlokal
/lib/task/countyRomaniaTask.class.php
UTF-8
5,819
2.53125
3
[]
no_license
<?php class CountyRomaniaTask extends sfBaseTask { protected function configure() { // // add your own arguments here // $this->addArguments(array( // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'), // )); $this->addOptions(array( new sfCommandOption('appli...
true
85521a9d392375c89f22aae615d618a54671cb4b
PHP
SigaSmart/WcTable
/_ajax/config/demo.php
UTF-8
1,135
2.75
3
[]
no_license
<?php // DB table to use $table = 'd_demo'; // Table's primary key $primaryKey = 'd_id'; // Array of database columns which should be read and sent back to DataTables. // The `db` parameter represents the column name in the database, while the `dt` // parameter represents the DataTables column identifier. In...
true
e61bdaff865f06cb2de782ae6a7287d8d0cffebb
PHP
thephpleague/container
/src/Argument/ResolvableArgument.php
UTF-8
333
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); namespace League\Container\Argument; class ResolvableArgument implements ResolvableArgumentInterface { protected $value; public function __construct(string $value) { $this->value = $value; } public function getValue(): string { return $this->va...
true
feee5ec4aeb1558b4372a1c2f91d9a844d0acdef
PHP
horvathi/php-cmis-client
/src/VersioningServiceInterface.php
UTF-8
7,736
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace Dkd\PhpCmis; /* * This file is part of php-cmis-client. * * (c) Sascha Egerer <sascha.egerer@dkd.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Dkd\PhpCmis\Data\AclInterface; use Dkd\PhpCmis\Data\Extensio...
true