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
163efb6e12b26032f12b38755bdded3327c02dbd
PHP
krampy7/Momoh
/session.php
UTF-8
370
2.75
3
[ "MIT" ]
permissive
<?php #Esta plantilla o pagina de código es para el inicio de sesión #Función para iniciar sesión session_start(); #Se pasan los datos (Nombre de usaurio) dados por el usuario a una variable $usuario=$_POST['USUARIO']; #Da bienvenida al usuario junto con su nombre echo "Bienvenido ".$usuario; #Variable d...
true
83f38927ee39663f65545767303050dde2bb79a0
PHP
redrails/PHP
/DateDiff/index.php
UTF-8
4,485
3.171875
3
[]
no_license
<?php class Duration { public $date_1; public $date_2; function __construct($date_1, $date_2){ if(empty($date_1)){ $date = date("Y-m-d"); $time = date("h:i:s"); $this->datetime = $date ." ". $time; ...
true
29de310e88af2a0ccb3171a65cc79e5ad897b103
PHP
anggymaryati/ecommerce_phpnative
/serviceforajax/showdatatshirtedit.php
UTF-8
626
2.515625
3
[]
no_license
<?php include("../config/config.php"); include("../classes/utility.php"); include("../classes/database.php"); include("../classes/t-shirt.php"); $tshirt_obj = new tshirt($_REQUEST["tshirt_id"],true); echo "{"; echo "\"tshirt_name\":" . "\"" . $tshirt_obj->tshirt_name() . "\","; echo "\"tshirt_id\":" . "\...
true
a42d801e1ee524fcd0113d0bc5a4601010478358
PHP
amrtgaber/MCED-Database
/load_contact_form.php
UTF-8
14,824
2.609375
3
[]
no_license
<?php /* File: load_contact_form.php * Author: Amr Gaber * Created: 02/10/2012 * Description: Returns the contact add/update form for KC99 database. */ include( "db_credentials.php" ); include( "common.php" ); /* Must be logged in for this to work */ if( !$_SESSION[ 'username' ] ) { header( "Location: login.php...
true
e1e1fc0c0e146754599ede57807251e91931f79d
PHP
treehouselabs/queue
/src/TreeHouse/Queue/Amqp/EnvelopeInterface.php
UTF-8
3,384
2.65625
3
[ "MIT" ]
permissive
<?php namespace TreeHouse\Queue\Amqp; interface EnvelopeInterface { /** * Get the application id of the message. * * @return string The application id of the message. */ public function getAppId(); /** * Get the body of the message. * * @return string The contents of th...
true
e73b0c4f2e6a7ba780b8cc6fbf420bd12ca255b7
PHP
webignition/simplytestable.com
/src/Model/Plan/DistinctionDecorator.php
UTF-8
2,219
3.078125
3
[ "MIT" ]
permissive
<?php namespace App\Model\Plan; class DistinctionDecorator implements DistinctionInterface { const NUMBER_RANGE_SEPARATOR = '-'; /** * @var DistinctionInterface */ private $distinction; /** * @param DistinctionInterface $distinction */ public function __construct(DistinctionI...
true
049afec6ad769d9a180e75355572f6fe14e3633d
PHP
ronalLeiva/curso_php_oo
/10_final_class.php
UTF-8
1,455
3.640625
4
[]
no_license
<?php /** * En ocasiones, no deseamos que una funcionalidad sea heredada, * por lo que queremos limitar la herencia para dicha clase. * * Esto se hace con el fin de evitar herencias ridículas del tipo de los * tatarabuelos, bisabuelo, abuelo, etc. * * La flexibidad que le podemos dar a nuestro código vi...
true
47059d05b2cc025962fc51f4ff16abe63b7e54ef
PHP
ElionUser/Zaphira_Ecommerce
/route.php
UTF-8
1,860
2.6875
3
[]
no_license
<?php require_once './core/helpers.php'; class Route { public function __construct( $url , $web ) { // separa la ruta por los slashes y analiza si hay un id $id_ = $this->analyze( explode( '/' , $url ) ); if( empty( $id_ ) ) { ...
true
c1540b430726cf7ce8859ce4e6f62cc0eefcb831
PHP
EvertRdrgz/everodriguez
/hw/hw2/inc/functions.php
UTF-8
2,354
3.265625
3
[]
no_license
<?PHP function displaySymbol($randomvalue,$pos){ $symbols = array("android","apple","css","html","instagram","linux","otter","php","twitter","windows"); $randomSymbol = $symbols[$randomvalue]; echo "<img id='reel$pos' src='img/$randomSymbol.png' width='70' alt='$randomSymb...
true
0337f6b1848efedee1bfc70cd0ad4229756c0fbf
PHP
eliasuardi/Registro-Virtuale
/src/DBEdit/DBEManagerSql.1.0.php
UTF-8
7,562
3.28125
3
[]
no_license
<?php // TODO // // * remove $query_result and $num_rows /** * Gestione di query SQL */ class ManagerSql { // messaggio di errore public $errore; private $hostname; private $user_name; private $user_pswd; private $user_db; // connessione a mysql server private $link; // query ...
true
b196651a59006d245b16636be071bccab23d980f
PHP
KintoLef/WF3-Lokisalle
/ajax.php
UTF-8
4,936
2.640625
3
[ "MIT" ]
permissive
<?php require_once("inc/init.inc.php"); // On crée le tableau array $tab = array(); $tab['resultat'] = ""; $capacite = (isset($_POST['capacite'])) ? $_POST['capacite'] : ""; $prix = (isset($_POST['prix'])) ? $_POST['prix'] : ""; if(!empty($_POST['capacite'])) { $filtre_capacite = $_POST['capacite']; $conten...
true
bb8d2b5f93bc2d7643c02afa35827324fa7d576b
PHP
MerlinWT/lifetracker
/lib/ViewApi.php
UTF-8
291
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: kov * Date: 21.07.18 * Time: 13:39 */ class ViewApi { /** * @param \ModelApi $model * @return string */ public static function render($model) { header('Content-Type: application/json'); return json_encode($model->getData()); } }
true
5b568d8df211557a52f9eb9f29376e1c8dec2753
PHP
aiyolk/dang-php-framework
/libs/Dang/Dmemcache.php
UTF-8
1,625
2.828125
3
[]
no_license
<?php namespace Dang; use Memcache as MemcacheResource; class Dmemcache { protected $memcache; public function __construct() { $servers = \Dang\Quick::config("memcache"); $memcache = new MemcacheResource(); for($i=0;$i<count($servers);$i++){ $config = $servers[...
true
651256e938a4178165e335d8d7709e9353df6b75
PHP
Vutov/SoftUni
/PHP/Exams/Exam-03-May/codeAnalysis.php
UTF-8
1,027
2.828125
3
[]
no_license
<?php $code = $_GET['code']; //var_dump($code); $data = ['variables' => [], 'loops' => ['while' => [], 'for' => [], 'foreach' => []], 'conditionals' => []]; $varRegex = '/(\$.+?)[\W]/'; preg_match_all($varRegex, $code, $vars); //var_dump($vars); foreach ($vars[1] as $variable) { $data['variables'][$variable]++; } ...
true
cd34079d2e84803e6a0cada08d3da17aadd9ce85
PHP
yivi/prueba_tecnica_2018_03_18
/src/PuppyService/PuppyQuery.php
UTF-8
1,442
3.328125
3
[]
no_license
<?php namespace App\PuppyService; class PuppyQuery { /** * @var string */ protected $title; /** * @var array */ protected $ingredients; /** * @var int */ protected $page; public function __construct(string $title, array $ingredients = [], int $page = 1)...
true
aeb0211efea024462669bb8c8562897c6cc62263
PHP
XetaIO/Xetaravel
/app/Models/Permission.php
UTF-8
832
2.609375
3
[ "MIT" ]
permissive
<?php namespace Xetaravel\Models; use Ultraware\Roles\Contracts\PermissionHasRelations as PermissionHasRelationsContract; use Ultraware\Roles\Traits\PermissionHasRelations; class Permission extends Model implements PermissionHasRelationsContract { use PermissionHasRelations; /** * The attributes that ar...
true
21a9fff6662468081cddb43bfe098e405a4a9eb9
PHP
OKTOTV/FLUX2
/src/AppBundle/Entity/Repository/EpisodeRepository.php
UTF-8
5,199
2.515625
3
[]
no_license
<?php namespace AppBundle\Entity\Repository; use AppBundle\Entity\Episode; use Okto\MediaBundle\Entity\Repository\EpisodeRepository as BaseEpisodeRepository; class EpisodeRepository extends BaseEpisodeRepository { public function findNewerEpisodes(Episode $episode, $numberEpisodes = 3) { return $this-...
true
44bd3555907661e2cd63b4388cf83b4b572da18b
PHP
dkonasov/minerva
/system/functions/dbconn.php
WINDOWS-1251
1,259
2.53125
3
[]
no_license
<?php /* : dbconn MySQL. : -$encoding - ( - cp1251). !!! , $HOST( , $USER( ), $PASS ( ). . */ function dbconn($encoding='cp1251') { //global DBHOST; //global DBUSER; //global DBPASS; //global DBNAME; if(!mysql_connect(DBHOST, DBUSER, DBPASS)) die(mysql_err...
true
0760d9bd813acd44dda3efc0353b2b293c9cb984
PHP
DR-Innovation/Harvester-Flickr
/src/CHAOS/Harvester/Flickr/Filters/FlickrTagFilter.php
UTF-8
1,309
2.84375
3
[]
no_license
<?php namespace CHAOS\Harvester\Flickr\Filters; class FlickrTagFilter extends \CHAOS\Harvester\Filters\Filter { const TAG_SEPERATOR = ' '; protected $_requiredTags; protected $_bannedTags; public function __construct($harvester, $name, $parameters = array()) { parent::__construct($harvester, $name, $paramet...
true
7650d0c3fbd4ccf33f548c2d2e547b217c5e73fd
PHP
quintabcn/php.training
/PDO Marcadores en Consultas Preparadas/pag_busqueda_pdo.php
UTF-8
1,045
3.03125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php // Conexión a la base de datos $search1=$_GET['nota1']; $search2=$_GET['nota2']; try{ $base= new P...
true
08d7d7fb615909be0aa66b5b3a1324fe7bce7de8
PHP
ay-coder/nanny-app
/app/Models/Messages/Messages.php
UTF-8
767
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Models\Messages; /** * Class Messages * * @author Anuj Jaha ( er.anujjaha@gmail.com) */ use App\Models\BaseModel; use App\Models\Messages\Traits\Attribute\Attribute; use App\Models\Messages\Traits\Relationship\Relationship; class Messages extends BaseModel { use Attribute, Relationship; ...
true
3b87253718f9fd133a68b1d5be909e8b49c6c1e9
PHP
omarchouman/php-oop
/src/Models/Blog.php
UTF-8
2,172
2.96875
3
[]
no_license
<?php namespace App\Models; use App\Database\Database as DB; class Blog { private $db; public function __construct() { $this->db = new DB(); } public function addBlog($data, $user) { $this->db->query('INSERT INTO blog (title, overview, content, user_id) VALUES(:title, :overview, :content, :user...
true
aa6062ece1acb59948c0aeac4c6f4abf3ab3590c
PHP
netcommons/NC2ExtensionModules
/faq/action/main/post/Post.class.php
UTF-8
2,620
2.59375
3
[]
no_license
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * 質問登録アクションクラス * * @package NetCommons * @author Noriko Arai,Ryuji Masukawa * @copyright 2006-2007 NetCommons Project * @license http://www.netcommons.org/license.txt NetCommons License * @project NetCommons...
true
f3e3f13636b6a459bdfef8c233b8bc463b605def
PHP
kai815/php-blog
/application/core/DbRepository.php
UTF-8
1,458
3.3125
3
[]
no_license
<?php /** * データベースへのアクセスを行うクラス * * テーブルごとに子クラスを作成する * SQLの実行時に頻繁に出てくるような処理を抽象化しておく */ abstract class DbRepository { protected $con; public function __construct($con) { $this->setConnection($con); } /** * DbManagerClassからPDOクラスのインスタンスを受け取り内部に保持する * * @param instance $c...
true
cf4bdb493718236567d08701bd56f52beb3dd7be
PHP
theirfanirfi/PrivacyApp-Laravel
/app/Http/Controllers/CompaniesController.php
UTF-8
3,584
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; use App\Models\Companies as COMP; use App\User; class CompaniesController extends Controller { // public function index(){ $user = Auth::user(); //$companies = COMP::where(['user_id' => $user->id])->get(); $c...
true
eba6515a3834b6cbdb399b4ac26c26de12b95e42
PHP
hiroki0325/geechscamp
/todo/models/category.php
UTF-8
2,185
3.234375
3
[]
no_license
<?php class Category { // privateなプロパティを定義 private $plural_resorce = ''; public function __construct($db,$plural_resorce) { $this->db = $db; $this->plural_resorce = $plural_resorce; } // カテゴリを新規作成するSQL文を返すメソッド public function create(){ ...
true
5c0c93e50001fdb1a65184e9eff122fdda3589ae
PHP
wp-plugins/okv-oauth
/MyConnect/Google.php
UTF-8
21,140
2.578125
3
[ "MIT" ]
permissive
<?php /** * connect adapter. for call to those social with api and generate link or authenticate with out write it directly in HookLoginPage class. * * @package okv-oauth */ namespace OKVOAuth\MyConnect; if (!class_exists('\\OKVOAuth\\MyConnect\\Google')) { class Google extends \OKVOAuth\Library\HookLoginP...
true
b72ecc5c72c82213fbf177158e1fe53a5024ab2c
PHP
muskanmahajan37/open-event
/custom/action/resposta-edital_export.php
UTF-8
2,609
2.515625
3
[]
no_license
<?php $user = Structure::verifyAdminSession(); Structure::header('nude'); $idEdital = false; if (array_key_exists("id", $_GET) && $_GET['id'] != "" && !is_null($_GET['id'])) { $idEdital = $_GET['id']; } else { echo "error"; exit(1); } $genericDAO = new GenericDAO; if (!$genericDAO->s...
true
caf194f33ff75078897b7a15568015cc393c466c
PHP
armincms/core
/src/Plugin/PluginRepository.php
UTF-8
1,864
2.546875
3
[]
no_license
<?php namespace Core\Plugin; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Collection; class PluginRepository { protected $files; protected $plugins; public function __construct(Filesystem $files) { $this->files = $files; } public function all() { if(! isset($this->plugins)) ...
true
2263b0a60794497d4b3239f3c087baa3dd15e5bc
PHP
KrijnvdBurg/Laravel
/app/Article.php
UTF-8
1,676
2.71875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Carbon\Carbon; class Article extends Model { protected $fillable = [ 'title', 'body', 'excerpt', 'published_at' ]; public static function date_locker($published_at){ if($published_at >= Carbon::now()){ return 'locked'; } else{ re...
true
cdc8c1ffbff9e6867ce2d638a768e560cc549de3
PHP
t-ichi324/sesame
/lib/Validator.php
UTF-8
7,186
2.96875
3
[]
no_license
<?php class Validator { private static $errorCnt = 0; private static $msgLvl = 1; /** <p>パスワードのガイド文字列</p> */ public static function PASSWORD_GUIDE($min = Conf::USER_PW_MIN, $level = Conf::USER_PW_LEVEL){ switch ($level){ case 1: if($min < 2){ $min = 2; } ...
true
5c839e6e98e8324b0871917874b6c47f5fe6893b
PHP
itemvirtual/vat-validate
/src/Services/EuropeanVatService.php
UTF-8
3,298
2.640625
3
[ "MIT" ]
permissive
<?php namespace Itemvirtual\VatValidate\Services; use Itemvirtual\VatValidate\Traits\VatTrait; use Illuminate\Support\Facades\Log; class EuropeanVatService { use VatTrait; public function check(string $vat, string $countryCode = 'ES') { $vat = $this->cleanVat($vat, $countryCode); $countr...
true
248fade47f28bce92fc1a6bd6990258750677e4e
PHP
iammati/centauri_core
/Classes/CentauriCore.php
UTF-8
2,265
2.9375
3
[ "MIT" ]
permissive
<?php namespace Centauri\Core; use TYPO3\CMS\Core\Utility\GeneralUtility; class CentauriCore { /** * Core version of the system. * * @var string */ protected $version = "1.0"; /** * Absolute path from webserver to the extension itself - defined inside of the cons...
true
5430a04398f5ee106a0d53e55faf6f4859137c8d
PHP
sahabuddin123/Inventory-management-system-Laravel-v2
/app/Http/Controllers/Admin/GroupsController.php
UTF-8
3,111
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\BaseController; use Illuminate\Http\Request; use App\Contracts\GroupsContract; class GroupsController extends BaseController { protected $groupsRepository; public function __construct(GroupsContract $groupsRepository) { $this-...
true
9b1fc17304d2b0ff7ce1209fec33ac39c4e5b0fc
PHP
adrielsales/alura
/php/php_e_mysql/banco-categoria.php
UTF-8
616
2.9375
3
[]
no_license
<?php function listaCategorias($conexao) { $categorias = array(); $resultado = mysqli_query($conexao, "select * from categorias"); while ($categoria = mysqli_fetch_object($resultado)) { array_push($categorias, $categoria); } return $categorias; } // function insereProduto($conexao, $nome, $preco, $descricao){ /...
true
6c8f817f347382ba87141ea33ff5e4cd0a17ed23
PHP
heidkaemper/statamic-toolbar
/src/Breakpoints/Breakpoints.php
UTF-8
2,591
2.6875
3
[]
no_license
<?php namespace Heidkaemper\Toolbar\Breakpoints; use Heidkaemper\Toolbar\Breakpoints\Parser\BootstrapParser; use Heidkaemper\Toolbar\Breakpoints\Parser\PicoParser; use Heidkaemper\Toolbar\Breakpoints\Parser\TailwindParser; use Illuminate\Support\Collection; class Breakpoints { protected Collection $breakpoints; ...
true
b3db7f2b0b32e4d6aa4341cbdd6f4a3e39973233
PHP
logoscreative/pods-code-library
/example/classes/PodsAPI/load_pod/examples/post-type-bread-crumb.php
UTF-8
1,141
2.671875
3
[]
no_license
<?php /** * Basic breadcrumbs for custom post type Pod, using load_pod to get Pod labels. * * Someone should add handling for posts and pages as well as ACTs to this. Possibly make a plugin. */ function slug_post_type_breadcrumb( $divider = '&gt;&gt;' ) { $front = slug_link( site_url(), 'Home' ); if ( is_home() ...
true
41d7089f69079ea1c0d49e1f6c8968d0088c267f
PHP
ravinderwave/prepmymeal
/app/Http/Controllers/Backend/ComponentController.php
UTF-8
4,014
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\backend; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Component; /** * Class ComponentController * @package App\Http\Controllers */ class ComponentController extends Controller { /** * Display a listing of the resource. * * @retu...
true
76040a6ca6d76900945f3aaa8c50a7a129be6b10
PHP
scott7rj/contratos-antigo
/classes/tipo_contrato.php
UTF-8
1,698
2.8125
3
[]
no_license
<?php class tipo_contrato { private $idTipoContrato; private $tipoContrato; private $ativo; public function getIdTipoContrato(){ return $this->idTipoContrato; } public function setIdTipoContrato($idTipoContrato){ $this->idTipoContrato = $idTipoContrato; } public function getTi...
true
9f54998627df1d3644b6ab3befbd7f25f9df8533
PHP
datosgcba/plan-de-gobierno
/source/bt-admin/Logica/cPlantillasMacrosZonas.class.php
UTF-8
4,450
2.828125
3
[]
no_license
<?php include(DIR_CLASES_DB."cPlantillasMacrosZonas.db.php"); class cPlantillasMacrosZonas extends cPlantillasMacrosZonasdb { protected $conexion; protected $formato; // Constructor de la clase function __construct($conexion,$formato=FMT_TEXTO){ $this->conexion = &$conexion; $this->formato = $formato; p...
true
6b3a7c509988213fbb4c67653739f8362e681127
PHP
geomagilles/flowgraph
/src/Geomagilles/FlowGraph/PetriNet/Dumper/DumperInterface.php
UTF-8
575
2.5625
3
[]
no_license
<?php /** * This file is part of the Flow framework. * * (c) Gilles Barbier <geomagilles@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Geomagilles\FlowGraph\PetriNet\Dumper; use Geomagilles\FlowGraph\Petri...
true
9cceb350d23c6b6cd17cdcdd8648080cbc2fda11
PHP
kikmedia/metamodels_full
/modules/generalDriver/InterfaceGeneralCallback.php
UTF-8
3,898
2.640625
3
[]
no_license
<?php /** * PHP version 5 * @package generalDriver * @author Stefan Heimes <cms@men-at-work.de> * @copyright The MetaModels team. * @license LGPL. * @filesource */ interface InterfaceGeneralCallback { /** * Set the DC * * @param DC_General $objDC */ public function setDC($objDC); /** ...
true
79192f26a147c3da7333a48f16c1d5b27714644c
PHP
bulfaitelo/tests
/PHP/in_array/in_array.php
WINDOWS-1252
284
2.90625
3
[]
no_license
<?php echo " case Sensitive <br /><br />"; $os = array("Mac", "NT", "Irix", "Linux"); if (in_array("Irix", $os)) { echo "Tem Irix"; } if (in_array("mac", $os)) { echo "Tem mac"; } echo "<br />"; if (in_array("Mac", $os)) { echo "Tem Mac"; } ?>
true
f0b9c280e78fa0ef106f289d8a0ff84916711517
PHP
gam6itko/dpd-carrier
/src/Type/Geography/Address.php
UTF-8
2,629
2.90625
3
[]
no_license
<?php namespace Gam6itko\DpdCarrier\Type\Geography; use Gam6itko\DpdCarrier\Type\AbstractDeliveryPoint; class Address extends AbstractDeliveryPoint { /** @var string|null */ protected $regionName; /** @var string|null */ protected $street; /** @var string|null */ protected $streetAbbr; ...
true
93b7e008195ef723b6cbb8ad5a94fcfde81e5ff5
PHP
barracudanetworks/php-ews
/EWSType/AvailabilityProxyRequestType.php
UTF-8
832
2.84375
3
[]
permissive
<?php /** * Contains EWSType_AvailabilityProxyRequestType. */ /** * Defines whether a proxy request is a cross-site or a cross-forest request. * * @package php-ews\Enumerations */ class EWSType_AvailabilityProxyRequestType extends EWSType { /** * Indicates that this request is cross-forest. * ...
true
d88b1c4bc60279ca1bbcdd4af3b8743eeaf33b3a
PHP
ISSKJ/php-framework-benchmark
/minph/framework/test/RouteTest.php
UTF-8
1,050
2.53125
3
[ "Apache-2.0" ]
permissive
<?php use PHPUnit\Framework\TestCase; use Minph\Http\Route; use Minph\Exception\FileNotFoundException; class RouteTest extends TestCase { public function setup() { } public function testRoute() { $uri = '/'; try { $res = Route::run($uri); $this->assertEq...
true
efa0aa9e0d604812a8d6540aff1c1a13de6fb2c4
PHP
limb-php-framework/limb-app-buildman
/lib/limb/toolkit/src/lmbMockToolsWrapper.class.php
UTF-8
919
2.625
3
[]
no_license
<?php /** * Limb Web Application Framework * * @link http://limb-project.com * * @copyright Copyright &copy; 2004-2007 BIT * @license LGPL http://www.gnu.org/copyleft/lesser.html * @version $Id: lmbMockToolsWrapper.class.php 5007 2007-02-08 15:37:18Z pachanga $ * @package toolkit */ class lmbMockTo...
true
0eeb2e7f3ddca547dbffbe03003a3c689ba64482
PHP
cuvelierm/ws1-sws-course-materials
/assets/03/examples/formchecking_thanks.php
UTF-8
1,549
3.515625
4
[]
no_license
<?php /** * Guaranteed slashes (if magic_quotes is off, it adds the slashes) * * @param string $string The string to add the slashes to * @return string */ function addPostSlashes($string) { if ((get_magic_quotes_gpc()==1) || (get_magic_quotes_runtime()==1)) return $string; else return addslashes($s...
true
bd4ab2bbd1e2c0db5a04afa0f68e9feab699299c
PHP
m-narayan/bbb-conf
/classes/DBAccess.php
UTF-8
13,613
2.578125
3
[]
no_license
<?php class DBAccess{ public function checkMaxMeeting($user_id){ $msg=""; $period=-1; $max_conference=-1; $sql="select * from user_settings where user_id=".$user_id; $result=mysql_query($sql); while($row=mysql_fetch_array($result)){ ...
true
7d72cb7d8c3b07f2343d6fc202cc6dea9e005ff8
PHP
corowne/lorekeeper
/app/Models/Feature/FeatureCategory.php
UTF-8
2,826
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Models\Feature; use Config; use App\Models\Model; class FeatureCategory extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'sort', 'has_image', 'description', 'parsed_description' ]; /** ...
true
27843f4d2e75f3cf643a611043884e7645885b96
PHP
warvels/gms
/api/functionsGMS.php
UTF-8
7,986
2.984375
3
[]
no_license
<?php # ============================================================================================== # /gms/api/functionsGMS.php # ============================================================================================== # Revisions # Ver 0.3 2012/11/27 Initial GET/POST functions # Ver 0.4 2012/12/08 Databa...
true
c068c73c24f91d8ff9281dada64cd8bdb4744e77
PHP
kanata-php/kanata-core
/src/Kanata/Models/Interfaces/SimpleCrudInterface.php
UTF-8
220
2.53125
3
[]
no_license
<?php namespace Kanata\Models\Interfaces; interface SimpleCrudInterface { public function create(array $data); public function update(array $data); public function get($id); public function delete(); }
true
4373709d60a9319c9ef618e1673ddb62bb7bb141
PHP
AndrewLivancov/php.study
/book-217.1.php
UTF-8
548
3.546875
4
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php ## Использование ... function toomanyargs($fst, $snd, $thd, $fth) { echo "Первый параметр: $fst<br />"; echo "Второй параметр: $snd<br />"; echo "Третий параметр: $thd<br />"; echo "Четвертый параметр: $fth<br />"; } // Отображаем строки одну под д...
true
aad764903763fde19620781c92b70200e42f1923
PHP
cx-kyle/c2c
/common/models/member/MemberBindbank.php
UTF-8
2,713
2.734375
3
[ "Apache-2.0" ]
permissive
<?php namespace common\models\member; use Yii; use yii\web\NotFoundHttpException; use yii\db\ActiveRecord; /** * This is the model class for table "{{%member_bindbank}}". * * @property int $id * @property int $member_id 用户id * @property int $type 收款方式:1:支付宝,2:微信,3:银行卡 * @property string $name 姓名 * @property st...
true
79cacc057d27764377dd649916e0fb9e2842e485
PHP
nskun/desiginpattern
/PHP/Visitor/ListVisitor.php
UTF-8
982
3.25
3
[]
no_license
<?php require_once '/Visitor.php'; /** * Description of ListVisitor * * @author shain */ class ListVisitor extends Visitor{ private $currentDir; public function __construct() { $this->currentDir = ""; } public function visit($visitName) { $method = 'visit' . get_class($visitName); ...
true
9bb4c8ec97f37b40edc650c61b4e959e1b2e0de8
PHP
aysegulYalcinkaya/Sam
/ConvertUTCtoEST/plotData.php
UTF-8
2,731
3.109375
3
[]
no_license
<?php include_once 'phplot/phplot.php'; class plotData { var $fileName; var $spikeFileName; var $imageFileName; function __construct($fileName, $spikeFileName) { $this->fileName = $fileName; $this->spikeFileName = $spikeFileName; $filepart2=substr($fileName,strrpos($file...
true
0190dde9df80457e5d7a843f7800f225cf54425e
PHP
uomer/frtmall
/mydb_class.php
GB18030
1,708
2.96875
3
[]
no_license
<?php /** ࣺݿIJࡣ **/ class mydb { //ֻڲõӷ static private function connect(){ return new mysqli("localhost","root","111111","frtm"); } public function select($sql){ $db = self::connect(); $db->query('set names gbk'); $re = $db->query($sql); $array = array(); while($row = $re->fetch_assoc()){ $array[]=...
true
754ae71934635961c738b8445f29791b5790f58c
PHP
Danzabar/phalcon-starter
/app/controllers/BaseController.php
UTF-8
1,005
2.84375
3
[]
no_license
<?php use Phalcon\Mvc\Controller; /** * The Base controller defines basic behaivour for all other controllers * */ class BaseController extends Controller { /** * Renders and outputs a view * * @return String * @author Dan Cox */ public function renderView( $view, Array $params = Array(), $code = 200)...
true
bba9e1f3a55f4a6e4f27648b4dd47d605f5f08f4
PHP
icepoke/swooleyaf
/libs_frame/SyMessagePush/JPush/Report/MessageStatus.php
UTF-8
3,069
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * 送达状态查询 * User: 姜伟 * Date: 2019/6/26 0026 * Time: 11:27 */ namespace SyMessagePush\JPush\Report; use SyConstant\ErrorCode; use SyException\MessagePush\JPushException; use SyMessagePush\JPush\ReportBase; use SyMessagePush\PushUtilJPush; use SyTool\Tool; class MessageStatus extends ReportBase { /** ...
true
c32bc0faee294e72599da545abd7c0a93261e819
PHP
jaaic/invoice-payments
/app/Console/Commands/GeneratePaymentReminders.php
UTF-8
2,999
2.734375
3
[]
no_license
<?php namespace App\Console\Commands; use App\Core\Constants; use App\Models\Invoice; use App\Models\Reminder; use App\Modules\Invoicing\Factory\ReminderFactory; use App\Modules\Invoicing\Services\ReminderGenerationService; use Illuminate\Console\Command; use Illuminate\Support\Facades\Log; use Symfony\Component\Cons...
true
8220b295818b76042cb48febdb26d87d53ee8816
PHP
drager/pophub
/app/view/Users.php
UTF-8
4,566
2.765625
3
[]
no_license
<?php namespace PopHub\View; class Users extends BaseView { private $errorView; private $cookie; private $errorMsg = "Message::Failure"; private $successMsg = "Message::Success"; private $searchFieldName = "q"; private $users = "users"; private $repos = "repos"; private $followers = "followers"; ...
true
be28f82533622a609419908f71bbcb86ca3d81ee
PHP
amilkhael/redlasalle
/modelo/OEduBO.php
UTF-8
1,423
2.609375
3
[]
no_license
<?php class OEduBO { //Constructor public function __construct() { } //Metodos public function despliega($tipo) { $bd = new ConectaBD; $bd->conectar(); $query = 'SELECT PK_O_Edu, nombre FROM o_edu WHERE FK_Tipo = '.$tipo.' ORDER BY nombre ASC'; $nombreCarrera = $bd->...
true
165a6ed2f7c21398a1f8b149714b629289fd76a4
PHP
centralnicgroup-opensource/rtldev-middleware-php-sdk
/tests/ClientFactoryTest.php
UTF-8
2,161
2.515625
3
[ "MIT" ]
permissive
<?php //declare(strict_types=1); namespace CNICTEST; use CNIC\ClientFactory as CF; use CNIC\HEXONET\Client as CL; final class ClientFactoryTest extends \PHPUnit\Framework\TestCase { /** * @var \CNIC\HEXONET\SessionClient|null $cl */ public static $cl; /** * @var string user name */ ...
true
444f70f6a2a213c35d6cc506bbf7cf7cda1d104f
PHP
Raymoon2601/Peliculas_2
/database/seeds/RolesTableSeeder.php
UTF-8
767
2.671875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Models\Role; class RolesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $Roles = array( ['Role' => 'Gerente general'], ['Role' => 'Cajero'], ['Role' =...
true
ce19c1ff19d98a2365aeba8d75c3ea5041118237
PHP
Ridji/EDBlogBundle
/Handler/ObjectGenerator.php
UTF-8
4,498
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by Eton Digital. * User: Vladimir Mladenovic (vladimir.mladenovic@etondigital.com) * Date: 25.5.15. * Time: 15.39 */ namespace ED\BlogBundle\Handler; use ED\BlogBundle\Interfaces\Model\ArticleInterface; use ED\BlogBundle\Model\Entity\Article; class ObjectGenerator { protected $object; ...
true
e79738750ac738f6f6a02b93b53293a2d736d274
PHP
citysites/ymlparser
/src/Offer/MedicineOffer.php
UTF-8
2,295
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace LireinCore\YMLParser\Offer; class MedicineOffer extends AOffer { /** * @var string */ protected $name; /** * @var string */ protected $vendor; /** * @var string */ protected $vendorCode; /** * @return array */ public function g...
true
6dd5cfee4e753839bd7854bbb719c7777862a48a
PHP
Leopandro/catalogmaterial
/models/AccessUserGroupMaterial.php
UTF-8
1,303
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "access_user_group_material". * * @property integer $id * @property integer $id_user * @property integer $id_group_material * @property integer $is_allow * * @property Catalog $idGroupMaterial * @property User $idUser */ class Acc...
true
ddbe1437c533da7bca066b0bb46bdc9ee446a844
PHP
git4min3/gitamine
/app/Deprecated/Core/Command/RunPluginCommand.php
UTF-8
1,003
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace Gitamine\Deprecated\Core\Command; /** * Class RunPluginCommand. */ class RunPluginCommand { /** * @var string */ private $plugin; /** * @var string */ private $event; /** * @var string */ private $params; /** ...
true
3f88e600b896394e150eb595b474b5bc1a9da99e
PHP
aniket0135/api
/api/tabelCreator.php
UTF-8
474
2.5625
3
[]
no_license
<?php require_once('Config/database.php'); $sql = "CREATE TABLE IF NOT EXISTS `users`( id INT(11) AUTO_INCREMENT PRIMARY KEY, firstname VARCHAR(256) NOT NULL, lastname VARCHAR(256) NOT NULL, email VARCHAR(256) NOT NULL, password VARCHAR(2048) NOT NULL, created datetime NOT NULL, modified timestamp NOT NULL )"; if (mys...
true
083a05966fb91944d828a5fac142b9a005b7b908
PHP
ssondaii/chat-app
/app/Http/helpers.php
UTF-8
453
2.8125
3
[]
no_license
<?php use App\Models\Permission; if (!function_exists('checkExistPermissionArray')) { /** * check permission array is exist in database. * * @param array $permissionArray * @return boolean */ function checkExistPermissionArray(Array $permissionArray) { if(count($permissio...
true
a3636a6db55ef9fd92819d1bb22b704b58ecc824
PHP
tuanhud/quanlytaisan-cntt-dhcantho
/Admin/data_quyennguoidung.php
UTF-8
2,497
2.515625
3
[]
no_license
<?php #Include the connect.php file include('connect.php'); #Connect to the database //connection String $connect = mysql_connect($hostname, $username, $password) or die('Could not connect: ' . mysql_error()); //Select The database $bool = mysql_select_db($database, $connect); if ($bool === False){ ...
true
7afa5986ef90e06ff191932ca4fb43cfbf9c2dcb
PHP
zhoupenghui/zph
/application/controller/front/PlatformController.class.php
UTF-8
1,452
2.625
3
[]
no_license
<?php class PlatformController extends Controller { //构造方法,当子类被实例化时,此方法应当被触发 public function __construct() { $this->checkLogin(); } //检查用户是否已经登录 private function checkLogin() { //判断用户是否登录,如果登录了,什么都不干,如果没有登录,跳转到登录页面 $ignore = array( 'action' => array('login', 's...
true
2617a3a9e309829696f5357defe36b263d16c87b
PHP
Phayvanh/resto_full_exemple
/application/models/BookingModel.class.php
UTF-8
501
2.84375
3
[]
no_license
<?php class BookingModel { public function createBooking($userId,$bookingDate,$bookingTime,$tableSize) { $database = new Database(); $sql = 'INSERT INTO Booking(User_Id,BookingDate,BookingTime,TableSize,CreationTimestamp) VALUES (?,?,?,?,now())'; $values= [...
true
18702398729343947a3e7fc34c3ba1968c8d2e6e
PHP
Sanika96/TEproject
/index.php
UTF-8
4,096
2.8125
3
[]
no_license
<?php # Script 3.4 - index.php session_start(); $page_title = 'Welcome to this Site!'; include ('header.html'); ?> <div id="navigation"> <ul> <li><h4><a href="register.php">Register</a></h4></li> </ul> </div> <div id="content"> <br> <?php require_once ('mysqli_connect.php'); // Connect to the db. ...
true
a801fa19493ba0a42b6e654c7b14949d724b7e8a
PHP
pukku/tlpgstheme
/functions.php
UTF-8
4,985
2.671875
3
[ "MIT" ]
permissive
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); } /** * Helper functions for the TLP theme */ function tlp_show_process_noop ($text) { return $text; } function tlp_show_process_credits ($text) { $lines = explode("\n", $text); $ret = ''; foreach ($lines as $line) { if (!empty($line)) ...
true
b5b7ec4fdc89c6a936d9e02db5e8da0d1ced50ab
PHP
feliciogs/yourLifeSocial
/chat.php
UTF-8
2,463
2.578125
3
[]
no_license
<?php include("header.php"); $id = $_GET["from"]; $tudo = mysqli_query($connect,"SELECT * FROM users WHERE id='$id' "); $saber = mysqli_fetch_assoc($tudo); $email = $saber["email"]; $sql = mysqli_query($connect,"SELECT * FROM mensagens WHERE para='$login_cookie' AND de='$email' OR de='$login_cookie' AND para='...
true
869cdc99f9d1631c576a21796d85814b9bc7ccd5
PHP
plansson/chicslazer
/application/mktplace/ns/DAO/productsDAO.php
WINDOWS-1250
1,956
2.84375
3
[]
no_license
<?php require_once '../application/mktplace/conexao.php'; class productsDAO{ public static $instance; public static function getInstance() { if (!isset(self::$instance)) self::$instance = new productsDAO(); return self::$instance; } public function selectProductSKU(productsBD $product) { try...
true
a5c87154a8d16a87f0cc88153db4156995596a5a
PHP
binbinly/laravel-admin-base
/src/Controllers/WebStack/SiteController.php
UTF-8
1,775
2.515625
3
[]
no_license
<?php namespace AdminBase\Controllers\WebStack; use AdminBase\Controllers\AdminBaseController; use AdminBase\Models\Admin\Site; use AdminBase\Models\Admin\SiteCategory; use AdminBase\Traits\FormTrait; use AdminBase\Traits\GridTrait; use Encore\Admin\Form; use Encore\Admin\Grid; /** * 站点导航 * Class SiteController *...
true
69a61a968404f24e3e2908a01f23542d7d02762e
PHP
Warbi2601/Astro-Events
/cms/process/editevent.php
UTF-8
1,159
2.640625
3
[]
no_license
<?php //includes include("../../includes/sessions.inc.php"); include("../../includes/conn.inc.php"); include("../../includes/functions.inc.php"); //variable declarations $sEventID = safeString($_POST['eventID']); $sEventName = safeString($_POST['name']); $sEventDetails = safeString($_POST['details']); $sGenre = safeSt...
true
d015346beb04ed2f8fa26ca0600e2fccb06e3b47
PHP
vincent4vx/ByxxR-cms
/core/helpers/Url.php
UTF-8
2,153
2.734375
3
[]
no_license
<?php class Url { public static function genUrl($controller='', $method='', $vars=array()) { $url = Core::conf('root'); if(!Core::conf('rewrite')) { $url .= 'index.php/'; } $url .= $controller; if($method !== '') { $url .= '/'.$method;...
true
81fa980dc86cb776aa1087791b6b5071a5ca6939
PHP
muhdaniboyrendi/Lat-UKK-pengaduan-masyarakat
/index.php
UTF-8
2,338
2.78125
3
[]
no_license
<?php session_start(); require 'function.php'; if(isset($_SESSION["masyarakat"])){ header("location: masyarakat/"); exit; } if(isset($_SESSION["admin"])){ header("location: admin/"); exit; } if(isset($_SESSION["petugas"])){ header("location: petugas/"); exit; } if(isset($_POST["login"])){ ...
true
9902fa834ea23797500843e2d77c5b5932d0c464
PHP
Scoindy/webcms
/v0.1/email_view.php
UTF-8
2,879
2.734375
3
[]
no_license
<?php /******************************************************************************* * Indigo ******************************************************************************** * Name : email_view.php * Description : manages emails in the database * Author : Scott Walkinshaw * Date : 24th Nov...
true
f1674958c5a03d80f83ad49cfb9be681a43a99ff
PHP
marcelaimar/GeradorCodigos
/Arquivo/PessoaTelefoneDAO.php
UTF-8
1,461
2.59375
3
[]
no_license
<?php /** * Marcel Aimar Estácio * Desenvolvedor Web * * Humberto de Campos, 161 - Sumaré * Presidente Venceslau, CEP 19400-000, Brasil * Telefone: +55(18)997467617 * * Classe PessoaTelefoneDAO * Representa objeto de acesso a dados para entidade PessoaTelefone * * @name PessoaTelefoneDAO * @access public * @licen...
true
cda0d49911231b23696d23ea04026bf5dac68e9e
PHP
qlimix/serializable
/src/SerializableInterface.php
UTF-8
531
2.890625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Qlimix\Serializable; interface SerializableInterface { /** * A unique message name with application naming space. * This is used to deserialize the message back into * the message scheme object on the processing side. */ public function getName(): ...
true
7155b581345247bae0f89437a4878227740c1ee9
PHP
TheosDen/Laravel
/app/Repositories/Posts.php
UTF-8
410
2.734375
3
[]
no_license
<?php namespace App\Repositories; class Posts { private $_data = [ 'post 1', 'post 2', 'post 3', 'post 4', ]; public function all() : array { return $this->_data; } public function get() { Post::select()->get(); } public function f...
true
95f901fce676e04230d5166a8f97bd60bb8e022d
PHP
dfquintero/EDProyecto
/BackEnd/Mostrar_habitaciones_sin_filtro.php
UTF-8
1,877
3.25
3
[ "MIT" ]
permissive
<?php include('cn.php'); class Stack { protected $stack; public function __construct() { $this->stack = array(); } public function push($item) { array_push($this->stack, $item); } public function pop() { if ($this->isEmpty()) { return; } else { ...
true
a37c7ce7a0872c20b53758f25df3cd825f587193
PHP
atjoshi/chegg-love.com
/Business/Database.php
UTF-8
791
2.90625
3
[]
no_license
<?php /** * * Description of Database * * @author atjoshi * */ namespace Lovecom\Business; class Database { protected static $db = array(); public static function getInstance( $dbKey ) { if( !isset(self::$db[ $dbKey ] ) ) { self::$db[ $dbKey ] = self::instantiate( $...
true
cdc1514db7d25a37120256bf68ce99f45bd49b8d
PHP
domstor-project/kww-domstorlib
/vendor/Ds/Detail/Block/House/SizesBlock.php
UTF-8
2,185
2.78125
3
[]
no_license
<?php /** * Description of SaleSizesBlock * * @author pahhan */ class Ds_Detail_Block_House_SizesBlock extends Ds_Detail_Block_AbstractBlock { public function render(array $params = array()) { $vars = array('block' => $this); if( $this->fullHeight() or $this->height() ...
true
9f7553f8393116bea1f291e0143e5857b0980f4a
PHP
thangttttv/xs_tt
/protected/modules/thantaicp/models/AMobat.php
UTF-8
2,305
2.625
3
[]
no_license
<?php class AMobat extends CActiveRecord{ public static function model($className = __CLASS__) { return parent::model ( $className ); } public function getDataByOpenDate($open_date){ $data = array(); $sql = "SELECT * FROM xs_mobat WHERE open_date ='".$open_date."'"; $...
true
2dcedc300c9b22387253f10a1820045bc16dd167
PHP
seansWebelevate/webprogramming
/workshop7/Main.class.php
UTF-8
99
2.71875
3
[]
no_license
<?php include "Sphere.class.php"; $sphere= new Sphere(1); echo $sphere->getVolume(); ?>
true
2ba6b1ed1061ac676eaa9798138a97cdae1b20b5
PHP
luisbryan/backend_api
/app/Repositories/SuperadminRepository.php
UTF-8
207
2.59375
3
[]
no_license
<?php namespace Testu\Repositories; use Testu\Repositories\Eloquent\Repository; class SuperadminRepository extends Repository { public function model() { return 'Testu\User'; } }
true
7a6b68a1ef85404e14d19f21b379d1bab3b38521
PHP
neowutran/CheapTeraDpsDatabase
/store.php
UTF-8
1,852
2.515625
3
[]
no_license
<?php //error_reporting(E_ALL); //ini_set("display_errors", 1); $directory = "/home/http/tmp/"; $time = time(); $date = date("Y-m-d", $time); $uniqid = uniqid(); $raw = file_get_contents('php://input'); $json = json_decode($raw, true); if($json === null){ die(); } $areaId = $json["areaId"]; $bossId = $json["bossId...
true
75d1efda58759dd5f9b78482959b717fd9ad3cfa
PHP
Tagarela76/voc
/vwm/modules/classes/VWM/Apps/UnitType/Entity/Type.class.php
UTF-8
1,195
2.90625
3
[]
no_license
<?php namespace VWM\Apps\UnitType\Entity; use VWM\Framework\Model; class Type extends Model { protected $type_id; protected $type_desc; const TABLE_NAME = '`type`'; public function __construct(\db $db) { $this->db = $db; } /** * TODO: implement this method * * @return array property => ...
true
0ade127a41b64c30d4f6ee4a21b9a81c168c9ad5
PHP
Daniil-Trukhan/php-design-patterns
/Creational/AbstractFactory/BookFactory/Williams.php
UTF-8
462
2.625
3
[]
no_license
<?php namespace Creational\AbstractFactory\BookFactory; use Creational\AbstractFactory\BookFactory; use Creational\AbstractFactory\Book\PHP\Williams as WilliamsPHPBook; use Creational\AbstractFactory\Book\MySQL\Williams as WilliamsMySQLBook; class Williams extends BookFactory { public function createPHPBook() ...
true
3e3b04cb99acbf69129fba87164ecaf4b120555e
PHP
Evafan1337/Auction
/application/core/model.php
UTF-8
1,002
2.703125
3
[]
no_license
<?php class Model { /* Модель обычно включает методы выборки данных, это могут быть: > методы нативных библиотек pgsql или mysql; > методы библиотек, реализующих абстракицю данных. Например, методы библиотеки PEAR MDB2; > методы ORM; > методы для работы с NoSQL; > и др. */ // метод...
true
52370e0748a4478d37493aced9e0e67d171eb7fa
PHP
elgervb/compact
/classes/compact/auth/ILoginProvider.php
UTF-8
682
3.015625
3
[]
no_license
<?php namespace compact\auth; interface ILoginProvider { /** * Returns the logged in user * * @param int $id The ID of the user * * @return \compact\auth\user\UserModel the user model, or null when not logged in */ public function getUser($id); /** * Signs in the user w...
true
a6c3bbbf3ecfe78a6da99ea02b818ddd7c7e05d5
PHP
adamyousef/PHP-course
/tag17_datenformate_3/uebung_bundesliga.php
UTF-8
2,366
2.765625
3
[]
no_license
<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Tolle Webseite</title> <style> td img {width:30px;} </style> </head> <body> <h2>Bundesliga</h2> <?php $options = [ 'http'=> [ 'meth...
true
8bf96214d4603d45752b64cc08148eee187ea5b1
PHP
stadline/linkdata-bundle
/Mock/Resolver/LinkdataMockResolver.php
UTF-8
2,140
2.640625
3
[]
no_license
<?php namespace Geonaute\LinkdataBundle\Mock\Resolver; use Geonaute\LinkdataBundle\Mock\Exception\BadMockModelException; use Geonaute\LinkdataBundle\Mock\Exception\MockNotLoadedException; use Geonaute\LinkdataBundle\Mock\LinkdataMockInterface; use Guzzle\Service\Command\OperationCommand; use JMS\Serializer\Serializer...
true
0d4542b74316a115e8380bcfe116ac44f1ad75e9
PHP
rehanurrashid/wazuapp
/app/Http/Controllers/API/RecipeController.php
UTF-8
4,268
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Recipe; use App\Product; class RecipeController extends Controller { public function show_all(){ $recipe = Recipe::all(); if(!empty($recipe)){ return response(['recipes' => $recip...
true
a9f113e3c627c7fe91387ba24c6c5474df38ce3c
PHP
smarcet/openstackid
/app/services/openid/ServerExtensionsService.php
UTF-8
1,383
2.71875
3
[]
no_license
<?php namespace services\openid; use openid\services\IServerExtensionsService; use utils\services\ServiceLocator; use ServerExtension; use ReflectionClass; /** * Class ServerExtensionsService * @package services\openid */ class ServerExtensionsService implements IServerExtensionsService { /** * @return array ...
true