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
b60d32b3632b91db83c3a4a5e9835b5d8ed7082f
PHP
FilipeRodrigues3003/aulaslpw
/ex05.php
UTF-8
200
2.984375
3
[]
no_license
<?php $n1 = $_POST['n1']; $n2 = $_POST['n2']; $n3 = $_POST['n3']; $nome = $_POST['nome']; $result = ($n1+$n2+$n3)/3; echo "<pre>O aluno $nome possuí média: $result</pre>"; ?>
true
8e594556add7b9a10ca54b7317d383deee7a4f3c
PHP
Yuami/pigtravel-backend
/back/App/Model/DAO/MensajesDAO.php
UTF-8
2,160
2.796875
3
[]
no_license
<?php namespace Model\DAO; use Config\Session; use PDO; class MensajesDAO extends DAO { protected static $table = "mensajes"; protected static $class = "Mensaje"; public static function insert(array $parameters) { $idReciever =$parameters["idReciever"]; $mensaje =$parameters["men...
true
2164df0f6ca1b7db10dd6e8b73a9aa1b2e77eb49
PHP
Caydan/php7-db2
/src/Shared/FileSystem/File.php
UTF-8
1,620
3.21875
3
[]
no_license
<?php namespace Shared\FileSystem; use \Shared\Binary\IBuffer; use \Shared\Binary\FileBuffer; class File { protected $filename; protected $resource; protected function __construct(string $filename) { $this->filename = $filename; } protected function _create() { touch($th...
true
f019b4e93510e55026974f56b4190a8151f36bd4
PHP
karye/EE17-ar3
/php-ovningar/kapitel-6/uppgift-6-3.php
UTF-8
894
2.96875
3
[]
no_license
<!DOCTYPE html> <html lang="sv"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <link rel="stylesheet" href="style.css"> </head> <body> <?php /* Konstruera ett reguljärt uttryck som matchar en sträng som innehåller ett "t" följt...
true
81668b4da87f77d96048f652839af90f27245d1f
PHP
flame-cms/User-Bundle
/FrontModule/presenters/SignPresenter.php
UTF-8
1,374
2.625
3
[]
no_license
<?php namespace Flame\CMS\FrontModule; /** * Sign in/out presenters. */ class SignPresenter extends FrontPresenter { /** * @var string|null */ private $backlink; /** * @autowire * @var \Flame\CMS\UserBundle\Forms\Sign\IInFormFactory */ protected $inFormFactory; public function startup() { paren...
true
f5051e0a654d3e351c542b1c041496139f7dfddd
PHP
xavierG21/CLC
/getProduct.php
UTF-8
3,397
2.515625
3
[]
no_license
<?php require_once 'db_connect.php'; require('config.php'); $current_url = urlencode($url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); if (isset($_REQUEST['id'])) { $id = intval($_REQUEST['id']); $query = "SELECT * FROM products WHERE id='$id'"; $results = mysqli_query($conn,$query); //$produ...
true
d9241fa22a8ca07c7f48ae8a98a60bb63f15909e
PHP
EmilienLetestu/projectUn
/src/Services/Tools.php
UTF-8
456
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: emil * Date: 17/10/17 * Time: 10:32 */ namespace App\Services; class Tools { /** * @param $date * @return bool * check if generated link as expired */ public function isLinkStillValid($date) { $today = new \DateTime(); $dat...
true
5989bb4ee3923c77523002d662ef71ade16f83c1
PHP
kirjuha1982/tmp
/common/migrations/rbac/m150625_214101_roles.php
UTF-8
640
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php use common\rbac\Migration; use common\models\User; class m150625_214101_roles extends Migration { public function up() { $this->auth->removeAll(); $user = $this->auth->createRole(User::ROLE_USER); $this->auth->add($user); $admin = $this->auth->createRole(User::ROLE_ADMI...
true
77b1ca29e437ed3f15878ce688dec65db11e2e82
PHP
steffjenl/laravel-signhost
/src/Models/FormSetField.php
UTF-8
1,186
3.125
3
[ "MIT" ]
permissive
<?php namespace Signhost\Models; class FormSetField { public $Type; // String (enum) public $Value; // String public $Location; // Location function __construct($type, $location, $value = null) { $this->Type = $type; $this->Location = $location; $this->Value = $value; } ...
true
b688b86dc035d978a8975e19d7407b98ce47a322
PHP
mafdymagdy/C.EssaTableTennis
/Model/CartsDetailsModel.php
UTF-8
1,653
2.96875
3
[]
no_license
<?php require_once(__ROOT__ . "Model/Model.php"); require_once(__ROOT__ . "Model/CartDetailsModel.php"); class CartsDetailsModel extends Model { public $cartsdetails; private $dbh; function __construct() { $this->fillArray(); } function fillArray() { $this->cartsdetails = array(); $this->dbh ...
true
a1a5f7ea6e6d303709693ab32e2004ab02e05719
PHP
JeradC95/Love-Sushi
/classes/customer.php
UTF-8
2,453
3.484375
3
[]
no_license
<?php /** * Class Customer creates a customer object */ class Customer { private $_fname; private $_lname; private $_phone; private $_email; private $_order; private $_customerId; /** * Customer constructor. * @param $_fname * @param $_lname * @param $_phone * @param ...
true
0a8e068f06d4cc0905632da59af49276b236d3a1
PHP
bohrsty/reditus
/src/Reditus/ExceptionHandler.php
UTF-8
1,999
2.875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Reditus project. * * (c) Nils Bohrs * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Reditus; use Reditus\Exceptions; use Reditus\HttpResponse; class ExceptionHandler { /* * cla...
true
d51301643be6b2be2e6b8bb073c653adf94b6296
PHP
apuc/unp
/app/Services/Morph.php
UTF-8
2,959
3.0625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use Illuminate\Database\Eloquent\Model; /** * Хелперы трансформации различных величин (имени, телефона, денег) * Используется как фасад. * */ class Morph { /** * @return string|null * * @param Model $model * @param array $field */ public function fullname(Model $model, ...
true
eed7ef6b92d0671f6fb4997b2459b445054c87df
PHP
andreypaa/php-diff
/src/Renderer/Text/AbstractText.php
UTF-8
273
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Jfcherng\Diff\Renderer\Text; use Jfcherng\Diff\Renderer\AbstractRenderer; abstract class AbstractText extends AbstractRenderer { /** * @var bool Is this template pure text? */ const IS_HTML_TEMPLATE = false; }
true
ca52c41ba92d972dea2d2402bd0dd792732f34fc
PHP
redthor/word-finder
/src/Dict/TrieIterator.php
UTF-8
1,635
3.140625
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); /** * This file is part of the Word Finder package. * * (c) Douglas Reith * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Dict; use Tries\ITrie; /** * TrieIterator. */ class TrieI...
true
a7f4606dcd01ce5bdea41046faf5fdfce116e6bc
PHP
Kolenkovsky/ishop
/core/controller/DbException.php
UTF-8
3,125
2.9375
3
[]
no_license
<?php defined('SHOP') or exit('Access denied'); /*Этот класс создается для обработки ошибок связанных с неправильным подключением к базе данных, он по анналогии с классом ContrException */ class DbException extends Exception { protected $message;//Тут будем хранить сообщение об ошибке,т.е.напр."Такой страницы...
true
5a389dc388c57e9108938364e304309e88e659ca
PHP
mounitbhandari/bhagya_shakti
/bhagya_shakti_api/app/Http/Resources/PlayDetailsResource.php
UTF-8
901
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; /** * @property mixed play_master_id * @property mixed game_type_id * @property mixed number_position_id * @property mixed id * @property mixed game * @property mixed mrp * @property mixed quantity * @property mixed number_c...
true
d2ac5631e57bdecf5629747abe429edc5f2ea484
PHP
JCampano/FCT-Automatricula
/php/matricula/getCombos.php
UTF-8
6,392
2.703125
3
[]
no_license
<?php //no chachee la llamada //header('Cache-Control: no-cache, must-revalidate'); //header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); $servidor = "localhost"; $basedatos = "automatricula"; $usuario = "root"; $password = ""; $conexion = mysqli_connect($servidor, $usuario, $password, $basedatos);//el para...
true
47f0136edd6f2382ffbf5205f64c1da8d20b72ce
PHP
spaze/michalspacek.cz
/site/vendor/latte/latte/src/Latte/Compiler/Nodes/TextNode.php
UTF-8
702
2.75
3
[ "GPL-3.0-only", "GPL-2.0-only", "BSD-3-Clause", "GPL-1.0-or-later", "MIT" ]
permissive
<?php /** * This file is part of the Latte (https://latte.nette.org) * Copyright (c) 2008 David Grudl (https://davidgrudl.com) */ declare(strict_types=1); namespace Latte\Compiler\Nodes; use Latte\Compiler\Position; use Latte\Compiler\PrintContext; class TextNode extends AreaNode { public function __construct...
true
92dcf540994cb55afaee664486551b7972bbc3f4
PHP
Monkeylovesmile/www
/Application/Common/Common/function.php
UTF-8
572
2.6875
3
[]
no_license
<?php /** * 公用的方法 * @param [type] $status 状态 0:失败 1:成功 * @param [type] $message 提示语句 * @param [type] $data [description] * @return [type] [description] */ function show($status,$message,$data = array()){ $result = array( 'status' => $status, 'message' => $message, 'data' => $data,...
true
7f86455512d844a5d5e5694caca9a0da236aa106
PHP
Marius-Mulama/Merch-Store
/authentication/verify-user.php
UTF-8
2,023
2.53125
3
[]
no_license
<?php session_start(); include("../connection.php"); if (isset($_POST['verify'])) { $user_email = htmlspecialchars(strip_tags($_POST['email'])); $verification_code = htmlspecialchars(strip_tags(strval($_POST['verification-code']))); if (!empty($user_email) and !empty($verification_code)){ $query...
true
98e7b3f7c88b253eb175380882a19b286b496e4b
PHP
mbcraft/frozen
/src/framework/core/lib/base/OperationDescription.class.php
UTF-8
1,685
2.953125
3
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php /* This software is released under the BSD license. Full text at project root -> license.txt */ /* * Questa classe rappresenta la descrizione di un'operazione. * Serve per generare in automatico la descrizione e le api. */ class OperationDescription { const READ_OPERATION = "read"; const WRITE_OPERA...
true
797fbafed9f0225ab0047eecd0185e72e3e8c9c2
PHP
starweb/ongoing
/src/Ongoing/GetInventory.php
UTF-8
1,547
2.96875
3
[ "MIT" ]
permissive
<?php namespace Ongoing; class GetInventory { /** * @var int $GoodsOwnerId */ protected $GoodsOwnerId = null; /** * @var string $UserName */ protected $UserName = null; /** * @var string $Password */ protected $Password = null; /** * @param int $Goods...
true
8763c8188769e81df49dce8dbb041df797876f0e
PHP
npyatak/axe
/console/migrations/m171215_115335_create_table_answer.php
UTF-8
4,665
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; class m171215_115335_create_table_answer extends Migration { public function safeUp() { $tableOptions = null; if ($this->db->driverName === 'mysql') { $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; } $this->c...
true
62624f3978bd1d68f52b4718122cd4c441f3572d
PHP
ubcbent/360Project_HELP_Website
/src/checkout.php
UTF-8
3,839
2.53125
3
[]
no_license
<?php include_once "include_files/session.php"; include_once "include_files/db_info.php"; include_once "include_files/orderProcesses.php"; startSession(); if(!isset($_SESSION['email'])) { redirect("index.php"); } if(isset($_SESSION['admin'])) { if($_SESSION['admin'] == "admin") redirect("admin-home.php"); } if(...
true
ce3a84b74d87b785e4e337fef22d9009887ec42f
PHP
xz551/think_gongyi1
/App/Lib/F.class.php
UTF-8
426
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: GangGe * Date: 2015/4/13 * Time: 11:08 */ namespace Lib; /** * 类包的创建工厂 Factory的简写 * Class F * @package Lib */ class F { /** * 创建一个实例 Instance 简写 * @param $class_name */ public static function i($class_name){ require_once(C('THINK_PUBLIC'...
true
6eb87600560f9d692acd41f95f24a227b00f3190
PHP
tsornin/website
/image_gallery_of_directory.php
UTF-8
394
2.890625
3
[]
no_license
<?php function image_gallery_of_directory( $dir ) { echo '<div class="image_gallery">'; $images = glob( $dir . '/*.{jpg,JPG,jpeg,JPEG,png,PNG}', GLOB_BRACE ); sort( $images, SORT_NATURAL ); foreach ( $images as $file ) { $basename = basename( $file ); echo "\n" . '<a href="' . $dir . '/' . $basename . '"><img s...
true
24a91c1fc847ea6547c44a3e1f809b37e8dbe995
PHP
NickVries/SecondAssignment
/core/Database/QueryBuilder.php
UTF-8
4,512
2.71875
3
[]
no_license
<?php namespace Nick\Framework\Database; use App\InsertDuplicateException; use Nick\Framework\App; class QueryBuilder { /** @var \PDO */ private $pdo; private $values = []; private $className = \stdClass::class; private $where = []; private $offset; private $limit = 'LIMIT 184467440737095...
true
c10d4a89511f130887a216af3cdc3d601103f61d
PHP
pedroufv/laravel-acl
/app/Http/Requests/UserUpdateRequest.php
UTF-8
1,263
2.65625
3
[ "MIT" ]
permissive
<?php namespace LaravelACL\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UserUpdateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
true
04cdcfa26e87dde5f1762b0f3cb0883487c035a0
PHP
laxuanson3011/xs-shop
/app/Http/Controllers/slideController.php
UTF-8
5,229
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Slide; class slideController extends Controller { public function getdanhsach() { $slide = Slide::all(); return view('admin.slide.danhsach',['slide'=>$slide]); } public function getthem() { return ...
true
37e5fe5bd144720217ccbc7615154e9a7034e9ef
PHP
iyzico/iyzipay-php
/tests/Iyzipay/Tests/IyzipayResourceTestCase.php
UTF-8
2,316
2.578125
3
[ "MIT" ]
permissive
<?php namespace Iyzipay\Tests; use Iyzipay\ApiResource; use Iyzipay\IyzipayResource; use Iyzipay\Model\Locale; use Iyzipay\Model\Status; class IyzipayResourceTestCase extends TestCase { protected $httpClient; protected $json = ' { "status":"success", "errorCode":null, ...
true
c52868fb5416c2c2e08ac82fb590a80c86202531
PHP
R1aMe1/HWPHP
/createTable.php
UTF-8
584
2.609375
3
[]
no_license
<?php function create_table ($info, $link){ $id = 0; echo "<table><thead>"; foreach ($info as $key){ foreach ($key as $key1 => $value){ echo "<th>$key1</th>"; } break; } echo "</thead>"; foreach ($info as $key){ echo "<tr>"; foreach ($key as $key1){ if ($key["id"...
true
098fddda47c63aee2fb6b5238e5af72cf0c5bbab
PHP
Mercandj/Photos_database
/php/vue/CategorieVue.php
UTF-8
3,337
2.875
3
[]
no_license
<?php class CategorieVue { private $liste_images; function __construct($pliste_images) { $this->liste_images = $pliste_images; } function genererHTML_table() { $res = '<table class="table_fichiers">'; /* 1ère ligne de la table */ if(count($this->liste_images)!=0) { $res = $res.'<tr> ...
true
f8843a6eaef54c359f5abf3f5d958b1c8fbecccb
PHP
isabella232/yii2-widget-chart
/src/models/series/ColumnSeries.php
UTF-8
1,087
2.59375
3
[ "MIT" ]
permissive
<?php /** * @package yii2-widget-chart * @author Simon Karlen <simi.albi@outlook.com> */ namespace simialbi\yii2\chart\models\series; use simialbi\yii2\chart\models\Column; class ColumnSeries extends XYSeries { /** * @var boolean Cluster this series columns? * * Setting to `false` will make col...
true
28be63c5a787f83db11131350ae869b1625f0e09
PHP
pyoub/thiis
/src/AppBundle/Entity/User.php
UTF-8
2,067
2.546875
3
[]
no_license
<?php // src/AppBundle/Entity/User.php namespace AppBundle\Entity; use FOS\MessageBundle\Model\ParticipantInterface; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity * @ORM\Table(name="fos_user") */ class User exte...
true
f9550b7e1699ca256735315d910594e84a1d22b5
PHP
MarceauKa/mamarflix
/src/Utils/TmdbDb.php
UTF-8
1,599
2.953125
3
[ "MIT" ]
permissive
<?php namespace App\Utils; class TmdbDb { protected static ?self $instance = null; public ?array $db = null; private function __construct() { $this->ensureCreated(); $this->open(); } public static function instance(): self { if (is_null(self::$instance)) { ...
true
9b8194f19ea39cd7f2774dced2b4c43f2bd69abc
PHP
ericywong/php-index
/foreach_loop.php
UTF-8
425
4.03125
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>For each loop</title> </head> <body> <?php //for each loop loops through the array - very powerful $numbers = array(2342, 23423, 531, 4234, "I am a string!", 4353432, "<h1>BOLD!</h1>"); foreach($numbers as $number) { //each number in ...
true
10d571cd17eb00332431537990ed294d17d262bf
PHP
matt1007k/SCP
/app/Services/PersonasService.php
UTF-8
3,119
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Models\Persona; use Illuminate\Support\Facades\Auth; class PersonasService { protected $datetimeService; protected $importElementsService; protected $estado = ''; public function __construct() { $this->datetimeService = new DateTimeService(); ...
true
d7681db3d03b09d6f3f2d59116514f9eb4efb052
PHP
sahejinmansuri/svn_3_10_14
/svn_3_10_14/Atlasp/App/Login/AbstractLogin.php
UTF-8
11,616
2.59375
3
[]
no_license
<?php abstract class Atlasp_App_Login_AbstractLogin { /** * * @var Zend_Db_Adapter_Abstract */ protected $dbhandler; /** * @var Zend_Session_Namespace */ protected $namespace; protected $userTbl = 'USERS'; protected $companyTbl = 'COMPANY'; protected $username = ''...
true
cf41c9318d080ffcf4e380586b570b75cfe8452e
PHP
vishruthvs6/WebTech2Sem6
/phpInsight/examples/demo.php
UTF-8
1,561
2.890625
3
[]
no_license
<?php if (PHP_SAPI != 'cli') { echo "<pre>"; } require_once '../../include/order_class.php'; require_once '../../include/dbcon.php'; //session_start(); date_default_timezone_set("Asia/Kolkata"); $dat = date("Y-m-d"); if(isset($_POST['textdata'])) { $fp = fopen('../../data.txt', 'a'); file_put_...
true
1aa59d40898584c43607885162ea32159328690b
PHP
muhalialbair454/learning-php-oop
/Parent.php
UTF-8
244
2.9375
3
[]
no_license
<?php require_once "data/Shape.php"; use Data\{shape, Rectangle}; $shape = new Shape(); echo $shape->getCorner() . PHP_EOL; $rectangle = new Rectangle(); echo $rectangle->getCorner() . PHP_EOL; echo $rectangle->getParentCorner() . PHP_EOL;
true
6b092e4f2f73c492304abd7c023b2dab7ae364e5
PHP
denisios271/Cinema1
/app/Http/Requests/CreatePostVoteRequest.php
UTF-8
764
2.515625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; use App\Eloquents\PostVote; class CreatePostVoteRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public func...
true
85dc59fdddf8b37af5526490725ee0a67b2cd04c
PHP
altairnilo/aula-php
/exercicio-funcao02.php
UTF-8
235
3.171875
3
[]
no_license
<?PHP function ola($texto="mundo"){ return "Olá $texto!<br>"; // valores definidos como obrigatórios na função, deverão estar a esquerda. caso contrário irá dar um erro no código. } echo ola(); echo ola("Altair"); ?>
true
ca9c5620ca124b02fa7cef420b5007033d0515ac
PHP
avolochnev/ofsite
/system/models/Preferences.php
UTF-8
3,899
2.515625
3
[ "Apache-2.0" ]
permissive
<?php // Настройки пользователя для просмотра гостевой книги. class Preferences { var $user; var $user_id = 0; // Идентификатор пользователя. var $form_in_bottom = 0; // Размещать форму внизу дискуссии var $dont_trace_books = ''; // Список книг, которые пользователь не отслеживает (идентификаторы чере...
true
3390096f86fc1a1e06ddd3dda1ef036d4dea31d6
PHP
DanyAdhiPrabowo/B10K5A
/jawaban4.php
UTF-8
440
3.328125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php function cetak_gambar($n){ $t=$n/2+0.5; for ($baris=1; $baris <= $n; $baris++) { for ($kolom=1; $kolom<=$n; $kolom++){ if ($kolom==$t){ echo '&nbsp*&nbsp'; }elseif($baris==1){ echo '&nbsp*&nbsp' ; }elseif($baris==$n){ echo...
true
cd8625fd4e5053ae4d54adb079e97170fae20030
PHP
cloudfoundry/php-buildpack
/fixtures/symfony_5_local_deps/vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderFixer.php
UTF-8
4,781
2.6875
3
[ "MIT", "Apache-2.0" ]
permissive
<?php /* * This file is part of PHP CS Fixer. * * (c) Fabien Potencier <fabien@symfony.com> * Dariusz Rumiński <dariusz.ruminski@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Fixer\Phpdoc; use PhpCsFixer\...
true
8050d6b56d7c2c1394498103ac514e31893bea9a
PHP
TopSoft4U/openapi-generator
/src/OpenAPIRef.php
UTF-8
359
2.515625
3
[]
no_license
<?php namespace TopSoft4U\OpenAPI; use JsonSerializable; class OpenAPIRef implements JsonSerializable { private string $name; public function __construct($name) { $this->name = $name; } public function jsonSerialize(): array { return [ "\$ref" => "#/components/sc...
true
73c32212183f017f194a8b7dad7b9096f23ba9c7
PHP
ResignationMedia/oxygen
/classes/oxygen/core.php
UTF-8
15,741
2.59375
3
[]
no_license
<?php defined('SYSPATH') || die('No direct access allowed.'); /** * @copyright (c) 2010-2011 Crowd Favorite. All Rights Reserved. * @package oxygen/core */ class Oxygen_Core extends Kohana { // Common environment type constants for consistency and convenience const PRODUCTION = 1; const STAGING = 2; ...
true
a4582ee014feb18b218226507b3836afa6da86c2
PHP
tweedegolf/generator
/src/TweedeGolf/Generator/Action/ReplaceAction.php
UTF-8
1,379
2.5625
3
[ "MIT" ]
permissive
<?php namespace TweedeGolf\Generator\Action; use TweedeGolf\Generator\Action\Argument\ArgumentList; use TweedeGolf\Generator\Builder\BuilderInterface; use TweedeGolf\Generator\Exception\ActionFailedException; use TweedeGolf\Generator\Util\PregErrorToString; use TweedeGolf\Generator\Util\StringUtil; class ReplaceActi...
true
7d7b1a8509d2be522e973b0b2051f6a65918eb1a
PHP
webhappens/prismic
/tests/Query/QueryTest.php
UTF-8
1,867
2.53125
3
[ "MIT" ]
permissive
<?php namespace WebHappens\Prismic\Tests\Query; use Prismic\Api; use Prismic\SimplePredicate; use WebHappens\Prismic\Query; use WebHappens\Prismic\Tests\TestCase; class QueryTest extends TestCase { public function test_make() { $this->assertInstanceOf(Query::class, Query::make()); } public f...
true
9ff341e7ad9e45bf2a9d0e3565c210633803ce49
PHP
GYPJ-Projet/upstream
/modeles/Modele_Marque.php
UTF-8
3,399
3.34375
3
[]
no_license
<?php class Modele_Marque extends BaseDAO { // Permet à l'instance de dire dans quelle table de la BD elle doit aller chercher les données public function getNomTable() { return "marque"; } // Méthode qui retourne le nom de l'instance correspondant à ce modèle. public function getNo...
true
e62e9501c9221e1716768aa34d2baf32dcc3276d
PHP
Luca-Fischer/PlanningPoker
/story_overview_view.php
UTF-8
1,270
2.65625
3
[]
no_license
<?php include "partials/html_header.php"; ?> <?php include "partials/navbar_view.php"; ?> <?php if (!isset($_SESSION['email'])) { $error_login_first = "Du musst dich erst einloggen"; header("Location: login_view.php?login_first=$error_login_first"); die(); } ?> <div class="jumbotron"> <h2><?php echo h...
true
cd766e204366800ffb426ab8eafa5c538f68f98a
PHP
tomcizek/symfony-prooph
/tests/TestKernel.php
UTF-8
1,677
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace TomCizek\SymfonyProoph\Tests; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\HttpKernel\Bundle\BundleInterface; use Symfony\Component\HttpKernel\Kernel; use TomCizek\SymfonyInteropContainer\Tests\Configurators\ConfigFile; class TestKernel extends...
true
e22476ab6137aafff30bc1659ad75625e5642bcf
PHP
mashrur786/Planitin-laravel-app
/database/seeds/RestaurantsTableSeeder.php
UTF-8
1,115
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Faker\Factory as Faker; class RestaurantsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create('App\Restaurant'); foreach(range(1,50) as $x) { ...
true
7f972bef0e5715af31bebdfb87637010cd45cabb
PHP
DanielShultz/our_favorite
/admin/all_dogs.php
UTF-8
1,479
2.84375
3
[]
no_license
<html lang="ru"> <head> <link rel="stylesheet" href="../css/big_table.css"> <link rel="stylesheet" href="../css/button.css"> </head> <body> <?php require '../parts/menu.php'; if (isset($_GET['del_id'])) { //проверяем, есть ли переменная //удаляем строку из таблицы $sql = mysqli_query($link,...
true
f8bd6f545e5efe84178f842b075461c06c5586d7
PHP
k1llRod/test_branch
/controllers/links.php
UTF-8
293
2.515625
3
[]
no_license
<?php class linksControllers{ public function linkController(){ if(isset($_GET['action'])){ $links = $_GET['action']; } else{ $links = "index"; } $answer = linksModels::linkModel($links); include $answer; } } ?>
true
8848b5ecb3d500882165bfb6b765520bd2c1df3d
PHP
Lowari/Partie-3-PhP
/exo1/index.php
UTF-8
1,074
3.328125
3
[]
no_license
<!-- ## Exercice 1 Créer une variable et l'initialiser à 0. Tant que cette variable n'atteint pas 10, il faut : - l'afficher - l'incrementer --> <?php $arr; for ($i = 0; $i <= 10; $i++) { $arr[$i] = $i; } ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="...
true
3c62b4833aafb68a75612342ba18df812366d877
PHP
ola22/magazine-manager
/realizacjaZleceniaAct.php
UTF-8
2,339
2.65625
3
[]
no_license
<?php session_start(); ?> <?php ini_set('display_errors', 1); error_reporting(E_ALL); ?> <html> <head> <meta http-equiv='Content-type' content='text/html; charset=utf-8'> <title>Zlecenie zrealizowane</title> </head> <body bgcolor="white"> <h2 align=center>REALIZACJA ZLECENIA</h2> <?php echo "<br/>"; // Zczyt...
true
f79075e77ffa6cd5d93db2c551f981bba8ee39b1
PHP
rodrigoprestesmachado/whiteboard
/creole/drivers/mysqli/MySQLiConnection.php
UTF-8
7,440
2.703125
3
[ "Apache-2.0" ]
permissive
<?php /* * $Id: MySQLiConnection.php,v 1.1 2007/01/03 20:10:13 rpm Exp $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE...
true
5d7addc0f82a2d38e69b80013f51bb8826738e62
PHP
jackblackjack/kodeline
/kodeline/components/yaCorePlugin/lib/doctrine/collection/yaDoctrineCollection.class.php
UTF-8
1,770
2.828125
3
[]
no_license
<?php abstract class yaDoctrineCollection extends Doctrine_Collection { /** * Processes the difference of the last snapshot and the current data * * an example: * Snapshot with the objects 1, 2 and 4 * Current data with objects 2, 3 and 5 * * The process would remove object 4 * * Diem alt...
true
ef757cf365c62d6de57c9faf249b4d2424028bdc
PHP
davidsi02/SchoolAuto
/vendor/directorytree/ldaprecord-laravel/src/Auth/DatabaseUserProvider.php
UTF-8
3,120
2.65625
3
[ "MIT" ]
permissive
<?php namespace LdapRecord\Laravel\Auth; use Illuminate\Auth\EloquentUserProvider; use Illuminate\Contracts\Auth\Authenticatable; use LdapRecord\Laravel\Events\Imported; use LdapRecord\Laravel\LdapUserAuthenticator; use LdapRecord\Laravel\LdapUserImporter; use LdapRecord\Laravel\LdapUserRepository; use LdapRecord\Mod...
true
8da8afbc1710afa36ddf0235a26654cfa6e6a584
PHP
yooper/php-text-analysis
/tests/TextAnalysis/Tokenizers/FixedLengthTokenizerTest.php
UTF-8
811
2.9375
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Tests\TextAnalysis\Tokenizers; use TextAnalysis\Tokenizers\FixedLengthTokenizer; /** * FixedLengthTokenizerTest * @author yooper */ class FixedLengthTokenizerTest extends \PHPUnit\Framework\TestCase { public function testFixedLengthTokenizer() { $tok...
true
21ea9b5cbf6c66ca5dcf587a69ccc3cf22c5dc4c
PHP
Petah/error-handler
/classes/ErrorHandler.php
UTF-8
3,655
2.609375
3
[]
no_license
<?php namespace Petah\Debug; class ErrorHandler { public function handleError($code, $message, $file, $line, $context = null) { if (error_reporting() === 0) { return false; } if (!headers_sent()) { http_response_code(500); } ob_start(); ...
true
07395d13310192c63665b46fb6725d98a9944449
PHP
doganoo/PHPAlgorithms
/src/Common/Iterator/LinkedListIterator.php
UTF-8
2,718
2.96875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * MIT License * * Copyright (c) 2018 Dogan Ucar, <dogan@dogan-ucar.de> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, includi...
true
6435640a0caa7a48add99c24b5cc18e2d94c2e25
PHP
aidanmischke/hobbit-desolation-of-smaug
/logout.php
UTF-8
1,499
2.5625
3
[]
no_license
<?php ## Load Functions require_once('include/functions.php'); ## Logout logout(); ## Redirect Home header('Location: index.php'); ?> <?php print "<?xml version=\"1.0\" encoding=\"utf-8\"?>" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xml...
true
2b79982fad94221cc73b04aeb755156e601ab741
PHP
oguztopcu/real-estate
/app/Managers/UserManager.php
UTF-8
365
2.734375
3
[]
no_license
<?php namespace App\Managers; use App\Repositories\Users\UserRepository; class UserManager { private $userRepository; public function __construct(UserRepository $userRepository) { $this->userRepository = $userRepository; } public function create(array $request) { return $thi...
true
7b751a15cabb147bf0dfec9e3c072371b840cdd1
PHP
Nozomi2710/telegramBotServiceSample
/app/Classes/FibonacciSequence.php
UTF-8
812
3.890625
4
[]
no_license
<?php namespace App\Classes; class FibonacciSequence { private int $number; /** * 建構子 * * @param int $parameter */ public function __construct(int $parameter) { $this->number = $parameter; } /** * 取得輸出 * * @return int */ public function get...
true
86252eae851659eadd1cc76059a09a9ed8928884
PHP
jawainc/points
/app/Http/Resources/StudentSearchResource.php
UTF-8
872
2.546875
3
[]
no_license
<?php namespace App\Http\Resources; use App\Course; use Carbon\Carbon; use Illuminate\Http\Resources\Json\JsonResource; class StudentSearchResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ publ...
true
1dcccc90972cb8c323bfda55d6285357134f8bff
PHP
higornucci/padroes-projeto-php
/Reprovado.php
UTF-8
598
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: higor.nucci * Date: 25/09/2017 * Time: 13:21 */ class Reprovado implements EstadoDeUmOrcamento { public function aplicaDescontoExtra(Orcamento $orcamento) { } public function aprova(Orcamento $orcamento) { throw new Exception("Orçamento está em estado ...
true
34dbcf89dd2b3569daed9e3f568624a3b1db3d83
PHP
Andreeez/quiz
/index.php
UTF-8
907
2.578125
3
[]
no_license
<html> <head> <link href="style.css" rel="stylesheet" type="text/css"> <?php include 'classes.php'?> </head> <body> <h1>Mello-quiz Vem sjöng Låten?</h1> <form method="GET"> <?php foreach($questi...
true
502983179c11f44c429ae0df3dbfedc815b942a9
PHP
johanospina/decomments_b
/components/notification-messages/models/model-notification-labels.php
UTF-8
1,388
2.609375
3
[]
no_license
<?php class DECOM_Model_NotificationLabels extends DECOM_Model { public function __construct() { parent::__construct(); $this->table_name = $this->prefix . DECOM_TABLE_NOTIFICATION_LABELS; } public function prepareDB() { $query = " CREATE TABLE IF NOT EXISTS " . $this->table_name . " ( ...
true
7e99466723ec96e16cfaad76714977b3f287a342
PHP
samuelbond/team-hire
/model/entities/UserTypes.php
UTF-8
979
2.78125
3
[ "BSD-2-Clause" ]
permissive
<?php namespace model\entities; use Doctrine\ORM\Mapping as ORM; /** * UserTypes * * @ORM\Table(name="user_types") * @ORM\Entity */ class UserTypes { /** * @var integer * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") ...
true
7e0f1b0b93513903ec2cb077bbbc4a3c768e93e3
PHP
hguochen/algorithms
/php/questions/interview_bits/backtracking/cindys_puzzle.php
UTF-8
2,672
3.46875
3
[]
no_license
<?php // You have some number n of black marbles and the same number of white marbles, // and you have a playing board which consists simply of a line of 2n+1 spaces // to put the marbles in. Start with the black marbles all at one end (say, the // left), the white marbles all at the other end, and a free space in bet...
true
4c4382407cadac0cc01451fde7440955f937d6ce
PHP
cwl080/tp51
/application/admin/controller/Index.php
UTF-8
1,067
2.578125
3
[ "Apache-2.0" ]
permissive
<?php /** * 登录控制器 * Created by PhpStorm. * User: chenwenliang * Date: 2018/8/6 * Time: 11:12 */ namespace app\admin\controller; use think\Controller; class Index extends Controller { /* * 重复登录过滤 * 如果已经登录。通过重定向输出,返回到对应的页面 */ public function initialize() { if(session('?admin.id...
true
98636b26018a67c179c798bc75f5a01f0cf2f9cb
PHP
RubenGarciaGonzalez/Servidor
/Tema1/RelacionArray2/cuatro.php
UTF-8
1,885
3.375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <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"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sh...
true
358623dc4a65e0f34ea8a47c1ff565c562fb1430
PHP
aedart/model
/src/Contracts/Integers/StateAware.php
UTF-8
1,156
3.25
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Aedart\Model\Contracts\Integers; /** * <h1>State Aware</h1> * * Component is aware of a int "state" value, which can * also be specified. * * @author Alin Eugen Deac <aedart@gmail.com> * @package Aedart\Model\Contracts\Integers */ interface StateAware { /** * Set state * * @...
true
139fe46b40e247fee4ae52ffdec6fa5c9eb551a3
PHP
bruensicke/flour
/views/helpers/content_lib.php
UTF-8
3,742
2.734375
3
[ "MIT" ]
permissive
<?php /** * ContentLibHelper * * Provides access to Content Library through a set of various functions. * * @package flour * @author Dirk Brünsicke * @copyright brünsicke.com GmbH */ App::import('Lib', 'Flour.init'); class ContentLibHelper extends AppHelper { /** * Content Model, will be set on _init() * *...
true
6e12ac06e7b0cee99d2593f733890e999bce3be9
PHP
SkysteedDevelopment/Deity
/teslaEngine/core-classes/HashStore/HashStore.php
UTF-8
936
3.453125
3
[]
no_license
<?php /* --------------------------------------- ------ About the HashStore Class ------ --------------------------------------- */ abstract class HashStore { /****** Prepare Variables ******/ /****** Load My Data ******/ public static function generateHash ( $jsonObject // <str> The serialized JSON o...
true
a066712e43b49dfa3aac9573ab3613bb6fab0817
PHP
zuchaoyang/php
/Model/Blog/mBlogClassType.class.php
UTF-8
2,039
2.828125
3
[]
no_license
<?php class mBlogClassType extends mBase { protected $_dBlogClassType = null; public function __construct() { $this->_dBlogClassType = ClsFactory::Create('Data.Blog.dBlogClassType'); } //根据班级关系ID获取信息列表 public function getBlogClassTypeById($ids) { return $this->_d...
true
e4b021cf85275e7799df1f506be0552144ee5ea8
PHP
vsimko/gama-gateway
/GamaRepository/plugins/datatypes/DT_gama_multiColumn.php
UTF-8
1,297
2.640625
3
[]
no_license
<?php /** * This is a special datatype that may contain multiple columns depending * on the caching mechanism. * * @author Viliam Simko */ class DT_gama_multiColumn extends GAMA_Datatype { static public function getUri() { return 'http://gama-gateway.eu/schema/multiColumn'; } public function getColumnDef...
true
b0c70eb9f785c840c2fe6492b34ea18d85d42952
PHP
Mukund0612/core_email_sending
/include/function.php
UTF-8
2,737
2.734375
3
[]
no_license
<?php /** * Database Connection */ $con = mysqli_connect('localhost','root','','core_email'); /** * Generate 8 Digit Rendom number */ function referral_code_generate($con,$unique){ $referral_code_len = 8; $referral_code_str = '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; ...
true
07dbfdeab866a5789f7f1c50378f4440e2daaff5
PHP
hornos/pagepos
/cobra/classes/php/coHTML.php
UTF-8
1,878
2.953125
3
[]
no_license
<?php if( ! defined( 'COBRA' ) ) die( 'No direct access' ); class coHTML { public function __construct() { } public static function out( $html = '', $is_br = false ) { print( $html . ( $is_br ? '<br>' : '' ) . PHP_EOL ); } public static function a2s( $attributes = NULL ) { $s = ''; if( is_array...
true
fb8cd52c98a978f8c3d638935ebde15207ce6445
PHP
aussieveen/CodingGame
/compiled/kirks-quest.php
UTF-8
1,675
3.5625
4
[]
no_license
<?php namespace CodeInGame\LegendsOfCodeMagic { class Debug { public function __construct($item) { error_log(var_export($item, true)); } } } namespace CodingGame\KirksQuests { class Mountain { /** * @var int */ private $height; /** * @var int */ private $position...
true
16216c0ce407f7b992f6f83b4ffcbd17fb1d7b7c
PHP
Victor8730/dashboard-modul-yii2
/models/import/ImportCsv.php
UTF-8
1,052
2.625
3
[]
no_license
<?php namespace app\modules\dashboard\models\import; use yii; use yii\base\Model; use yii\web\UploadedFile; use app\modules\user\models\User; class ImportCsv extends Model { /** * @var UploadedFile */ public $csvFile; public function rules() { return [ [['csvFile'], 'f...
true
080004e3bed8555f76459cd4365ff11657136666
PHP
astroanu/lavender
/database/seeds/InstallLavender.php
UTF-8
1,440
2.703125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; class InstallLavender extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // only run this seed if store doesn't exist if(!$this->container->store->exists){ // create default store ...
true
d7d0700bcab3d44b02cd9a43791ac8c32406543d
PHP
TheD3xter/WarZone
/php_/Tera/blog.php
UTF-8
1,873
2.796875
3
[]
no_license
<? $root = explode('/',$_SERVER['REQUEST_URI']); define ('SITE_ROOT', $_SERVER['DOCUMENT_ROOT']); define ('HTTP_ROOT', 'http://'.$_SERVER['HTTP_HOST']); include ('header.php'); $entry = !empty($_GET['entry'])? $_GET['entry'] : '0'; $sql = "SELECT * FROM blog ORDER BY fecha DESC LIMIT ".$entry.",1"; $query = query($...
true
957a97db8235d5581bafdcb6653ae920dce8bbb4
PHP
joshbnntt/peripeteia
/app/models/User.php
UTF-8
1,079
2.671875
3
[]
no_license
<?php use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\Reminders\RemindableInterface; use LaravelBook\Ardent\Ardent; class User extends Ardent implements UserInterface, RemindableInterface { protected $fillable = array('first_name...
true
7a3d0d0165ea79b886adef1ae825a7e71a4ec6fb
PHP
whyte624/unifaun-wsdl
/src/createResponse.php
UTF-8
505
2.890625
3
[]
no_license
<?php namespace UnifaunWsdl; class createResponse { /** * @var Consignment $result */ protected $result = null; public function __construct() { } /** * @return Consignment */ public function getResult() { return $this->result; } /** ...
true
0ec18330d9db8cb6978caf048888affb3336cb84
PHP
ludovicjj/framework
/src/Domain/Common/Form/Interfaces/FormTypeInterface.php
UTF-8
452
2.765625
3
[]
no_license
<?php namespace App\Domain\Common\Form\Interfaces; use App\Domain\Common\Form\FormBuilder; use App\Domain\Common\Validator\Validator; interface FormTypeInterface { /** * Builds the form. * * @param FormBuilder $formBuilder */ public function buildForm(FormBuilder $formBuilder); /** ...
true
7b70468c90679bf5c49b6e0f89941c9e5cc0f65c
PHP
papajim1990/phpWebSumfony
/src/Entity/Media.php
UTF-8
1,306
2.765625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\HttpFoundation\File\UploadedFile; class Media { private $file; /** * Sets file. * * @param UploadedFile $file */ public function setFile(UploadedFile $file = null) { $this->file = $file; ...
true
3ba6ef619d5c0810dfb16dd8e1f8bd6f6944f099
PHP
BorisZoretic/acierBD
/pdfRelated/createPdf.php
UTF-8
2,624
2.6875
3
[]
no_license
<?php require_once $_SERVER ["DOCUMENT_ROOT"] . '/AcierBD/Acier/dompdf/autoload.inc.php'; // reference the Dompdf namespace use Dompdf\Dompdf; // instantiate and use the dompdf class $dompdf = new Dompdf(); $style="table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; ...
true
e6ecbb31996b85b9b74d18e4ee79ae732ecb869c
PHP
cbandy/real-database
/tests/database/base/binary.php
UTF-8
583
2.609375
3
[]
no_license
<?php /** * @package RealDatabase * @author Chris Bandy * * @group database * @group database.literals */ class Database_Base_Binary_Test extends PHPUnit_Framework_TestCase { public function provider_constructor() { return array ( array(''), array('asdf'), array("\0"), array("\0\0\0\0\0\0\...
true
6a8ac9938afa1549adcaf058f42209974cfc8112
PHP
robugos/tcc
/api/user/functions.php
UTF-8
15,238
2.53125
3
[]
no_license
<?php require_once('../config.php'); require_once(DBAPI); $is_dev = true; function debug(){ global $is_dev; if ($is_dev) { $debug_arr = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); $line = $debug_arr[0]['line']; $file = $debug_arr[0]['file']; header('Content-Type: text...
true
248b51ce104cbee8dacd69cfc03d6a29e996309e
PHP
andrerezende/CENSO
/model/dataDBTools/Util.php
UTF-8
261
2.625
3
[]
no_license
<?php class Util { public static function dataFromBanco($data) { if($data) { $data = explode("-", $data); $data = $data[2]."/".$data[1]."/".$data[0]; } return $data; } }
true
9a82055312cd5ca9f03bfddb554a376c88218399
PHP
vblila/libertyphp
/tests/Views/ContentTest.php
UTF-8
507
2.703125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); use Libertyphp\Views\Content; use PHPUnit\Framework\TestCase; final class ContentTest extends TestCase { public function testContentRenderWithParams(): void { $renderedHtml = Content::render(__DIR__ . '/test-html.php', ['userName' => 'Ivan Ivanov', 'birthDate' => '01.02....
true
18db3f9189b1470891b4cca4f479c2e933c13209
PHP
Liliseth12/Modulo1
/app/Http/Controllers/EmployeeController.php
UTF-8
8,356
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use \App\Http\Requests\EmployeeRequest; use \App\Http\Requests\EmployeeEditRequest; use Illuminate\Support\Facades\DB; use Session; use \App\Employee; use \App\Salary; use \App\Position; use \App\Country; use \App\Department; class EmployeeController...
true
4b0da1f378bd07a8b8a96382b0ce4a44a88793c7
PHP
kvr000/dryuf-old-php
/_root/php/net/dryuf/textual/TimeDateSlashedTextual.php
UTF-8
345
2.65625
3
[]
no_license
<?php namespace net\dryuf\textual; class TimeDateSlashedTextual extends \net\dryuf\textual\FormatOnlyTextual { /** */ function __construct() { parent::__construct(); } /** @\net\dryuf\core\Type(type = 'java\lang\String') */ public function format($internal, $style) { return date('H:i:s d/m/Y', $in...
true
b356940cecafb4eee29385cfa77003de8f461cdb
PHP
adi76/kanboard
/app/Model/TaskDuplicationModel.php
UTF-8
8,755
2.765625
3
[ "MIT" ]
permissive
<?php namespace Kanboard\Model; use DateTime; use DateInterval; use Kanboard\Core\Base; use Kanboard\Event\TaskEvent; /** * Task Duplication * * @package Kanboard\Model * @author Frederic Guillot */ class TaskDuplicationModel extends Base { /** * Fields to copy when duplicating a task * * ...
true
ae7ed9a3860eb2b89cccc99677255d20ef1459d1
PHP
Ardesisme/projetMairie
/Fichiers_sprint_10/Traitement/classeConteneur/conteneurVacataire.php
UTF-8
2,045
3.28125
3
[]
no_license
<?php class conteneurVacataire { //attribut de type arrayObjet, mais on est en php donc on ne met pas les types private $lesVacataires; //le constructeur créer un tableau vide public function __construct() { $this->lesVacataires = new arrayObject(); } //les méthodes habituellement indisp...
true
7e230753aaa9195348534cd4206b220ec0dd63cc
PHP
pipoomm/thesocialnetworkProject
/functions/functions.php
UTF-8
31,780
2.515625
3
[]
no_license
<?php function insertPost() { if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['recaptcha_response']) && isset($_POST['sub'])) { // Build POST request: $recaptcha_url = 'https://www.google.com/recaptcha/api/siteverify'; $recaptcha_secret = '6LfHs8IUAAAAABPW8ePUcmohMuvxRAd8BkjE9MfT'; ...
true