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
dbf084e1cc905da7a9df1fc7546852d860b40134
PHP
yotsaphonSutweha/Tasteez
/tests/unit/LikeTest.php
UTF-8
3,901
2.921875
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; class LikeTest extends TestCase { private $DB_HOST="db4free.net"; private $DB_USER="nciscript_test"; private $DB_PASS="letmein123"; private $DB_NAME="recipes_test"; private $conn; private $testUser; private $id = 0; public function setUp() { ...
true
1aa24a4cc6b5f4b9b2bb7296a81b2b3046a102bc
PHP
maximebourdel/carPool-api
/tests/MainBundle/Service/BoardNormalizerTest.php
UTF-8
1,759
2.546875
3
[]
no_license
<?php // tests/MainBundle/Service/MailControllerTest.php namespace Tests\MainBundle\Service; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\Serializer\Encoder\JsonEncoder; use MainBundle\Service\BoardNormalizer; use Symfony\Component\Serializer\Serializer; use MainBundle\Entity\Reservati...
true
6a9580395d99221de2d2f5571dae027d0498d82b
PHP
Muhammad-GH/Real-Estate-backend
/app/Http/Controllers/Backend/Globals/GlobalController.php
UTF-8
2,581
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Backend\Globals; // use App\Repositories\Backend\GlobalRepository; use App\Http\Controllers\Controller; use App\Models\Languages; use App\Models\FrontendTextLanguage; use App\Models\FrontendText; use Illuminate\Http\Request; use App\Models\Globals; use Illuminate\Support\Facades...
true
e51369073d9e0c285f289a1c0149e3c58f8f6665
PHP
alucardthefish/OldPCRepo
/www/Enecimavez/vendor/codeception/codeception/tests/data/SimpleCest.php
UTF-8
371
2.71875
3
[ "MIT" ]
permissive
<?php class SimpleCest { public $class = 'DummyClass'; public function helloWorld(\CodeGuy $I) { $I->executeTestedMethodOn(new $this->class) ->seeResultEquals('hello world'); } public function goodByeWorld(\CodeGuy $I) { $I->executeTestedMethodOn(new $this->class) ...
true
34f01f70df4695b622a24180aa7a948018a12cf0
PHP
DevHiuryLima/Programacao-para-web-I
/aula07/Ex21/biblioteca.php
UTF-8
1,053
3.59375
4
[ "MIT" ]
permissive
<?php //Função 1 function parImpar ($valor){ if($valor%2==0){ return "Este numero é par.<br/>"; } else{ return "Este numero é impar.<br/>"; } } //Função 2 function maiorMenor($num, $num2){ if($num <= $num2){ echo "Este número é maior $num2.<br/>"; } else{ echo "Este número é maior $n...
true
606dfc0f4f6446a1b1f244f097801c2c905a3546
PHP
DanB91/USU-BUGCATCHER
/Models/Bug.php
UTF-8
825
3.03125
3
[]
no_license
<?php require_once 'Model.php'; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Represents a single Bug. You should not have to instatiate the bug directly. * Please use the static methods or methods of other models to get a team object. * * Read the Mode...
true
0721feb2f03f6b63622ab4ccc798fb84a24abf74
PHP
macghriogair/rambutan-gallery
/app/CQRS/Driver/Dbal.php
UTF-8
2,211
2.578125
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php /** * @date 2018-01-12 * @file Dbal.php * @author Patrick Mac Gregor <macgregor.porta@gmail.com> */ namespace App\CQRS\Driver; use Broadway\EventStore\Dbal\DBALEventStore; use Doctrine\DBAL\Configuration; use Doctrine\DBAL\DriverManager; class Dbal /*implements Driver*/ { /** * @var \Illum...
true
98e0fb09e5e2f43e00a0c8048215ecbc07860062
PHP
Malekz/portfolio
/contact/send_mail.php
UTF-8
1,603
2.984375
3
[]
no_license
<?php // Replace with your email $mail_to = 'your_email@your_domain.com'; if (isset($_POST['name']) && isset($_POST['email']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) && isset($_POST['subject']) && isset($_POST['message'])) { // Collect POST data from form $name = $_POST['name']; $email = $_...
true
c4d506d702cab2d3ad5646f4062dedc01873d8d5
PHP
Josman1511/start_session
/controllers/start_session.php
UTF-8
1,046
2.875
3
[]
no_license
<?php require "../models/Connection.php"; session_start(); $_SESSION['msj'] = null; var_dump($_SESSION); if (isset($_POST['name']) && isset($_POST['password'])) { $connection = new Connection(); $currentUser = $connection->getUser($_POST['name']); if (empty($currentUser)) { $_SESSION['msj'] = "Su u...
true
298d2050fe99d9fe44b0113b866c6a9f52d85ced
PHP
DustinH93/JSON-to-PHP-Decoder-for-Facebook-Graph-API-Data
/decoded-feed.php
UTF-8
3,840
2.5625
3
[]
no_license
<!DOCTYPE HTML> <html> <head> <title>Facebook Feed Decoder</title> <!-- Author: Dustin Hesse Version: 1.0.0 --> <meta charset="utf-8"> </head> <body> <?php echo '<h1> Facebook Feed Decoder</h1>'; $jsonfb = $_POST["text"]; $jsonfb = p...
true
b0e81117747c3f1e07e9034de5700314e3e2d510
PHP
geeksilva97/construtor-de-site
/app/view/site/container.view.php
UTF-8
2,150
2.53125
3
[]
no_license
<?php //startando a conexão com o banco de dados $conn = Conn::get(); $file_import = 'config/import.json'; // READ config/import.json $standard_css = array(); $standard_js = array(); if(file_exists($file_import)){ $import = json_decode(file_get_contents($file_import)); if(isset($import->css)){ $standar...
true
7319b3a523eb909d9e6a0886e66269a1e967245e
PHP
juanen-campusfp/ProyectoDAM
/juanen/Día 1/ejercicio02/ejercicio16.php
UTF-8
1,293
3.46875
3
[]
no_license
<?php include('./../tools/mis_funciones.php'); /*Ejercicio 16 Haga un programa que genere números enteros aleatorios comprendidos entre -1 y +100. El programa debe estar embuclado y debe generar números, que deben ser guardados uno a uno en un array. El bucle debe dejar de producir número a guardar cu...
true
7ec2fe2f07cbec9eea31372d6c9f1a30128939ea
PHP
AtanorPHP/atanor-http
/src/Atanor/Http/Uri/Url/UrlSegment.php
UTF-8
1,365
3.03125
3
[]
no_license
<?php declare(strict_types = 1); namespace Atanor\Http\Uri\Url; use Atanor\Http\Uri\DefaultParameterList; use Atanor\Http\Uri\MutableStringObject; use Atanor\Http\Uri\StringObject; class UrlSegment implements StringObject, MutableStringObject { /** * @var string */ protected $name; /** * @...
true
a19d45956d58328fdd7841337efa7de480df576a
PHP
Kawakami-Takeshi/practice-No13
/kadai13_4.php
UTF-8
291
3.78125
4
[]
no_license
<?php function max_array($arr){ // とりあえず配列の最初の要素を一番大きい値とする $max_number = $arr[0]; foreach($arr as $a){ if($max_number<$a){ $max_number=$a; } } return $max_number; } $x=array(9,5,6,25,12); echo max_array($x);
true
1a8afa2653ea4bad14710d540c8455d6f57edbd3
PHP
liangguohuan/vim-php-snippets
/tools/getsnippets.php
UTF-8
1,159
2.671875
3
[]
no_license
<?php include 'Snippet.class.php'; define('DIR_SRC', sprintf('%s/.vim/bundle/vim-php-manual/manual/doc/', getenv('HOME'))); $filename_rules = './ignore_rules.txt'; $filename_snippets = '../snippets/php.snippets'; // unlink file unlink($filename_snippets); // get ruls to array $str_rules = file_get_contents($filena...
true
4b5b7417c36dfb24e313d903b76f46f047d80bf1
PHP
DABSquared/DABSquaredPushNotificationsBundle
/Event/AppEventEvent.php
UTF-8
862
2.5625
3
[ "MIT" ]
permissive
<?php namespace DABSquared\PushNotificationsBundle\Event; use DABSquared\PushNotificationsBundle\Model\AppEventInterface; use Symfony\Component\EventDispatcher\Event; /** * Created by JetBrains PhpStorm. * User: daniel_brooks * Date: 2/1/13 * Time: 3:26 PM * To change this template use File | Settings | File Te...
true
3bb763d0e51c26d4724925d4d76b3a3b244136f7
PHP
PiotrKrosniak/vcm-payment
/database/test/2018_06_05_095229_create_pay_records_table.php
UTF-8
771
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePayRecordsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pay_records'...
true
42d4411fcc715256b27e456e77f9280d17ab4bce
PHP
arman77262/blog1
/admin/edit_catagory.php
UTF-8
3,298
2.671875
3
[ "MIT" ]
permissive
<?php require_once 'header.php'; if (!isset($_GET['catid']) || $_GET['catid'] == NULL){ echo "<script>window.location='manage_category.php'</script>"; }else{ $id = $_GET['catid']; } if (isset($_POST['edit_cat'])){ $cat = $_POST['cat']; if (empty($cat)){ $cat_error = "Category Fild Must Not Be Em...
true
0ff2298bc6f4b47159de125db94aaf28d767bd54
PHP
DNXLabs/php-s3
/src/CopyItem.php
UTF-8
1,163
2.875
3
[]
no_license
<?php namespace DNX\S3; class CopyItem extends Client { /** * Create a new controller instance. * * @return void */ public function __construct(string $region, $provider = null) { parent::__construct($region, $provider); } /** * @param string $sourceBucket Name of...
true
6d3872c4f066bdfc5d9c4eb24bb567a5f8d0e3df
PHP
AliaaSamir/php-intern-tasks
/internTasks/registeration & login/login.php
UTF-8
1,546
2.90625
3
[]
no_license
<?php require 'src\User.php'; //start session session_start(); if($_SERVER['REQUEST_METHOD'] == 'POST'){ $user = new User(); $result = $user->getUser($_POST['email']); //var_dump( $result); if( $result && password_verify($_POST['password'], $result['user_pass'])){ //var_dump( $result); //echo p...
true
ed8097521c7b006cc86f9b83116bde1041ec302c
PHP
xelax90/skeleton-module
/src/SkelletonApplication/Entity/Translation.php
UTF-8
3,000
2.5625
3
[]
no_license
<?php /* * Copyright (C) 2015 schurix * * 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. * * This program is dis...
true
c5522b928cef0420a70c56a124ddbc11cedfdb67
PHP
ghostong/LitEasyKV
/src/mappers/SelectMapper.php
UTF-8
1,642
2.65625
3
[]
no_license
<?php namespace Lit\EasyKv\mappers; use Lit\EasyKv\constants\ErrorMsg; use Lit\EasyKv\constants\SelectConst; use Lit\Parameter\V2\Parameter; use Lit\Parameter\V2\Types\Types; /** * @property Types $topic 主题 * @property Types $key 键 * @property Types $order_scene 排序方式 * @property Types $pageNum 页码 * @property Ty...
true
8e29a5eebe1649e441d52a33484ecb25e8351f8c
PHP
domstor-project/kww-domstorlib
/vendor/Ds/Detail/AbstractDetail.php
UTF-8
2,711
2.90625
3
[]
no_license
<?php /** * Description of AbstractDetail * * @author pahhan */ abstract class Ds_Detail_AbstractDetail implements Ds_Detail_DetailInterface { /** * @var Ds_Detail_DetailData */ protected $data; /** * Template engine * @var Spv_Templating_TemplatingInterface */ private $te...
true
5dd4a52569d46dc940767b9b589f625cc9bcd2d5
PHP
vishnu-simb/FGV
/protected/controllers/backend/SiteController.php
UTF-8
2,544
2.59375
3
[]
no_license
<?php /** * Author: trac.nguyen (npbtrac@yahoo.com) * Date: 6/18/14 * Time: 2:47 PM * * controller for common actions */ class SiteController extends SimbController { /** * @return array action filters */ public function filters() { return array( 'accessControl', // perf...
true
22a5a9f9f502614c76694313c18d5e8556fed81b
PHP
timmow/slotmachine
/tests/SlotMachine/ReelTest.php
UTF-8
1,607
2.921875
3
[]
no_license
<?php namespace SlotMachine; class ReelTest extends \PHPUnit_Framework_TestCase { protected static $cards = array( 0 => "Those who mind don't matter, and those who matter don't mind", 1 => "Always forgive your enemies, nothing annoys them so much" ); protected static $reel; public fu...
true
d84550f2d7c063ee5d263cd660753c16e58864a4
PHP
CarlosWGama/jindie
/system/core/Log.php
UTF-8
1,779
2.921875
3
[]
no_license
<?php /** * JIndie * @package JIndie * @category core * @author Carlos W. Gama <carloswgama@gmail.com> * @copyright Copyright (c) 2015 * @license http://opensource.org/licenses/gpl-3.0.html GNU Public License * @version 1.0 */ final class Log { /** * Level 1 = Erros * Level 2 = Debug * L...
true
890a8967198e440ac1107af7a9b0e7b98d436fe3
PHP
giandou/P2C
/codice/test/fattoriale.php
UTF-8
169
4.28125
4
[]
no_license
<?php function fattoriale($n){ $a = $n; $m = $n; for($m=$n;$m>2;$m--){ $a = $a * ($m-1); } echo "Il fattoriale di $n è $a\n"; } fattoriale(5);
true
857ae89b006a0fafe8ca074808127b167a7db34b
PHP
cacio/prod-geranota
/inc/class.Centro.php
UTF-8
732
2.984375
3
[]
no_license
<?php class Centro{ private $codigo; private $nome; private $entrada; private $saida; public function Centro(){ //nada } public function getCodigo(){ return $this->codigo; } public function setCodigo($codigo){ $this->codigo = $codigo; } public funct...
true
ce18d69bdd5e8e6d8d2c4dab4297a8146dfcefc5
PHP
astina/AstinaDeadlinkBundle
/Event/LoggingListener.php
UTF-8
947
2.828125
3
[]
no_license
<?php namespace Astina\Bundle\DeadlinkBundle\Event; use Astina\Bundle\DeadlinkBundle\Link\Link; use Psr\Log\LoggerInterface; class LoggingListener { /** * @var LoggerInterface */ private $logger; private $level; function __construct(LoggerInterface $logger, $level = 'critical') { ...
true
1e08f1001cecf15de080aa0f145aaf898f0735ad
PHP
codenitive/laravel-hybrid
/tests/memory.test.php
UTF-8
3,452
2.578125
3
[ "MIT" ]
permissive
<?php namespace Hybrid\Tests; \Bundle::start('hybrid'); class MemoryTest extends \PHPUnit_Framework_TestCase { /** * Setup the test environment. */ public function setUp() { $mock = \Hybrid\Memory::make('runtime.mock'); $mock->put('foo.bar', 'hello world'); $mock->put('username', 'laravel'); $moc...
true
f8ac6225a34a432491a5c502ecc8bc0c8ea51907
PHP
Claret15/cmon-ninjas
/app/Models/Guild.php
UTF-8
1,755
2.703125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Guild extends Model { protected $table = 'guilds'; public $primaryKey = 'id'; protected $fillable = ['name']; /** * Remove default timestamps from model * @var array */ public $timestamps = false; pub...
true
4011a3a6c0679836512c894335daa30d38edc752
PHP
phpactor/phpactor
/lib/Indexer/Model/Query/Criteria/ShortNameContains.php
UTF-8
522
2.75
3
[ "MIT" ]
permissive
<?php namespace Phpactor\Indexer\Model\Query\Criteria; use Phpactor\Indexer\Model\Query\Criteria; use Phpactor\Indexer\Model\Record; use Phpactor\Indexer\Model\Record\HasShortName; class ShortNameContains extends Criteria { public function __construct(private string $substr) { } public function isSa...
true
1efc1ffa684e0be3cb13a8ed54473fd0108a4fe1
PHP
marija1907/news
/welcome.php
UTF-8
2,648
2.65625
3
[]
no_license
<?php include "dbconnect.php"; echo "Welcome user registered to registration<br>"; if(isset($_POST['submit']) && !empty ($_POST)){//ako parametar postoji i ako nije prazan if($_POST['firstname'] == "" || $_POST['lastname'] == "" || $_POST['username'] == "" || $_POST['password'] == "" || $_POST['email'] == ""){ e...
true
a3aa9e13c574414dca19f9189b4b949b8f7c253c
PHP
felixfbecker/php-language-server-protocol
/src/SymbolKind.php
UTF-8
518
2.75
3
[ "ISC" ]
permissive
<?php namespace LanguageServerProtocol; /** * A symbol kind. */ abstract class SymbolKind { const FILE = 1; const MODULE = 2; const NAMESPACE = 3; const PACKAGE = 4; const CLASS_ = 5; const METHOD = 6; const PROPERTY = 7; const FIELD = 8; const CONSTRUCTOR = 9; const ENUM = 1...
true
a7afbfbfd86495535a3d29b92db7f1ebf2a55c83
PHP
fdlashari/pw2021_203040148
/tubes/tubespw_203040148/index.php
UTF-8
2,368
2.765625
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['login'])) { header("Location: login.php"); exit; } require 'functions.php'; $books = query("SELECT * FROM books"); // ketika tombol cari diklik if (isset($_POST['cari'])) { $books = cari($_POST['keyword']); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta ch...
true
3fcc0f6ad0709b7e785c273fa4f9f1da8ef828f6
PHP
JavierGMo/carrito-de-compras-IS
/cuenta/usuario/clasesdeusuario/ActualizarDatos.php
UTF-8
2,153
3.015625
3
[]
no_license
<?php class ActualizarDatos{ private $nombre; private $apellido; private $password; private $passwordConfirm; private $correo; public function setNombre($nombre){ $this->nombre = $nombre; } public function getNombre(){ return $t...
true
15c10325ed9c812c427ab7041720f5825e27b2de
PHP
carlosoliveira397/testeveiculo
/web-service/altera.php
UTF-8
734
2.546875
3
[ "MIT" ]
permissive
<?php try{ $conexao = mysqli_connect("localhost", "carlos397", "", "etecVeiculo"); $codigo = $_POST['codigo']; $modelo = $_POST['modelo']; $cor = $_POST['cor']; $fabricante = $_POST['fabricante']; $ano = $_POST['ano']; $valor = $_POST['valor']; ...
true
1ea59e55ac6a3c98af7b8db7502bbcf204e34599
PHP
brijy890/office_student_cms
/admin/dashboard.php
UTF-8
1,708
2.578125
3
[]
no_license
<?php include '../inc/header.php';?> <?php if (isset($_SESSION['username'])) { $username = $_SESSION['username']; } ?> <?php $params = pagination_prams('student_users'); $per_page = $params['per_page']; $page_1 = $params['page_1']; $row_count = $params['row_count']; $count = $params['count']; $page = $para...
true
b260e641f08af724e1a8e13b56744266a89bd970
PHP
drwotait/RGTour
/CurrentStatus.php
UTF-8
1,876
2.84375
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of CurrentStatus * * @author madw */ include_once('./Connection.php'); class CurrentSta...
true
fd22c04b1c9c6efbbb8a72c7b8679018fb28e11a
PHP
druus/oscar
/classes/Authenticate.class.php
UTF-8
5,067
3.1875
3
[ "MIT" ]
permissive
<?php /****************************************************************************** ** Filename Authenticate.class.php ** Description Handles user authentication ** Created by Daniel Ruus ** Created 2016-08-22 ** Version 1.0 *********************************************************************...
true
7df47b423b7d52e1a1e5422b1f45d4ad277976f2
PHP
paynl/bancontact-sdk
/demo/payment-form.php
UTF-8
2,777
2.65625
3
[]
no_license
<?php require_once '../vendor/autoload.php'; $errors = []; $info = []; use Paynl\BancontactSDK\Gateway; session_start(); if (!isset($_SESSION['apiToken']) || !isset($_SESSION['tokenCode'])) { header('location: index.php'); die(); } $gateway = new Gateway($_SESSION['tokenCode'], $_SESSION['apiToken']); if (!...
true
397fbb7b303416879fc8a4f95a078b9018e0fd52
PHP
valeri4/semiProject
/posts/showPosts.php
UTF-8
1,186
2.78125
3
[]
no_license
<?php function showPosts($dbCon) { $uId = userId(); //User Id Function from helpers $userName = userName(); //Username Function from helpers //Select by DESC Time $sql = "SELECT * FROM posts WHERE u_id = '$uId' ORDER BY p_time DESC "; $result = $dbCon->query($sql); if (!$result) ...
true
8cd441f6346049177dc044998e5e23f6cbe4d97f
PHP
tuneyourserver/components
/source/Spiral/Pagination/Traits/PaginatorTrait.php
UTF-8
4,811
2.859375
3
[ "MIT" ]
permissive
<?php /** * Spiral Framework. * * @license MIT * @author Anton Titov (Wolfy-J) */ namespace Spiral\Pagination\Traits; use Interop\Container\ContainerInterface; use Psr\Http\Message\ServerRequestInterface; use Spiral\Core\Exceptions\SugarException; use Spiral\Core\FactoryInterface; use Spiral\Pagination\Excep...
true
cf7852c148cb95cb2ce0a3cb53e93d0505a58bfe
PHP
epfremmer/PHP-Weekly-Issue25
/src/Transformer/TransformerInterface.php
UTF-8
367
2.734375
3
[]
no_license
<?php /** * File TransformerInterface.php * * @author Edward Pfremmer <epfremme@nerdery.com> */ namespace PHPWeekly\Transformer; /** * Interface TransformerInterface * * @package PHPWeekly\Transformer */ interface TransformerInterface { /** * Returns transformed data * * @param mixed $data ...
true
0a96532b29e13771336bc74285212490fc924168
PHP
jairoFernandez/documentation
/src/AppBundle/Infrastructure/CrudBasicActions.php
UTF-8
1,537
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: root * Date: 26/06/16 * Time: 02:12 AM */ namespace AppBundle\Infrastructure; /** * Class CrudBasicActions * Use the most frequently action for manipulate objects * @package AppBundle\Infrastructure */ abstract class CrudBasicActions { public $em; protected $s...
true
c91b3421ee0e0b749d4c86b2fe4cb76cedb72e86
PHP
ssvipHo/designModel
/simpleFactor/factor.php
UTF-8
543
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: hebingsong * Date: 2017/8/24 * Time: 下午2:03 */ namespace simpleFactor; class factor { public $obj; public function __construct() { $this->obj = [ 'http' => http::class, 'pop3' => pop3::class, ]; } public functi...
true
8d4ae485d30f51155f1c01d517fd6264ada247b5
PHP
clarkwinkelmann/flarum-ext-silent-mailchimp
/src/Jobs/AddUserToList.php
UTF-8
2,081
2.578125
3
[ "MIT" ]
permissive
<?php namespace ClarkWinkelmann\SilentMailchimp\Jobs; use Flarum\Settings\SettingsRepositoryInterface; use Flarum\User\User; use GuzzleHttp\Client; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Str; use Psr\Log\LoggerInterface; ...
true
413cdb43f5443e42512fe9996c8375ef1b64a4ae
PHP
uncutz/calendar
/source/Controller/EntryController.php
UTF-8
1,013
2.625
3
[]
no_license
<?php namespace Backend\Controller; use Backend\Connection; use Backend\Database\Entry; use Backend\Database\EntryMapper; use Backend\Database\EntryRepository; class EntryController { /** * @throws \JsonException */ public function index(): void { $pdo = (new Connection())->getPdo(); ...
true
6bfa2b8e2228e29ccf9a35193f8b54958eeb60ca
PHP
Michael1104Smith/blendology-server
/app/Jobs/SendEmail.php
UTF-8
2,083
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use App\Attendance; use App\EmailCampaign; use App\EmailSent; use App\EmailTemplate; use App\Event; use App\Jobs\Job; use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Bus\SelfHandling; use Illuminate\Contracts\Queue\ShouldQueue; class ...
true
3eda84d776c5de1a1255b24d89853df51845972e
PHP
rpgo/rpgo.hu
/database/migrations/2015_02_24_055232_create_roles_table.php
UTF-8
1,081
2.640625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRolesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('roles', function(Blueprint $table) { $table->string('id', 36)->primary(); ...
true
58b50b48613f126e502ec4a82b622a6f6051ba25
PHP
IamKo3/Student_Attendance_Database
/login.php
UTF-8
2,347
2.609375
3
[]
no_license
<?php include("header.php"); include("db.php"); $flag=0; if(isset($_POST["submit"])) { $id=$_POST["id"]; $pass=$_POST["txtpass"]; $type=$_POST["type"]; if(!$type) { $query=mysqli_query($con,"SELECT tid,password,subject FROM teacher"); while($row=mysqli_fetch_array($query)) { $db_t_id=$row["ti...
true
c1041f884c99b189e40221f2d08732d69a378f9b
PHP
ashraf-kabir/thenewboston-PHP-tutorials-practice-files
/100, 101, 102, 103 simple_contact_form/index.php
UTF-8
1,453
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sonnet * Date: 17/08/18 * Time: 10:29 */ if (isset($_POST['contact_name']) && isset($_POST['contact_email']) && isset($_POST['contact_text'])) { $contact_name = $_POST['contact_name']; $contact_email = $_POST['contact_email']; $contact_text = $_POST['contact_te...
true
28b049ff8b16fa4a2080e4eac6ad516dd8898f6c
PHP
u95306/course
/Ch12/Ch12-07.php
UTF-8
2,693
3.390625
3
[]
no_license
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>PEAR::MDB2套件fetchXXX()方法示範</title> </head> <body> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> 方法:<select name="method"/> <option value="1">fetchRow()</option> <option value="2">fetchOn...
true
b99ae6c2ebc266153e62da245c18101122b36be2
PHP
ShadeSlider/onPHP-Inception
/classes/Inception/Core/IConfig.class.php
UTF-8
625
2.578125
3
[]
no_license
<?php /** * @author Eric I. Gorbikov * @copyright 2014 Eric I. Gorbikov */ interface IConfig { /** * @return Config */ public function lock(); /** * @return mixed * @throws WrongArgumentException */ public function getSetting($name); /** * @return Config */ public function addSettings(array $se...
true
edb39b3d9a04b9ca1213d6bd7a01ab87622947e2
PHP
namik-mesic/SE_test
/app/EventListener/Listener.php
UTF-8
221
2.625
3
[ "MIT" ]
permissive
<?php namespace App\EventListener; /** * Class Listener * @package App\EventListener */ interface Listener { /** * @param Event $event * @return mixed */ public function handle(Event $event); }
true
76fe5e4cdf70f0befcf537c7bcacc5a369d132b6
PHP
eltoncerqueira/helpdesk
/controllers/actions/actionAddChangeControl.php
UTF-8
2,219
2.671875
3
[ "Apache-2.0" ]
permissive
<?php class actionAddChangeControl { public function __construct() { //load content for left side of page $left = new leftpageController(); //create new models for required data $changecontrolModel = new changecontrolModel(); $helpdeskModel = new helpdeskModel(); $pagedata = new stdClass();...
true
c3bdcd905e8e134031f1e322169ed61228851fa6
PHP
duonghv05531/php3
/database/seeders/CustomerTableSeeder.php
UTF-8
632
2.71875
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Customer; use Illuminate\Database\Seeder; use Faker\Factory as FakerFactory; class CustomerTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = FakerFactory::create(); ...
true
dabd4c09dacc61f767c0b5f313b095d6276fc049
PHP
muhdsaad07/sunrisemywork
/p3/classes/database.php
UTF-8
481
2.6875
3
[]
no_license
<?php class database { public $connection; public function connect() { $this->connection=mysqli_connect("localhost","root","","sunrisemywork1"); return $this->connection; } public function query($sql) { $con=$this->connect(); return my...
true
b49b0f966dd1b49f26986d852388d52e6cd62db0
PHP
nandymandy1/nuxt-wp-mysql-docker
/wordpress/plugins/wordpress-seo/src/deprecated/inc/class-wpseo-validator.php
UTF-8
2,370
3.015625
3
[ "GPL-1.0-or-later", "GPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-copyleft", "MIT" ]
permissive
<?php /** * WPSEO plugin file. * * @package WPSEO\Internals */ /** * Class WPSEO_Validator. * * @deprecated 15.6 */ class WPSEO_Validator { /** * Validates whether the passed variable is a boolean. * * @deprecated 15.6 * @codeCoverageIgnore * * @param mixed $variable The variable to validate. *...
true
bd7d314f23b4c8fed1e2c5823886806d55ab5626
PHP
irianvillalba/novotueddin
/backend/lib/model/Notifica.php
UTF-8
1,296
2.640625
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: Irian Villalba * Date: 24/02/16 * Time: 13:50 * To change this template use File | Settings | File Templates. */ include_once ('abstractModel.php'); class Notifica extends AbstractModel { private $cmp; private $vlr; public function notificacao($id...
true
579f0e9ee93bbc65f4f9d7a35f90520fc5a2f800
PHP
PaolaOrtega/APC_webprog_MI152_test_repo_poortega
/PHP-files/demo4.php
UTF-8
172
3.453125
3
[]
no_license
<?php $age = array("Paola"=>"18", "Lauren"=>"21", "Giuseppe"=>"16"); foreach($age as $x => $x_value) { echo "Key=" . $x . ", Value=" . $x_value; echo "<br>"; } ?>
true
73ac32141e2ea1189cc20e82d60b3b90ae816431
PHP
megyiarpad/rabit
/Model/basemodel.php
UTF-8
442
2.890625
3
[]
no_license
<?php class BaseModel { private $servername; private $username; private $psswrd; private $dbname; protected function connect() { $this->servername = "localhost"; $this->username = "root"; $this->psswrd = ""; $this->dbname = "rabit"; $conn = new mysqli($thi...
true
dc492767a66e5cce55898e60155907519234285f
PHP
ivanpreziosi/gastropod
/src/Gastropod.php
UTF-8
8,469
2.671875
3
[ "Unlicense" ]
permissive
<?php namespace RadFic\Gastropod; use RadFic\Gastropod\GastropodAuth; use Illuminate\Pagination\Paginator; use Illuminate\Http\Request; use Illuminate\Support\Facades\Schema; /** * Gastropod * * @author Ivan Preziosi <ivan.preziosi@gmail.com> * */ class Gastropod { protected $model;//eloquent model classna...
true
c1bfc3fc7f3442cf428ddf74762ab2560b11570b
PHP
Hespanhol2/ramais-evo
/config.php
UTF-8
1,989
2.953125
3
[]
no_license
<?php $dsn = "mysql:dbname=ramaltest;host=localhost"; $dbuser = "root"; $dbpass = ""; try{ $pdo = new PDO($dsn, $dbuser,$dbpass); // echo "Conexão estabelecida com sucesso!"; //TESTA CONEXÂO COM BANCO// }catch(PDOExeception $e){ echo "Falhou: ".$e->getMessage(); } // try{ // $pdo = new PDO($d...
true
06656ba3b145b8f77d6696b5e17afd6dfd87e2ff
PHP
mowocc/laravel_admin_init
/app/Http/Resources/Traits/Response.php
UTF-8
518
2.53125
3
[]
no_license
<?php namespace App\Http\Resources\Traits; use App\Core\Response\ResponseSuccess; trait Response { /** * Response 成功实体对象 * * @var \App\Core\Response\ResponseSuccess */ private $response; /** * Response 成功实体对象 * * @return \App\Core\Response\ResponseSuccess */ ...
true
6473816cbe74ba3eaf75b6479e997de5395c7e6b
PHP
lebris/muffin
/src/Conditions/Greater.php
UTF-8
177
2.515625
3
[ "MIT" ]
permissive
<?php namespace Muffin\Conditions; class Greater extends AbstractComparisonOperatorCondition { protected function getConditionOperator() { return '>'; } }
true
dbe7353e8e1b32aa40a7dd52e0636491d82e508e
PHP
Davidd0099/Proyectos
/ClasePhP/Condicionales/l19.php
UTF-8
155
2.703125
3
[]
no_license
<?php $n = $_POST["n"]; $n1= $n * 0.15 echo $n1; if ($n1 % 2 == 0){ echo"Es par jajasal2"; }else { echo"Es impar jajasalud2"; } ?>
true
99190946c762fd23b72eeba560f1d649a60be596
PHP
rokde/phasset
/src/Phasset/Utilities/String.php
UTF-8
715
3.515625
4
[]
no_license
<?php namespace Rokde\Phasset\Utilities; /** * Class String * * String utility functions * * @package Rokde\Phasset\Utilities */ class String { /** * finishes a string with given cap * * @param string $value * @param string $cap * @return string */ public static function finish($value, $cap) { r...
true
2505ccb51fec06ec2b6fe94f7eba5983f71f1a3c
PHP
Qclanton/qtask
/templates/templates.php
UTF-8
884
2.8125
3
[ "MIT" ]
permissive
<?php namespace Templates; class Templates extends \System { public $content = ""; public $start_tag = "%"; public $end_tag = "%"; public $tag_pattern = ""; public $positions = []; public function load() { $this->loadConfig(); $this->setView("templates/" . $this->config['template'] . "/views/temp...
true
7d5ff6511ac7dfdfb92307ee53633c6078a0a5c8
PHP
ditori/Coupon-Shop
/Coupon/printcoupons.php
UTF-8
887
2.828125
3
[]
no_license
<?php require __DIR__ . '/../ServerConnection.php'; $arr= $cpn_dao->getAllCoupons(); //echo $cpn_dao->getCoupon(1); echo '<br><br>'; echo '<table>'; echo '<tr>'; echo '<th>coupon id</th>'; echo '<th>name</th>'; echo '<th>category id</th>'; echo '<th>description</th>'; echo '<th>image url</th>'; echo '<...
true
62f6b3b2a96fef5f3c29ed11e2fb50d0e8f5c06e
PHP
crazyrex/feeder
/src/TreeHouse/Feeder/Modifier/Item/Transformer/ExpandAttributesTransformer.php
UTF-8
2,468
2.765625
3
[ "MIT" ]
permissive
<?php namespace TreeHouse\Feeder\Modifier\Item\Transformer; use Symfony\Component\HttpFoundation\ParameterBag; use TreeHouse\Feeder\Exception\UnexpectedTypeException; class ExpandAttributesTransformer implements TransformerInterface { /** * @var string */ protected $field; /** * @var bool...
true
2a9a86edcb90cd07db1d347dcb2fcc4ad44e4dfd
PHP
benjamw/webrisk
/classes/settings.class.php
UTF-8
11,509
2.71875
3
[]
no_license
<?php /* +--------------------------------------------------------------------------- | | settings.class.php (php 5.x) | | by Benjam Welker | http://iohelix.net | +--------------------------------------------------------------------------- | | > Settings module | > Date started: 2009-04-15 | | > Module Vers...
true
cc769cabb247f2292e3889ed44af445e80d2f38b
PHP
KareemG/TimeTracker
/src/Log.php
UTF-8
183
2.6875
3
[]
no_license
<?php namespace Acme; class Log { function __construct($time, $msg, $working) { $this->time = $time; $this->msg = $msg; $this->working = $working; } }
true
3795d8ed2143a5514ddc61ef827238afbe442f9f
PHP
shuvooa707/BlueBlogger-2
/getallpostlist.php
UTF-8
816
2.84375
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "blueblogger"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); ...
true
b9fe2d61ef9387dbcadcece792c7fd366d6ca568
PHP
jefersonbelmiro/console
/src/Model/Arquivo.php
UTF-8
1,407
2.5625
3
[ "WTFPL" ]
permissive
<?php namespace Cvsgit\Model; class Arquivo { const COMANDO_COMMITAR_TAGGEAR = 0; const COMANDO_ADICIONAR_TAG = 1; const COMANDO_REMOVER_TAG = 2; const COMANDO_REMOVER_ARQUIVO_TAG = 3; const COMANDO_COMMITAR = 4; public $sArquivo = null; public $sMensagem = null; ...
true
ca14fc6b5cc2d9919f4fcc4b9d901d0aad09ac46
PHP
NAGANDLA-LEELA-PAVAN-KUMAR/student-greeting-website
/form.php
UTF-8
6,372
3.125
3
[]
no_license
<?php include('dbconn\dbconn.php');//INCLUDING DATABASE CONNECTIVITY FILE ?> <?php //DECLARING VARIABLES $mainErr=""; $nameErr="*"; $rollnoErr="* "; $imageErr="* "; $dobErr="* "; $var=1; $check=1; ?> <?php //CHECKING WHETHER THE FORM IS SUBMITTED OR NOT if(isset($_POST['submit'])){ //INSETING THE USER...
true
0ee332c4837ca076dd0b3dd2fa74cbb82e1a7b1f
PHP
akagane99/csnc
/html/maple/generate/components/maple/core/CmdArgs.class.php
UTF-8
6,446
2.765625
3
[ "BSD-2-Clause" ]
permissive
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Maple - PHP Web Application Framework * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3...
true
5298e1c670f3ad071d696c32f072bfa5ed16c772
PHP
jschreuder/SpotCms
/src/FileManager/Entity/File.php
UTF-8
1,782
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Spot\FileManager\Entity; use Ramsey\Uuid\UuidInterface; use Spot\DataModel\Entity\TimestampedMetaDataTrait; use Spot\FileManager\Value\FileNameValue; use Spot\FileManager\Value\FilePathValue; use Spot\FileManager\Value\MimeTypeValue; class File { use TimestampedMetaData...
true
53f58cc5e4775e4b3d3d52641abe373b553e54c0
PHP
miryoku/projetWeb
/model/Commande.php
UTF-8
1,993
2.8125
3
[]
no_license
<?php class commande { private $id; private $id_user; private $id_commande; private $status; private $price; private $date; /** * Get the value of id_user */ public function getId_user() { return $this->id_user; } /** * Set the value of id_...
true
c3fef1c899977d25a7d8ebddbe25f59a12cc77ff
PHP
OrionDB/F-TDA
/P_Web2-PHP-sprint2/class/DbAcces.php
UTF-8
22,510
2.859375
3
[]
no_license
<?php /* Author : Yvan Cochet Summary : Class to access the db Date : 01.03.2016 */ //FUNCTION HEADER /// <summary> /// :summary: /// </summary> /// <param name=":paramName:">:description</param> class DbAcces { //Var with connection to database private $db; //Category to print pri...
true
ce408675eb6934ab9f33a9f112daa67493bb8942
PHP
aucfan-kyawphyo/fuelphp1st-2nd
/sample-code/tatsu-zine/vol01/04/fuel_debug/classes/controller/debugsample.php
UTF-8
619
3.09375
3
[ "MIT" ]
permissive
<?php /** * 電子書籍『はじめてのフレームワークとしてのFuelPHP 第2版』の一部です。 * * @version 1.1.0 * @author Kenji Suzuki <https://github.com/kenjis> * @license MIT License * @copyright 2014 Kenji Suzuki * @link https://github.com/kenjis/fuelphp1st-2nd */ class Controller_DebugSample extends Controller { public functio...
true
7b46b05119a275e5baa417851e757df46232d6a2
PHP
mmpandeyiitd/groots-api
/code/application/helpers/common_helper.php
UTF-8
4,465
3.1875
3
[]
no_license
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } /** * * Formats a number in Indian Rupee Format * * @param Int $num 'Number to be formatted in Indian style' * @param Boolean $decimal_flag Optional 'Decimal part is required or not. Default TRUE' * @return Int|Float */ if (!fun...
true
b318b57a7a18cdc245e6c6cc88cb6036dae958f9
PHP
Marcelolm87/listamed
/gerenciar/notificacao.php
UTF-8
820
2.6875
3
[]
no_license
<?php if(isset($retorno)):?> <div class="row"> <div class="col-md-12"> <?php if($retorno):?> <div class="alert alert-success"> Registro salvo com sucesso. </div> <?php else: ?> <div class="alert alert-danger"> Não foi possivel salvar esse regi...
true
7581043c55ab26f280cfd209676dfcd9a8613d0f
PHP
czkoudy/Adldap2
/tests/Models/Attributes/AccountControlTest.php
UTF-8
2,664
2.515625
3
[ "MIT" ]
permissive
<?php namespace Adldap\Tests\Models\Attributes; use Adldap\Tests\TestCase; use Adldap\Models\Attributes\AccountControl; class AccountControlTest extends TestCase { public function test_default_value() { $ac = new AccountControl(); $this->assertEquals(0, $ac->getValue()); $this->asser...
true
e751de101046ae412e574a6396a071f9f2d53dee
PHP
saattt/PHPBook
/codes/ch15/22.php
UTF-8
207
2.703125
3
[]
no_license
<?php $books = array('Expert Networking', 'Linux Networking', 'Cisco Networking'); list($first, $second, $third) = $books; echo $first; echo "<br />"; echo $second; echo "<br />"; echo $third;
true
91179c10193549440fdff664d22c6df4bb03a999
PHP
davidasharpe/MovieClub
/includes/database.php
UTF-8
481
2.703125
3
[]
no_license
<?php // Database default connection values $host = "localhost"; $user = "admin"; $password = "password@2017"; $name = "movie_club"; $connection = mysqli_connect($host, $user, $password, $name); // Test database connection if (mysqli_connect_errno()){ die("Database connection failed: " . mysqli_conn...
true
51701c4051dd042fee8553c99a5ec438b680879d
PHP
rafaelmanzanorivera/class-sharing-web-backend
/src/Project/Teachers/Teacher.php
UTF-8
603
2.875
3
[]
no_license
<?php namespace Project\Users; class Teacher { public $id_teacher; public $name; public $subject; public $mail; public $phone; public $age; public $schedule; public $description; public function __construct($id_teacher,$name,$subject,$mail,$phone,$age,$schedule,$description) {...
true
1db726ebec2898f3f546761ac5edd0ba0dc56337
PHP
devglrd/instagram-user-feed
/examples/profile.php
UTF-8
1,869
2.546875
3
[ "MIT" ]
permissive
<?php require __DIR__ . '/../vendor/autoload.php'; $api = new Instagram\Api(); $api->setUserName('pgrimaud'); try { // only the first page /** @var \Instagram\Hydrator\Component\Feed $feed */ $feed = $api->getFeed(); echo '============================' . "\n"; echo 'User Informations : ' . "\n";...
true
dc0d7e3698c8d26202449c9d5d8f8e9357c3c340
PHP
SVital27/APP-PHP2
/ClassTest.php
UTF-8
1,621
3
3
[]
no_license
<?php class Etudiant{ private $nom; private $prenom; private $code; private $nationalite; private $sexe; private $datedenais; private $tel; private $email; private $Type; public function __construct($code,$nom,$prenom,$nati...
true
397fff9f58347c99134bc748f62a34cbeab9d7a3
PHP
shreenivasan/Tutorials
/php/frameworks/ci/application/controllers/Pagination.php
UTF-8
914
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Pagination extends CI_Controller { public function __construct() { parent:: __construct(); $this->load->helper("url"); $this->load->model("Countries"); $this->load->library("pagination"); } ...
true
7c0198b4b4b886cf65896d24306b501c82aebcda
PHP
ddadick/DadiWeb
/library/Dadiweb/Db/Result.php
UTF-8
1,145
2.8125
3
[]
no_license
<?php class Dadiweb_Db_Result { /***************************************************************/ /** * * Handler variables that do not exist (input) * * @return Nothing * */ public function __set($name, $value) { $this->{$name} = $value; } /************************...
true
e01ec24c3a64cffa7c3b9ee86a7efd42fd249ed6
PHP
Sinecuraweb/zandstra
/src/Object/Service/Totalizer.php
UTF-8
2,053
3.453125
3
[]
no_license
<?php namespace App\Object\Service; //use App\Object\ValueObject\Product; //use App\Object\Service\Callback\ProcessSale; class Product { /** * @var string */ private $name; /** * @var float */ private $price; public function __construct(string $name, float $price) { ...
true
888ce4163064c204f6c73c72fcfe899f575494c1
PHP
snapshotpl/coding-standard
/SlevomatCodingStandard/Sniffs/Classes/ConstantSpacingSniff.php
UTF-8
795
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace SlevomatCodingStandard\Sniffs\Classes; use PHP_CodeSniffer\Files\File; use function sprintf; use const T_CONST; class ConstantSpacingSniff extends AbstractPropertyAndConstantSpacing { public const CODE_INCORRECT_COUNT_OF_BLANK_LINES_AFTER_CONSTANT = 'IncorrectCountOfBlank...
true
4e58c6d6fee4169a5d88062a87a0663224704777
PHP
a4anthony/coupon
/src/Models/Admin.php
UTF-8
954
2.625
3
[ "MIT" ]
permissive
<?php /** * PHP version 7.4 * * @category Description * @package PageLevel_Package * @author Anthony Akro <anthonygakro@gmail.com> * @license https://github.com/a4anthony/coupon/blob/master/liscence * MIT Personal License * @version CVS: <1.0> * @link "" */ namespace A4anthony\Coupon\Mo...
true
df7bbde626cc5c2578617b94135664037ac207ee
PHP
TheBnl/silverstripe-schema
/src/Builder/Website.php
UTF-8
1,120
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Website.php * * @author Bram de Leeuw * Date: 04/11/16 */ namespace Broarm\Schema\Builder; use Broarm\Schema\Type\SearchActionSchema; use Broarm\Schema\Type\WebSiteSchema; use SilverStripe\Control\Director; use SilverStripe\ORM\Search\FulltextSearchable; use SilverStripe\SiteConfig\SiteConfig; /** ...
true
0bdecb148318237cc6b55a4fb52adb44ae7cc187
PHP
bejean/PhpBootstrapApp
/app/src/web/controllers/controller.php
UTF-8
1,235
2.953125
3
[]
no_license
<?php /* * Classe de base pour les controllers */ class Controller { var $vars = array(); var $model_name; function set($vars) { if (!empty($vars)) $this->vars = array_merge($this->vars, $vars); } function render() { extract($this->vars); $viewFileName = $this->getViewFileName(get_class($this)); re...
true
68e188af7e0bc1b44d82d7f1eaf8ff94beb21d1d
PHP
Gonxis/TOMO2_Project
/TOMO2-Web/includes/Answer.php
UTF-8
687
2.9375
3
[ "MIT" ]
permissive
<?php class Answer { private $id_answer; private $id_event; private $answer; private $correct; /*public function __CONSTRUCT($id_answer, $id_event, $answer, $correct) { $this->id_answer = $id_answer; $this->id_event = $id_event; $this->answer = $answer; $this->...
true
f0490ecc4bfa2c7d4de012663a56c7d3acf0d7d9
PHP
tdavidsonas88/php-for-beginners-2020
/section-10/array-pop-shift.php
UTF-8
240
3.09375
3
[]
no_license
<?php $cities = ["London", "Paris", "Amsterdam", "New York"]; $lastCity = array_pop($cities); echo $lastCity; echo "<br>"; print_r($cities); echo "<br>"; $firstCity = array_shift($cities); echo $firstCity; echo "<br>"; print_r($cities);
true
64bcfaf4f7d802b839b6480e747a81526a519851
PHP
oodgaard/Trilogy
/src/Trilogy/Statement/Type/Field.php
UTF-8
1,149
3.25
3
[ "MIT" ]
permissive
<?php namespace Trilogy\Statement\Type; use Trilogy\Statement\Expression; trait Field { /** * The fields to return. * * @var array */ private $fields = []; /** * Flag whether the fields should be distinct. * * @var bool */ private $distinct = false; /** ...
true
102bd8c1d0a0d497e071284a038c46dbd12ef9e3
PHP
tgouverneur/SPXOps
/app/libs/joblog.obj.php
UTF-8
1,416
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * JobLog object * @author Gouverneur Thomas <tgo@espix.net> * @copyright Copyright (c) 2007-2012, Gouverneur Thomas * @version 1.0 * @package objects * @subpackage job * @category classes * @filesource * @license https://raw.githubusercontent.com/tgouverneur/SPXOps/master/LICENSE.md Revised BSD Licen...
true