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
c2e269fae0ed928107591cd4373655aeb1220361
PHP
HansSchouten/PHPageBuilder
/src/Contracts/ThemeContract.php
UTF-8
511
2.71875
3
[ "MIT" ]
permissive
<?php namespace PHPageBuilder\Contracts; interface ThemeContract { /** * Return all blocks of this theme. * * @return array array of ThemeBlock instances */ public function getThemeBlocks(); /** * Return all layouts of this theme. * * @return array array o...
true
1b408ede80baea0f48f06597c2a83c8cb88220c6
PHP
Lemlem-Haile/entoto_tech_fellowship
/Week7/online_clearance_system/Model/offices.php
UTF-8
1,097
3.1875
3
[]
no_license
<?php class Student{ private $id; private $name; private $phone; private $role; private $username; private $password; private $date; public function __construct($id,$name,$phone,$role,$username,$password,$date){ $this->id = $id; ...
true
e0d02cc0f77c31417d7996e23a46e7bd4d7703e2
PHP
Evercise/evercise
/app/models/MilestoneRewards.php
UTF-8
2,246
2.65625
3
[]
no_license
<?php /** * Class Milestone */ class MilestoneRewards extends \Eloquent { /** * @var array */ protected $fillable = ['id', 'user_id', 'amount', 'message', 'status']; /** * @var string */ protected $table = 'milestone_rewards'; /** * @return \Illuminate\Database\Eloque...
true
39be447b1b8517d0b84b20e3bd317909aae5d01c
PHP
inceddy/ieu_http
/src/ieu/Http/Route.php
UTF-8
4,786
3.21875
3
[ "MIT" ]
permissive
<?php /* * This file is part of ieUtilities HTTP. * * (c) 2017 Philipp Steingrebe <development@steingrebe.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ieu\Http; /** * Route describing an url pat...
true
33efb3ac3470e7638cb4f4ef461cb9071e243369
PHP
CodingSeo/AdminAuditLogProducer
/src/AdminAuditLog.php
UTF-8
3,330
2.96875
3
[]
no_license
<?php namespace Hiworks\AdminAuditLog; use Hiworks\AdminAuditLog\Builder\AdminAuditLogBuilderInterface; use Hiworks\AdminAuditLog\Builder\AdminAuditLogBuilderV1; use Hiworks\AdminAuditLog\Exceptions\AdminAuditLogException; class AdminAuditLog { private $version; private $host; private $timestamp; priv...
true
a517a95a90d05317db26f8ff4bb740d2349a9a49
PHP
guoyu07/swoft-task
/src/Bootstrap/Process/CronTimerProcess.php
UTF-8
1,281
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace Swoft\Task\Bootstrap\Process; use Swoft\App; use Swoft\Bean\Annotation\BootProcess; use Swoft\Bootstrap\Process\AbstractProcessInterface; use Swoole\Process; /** * Crontab timer process * @BootProcess("cronTimer") */ class CronTimerProcess extends AbstractProcessInterface { /** * @param P...
true
186a5356c05f69e8c523a0bae6aed965d401639d
PHP
hyperjam/car
/class.racecar.php
UTF-8
741
3.28125
3
[]
no_license
<?php include ('interface.racecarinterface.php'); class RaceCar extends Car implements RaceCarInterface { private $vMax; private $accelaration; public $newengine; public $hp; public function __construct($vMax, $accelaration){ $this->vMax = $vMax+55; $this->acceleration =$vMax/2;...
true
2077c092635e8ffea00fa0f7eeb1621504834a40
PHP
gerson22/Nucleo-Web
/includes/acciones/alumnos/getColegiaturasStatus.php
UTF-8
2,696
2.671875
3
[]
no_license
<?php /** * User: Gustavo * Date: 21/03/14 * Time: 01:37 PM */ include_once("../../validar_admin.php"); include_once("../../clases/class_lib.php"); extract($_POST); // id_alumno // id_ciclo_escolar function getNombreMes($mes) { switch ($mes) { case 1: return 'Agosto'; break; case 2:...
true
b1e7d5a73bd02e17211907dc8987ffb901f17ec7
PHP
bi19074/websys
/plan1_zaiko/rp8_step2_files/auth.php
UTF-8
777
2.671875
3
[]
no_license
<?php declare(strict_types=1); require_once dirname(__FILE__) . '/functions3.php'; try { $pdo = connect(); $sql = "SELECT * FROM staff"; $stmt = $pdo->prepare($sql); $stmt->execute(); } catch (PDOException $e) { echo '接続できませんでした。'; return; //break; } ?> <?php $loginFailed = true; while ...
true
283d39f9187ceb0703347d745d6bffd90c97b8cd
PHP
mbishram/supermarket.id
/app/Http/Controllers/CheckoutsController.php
UTF-8
1,564
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Auth; use Illuminate\Http\Request; use App\ShoppingCart; use App\Customer; class CheckoutsController extends Controller { private $cart_id; public function __construct(){ $latest_cart = ShoppingCar...
true
4dc35f895e10ff042c50262b3655f6b4165ba58f
PHP
yanhsu/ccpc2016
/class/Database.class.php
UTF-8
2,099
2.5625
3
[]
no_license
<?php /*************************************************** * Last Modify: 2011/05/20 * Description: 提供簡易的方法連接資料庫 ****************************************************/ //require_once('../Anti-invasion.php'); class Database extends MySQLi { function __construct() { define('DB_HOST', getenv('OPENSHIFT_MYSQL_DB_...
true
fbb85dbee42e2f67e3a28c5fff931cd02198e94c
PHP
mamunsw/kostlabkit
/application/modules/bot/controllers/Bot.php
UTF-8
6,098
2.59375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); require_once('line_class.php'); require_once('class/MessageBuilder.php'); require_once('class/Register.php'); class Bot extends MY_Controller { /* WELCOME TO KOSTLAB X CODEIGNITER FRAMEWORK Framework inidibuat untuk memudahkan d...
true
91fb59287741effe9c33863b130db2fdec4fe10f
PHP
icacho-dev/js_editplace
/lib/mostrar_paginas.php
UTF-8
1,038
2.578125
3
[]
no_license
<?php // Cargar datos conexion y otras variables. require ("aut_config.inc.php"); //declaracion de instancias $rs_paginas=""; //variable de Recordset // fin de la declaracion de instancias // chequear página que lo llama para devolver errores a dicha página. $url = explode("?",$_SERVER['HTTP_REFERER']); $pag_referid...
true
9419748a2034d60233bb29af327dea3218093ced
PHP
iamraymondlei/src
/datawh/ws/helpers/Class.Log.php
UTF-8
4,036
3.046875
3
[]
no_license
<?php date_default_timezone_set('Asia/Shanghai'); /*======================================================== Log class to write log in standard and easy way. Author: Jason Tsui Last Modified: 2014-09-23 ==========================================================*/ error_reporting(E_ALL); class Log { private $m_...
true
1d558468d9f26a4ef50028cc5ec648e4d97a2a50
PHP
teedmaker/teed-languages
/index.php
UTF-8
811
2.625
3
[]
no_license
<?php define('DEFAULT_LANGUAGE', 'pt-BR'); require_once "language.php"; ?> <!DOCTYPE html> <html lang="<?php echo str_replace('-','_', LANGUAGE); ?>"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title...
true
867b664549f6d8dc350fc992146750ccf0efcffd
PHP
mohamedelnemr1285/ToClinicaAPI
/app/Type_of_specialty.php
UTF-8
602
2.5625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Spatie\Translatable\HasTranslations; class Type_of_specialty extends Model { protected $table = 'Type_of_specialties'; public $timestamps = true; protected $fillable = array('name', 'color', 'icon'); public function clinics() { return $this->h...
true
d80bba9667ee421a07334a00ce18f98a11dc96a6
PHP
syedbilal07/php
/Java T Point/Control Statement/Chapter 4 - WHILE Loop/index1.php
UTF-8
190
3.3125
3
[]
no_license
<html> <head> <title>PHP WHILE Loop</title> </head> <body> <?php $num = 1; while($num <= 10){ echo "$num <br />"; $num++; } ?> </body> </html>
true
03b7a021cf38a2611f211c9899c411aae7fa149e
PHP
imhotep-php/framework
/src/Session/Store.php
UTF-8
6,514
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Imhotep\Session; use Imhotep\Contracts\Session\Session; use Imhotep\Support\Arr; use Imhotep\Support\Str; use SessionHandlerInterface; class Store implements Session { protected string $id; protected string $name; protected array $attributes = []; protecte...
true
99903ee6ab85b987c9fb42325d5635d65a322336
PHP
LitterPapmasa/brute-force
/index.php
UTF-8
2,375
2.515625
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Brut-force</title> <!-- <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> --> <?php require __DIR__.'/BrutforceClass.php'; if ($_SERVER['REQUEST_METHOD'] == "GET" and $_GET != false){ if...
true
4acb43501d950419de8bbccf8f85d898a1406bb3
PHP
dvsa/olcs-selfserve
/module/Olcs/src/View/Model/Licence/LicenceOverview.php
UTF-8
4,475
2.546875
3
[ "MIT" ]
permissive
<?php /** * Licence Overview View Model * * @author Nick Payne <nick.payne@valtech.co.uk> */ namespace Olcs\View\Model\Licence; use Common\Controller\Interfaces\MethodToggleAwareInterface; use Common\Service\Cqrs\Exception\NotFoundException; use Dvsa\Olcs\Transfer\Query\Surrender\ByLicence; use Olcs\Service\Surr...
true
b7e6eaff06dcb8e2e435811b9398b55eb778d8e6
PHP
scorponjzg/corpoteg
/php/registro_acceso_post.php
UTF-8
2,373
2.5625
3
[]
no_license
<?php session_start(); require_once 'configMySQL.php'; $ACCESSKEY="corpoteg"; /************************************CONFIG****************************************/ //these are just in case setting headers forcing it to always expire header('Content-Type: text/html; charset=UTF-8'); header('Cache-Control: no-ca...
true
3e9b1a32c12d00b8e65d2887cf672ce98583742a
PHP
leo-pro/mpdf
/app/classes/pdf.class.php
UTF-8
239
2.625
3
[]
no_license
<?php namespace app\classes; class Pdf { public function CriarPdf($pagina, $arquivo, $metodo) { $mpdf = new \Mpdf\Mpdf(); $mpdf->WriteHTML($pagina); $mpdf->Output($arquivo, "'".$metodo."'"); } }
true
1e508b25eb2d8391f766d8b7621ebff4a7689406
PHP
idrigan/tfm
/src/Component/Domain/Entity/UserInResponse.php
UTF-8
1,859
2.671875
3
[]
no_license
<?php namespace Component\Domain\Entity; /** * UserInResponse */ class UserInResponse { /** * @var integer */ private $id; /** * @var \ProfileBundle\Entity\Publication */ private $publication; /** * @var \ProfileBundle\Entity\ResponsePublication */ private $re...
true
dbd3415614dae2a23b42537f4bb754d30202baa7
PHP
barry-sr/location-based-marketing
/deviceCreateUserAccount.php
UTF-8
1,284
3
3
[]
no_license
<?php define("servername", "localhost"); define("dbusername", "root"); define("dbpassword", ""); define("dbname", "mydb"); $json = json_decode(file_get_contents('php://input'), true); $username = $json['username']; $password = $json['password']; // Establishing Connection with Server by passing server_name, user_id...
true
0b2cd13d72b3c72a71c697790d79abc86e2237d6
PHP
slightphper/tp5_hgmall
/application/admin/controller/Article.php
UTF-8
4,552
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\controller; use think\Db; use catetree\Catetree; class Article extends BaseController { //显示文章 public function lst() { $artRes = Db::name('article')->alias('a')->join('cate c','a.cate_id=c.id') ->field('a.*,c.cate_name') ->order('a.id DESC'...
true
c0453fa0c1125908f7413c194193b1d664059d48
PHP
dasx10/dis2
/app/Http/Middleware/Web/EditAdmin.php
UTF-8
3,429
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware\Web; use Illuminate\Support\Facades\DB; use Closure; use Exception; use App\Http\Middleware\Web\CheckRoleTypeAccess; use App\Http\Middleware\Web\DefaultValidation; class EditAdmin { /** * @param $request * @param Closure $next ...
true
42a1251204a0d1cc56f53220934e0b8924290500
PHP
crankonline/ENV
/core/classes/DataLayer.php
UTF-8
876
3.03125
3
[]
no_license
<?php namespace Unikum\Core; use Unikum\Core\Dbms\ConnectionManager as Connections; abstract class DataLayer { protected $dbms; public function __construct($connection){ if(is_object($connection) && ($connection instanceof \PDO)){ $this->dbms = $connection; } elseif(is_...
true
a76b3c2e4a5371adfbce96040014461a2f7ffc2e
PHP
etozqf/silkroad
/apps/activity/lib/activityField.php
UTF-8
6,850
2.6875
3
[]
no_license
<?php /** * 活动字段抽象类 * * 用途: * - 后台设置视图 * - 前台表单视图 * - 入库验证 * - 前端 JS 验证 * - 生成入库数据 */ abstract class activityField { protected static $ENV = array(); protected static $instance = array(); protected static $error = null; function __get($key) { return self::$ENV[$key]; } s...
true
e9fc1f2d05e2c6c5f339f4e6e06c4d8282e41c59
PHP
freddevweb/gestion_pdv_distributeur_vin_api
/class/repos/WineRepo.php
UTF-8
927
3.015625
3
[]
no_license
<?php class WineRepo extends Repository { function getWines(){ $query = "SELECT * FROM wine"; $exec = $this->connection->query( $query ); $result = $exec->fetchAll(PDO::FETCH_ASSOC); $wines = []; foreach( $result as $value ){ $newWine = new Wine( $v...
true
510de09985cc51002ce1200ec2c37fd769e187d8
PHP
flame-cms/CMS
/FrontModule/forms/Sign/InFormFactory.php
UTF-8
1,563
2.5625
3
[]
no_license
<?php /** * InFormFactory.php * * @author Jiří Šifalda <sifalda.jiri@gmail.com> * @package Flame\CMS\FrontModule\ * * @date 01.09.12 */ namespace Flame\CMS\FrontModule\Forms\Sign; use Nette\Security as NS; class InFormFactory extends \Nette\Object { /** * @var string|null */ private $backlink; /*...
true
280bac09c9f3732484c871583a0a7d85b8dbc319
PHP
RyffProject/ryff-api
/public_html/api/get-notifications.php
UTF-8
1,264
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /** * Get Notifications * ================= * * Authentication required. * Gets notifications for the current user. * * POST variables: * "page" (optional) The page number of the results, 1-based. * "limit" (optional) The maximum number of notifications per page. Defaults to 15. * * Return on succe...
true
81bfa898a044ce5e69a74e01854ef0556d8b22e8
PHP
Eddievin/chazos
/app/Http/Controllers/TestController.php
UTF-8
1,346
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Database\Schema\Blueprint; use Illuminate\Http\Request; use Illuminate\Support\Facades\Schema; class TestController extends Controller { // public function test_database(Request $request){ $data = [ "table_name" => "blog", ...
true
eaeb65616119b4d486feef78b12d0e8e83682802
PHP
MikeWong1991/laravelapp
/app/Jobs/ProcessSpecies.php
UTF-8
1,052
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use App\Species; use Illuminate\Bus\Queueable; use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; class ProcessSpecies implements ShouldQueue { use Dispatchable, Interact...
true
aa8380b465bedcb728eb53f96f74f35160f20ab2
PHP
g-rosinski/AdminConsorcio
/src/server/api/config/db.php
UTF-8
2,370
2.96875
3
[]
no_license
<?php class DB { public $host; public $username; public $password; public $database; private $connection; public function __construct() { $this->host = "127.0.0.1"; $this->username = "root"; $this->password = ""; $this->database = "iani"; $this->getC...
true
9124e96e0c65b3c4a2919b70535c6c95d8d2e857
PHP
wani-hackase/wani-writeup
/2021/04-midnight/web-corporate/src/index.php
UTF-8
1,043
2.8125
3
[ "MIT" ]
permissive
<?php include 'class/User.php'; if (!empty($_POST)) { // serialise POST data for easy logging $loginAttempt = serialize((object)$_POST); // log access //Logger::log(Logger::SENSITIVE, 'Login attempt: ' . $loginAttempt); // Hand over to federation login // TODO currently just a mock up // TODO encrypt informa...
true
5434a531c88a1bce7e8fe7b2f85f4662e163121f
PHP
MayuriIhare/proRepo
/Admin/Assign_Class_Incharge.php
UTF-8
11,916
2.5625
3
[]
no_license
<?php session_start(); if(isset($_SESSION["staff_id"]) && isset($_SESSION["designation"]) && !empty($_SESSION["designation"]) && $_SESSION["designation"]=="HOD"){ $name=$_SESSION["staff_name"]; $designation=$_SESSION["designation"]; }elseif(isset($_SESSION["designation"]) && !empty($_SESSION["designation"]) && $...
true
188aa50cfc33213ef3f19ba39ded1ee3222d2186
PHP
george-gwu/QuestionServer
/application/models/Question.php
UTF-8
1,209
2.796875
3
[ "Apache-2.0" ]
permissive
<?php /** * Question Model * */ class Application_Model_Question extends Zend_Db_Table_Abstract { protected $_name = 'questions'; protected $_primary = 'ID'; /** * Create a question, answer must be added later * @param int $examID * @param String $text * @return ID ...
true
c7865429a73e44c947f787940808d95b73dbe777
PHP
jmhobbs/storytlr
/protected/application/admin/models/IconSets.php
UTF-8
1,687
2.578125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * Copyright 2008-2009 Laurent Eschenauer and Alard Weisscher * Copyright 2010 John Hobbs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/l...
true
acc866366dae4156f1e4ffb05bcdf65c2f04ad18
PHP
ssvStyle/HomeWork-learn-PHP-
/classes/Uploader.php
UTF-8
600
3.046875
3
[]
no_license
<?php /** * Description of Uploader * * @author ssv */ class Uploader { protected $file = []; public function __construct($file) { $this->file = $file; } public function isUploaded() { return is_uploaded_file($this->file['tmp_name']); } public function up...
true
cf8de3b5f547992583e47a734d8e3c3b409d7fa8
PHP
OhligerJ/tracking-tubers
/app/Http/Controllers/ChannelController.php
UTF-8
3,941
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Channel; use App\Models\ChannelInfo; use App\Jobs\AddChannel; class ChannelController extends Controller { public function index(Request $request) { if(isset($request->url)){ $channel = Channel::where('url',...
true
694474175e1a6e916f6e3d720fe0faf341f67271
PHP
kraterr/homeworkphp
/arrays_loops_tasks/24.php
UTF-8
321
3.484375
3
[]
no_license
<?php #№24 $number = 442158755745; $temp = 0; $count = 0; // количество совпадений $num = 4; // то число которое нужно найти while($number!=0){ $temp=$number%10; if($num == $temp){ $count++; } $number=($number-$temp)/10; } echo $count; ?>
true
f5e1ea8fe7cb94f02aaae3fb5378bd19f50dc1f5
PHP
shujuan1393/visualmassgit
/admin/webSettings.php
UTF-8
11,810
2.546875
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. */ require_once '../config/db.php'; if (isset($_POST['submit'])) { $_SESSION['title'] = $_POST['title']; $_SESSION['metad...
true
5cd3c5b24d44a2e8a8dd171b381ebb8f029f7dfe
PHP
aBillander/aBillander
/app/Http/Controllers/Chart/ChartProductStockController.php
UTF-8
7,125
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Chart; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Product; use App\Models\StockMovement; class ChartProductStockController extends Controller { // https://www.youtube.com/watch?v=HGPLf8JBDs4&t=469s // https://github.com/imranhsayed/...
true
487cc187d73737f682f336582997b9d7675c2c3a
PHP
PrydonianDigital/Conway-Hall-2
/parts/people/people-loop.php
UTF-8
1,366
2.53125
3
[]
no_license
<?php // WP_Query arguments $args = array ( 'post_type' => 'people', 'order' => 'ASC', 'orderby' => 'menu_order', ); // The Query $room_hire = new WP_Query( $args ); // The Loop if ( $room_hire->have_posts() ) { while ( $room_hire->have_posts() ) { $room_hire->the_post(); ?> <div <?php post_class('row listing');...
true
ba9fb9b86169acc76cb2b6b2796ac54dfb0a3d41
PHP
thomasanna/nursesgroup-crm
/database/seeds/StaffBandSeederWithPrice.php
UTF-8
1,316
2.84375
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Models\StaffBand; class StaffBandSeederWithPrice extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $bands = [ ['name' =>'Band 1','price'=>9], ['name' =>'Band 2','price'=>9.5], ...
true
518981d06e8fdaf5d3af69bcea3a8cb26a0113c1
PHP
BarkingCactii/TimeWeather.net
/search.php
UTF-8
4,416
2.859375
3
[]
no_license
<?php //define ( PRODUCT, 2 ); // arg 0 - all products // arg > 0 - specific product // arg -1 - no products //define ( COUNT, 0 ); // arg 0 - no limit // arg > 0 - specific count // arg -1 - no count // function GetProductName ( $whichProduct ) { mysql_select_db ( 'products' ); $query = 'SELECT * FROM products wh...
true
ae387fe971ec847dbd0f7ddc1c5029a13b335a4e
PHP
francomor/proyecto_instituto_xp
/logica/Asistencia.php
UTF-8
5,516
2.890625
3
[]
no_license
<?php require_once "../persistencia/conexionBD.php"; error_reporting(E_ALL ^ E_NOTICE); /** * Clase ALumnoxCurso * @author * @version 1.0 */ class Asistencia { /** * Constructor */ public function __construct() { } /** * Carga la asistencia para un alumnoxcurso * @author Franco ...
true
ec294dc79f1ab8290d328c526db2acfa9c40317b
PHP
mzumelzu/Insotic
/controller/class_porcentaje_franquicia.php
WINDOWS-1250
3,283
3.140625
3
[]
no_license
<?php include_once ('../model/config.php'); class PorcentajeFranquicia{ /** * * Funcin de conexin a la base de datos. */ function conectar(){ $config = new bd(); $config->conexion(); } /** * * Funcin de desconexin a la base de datos. */ function desconectar(){ mysql_close($this->conectar());...
true
478bc665440c23adbf75baf53c2aa770a62d39c6
PHP
dinofei/hyperf-jwt
/src/JwtService.php
UTF-8
2,208
2.890625
3
[]
no_license
<?php declare(strict_types=1); namespace Bjyyb\JWT; use Bjyyb\JWT\Contract\JwtInterface; use Bjyyb\JWT\Factory\ConfigurationFactory; use Psr\Container\ContainerInterface; /** * Note: jwt服务 * Author: nf * Time: 2020/11/16 17:27 */ class JwtService { /** * @var ContainerInterface */ protected $co...
true
bbb506cbf64573b0fc1c63b8f9748ef82d4bd93c
PHP
leonelyo99/restfull-codeigniter
/application/controllers/Clientes.php
UTF-8
4,384
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method"); header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE"); use Restserver...
true
3d8fa9f7843d723238d1a6161dd9f0d829f81507
PHP
Marlinc/IRCBot
/src/Application/Debug.php
UTF-8
1,176
2.953125
3
[ "BSD-2-Clause-Views" ]
permissive
<?php /** * Debugger file class * * PHP version 5 * * @category Net * @package IRCBot * @author Marlin Cremers <marlinc@mms-projects.net> * @license http://www.freebsd.org/copyright/freebsd-license.html BSD License (2 Clause) * @link https://github.com/Marlinc/IRCBot */ namespace Ircbot\Applicati...
true
fb41e5f3aec4b87fe4a6cec0a9fe08f89cb86654
PHP
migumuno/jobteep
/jobteep/Model/RAM.class.php
UTF-8
985
3.015625
3
[]
no_license
<?php include_once 'Model/Exceptions/Collections/IncorrectKeyException.exception.php'; include_once 'Model/Exceptions/Collections/InvalidKeyException.exception.php'; include_once 'Model/Exceptions/Collections/NeedKeyException.exception.php'; include_once 'Model/Collection.class.php'; class RAM { private $RAM; func...
true
6cbf58041b797208f8d72330a65badf9839013d4
PHP
mariowhite/lestroismarios
/php/sendcomment.php
UTF-8
3,200
2.625
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['user'])) header("Location: customer.php"); if (isset($_COOKIE["language"])) { if ($_COOKIE["language"] == "fr") include("fr.php"); else include("en.php"); } else include("en.php"); include 'database.php'; include 'url.php'; include 'emails.php'; ...
true
d58fdd9763bf5625cde503cbd0886dffbdc31d24
PHP
FedorNosikov/sites
/mysite/test.php
UTF-8
303
2.875
3
[]
no_license
<!doctype html> <html> <head> <meta charset="utf-8"> <title>передача переменной</title> </head> <body> <?php $a = $_GET['a']; $b = $_GET['b']; $c=$a+$b; echo "</br>$c"; echo "</br><a href='test.php?a=10&b=5'>a=20 & b = 5</a>"; //echo $_GET['$a']; ?> </body> </html>
true
e7504f07679ec3808ac94934b7c788fa3b79fbb9
PHP
trakos/fbpviewer
/src/Migrations/Version20220305113246.php
UTF-8
2,154
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Migrations; use Doctrine\DBAL\Platforms\AbstractMySQLPlatform; use Doctrine\DBAL\Platforms\OraclePlatform; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; use Doctrine\Migrations\Exception\AbortMigration; final class Version20220305113246 exte...
true
b8659116619659e3161f67959c3b5286343a5d1f
PHP
lonmarsDev/ohw-laravel-vuejs
/app/Http/Middleware/Check2fAuthentication.php
UTF-8
860
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Auth\AuthenticationException; class Check2fAuthentication { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed * @throws AuthenticationException ...
true
cbac8e3cbbbe2a41e53ec0d4ac4c033cf9be13eb
PHP
runjak/TranscriptionDesk
/src/omeka/item.php
UTF-8
10,865
2.796875
3
[ "MIT" ]
permissive
<?php require_once 'displayInfo.php'; require_once 'file.php'; /** Describes an Omeka item as returned by http://<host>/api/items/6?key=…&pretty_print */ class OmekaItem extends OmekaDisplayInfo { /** Attribute for memoization of getCollection(). */ private $collection = null; /** @return $c...
true
2e23153f2debdb32d5c86ba81292b63aa52b3989
PHP
dsentker/url-signature-bundle
/Shift/UrlSignatureBundle/Utils/RequestValidator.php
UTF-8
1,654
2.75
3
[ "MIT" ]
permissive
<?php namespace Shift\UrlSignatureBundle\Utils; use RuntimeException; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use UrlSignature\Exception\SignatureExpiredException; use UrlSignature\Exception\SignatureInvalidException; use UrlSignature\Exception\SignatureNotFoun...
true
e4b75da4ef35b4ef5a748d198d1cec135afa4cac
PHP
concrete5japan/concrete5_japanese_book
/concrete5/concrete/models/page.php
UTF-8
2,561
2.625
3
[ "MIT" ]
permissive
<?php defined('C5_EXECUTE') or die("Access Denied."); class Page extends Concrete5_Model_Page { //URLエンコード対応 function getCollectionPath() { return $this->getEncodePath($this->cPath); } public static function getCollectionPathFromID($cID) { $db = Loader::db(); $path = $db->GetOne("select cPath from P...
true
a27bd204b50b1153bf0e573124bf558ece00c678
PHP
DariusMiclea/theBraveHero
/iBattle.php
UTF-8
209
2.828125
3
[]
no_license
<?php namespace theBraveHero; interface iBattle { public function getMaxTurns(); public function getFirstAttacker(); public function heroAttack(); public function beastAttack(); } ?>
true
2ff0d7f313fc55b90536dc0aa02ea568b71f0683
PHP
gustavoosantoos/LearningPHP
/atribuicoes.php
UTF-8
602
3.46875
3
[]
no_license
<html lang="pt-br"> <head> <meta charset="UTF-8"> <title>Primeiro exemplo PHP</title> </head> <body> <div> <h1>Aprendendo PHP - Atribuções</h1> <?php $a = 1; $b = 3; $c = $a + $b; $c += 5; $c /= 3; $c *= 1; $c -= 0; $c %= 2; $c++; ...
true
84e1d5cc6a4fec80c400a78677d61f7312a35221
PHP
jamc0/AcmeLaravel
/app/Models/Categoria.php
UTF-8
904
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Categoria extends Model { // protected $table = 'categorias'; public $primarykey = 'id'; public static function GuardarCategoria($data) { $categoria = new Categoria(); $categoria->nombre_categoria = $data['nomb...
true
2d4f6d591d69fba95d4b0b0c3c2dca557396048f
PHP
mBoegvald/webDev
/david-momondo-v1/login.php
UTF-8
1,429
2.734375
3
[ "MIT" ]
permissive
<?php if(isset($_POST['txtEmail']) && isset($_POST['txtPassword'])) { // Connect to the database $sAdminCorrectEmail = 'a@a.com'; $sAdminCorrectPassword = '12345'; $sAdminEmail = $_POST['txtEmail']; $sAdminPassword = $_POST['txtPassword']; if( $sAdminCorrectEmail == $sAdmin...
true
29a7df1cd205ab519216b69f2024fe22c5136a45
PHP
stanzani/laravel-box
/src/LaravelBox/Factories/ApiResponseFactory.php
UTF-8
6,009
2.5625
3
[ "MIT" ]
permissive
<?php namespace LaravelBox\Factories; use LaravelBox\ApiResponse; use GuzzleHttp\Exception\ServerException; use GuzzleHttp\Exception\ClientException; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Exception\TransferException; class ApiResponseFactory { public static function build() { if (...
true
e020f3ee1195ecb95558efd275a9a7262b94bcb9
PHP
Stefaminator/php-cli-cmd
/examples/cli-app-options.php
UTF-8
3,191
2.921875
3
[ "MIT" ]
permissive
#!/usr/bin/php <?php require __DIR__ . '/../vendor/autoload.php'; use Stefaminator\Cli\App; use Stefaminator\Cli\Cmd; use Stefaminator\Cli\Color; (new class extends App { public function setup(): Cmd { return (new class extends Cmd { public function init(): void { $this ...
true
4c660b58257bd75578ef4a3b7d53822b05d70d1c
PHP
yufei6461083/test_item
/Loader.php
UTF-8
778
2.84375
3
[]
no_license
<?php class Loader{ //映射路径 private static $vendorMap = [ 'App'=>__DIR__, ]; //自动加载 public static function autoload($class) { $file = self::findFile($class); if(file_exists($file)){ self::includeFile($file); } } //解析路径 public static function findFile($class) { $vendor = sub...
true
0c1d2a3c04b367f1fb03dc881328307672afe5f6
PHP
slavizdravkov/PHP-Fundamentals
/08.Form Submission Handling/05.CV Generator/CV.php
UTF-8
2,869
2.578125
3
[]
no_license
<?php if (!isset($personalInformation) || !isset($lastWorkPosition) || !isset($formData)): ?> <?php header("Location: BackEnd.php"); ?> <?php exit; ?> <?php endif; ?> <div> <table border="1px" cellpadding="3px" cellspacing="1px"> <tr> <th colspan="2">Personal Information</th> </...
true
79ba1164e7b73b274ac08ddff33cd5214cb322a3
PHP
hank789/carLBS
/app/Services/NumberUuid.php
UTF-8
2,124
2.84375
3
[]
no_license
<?php namespace App\Services; use Illuminate\Support\Facades\Redis; /** * Created by PhpStorm. * User: wanghui * Date: 15/9/29 * Time: 下午3:50 */ class NumberUuid { protected static $instance = null; /** * @var \Redis */ protected $client; public function __construct($client) { ...
true
cb221cd6cb0a1284373fd5b24991cc923869ee2f
PHP
chiragjain94/ShoppingCart
/classes/Product.php
UTF-8
1,891
3.25
3
[]
no_license
<?php require_once "Database.php"; class Product { private $database; public function __construct() { $this->database = Database::initializeDatabase(); } public function addProduct($name, $description, $category, $price, $image, $imageText) { $sql = 'INSERT INTO products(name, description, catego...
true
d1aa8fadcd7639757a628ecd4b8bf1970260bcb6
PHP
ncou/framework-roadrunner
/src/Leevel/Support/functions.php
UTF-8
3,386
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the ************************ package. * _____________ _______________ * ______/ \__ _____ ____ ______ / /_ _________ * ____/ __ / / / / _ \/ __`\/ / __ \/ __ \/ __ \___ * __/ / / / /_/ / __/ / \ / /_/ / / / / ...
true
00648003be6a372280ceafbe8ce3edf68beec1c4
PHP
sysamir/tendir
/app/Models/Category.php
UTF-8
1,564
2.65625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * App\Models\Category * * @property integer $id * @property \App\Models\Category $parent * @property string $name * @property string $icon * @property boolean $in_order * @property \Carbon\Carbon $created_at * @property \Carbon\Carbon $...
true
3ac8a37fdb721cf23e8f6028364b0d57f20711bd
PHP
gitter-badger/Pinq
/Source/Expressions/Operators/Unary.php
UTF-8
442
2.890625
3
[ "MIT" ]
permissive
<?php namespace Pinq\Expressions\Operators; /** * The enum containing PHP unary operators * * @author Elliot Levin <elliotlevin@hotmail.com> */ final class Unary { //Arithmetic const PLUS = '+%s'; const NEGATION = '-%s'; const INCREMENT = '%s++'; const DECREMENT = '%s--'; cons...
true
e810516639533d7a184d0077667189a7621abd67
PHP
Skeeve/InfoLeak-Scanner
/02_view/view.php
UTF-8
13,414
2.65625
3
[]
no_license
<?php /* * Automatic Detection of Information Leakage Vulnerabilities in * Web Applications. * * Copyright (C) 2015-2016 Yakup Ates <Yakup.Ates@rub.de> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * t...
true
39b8a2fecb780caecc3d775ab7b0116eb8d5f79f
PHP
VirPong/human-pong
/WebUI/site/http/playerhistory.php
UTF-8
4,219
3.078125
3
[]
no_license
<?php /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * AUTHORS: Katie Mueller, Garrett Dieckmann * DATE: 12/10/2011 * * playerhistory.php allows users to look up specific players and view information * about their past matches. If it receives no "user" variable i...
true
93d2e8d47a80164867efdcec64cc5b04e978533f
PHP
michaeltsui98/df
/Controllers/Admin/User.php
UTF-8
3,925
2.546875
3
[]
no_license
<?php /** * @var 用户管理 * @author michael * */ class Controllers_Admin_User extends Controllers_Admin_Base { function __construct () { parent::__construct(); } /** * 教程节点列表 */ function indexAction () { $this->display('admin/User/index')...
true
25ed1a8eeda1b7172e7d4c6404abca688bf278b7
PHP
next-dimension-team/3duml
/app/JsonApi/InteractionFragments/Schema.php
UTF-8
1,917
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace App\JsonApi\InteractionFragments; use App\Models\InteractionFragment; use CloudCreativity\LaravelJsonApi\Schema\EloquentSchema; class Schema extends EloquentSchema { /** * @var string */ const RESOURCE_TYPE = 'interaction-fragments'; /** * @var array */ protected ...
true
b4f66de009711fb24d2bd6a9326dfdceca933183
PHP
abdiiwan1841/PICO_SULTENG_WEB
/app/Transformers/StatisticTransformer.php
UTF-8
11,983
2.734375
3
[]
no_license
<?php namespace App\Transformers; use App\Models\District; use App\Models\Statistic; use Illuminate\Support\Facades\Lang; use League\Fractal\TransformerAbstract; class StatisticTransformer extends TransformerAbstract { /** * List of resources to automatically include * * @var array */ pro...
true
73042ff8e6e7474caa50c1b75d0180aa638e63c0
PHP
SarathKumar-Sivakumar/Googleappengine2
/upload.php
UTF-8
3,619
2.546875
3
[]
no_license
<?php ob_start(); error_reporting(0); session_start(); echo "Welcome ".$_SESSION['sess_user']; $user = $_SESSION['sess_user']; require_once 'google/appengine/api/cloud_storage/CloudStorageTools.php'; use google\appengine\api\cloud_storage\CloudStorageTools; $options = [ 'gs_bucket_name' ...
true
3103534dd2073404c4f8c257d45e83ea3b1e62c9
PHP
bjnb/otemisa
/application/core/BASE_Controller.php
UTF-8
7,264
2.71875
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); define("DS", DIRECTORY_SEPARATOR); require_once APPPATH."libraries".DS."LibraryFactory.php"; require_once APPPATH."libraries".DS."ModelFactory.php"; // require_once APPPATH."libraries".DS."CacheFactory.php"; session_start(); class BASE_Controlle...
true
4d6d6762b962aa0c7a4570aad0f74621859e8d0d
PHP
ifts12/trabajofinal
/templates/_msg.html.php
UTF-8
680
2.515625
3
[]
no_license
<div class="container"> <?php if(array_key_exists('msg', $_SESSION) && isset($_SESSION['msg']) && !empty($_SESSION['msg'])) { $msg = json_decode($_SESSION['msg']); ?> <div class="my-3 alert alert-<?php echo $msg->tipo ?> alert-dismissible fade show" role="alert"> <strong> <?php if(is_array($msg->msg)) { echo ...
true
80f7b4a8583d5d0ba81885653233aabe6d8ad1c0
PHP
thonvph11059/asmduanmaucop
/footwear/admin/pro_edit.php
UTF-8
2,960
2.609375
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php require_once '../permission.php'; require_once '../public/dbconnection.php'; $id = $_GET['id']; $sql = "select * from products where id = $id"; $stmt = $conn->prepare($sql); $stmt->execute(); $pro = $stmt->fetch(PDO::FETCH_ASSOC); $sql = "select * from categories"; $stmt = $conn->prepare($sql); $stmt->execute();...
true
b9afffe453aafccc507e50b6373fde27e061febd
PHP
aztec212/desing-patterns
/command/Devices/Stereo.php
UTF-8
652
3.296875
3
[]
no_license
<?php namespace Command\Devices; class Stereo { protected int $volume; public function on(): void { echo "Stereo on" . PHP_EOL; } public function off(): void { echo "Stereo off" . PHP_EOL; } public function setCD(): void { echo "Stereo set cd" . PHP_EOL; ...
true
3ac117cd6e5c2db697c1135a81db8cc171d47e93
PHP
DanielD1988/Web-Employee-App
/deleteEmployee.php
UTF-8
505
2.65625
3
[]
no_license
<?php /* Student Name: Daniel Dinelli Student Number: C00242741 Purpose: Sets delete flag to 1 and returns to delete form Date: 16th March 2020 */ include 'db.inc.php'; //database connection //update employee delete flag $sql = "UPDATE EmployeeApp SET DeleteFlag = 1 WHERE employeeId = '$_POST[id]...
true
dc5dc74dbb5ee50fc809aa92acbf9f35bd6c3ef6
PHP
stevewood593/russ_goldman
/vendor/phlint/phlint/test/standard/ConditionalGuaranteeTest.php
UTF-8
13,673
2.65625
3
[ "MIT" ]
permissive
<?php use \phlint\Test as PhlintTest; class ConditionalGuaranteeTest { /** * Test condition guarantees. * * @test @internal */ static function unittest_conditionGuarantees () { PhlintTest::assertNoIssues(' function f () { if (isset($a)) $b = $a; } '); Phlin...
true
b7d654538aad01c8839bc31a31be7421fe3041ef
PHP
hissy/addon_rest_wordpress
/packages/rest_wordpress/controllers/archives.php
UTF-8
608
2.5625
3
[]
no_license
<?php defined('C5_EXECUTE') or die("Access Denied."); class ArchivesController extends Controller { public function view($post_id = 0) { $co = new Config(); $co->setPackageObject(Package::getByHandle('rest_wordpress')); $wp_rest_api_url = $co->get('WP_REST_API_URL'); $fh = Loader::helper('file'); $res ...
true
5554ba2f8aa68a628073fccbe603e9366f61ee47
PHP
jessekdg/web-backend-oplossingen
/OPL_Functions/functions.php
UTF-8
1,083
4
4
[]
no_license
<?php $input1 = 3; $input2 = 8; $inputString = "PHP is zo goed als Chinees voor mij."; $stringUpper = ""; $stringLength = null; $resultaatString = array(); function BerekenS($getal1, $getal2) { return $getal1 + $getal2; } function Vermenigvuldig($getal1, $getal2) { return $getal1 * $getal2; } func...
true
c70d3f5b8d9ce10faf17a08e76cc83e4f389fb4d
PHP
lucas54neves/aplicacao-web-nescau
/src/controller/logar_usuario.php
UTF-8
611
2.71875
3
[]
no_license
<?php include_once('../persistence/connection.php'); include_once('../persistence/usuarioDAO.php'); // Pega os dados do formulario $login = isset($_POST['login']) ? $_POST['login'] : ''; $senha = null !== (make_hash($_POST['senha'])) ? make_hash($_POST['senha']) : ''; // Valida dados vazios ...
true
61eff4657ff96f426a1a0511d170b6d546ff24da
PHP
BIMSYS/BIMSYS-V1
/app/Http/Controllers/HomeController.php
UTF-8
2,574
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\User; use App\Models\Lesson; use App\Models\Module; use App\Models\Student; use App\Models\Teacher; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Auth; class HomeController extends Controller { /** * Show the application dashboard. * ...
true
fbbac57955292b5f1ae9d4c6a78e4e6d30f1ee79
PHP
courier-php/courier
/src/Serializers/PhpSerializer.php
UTF-8
1,045
2.859375
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Courier\Serializers; use Courier\Contracts\Messages\MessageInterface; use Courier\Contracts\Serializers\SerializerInterface; use InvalidArgumentException; class PhpSerializer implements SerializerInterface { public function getContentType(): string { return 'applicati...
true
009f8164b36ac5966a63fd2a13fc7da276e90102
PHP
Ezeevidence/hngi7-task2
/scripts/Greg.php
UTF-8
208
2.5625
3
[]
no_license
<?php $email= "gregoflash05@gmail.com"; $name = "Nwokoye Chigozie"; $id = "HNG-02811"; $programming_language = "PHP"; echo "Hello World, this is $name with HNGi7 ID $id using $programming_language for stage 2 task email $email"; ?>
true
e1d4edf6810fe78af1759048370b302ee1f36fa0
PHP
karanbir-singh/prenotazioni
/login/login.php
UTF-8
1,174
2.96875
3
[]
no_license
<?php include_once "../config.php"; // Variabili valorizzate tramite POST $username = $_POST['username']; $password = $_POST['password']; // Controllo $sql = "SELECT username,password FROM utenti WHERE username = :username"; $stmt = $pdo->prepare($sql); $stmt->execute(['username' => $username]); $result = $stmt->fetc...
true
f09147c94aae8a9850477218e61783b915494efc
PHP
anvkos/video-mover-api
/database/migrations/2018_09_03_033312_create_operations_table.php
UTF-8
1,496
2.53125
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateOperationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('storage_oper...
true
aedae063303e5493c2285ad68c2ddd5066d340ce
PHP
azrak/alumn-manager
/app/view/View.php
UTF-8
608
2.9375
3
[]
no_license
<?php class View { private static $data; function __construct() { } public static function setData($data) { self::$data = $data; } public static function delData() { self::$data = NULL; } public static function showTemplate($tplFile) { if (file_exi...
true
5db4653e470ee460c21d26c8843d927ba4fb4eb7
PHP
myuserHQ/myuserpay-php
/MyUserPay/app/classes/Helpers/ResponseObject.php
UTF-8
1,206
2.875
3
[ "MIT" ]
permissive
<?php namespace MyUser; use \ArrayAccess; class ResponseObject implements ArrayAccess { public function __construct() { // if ($json) $this->set(json_decode($json, true)); } public function set($data) { if(!is_array($data)){ if(is_string($data)){ $data=json_decode($data, true)...
true
ced15eb691fa8dd2238f639ce4b3ae720a6a387d
PHP
MontejoJorge/summoner
/models/Error.php
UTF-8
635
3.328125
3
[ "MIT" ]
permissive
<?php namespace Models; class Error { private $errorIcon; private $errorDesc; public function __construct(){} /** * Get the value of errorIcon */ public function getErrorIcon() { return $this->errorIcon; } /** * Get the value of errorDesc */ public ...
true
140976777fe8bc7f21c7ba26afff772fa8e80036
PHP
codingisthinking-official/realestate-headless-cms
/src/AppBundle/Services/TaxonomyImageManager.php
UTF-8
1,187
2.5625
3
[]
no_license
<?php namespace AppBundle\Services; use AppBundle\Entity\TaxonomyImage; use AppBundle\Entity\TaxonomyItem; use Doctrine\ORM\EntityRepository; use Symfony\Component\HttpFoundation\File\UploadedFile; class TaxonomyImageManager { protected $taxonomyImageRepository; public function __construct(EntityRepository ...
true
0720db57afa5db203e96cd55011cc3b364b14fb9
PHP
karuppachamy/hangman
/src/app/Model/PersistenceService.php
UTF-8
887
3.234375
3
[]
no_license
<?php namespace Model; class PersistenceService { private $entityManager; public function __construct($entityManager) { $this->entityManager = $entityManager; } /** * Save the given object into database. * * @param $object */ public function save($object) {...
true
8cefd115bd65c9f7e0928ffa97d1a13756f1b099
PHP
desarrolla2/katas
/the-house-that-jack-built/src/ReverseEchoHouseThatJackBuilt.php
UTF-8
464
3.109375
3
[]
no_license
<?php namespace Kata; class ReverseEchoHouseThatJackBuilt extends TheHouseThatJackBuilt { /** * @param string $verse * @param string $string * @return string */ protected function buildString(string $verse, string $string): string { return $this->buildEchoString($verse, $string...
true
19130353be64fb3a1922f576590b219f431f30cd
PHP
thehyam/cv-api
/cv_api/api/delete_edu.php
UTF-8
1,070
2.71875
3
[]
no_license
<?php // Headers header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json'); include_once '../config/Database.php'; include_once '../classes/Edu.php'; include_once '../classes/Admin.php'; // Instantiate DB and connect $database = new Database(); $db = $database->connect(); //New ins...
true
baf63db44b02e938c50ad5ded2546b494af59f39
PHP
dayax/opengraph
/src/dayax/opengraph/type/VisualMedia.php
UTF-8
1,528
2.921875
3
[]
no_license
<?php /* * This file is part of the dayax project. * * (c) Anthonius Munthi <toni.munthi@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace dayax\opengraph\type; use dayax\opengraph\type\Media; /** * Descript...
true