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
f07332364d84e6720b27591f932be7d6aab7d01b
PHP
LidskaSila/SmsManager
/src/SmsManager/Validators.php
UTF-8
447
3
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace LidskaSila\SmsManager; class Validators { /** * https://en.wikipedia.org/wiki/E.164 * * @param string $phoneNumber * * @throws \LidskaSila\SmsManager\SmsException */ public static function isE164(string $phoneNumber): void { if (!preg_match('/\A\+(\d{1,3})(...
true
5e805b7b8da4bd257603106cc8a136fb34391da4
PHP
Igoryan93/post-project
/app/Controllers/AdminController.php
UTF-8
3,504
2.578125
3
[]
no_license
<?php namespace App\Controllers; use App\Models\ImageUpload; use App\Models\Redirect; use App\Models\Validate; use Delight\Auth\Auth; use League\Plates\Engine; use App\Models\QueryBuilder; class AdminController { private $queryBuilder, $templates, $validate, $redirect, $auth, $imageUpload; public function __...
true
5d4af8f6651be62dc6dfcdff197ae2dfa87029b8
PHP
homecreditcz/prestashop-plugin
/1.6/myloanconnector/classes/HomeCredit/OrderStateManager.php
UTF-8
2,382
2.6875
3
[]
no_license
<?php namespace MyLoan\HomeCredit; use Language; use MyLoan\HomeCredit\OrderStates\AbstractState; use MyLoan\HomeCredit\OrderStates\ProcessingState; use MyLoan\HomeCredit\OrderStates\ReadyPaidState; use MyLoan\HomeCredit\OrderStates\ReadyState; use MyLoan\HomeCredit\OrderStates\ReadyToDeliveredState; use MyLoan\HomeC...
true
c61609fe30cdf2cddc4ab058c0f33bb95f8ee8f0
PHP
lsf26809347/tools
/src/Date.php
UTF-8
1,086
3.65625
4
[]
no_license
<?php namespace lens; class Date { /** * 获得某个日期 $num 天后的日期 * * @param int $num * @param string $format * @param string $date 日期或者时间戳,默认时取今天 * @return string */ public static function dayAfter($num, $format = 'Y-m-d H:i:s', $date = '') { $time = $date ? $date : t...
true
b3dd7ed35546885c5930690f2ceea2620edac13d
PHP
SergeySG/sms_edge_test
/common/models/SendLog.php
UTF-8
2,142
2.5625
3
[]
no_license
<?php namespace common\models; use Yii; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; /** * This is the model class for table "send_log". * * @property int $id * @property int $usr_id * @property int $num_id * @property string $log_message * @property int $log_success * @property int $log_cre...
true
915a3934dbde914351ab07db9741bd0b47d9deb7
PHP
braianb92/Programacion3-Parciales
/Parcial 1/controllers/usuarioController.php
UTF-8
3,009
2.890625
3
[]
no_license
<?php namespace usuarioController; include_once './classes/response.php'; include_once './classes/data.php'; include_once './classes/auth.php'; use response\Response; use data\Data; use auth\Auth; class UsuarioController{ //Retorna la lista de usuarios public static function GetAll(){ $filePath = '...
true
8129ab14f25c0145ec23c656fd8490c58fcfac98
PHP
Chmieloo/ttapp
/api/src/Entity/Office.php
UTF-8
3,818
2.703125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\OfficeRepository") */ class Office { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(t...
true
181ce4fb88415bef70ab653afc7e2495fe8617d7
PHP
keertand/DBMS-LIbrary-tool
/borrower.php
UTF-8
1,567
2.515625
3
[]
no_license
<?php $fname = $_POST['flag1']; $ssn = $_POST['flag2']; $addr = $_POST['flag3']; $lname = $_POST['flag4']; $phone = $_POST['flag5']; $rs = ""; /* $con = mysqli_connect("localhost","root","Qwerty1!","library"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysql...
true
184e5dd62f4fcd5bb944774a5250b550b410d22e
PHP
logeethant/slim-skeleton
/app/Middleware/ExceptionHandlingMiddleware.php
UTF-8
2,540
2.625
3
[]
no_license
<?php namespace App\Middleware; use App\Exception\BaseException; use App\Exception\MaintenanceException; use App\Exception\NotFoundException; use App\Exception\RuntimeException; use DI\Container; use Dtkahl\SimpleConfig\Config; use Monolog\Logger; use Slim\Handlers\Error; use Slim\Handlers\PhpError; use Slim\Http\Requ...
true
03d2dc6c3165a6cefb6ea3fd4e5837c3e9ef4871
PHP
tomaantgoorhva/Jenkins
/src/FileValidation/Filesize.php
UTF-8
319
2.984375
3
[]
no_license
<?php /** * @author T. aan 't Goor */ namespace FileValidation; class Filesize { private $filesize; private $maxFilesize = 8388608; function __construct($filesize) { $this->filesize = $filesize; } public function isValid() { return $this->filesize <= $this->maxFilesize; ...
true
bee9c43e01a6b0aa7f0cd172f3cdae8487ca71ef
PHP
oosacker/silverstripe-graphql
/src/Schema/DataObject/InheritanceChain.php
UTF-8
5,630
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace SilverStripe\GraphQL\Schema\DataObject; use SilverStripe\Core\ClassInfo; use SilverStripe\Core\Config\Configurable; use SilverStripe\Core\Injector\Injectable; use SilverStripe\GraphQL\Dev\BuildState; use SilverStripe\GraphQL\Schema\Schema; use SilverStripe\GraphQL\Schema\Exception\SchemaBuilderExcept...
true
9bd31064263495d26ff8c7fce45bc6fe652a42f0
PHP
davelima/desafio-just-cms
/src/Model/Administrator.php
UTF-8
1,932
3.25
3
[]
no_license
<?php namespace Model; /** * Administrator model * * @author David Lima */ class Administrator { /** * Administrator name * * @var string */ public $name; /** * Administrator login * * @var string */ public $login; /** * Administrator password ...
true
2f3bec203fabfb9fc48d945209eda9b6b9447f6f
PHP
InstaBeetyLLC/InstaBeety-Project
/app/HelperFunctions/helper.php
UTF-8
2,454
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\HelperFunctions; use App\City; use App\Manager; use App\Region; use App\Store; use App\User; class Helper { public static function getManagerName($manager_id) { $manager_name = NULL; $manager = Manager::find($manager_id); if($manager != null) { ...
true
9e75c9249e1d1f08e1a1022122d1033bf76cd6d6
PHP
rapidadress/hetic-p2017
/exercices/exercice-chat/rendus/lemee-de-boishebert/site/class/bdd.class.php
UTF-8
336
2.59375
3
[]
no_license
<?php class Base { public function __construct() { $domaine = "localhost"; $base = "exercice-chat-lemee-de-boishebert"; $user = "root"; $password = "root"; $this->pdo = new PDO('mysql:host='.$domaine.';dbname='.$base.'', ''.$user.'', ''.$password.'', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'))...
true
b55aff6930f554443f66d1b28ec8f664e90eeaf6
PHP
magalimenchon/TPE-IMDS-grupo02
/Sprint 3/PaginaWeb/CooperativaDeReciclaje/views/ViewMaterialAceptado.php
UTF-8
1,829
2.546875
3
[]
no_license
<?php require_once './smarty/libs/Smarty.class.php'; class ViewMaterialAceptado { private $smarty; function __construct() { $this->smarty = new Smarty(); } function mostrarMaterialesAceptados($materiales, $logged) { $this->smarty->assign('base_url', BASE_URL); $this->smar...
true
2f3ffdd76174d3a7164e47dcd21d0cf7eb48c31d
PHP
dekan-abas/chessboarde
/cheesboarde.php
UTF-8
718
2.984375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Chess Boarde</title> </head> <body> <table style="margin: outo;"> <?php echo"<tr>"; $letter=array("","a","b","c","d","e","f","g","h"); for($row=8;$row>=1;$row--) { for($colum=1;$colum<=8;$colum++){ $d=$row + $colum...
true
d8174867bb2489427bd1c983fe4a8647fce7889f
PHP
cha63506/ArchiveManager
/class/session.php
UTF-8
1,108
2.84375
3
[]
no_license
<?php session_start(); /** * session.php * * Esta clase se encarga de administrar todas las funciones de usuarios. */ include("database.php"); class session//Inicio de clase { function validarSession($user,$password){ global $database; $password=md5($password); $query=$database->...
true
ecabc6bd1b44cc0845b27306a1d3495dab2cfff0
PHP
ccaballero/vocare
/lib/transform/Xslt.php
UTF-8
1,957
2.71875
3
[]
no_license
<?php class Xslt { private $types_transform = array( 'txt' => 'text/plain; charset=utf-8', 'latex' => 'text/plain; charset=utf-8', 'pdf' => 'application/pdf', ); private $xslt_file; private $dir_generation; private $dir_xslt; private $output = ''; public functi...
true
b30b8e07ffa74518b1b3ca4f62156786375be047
PHP
ederFortunato/codeBootstrap
/application/helpers/html_helper.php
UTF-8
4,589
2.796875
3
[]
no_license
<?php /** * Arquivo para colocarmos funcoes uteis a todo o sistema/site. * * Em geral, sao funcoes para auxiliar na parte de geração HTML. * */ /** * Gera elementos inputs * * @param array $options * @return string elementos gerados */ function htmlMountInputForm(array $options){ $error = (isset($opt...
true
dd70cb495d6f9d93bcf0482c5080583725ce1fe1
PHP
alinpop/Scrabble
/backend/src/Domain/Boards/Square.php
UTF-8
1,706
3.21875
3
[]
no_license
<?php declare(strict_types=1); namespace MySelf\Scrabble\Domain\Boards; use MySelf\Scrabble\Domain\Boards\SquareBonus\SquareBonus; use MySelf\Scrabble\Domain\Letters\Letter; class Square implements \JsonSerializable { private int $column; private string $row; private ?SquareBonus $bonus; private ?Le...
true
5978ba7fd512861e65d911a37bbed38109b9ff98
PHP
sawseries/thaisupra_trinee
/connection.php
UTF-8
540
2.625
3
[]
no_license
<?php function db(){ //$db = mysqli_connect("localhost","root","","gmcthail_testthai"); //$conn = new PDO("mysql:host=localhost;dbname=gmcthail_testthai","root",""); $conn = new PDO("mysql:host=localhost;dbname=gmcthail_testthai","root","Ooaakk1q2w3e"); // set the PDO error mode to exceptio...
true
7404a70cfdf3c00e03fac6acdf6d79236a5ad697
PHP
TakenakaHitoshi/TakenakaHitoshi
/taskLoop/taskLoop.php
UTF-8
3,228
3.484375
3
[]
no_license
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>taskLoop</title> </head> <body> <p>課題1</p> <p> <?php $fruits =[ "apple" =>[ "jap...
true
70c9fdf2a70770f9c815136ef8ae98e9c39cc964
PHP
fernandonu/gestiondemo
/modulos/pcpower/Entidades/pcpower_funciones.php
WINDOWS-1252
1,198
2.5625
3
[]
no_license
<?PHP function tabla_filtros_nombres($link){ $abc=array("a","b","c","d","e","f","g","h","i", "j","k","l","m","n","","o","p","q", "r","s","t","u","v","w","x","y","z"); $cantidad=count($abc); echo "<table width='98%' height='80%' id='mo'>"; echo "<input type=hidden name='filtro' value=...
true
e8a0857d4983163ce1f60c216ba7ada83bc97e04
PHP
michaelkrzyzaniak/Listening_Tests
/include/scripts.php
UTF-8
41,279
2.578125
3
[]
no_license
<?php $DB_PATH = "database/answers.db"; $AUDIO_LOCATION = "audio/"; $VIDEO_LOCATION = "video/"; $COOKIE_NAME = "user_id"; $MAX_NUM_RESPONSES = 30; date_default_timezone_set("UTC"); require_once("include/word_cloud.php"); /*----------------------------------------------------------*/ funct...
true
d95e3fb05f49d993a612fc5815d14db8dd100768
PHP
franqq/squeeber
/squeeber/app/classes/Helpers.php
UTF-8
712
2.921875
3
[]
no_license
<?php class Helpers { public static function displaySqueebTime($set_time) { $mytime= strtotime($set_time); $timeposted = "@" . $mytime; if(date("Y")!=date('Y',$mytime)) return date('j M Y',$mytime); elseif((new DateTime("now"))->diff(new DateTime($timeposted))->d>=1) return date('M j',$...
true
00f6130bcebced263c27844de1cd395f3da2421c
PHP
maximebf/php-debugbar
/src/DebugBar/DataCollector/DataCollector.php
UTF-8
7,977
2.890625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the DebugBar package. * * (c) 2013 Maxime Bouroumeau-Fuseau * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DebugBar\DataCollector; use DebugBar\DataFormatter\DataFormatter; use DebugBar\...
true
8e0699a92e293aa70c47d70d68fb6155e6b19c3a
PHP
1430272/taw
/tarea-02/alta_profesor.php
UTF-8
3,044
3.015625
3
[]
no_license
<?php include_once("Classes/Config.class.php"); include_once("Classes/Carreras.class.php"); include_once("Classes/Profesor.class.php"); if(isset($_POST["reg_profesor"])){ if (!isset($_POST['estatus'])) { $estatus="off"; } else { $estatus="on"; } //Creamos un objeto, envia la peticion POST como parametros al...
true
5d0a0cedfa6a13e30d24f1062d75365ba850ece7
PHP
kienquocnguyen/brighthotel-php-mysql
/admin/reservation-calendar/test.php
UTF-8
432
2.59375
3
[ "MIT", "CC-BY-3.0" ]
permissive
<?php include ("../../includes/db.php");?> <?php $ar = array( array( 'id' => 999, 'title' => 'Repeating Event', 'start' => date('2019-01-05'), 'allDay' => false, 'className' => 'info' ) ); ?> <script type="text/javascript"> var ar = <?php echo json_encode($ar) ?>; // ...
true
2ac1655ad218ed1c52108a2b232ff03ba7f4d122
PHP
csalmeida/phpnotes
/phpoop/cloning.php
UTF-8
301
3.515625
4
[]
no_license
<?php class Beverage { # Creating properties. public $name; } echo Table::$total_tables . "<br>"; $a = new Beverage(); $a->name = "coffee"; $b = $a; // Reference a variable. $b->name = "tea"; # $b is getting the value from $a. echo $a->name . "<br>"; ?>
true
bc70bb429f9c16a6822d4505fe912da7d0813c9c
PHP
PetrSladek/obrok
/app/modules/Front/UnspecifiedPersonAuthBasePresenter.php
UTF-8
1,610
2.546875
3
[]
no_license
<?php namespace App\Module\Front\Presenters; use App\Model\Entity\UnspecifiedPerson; use App\Model\Entity\Person; use App\Model\Repositories\PersonsRepository; /** * Class UnspecifiedPersonAuthBasePresenter * @package App\Module\Front\Presenters * @author psl <petr.sladek@webnode.com> */ abstract class Unspecif...
true
5e2097be44cc9be9cf473bbcb365ec264bae43da
PHP
vfremaux/moodle-local_etl
/classes/extractor.class.php
UTF-8
9,275
2.640625
3
[]
no_license
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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 3 of the License, or // (at your option) any later version. // // Moodle ...
true
eec49c705534f632c9aee44755db21cb18ca9b5f
PHP
Luis9705/POS_Hausser
/controladores/uso.controlador.php
UTF-8
3,766
2.65625
3
[]
no_license
<?php class ControladorUso{ /*============================================= CREAR USO =============================================*/ static public function ctrCrearUso(){ if(isset($_POST["nuevoID"])){ if(preg_match('/^[a-zA-Z0-9]+$/', $_POST["nuevoID"]) && preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/'...
true
ec02884daa5b8ad220649d4cfabc66a100f41613
PHP
heleifz/Phi
/app/generators/Phi/TwigGenerator/JsTokenParser.php
UTF-8
541
2.53125
3
[]
no_license
<?php namespace Phi\TwigGenerator; class JsTokenParser extends \Twig_TokenParser { private $root; public function __construct($root) { $this->root = $root; } public function parse(\Twig_Token $token) { $parser = $this->parser; $stream = $parser->getStream(); $url = $stream->expect(\Twig_...
true
ed1f5f1522f5ed195dca6ab30e6ba96cabdb4316
PHP
fatihalp/openclassify
/addons/default/visiosoft/advs-module/src/Adv/Command/appendRequestURL.php
UTF-8
2,362
2.8125
3
[ "MIT" ]
permissive
<?php namespace Visiosoft\AdvsModule\Adv\Command; use Illuminate\Support\Arr; use Illuminate\Support\Str; class appendRequestURL { protected $query = []; protected $request; protected $url; protected $new_parameters; protected $remove_parameters; /** * appendRequestURL constructor. ...
true
60b723344f8b8e4400601f119a0e19727b845d79
PHP
zhang082666/oop
/2.6/demo5.php
UTF-8
1,155
3.328125
3
[]
no_license
<?php header("Content-Type:text/html;charset=utf-8"); /** * 抽象一个类 * 实例化一个类 * 调用类中的成员属性和成员方法 * @author zhangxiaochen <2966761062@qq.com> */ class Man{ public $name = "杰克"; public $age = "28"; public $home = "加利福尼亚州"; public $name2 = "大卫"; public $home2 = "澳大利亚"; public $daishu = "袋鼠"; ...
true
4c10e9ad3a6ba114eaac13938ea71e2d7b433fe4
PHP
yinggaozhen/doc-demo
/php/throws/index.php
UTF-8
586
3.53125
4
[ "MIT" ]
permissive
<?php /** * <p>"@throws" : 抛出一个异常,告诉调用方需要做好处理异常相关工作</p> * * <b>此标签建议在PHPStorm中打开此演示文档,可以看到具体的标签效果</b> */ class TagThrows { /** * 整数相除 * * @param integer $a * @param integer $b * @return float|int * @throws \Exception 被除数不能为0 */ public static function div($a, $b) { ...
true
9150242f110e3aa38bc88084c5ccd5f01e81af04
PHP
PauliNiva/DrinkArchive
/lib/utilities.php
UTF-8
315
2.9375
3
[]
no_license
<?php class Utilities { private $drinkCount; public function _construct() { } public function countDrinks() { $query = DB::connection()->prepare('SELECT COUNT(*) FROM Drinks'); $query->execute(); $this ->count = $query->fetchColumn(); } public function getDrinkCount() { return $this->count; } }
true
e40bf7afcc1855fc37a4c78d149ec6270e7abb93
PHP
DoryanLievre/project_php_PetitComptable
/_functions/getBankDetails.php
UTF-8
276
2.5625
3
[]
no_license
<?php function getBankDetails(){ $db = db_connect(); $req = $db -> prepare("SELECT id, account_name, account_type, account_balance, account_currency FROM BankAccount WHERE id = :id"); $req -> execute(array("id" => 2)); $bankData = $req -> fetch(); return $bankData; }
true
ee70e4be7fcf2ab1d45c128c3c39da218ba4da33
PHP
nemundo/core
/src/Http/Session/SessionReader.php
UTF-8
745
2.703125
3
[ "MIT" ]
permissive
<?php namespace Nemundo\Core\Http\Session; use Nemundo\Core\Base\DataSource\AbstractDataSource; use Nemundo\Core\Debug\Debug; class SessionReader extends AbstractDataSource { /** * @return Session[] */ public function getData() { return parent::getData(); } protected functi...
true
8ca3d98d670f227bba2c87c7c50e6f18567491a6
PHP
crazydev901/esports-platform
/src/Validation/MessageTemplates.php
UTF-8
1,320
3.171875
3
[]
no_license
<?php namespace System\Validation; use Contracts\Validation\MessageTemplates as Contract; class MessageTemplates implements Contract { public function invalid(string $field) : string { return 'Please provide a valid ' . trim($field); } public function max($field, $value, int $max) : string...
true
29f337752bea63f35c3f081e82004caa46b6b78a
PHP
somini/osmandapp.github.io
/website/list.php
UTF-8
4,488
2.78125
3
[ "Apache-2.0" ]
permissive
<html> <head><title>OsmAnd Local Indexes List</title></head> <?php $update = $_GET['update']; ?> <body> <h1>Osmand Local Indexes List</h1> <table border="1"> <?php class Download { var $file; var $date; var $mtime; var $size; var $description; function Download($file,$mtime,$date,$size,$de...
true
eea20c5d6035a31aa1b69099bb868af5a20809d6
PHP
Kahbei/A3_Gr2_Validator
/src/ArrayValidator.php
UTF-8
3,528
3.0625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Gary * Date: 23/11/2014 * Time: 17:26 */ namespace CHECK\CheckValidator; /** * Class ArrayValidator * @package CHECK\CheckValidator */ class ArrayValidator { const OPERATOR_EQUAL = 1; const OPERATOR_INFERIOR = 2; const OPERATOR_INFERIOR_EQUAL...
true
2c8284583bba8753fa2cb1ffa75748db95377b38
PHP
gabrielanhaia/food2
/src/database/migrations/2020_01_10_225541_create_forms_table.php
UTF-8
1,384
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; /** * Class CreateFormsTable * * Migration responsible for creating the table "form" * * @author Gabriel Anhaia <anhaia.gabriel@gmail.com> */ class CreateFormsTable extends Migrat...
true
7ac440c450d79555b32cc360d12412e2098ec8d8
PHP
wikimedia/wikimedia-fundraising-SmashPig
/Core/Runnable.php
UTF-8
397
2.71875
3
[ "CC-BY-3.0" ]
permissive
<?php namespace SmashPig\Core; /** * A simple Command pattern module that can receive an "execute" message. Used * to mark classes which are used as a container to a generic PHP-executable * service. * * This is the only interface required when writing a stored job processor, for example. */ interface Runnable ...
true
2b94231fb3edc2c488ea8abfb6d9a103f3ef76b5
PHP
caiofralmeida/estudo-design-patterns
/Interpreter/Diretorio.php
UTF-8
415
3.078125
3
[]
no_license
<?php namespace Interpreter; use Interpreter; class Diretorio { private $noRaiz; public function __construct($nome) { $this->noRaiz = new No($nome); } public function novoDiretorio($nome) { if ($this->noRaiz->getNo() == null) { $this->noRaiz->setNo(new No($nome))...
true
6f360ee005f783dbb932d84dea5dcbae995fefef
PHP
fabpot-graveyard/output-escaper
/tests/Symfony/Tests/Component/OutputEscaper/EscaperTest.php
UTF-8
10,128
2.71875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Tests\Component\OutputEscaper; use Symfony\Co...
true
dd906519f8f2ad8ea375055f1b103dfd631b9f91
PHP
CaoJiayuan/dj-api
/database/migrations/2016_09_29_145113_add_columns_journey_pay_rules.php
UTF-8
953
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddColumnsJourneyPayRules extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('journey_pay_rules', function (Blueprint $table) ...
true
0bfe40d7798ed0f0502a2fcff97b3f52e7bf5303
PHP
alex77520/larsys
/app/Http/Controllers/Admin/UserController.php
UTF-8
5,056
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use App\Http\Requests\AdminUserRequest; use App\Repositories\CacheRepository; use App\Repositories\RoleRepository; use App\Repositories\UserRepository; use App\Http\Controllers\Controller; class UserController extends Controller { /** * @var UserRepository *...
true
4908f7685b123b974fa013384ed17ed4b1eab530
PHP
tattersoftware/codeigniter4-schemas
/src/Structures/ForeignKey.php
UTF-8
568
2.828125
3
[ "MIT" ]
permissive
<?php namespace Tatter\Schemas\Structures; class ForeignKey extends Mergeable { /** * The foreign key constraint name. * * @var string */ public $constraint_name; public function __construct($foreignKeyData = null) { if (empty($foreignKeyData)) { return; ...
true
e08bfe752c1fad3acb90c3bd4e5a98343f9f177f
PHP
fhferreira/behat-launcher
/src/Alex/BehatLauncher/Behat/OutputFile.php
UTF-8
2,506
2.90625
3
[ "MIT" ]
permissive
<?php namespace Alex\BehatLauncher\Behat; class OutputFile { private $path; private $id; /** * @param string $path an absolute path * @param string $id the storage ID */ public function __construct($path = null, $id = null) { $this->path = $path; $this->id = $id...
true
c906ef90c58a780e21256e1fe58575f1c373e7bf
PHP
rccc/Mudi
/src/Mudi/ProxyService/ScreenshotProxyService.php
UTF-8
723
2.5625
3
[]
no_license
<?php namespace Mudi\ProxyService; class ScreenshotProxyService extends \Mudi\ProxyService\ProxyService { public function __construct($options = array()) { $this->resource = empty($options['resource']) ? new \Mudi\Resource($options['resource_name']) : $options['resource']; $this->service = new \Mudi\Serv...
true
d9e05443fb74fe4255224e08e33fc83982d9a786
PHP
maniharsha1997/Lab-Internal
/register.php
UTF-8
885
2.703125
3
[]
no_license
<!DOCTYPE html> <html> <?php include "connect.php"; if(isset($_POST['sub'])) { $username = $_POST['username']; $name = $_POST['name']; $email = $_POST['email']; $password = $_POST['pwd']; $qry = "INSERT INTO user (id, name, email, password) VALUES ('$username', '$na...
true
c4af776acc84b4cf5f94b4aaf427b9237ea636ff
PHP
amail/ActiveEntity.php
/lib/ActiveEntity/DataStore/Redis/RedisTypeConverter.php
UTF-8
1,750
2.96875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the ActiveEntity package. * * (c) Robin Orheden <robin@comfirm.se>, Comfirm AB * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ // Converter specialized at converting types to and from Redis stora...
true
b0209ae50c354e2c1b5725506429243641729877
PHP
reasondigital/Shared-Service-Layer-Search
/app/Geo/Coding/Search.php
UTF-8
871
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Geo\Coding; use App\Geo\Address; /** * Contract for address search implementation classes. * * @package App\Geo\Location * @since 1.0.0 */ interface Search { /** * @return string|null * @since 1.0.0 */ public function apiKey(): ?string; /** * @return string ...
true
2fc1548af86c66603df83a6c335e11dd729305cb
PHP
valburk/reddit.dev
/app/Http/routes.php
UTF-8
1,824
2.671875
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond ...
true
ad63f0ac07beecf413d5ef1c274fedc67d7aac64
PHP
ivan4otopa/SoftUni
/PHPBasics/Homeworks/PHPArraysStringAndObjects/6URLReplacer/URLReplacer.php
UTF-8
431
2.765625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>URLReplacer</title> </head> <body> <form method="get"> <textarea name="text"> </textarea> <button>Submit</button> </form> <?php if(isset($_GET['text'])) { $text = $_GET['text']; $text = str_replace('<a href="', '[URL="', $text); $text = str_replac...
true
6001943d5be4d20f367323930597c691a9a10f82
PHP
adrrahman/latihan_wbd
/crud.php
UTF-8
408
2.625
3
[]
no_license
<?php require_once 'db_connection.php'; function SingleQuery($queri) { $conn = OpenCon(); if($conn->query($queri) == TRUE) { CloseCon($conn); return true; } else { return $conn->error; } } function MultiQuery($quries) { $conn = OpenCon(); if($conn->multi_query($quries) === true) ...
true
0c32a83cdae718b56654446bc7177e86ae4cf077
PHP
asmaaabozied/porter
/app/Http/Resources/StoreRatingResource.php
UTF-8
2,460
2.90625
3
[]
no_license
<?php /** * Store Rating resource class which handel data display * * @author Amk El-Kabbany at 18 May 2020 * @contact alaa@upbeatdigital.team */ namespace App\Http\Resources; use App\Models\StoreRating; use App\Models\Language; use Illuminate\Database\Eloquent\Collection; class StoreRatingResource { /** ...
true
3957a6e120bf78230bc630c46ef5a6f81b579e26
PHP
oliverwreath/Responsive-Web
/fourgrad/modifyTutor.php
UTF-8
2,129
3.015625
3
[]
no_license
<?php include('header.php'); include('auth.php'); ?> <h2>Modify Tutor Information</h2> <?php $loggedin=isset($_SESSION['userid']); if($loggedin) { // starting a connection with the database $connection = mysql_connect($server,$user,$pass); if (!$connection) { die('Could not connect: ' . mysql_error()); ...
true
f95972d53cd1e2451884c5b9d98bfc69890738bc
PHP
basmilius/raxos-router
/src/Raxos/Router/Attribute/SubController.php
UTF-8
809
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace Raxos\Router\Attribute; use Attribute; use Raxos\Router\Controller\Controller; use Raxos\Router\Error\RegisterException; /** * Class SubController * * @author Bas Milius <bas@mili.us> * @package Raxos\Router\Attribute * @since 1.0.0 */ #[Attribute(Attribute::TARGET_METH...
true
be5c14351c3fcb04c2cb6d613d177877a4c21ffb
PHP
SaudQureshi1997/luxio-logger
/tests/LoggerTest.php
UTF-8
1,841
2.84375
3
[ "MIT" ]
permissive
<?php use Elphis\Logger; class LoggerTest extends PHPUnit\Framework\TestCase { private $logger; private $directory = __DIR__ . '/logs/'; /** * Setup function of TestCase class * which setups objects for ascertions. */ public function setUp(): void { $this->logger = new Logg...
true
60907db37c3c012b46a46753bd18986e8c701362
PHP
usava/ttTournament
/app/src/Viking.php
UTF-8
646
3.03125
3
[]
no_license
<?php namespace Tournament; use Tournament\Weapon\BaseWeapon; use Tournament\Weapon\WeaponFactory; /** * Class Viking * @package Tournament */ class Viking extends Warrior { /** * Viking constructor. */ public function __construct() { parent::__construct(); $this->hp = Warrio...
true
7ff5c34555c0ad98dec631f303163c2c0bf2c978
PHP
canadasatellite-ca/site
/app/code/CanadaSatellite/DynamicsIntegration/Model/OrderAddress.php
UTF-8
1,223
2.890625
3
[]
no_license
<?php namespace CanadaSatellite\DynamicsIntegration\Model; class OrderAddress { private $firstname; private $lastname; private $company; private $street; private $city; private $region; private $postcode; private $country; private $phone; private $fax; function __construct( $firstname, $lastname, $c...
true
1fb9a31402450bbc6b1c8eb7d2895610432aed18
PHP
RomyxBaps/dogpro
/app/Exceptions/ReleaseException.php
UTF-8
542
3
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Exceptions; use App\Model\Release; /** * Class ReleaseException */ class ReleaseException extends Exception { /** * @var Release */ private $release; /** * @param Release $release * @param string $message */ public function __construct(Release $release, ...
true
80f9a7df8f9fade944486d37a4680392f29a147c
PHP
cranleighschool/covid-testing-calendar-display
/index.php
UTF-8
1,273
2.703125
3
[]
no_license
<?php require_once 'vendor/autoload.php'; $dotenv = Dotenv\Dotenv::createImmutable(__DIR__); $dotenv->load(); $bays = \App\Helper::getBayCalendarEvents(); ?> <html> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" /> <style> .house-north {...
true
f709e7e6e618d7e808e0915d0c51b1814d7cbde6
PHP
eldaniboom/Abraham
/app/Http/Requests/ChurchRequest.php
UTF-8
842
2.515625
3
[ "MIT" ]
permissive
<?php namespace abraham1\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ChurchRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Ge...
true
cb6ae60d06f5cefaa5655ed0c8dda5d21365a3fd
PHP
kubawerlos/php-cs-fixer-custom-fixers
/src/Fixer/IssetToArrayKeyExistsFixer.php
UTF-8
3,145
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of PHP CS Fixer: custom fixers. * * (c) 2018 Kuba Werłos * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace PhpCsFixerCustomFixers\Fixer; use PhpCsFixer\FixerDefinitio...
true
38622a45aa5bbac030561e31cb27e492d125210a
PHP
smap/mvc
/router/router_level0.php
UTF-8
5,182
2.890625
3
[]
no_license
<?php /* site.ru/index.php?c=book&a=list */ // НАСТРОЙКА function db() { static $db = null; if ($db === null) { $config = [ 'host' => 'localhost', 'dbname' => 'dbname1', 'user' => 'user1', 'pass' => 'pass1', ]; try ...
true
c36fadb2f8b363035dda9dd333a600c9e93df4af
PHP
SageITSolutions/phalcon-rest
/Phalcon/Middleware/JSON/Response.php
UTF-8
593
2.546875
3
[ "MIT" ]
permissive
<?php namespace Phalcon\Middleware\JSON; use Phalcon\Mvc\Micro; use Phalcon\Mvc\Micro\MiddlewareInterface; /** * JSON Response Middleware */ class Response implements MiddlewareInterface { /** * @param Micro $app * @returns bool */ public function call(Micro $app) { $payload = [ ...
true
adf99cffd90574216005e9c76139ca19b3cd5bea
PHP
cody1991/learn
/finish-2016/php-learn/source/Chapter 33/cartfunctions.php
UTF-8
4,554
2.9375
3
[]
no_license
<?php require_once('AmazonResultSet.php'); // Using the function showSummary() in the file bookdisplay.php display // the current contents of the shopping cart function showCart($cart, $mode) { // build an array to pass $products = array(); foreach($cart as $ASIN=>$product) { $ars = getARS('asin', array('as...
true
c9e86c8cd9e53017ca41b814517f84007d01a053
PHP
gadgad/PoP-AS-Visualization
/old_versions/query_backend_keren.php
UTF-8
6,364
2.515625
3
[]
no_license
<?php include_once("bin/load_config.php"); include_once("bin/idgen.php"); include_once("writeToXML.php"); // Turn off all error reporting error_reporting(0); if(!isset($_POST["blade"])) { echo "You are not permited to this page!"; die(); } // globals $selected_blade = $_POST["blade"]; $blade =...
true
254283b64a82b0487e718351fcd9dc3f13068ce5
PHP
tatsukoni/LaraApp
/app/Http/Controllers/EditController.php
UTF-8
2,774
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\EditRequest; use Illuminate\Support\Facades\Auth; use App\Schedule; use App\Candidate; use Webpatser\Uuid\Uuid; class EditController extends Controller { // public function __construct() { $this->middleware('auth'); } //予定編集画面 ...
true
a001d347e3709a5de60b62c0694f3403ada15093
PHP
tetalena/kviz
/src/Entity/Kviz.php
UTF-8
2,553
2.671875
3
[]
no_license
<?php namespace App\Entity; use App\Repository\KvizRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=KvizRepository::class) */ class Kviz { /** * @ORM\Id * @ORM\GeneratedValue ...
true
6f247f00455604abdd2ab335e2601bf5eb4bd2c1
PHP
minhtrieu/minhtrieu-php-with-ci
/src/application/controllers/user.php
UTF-8
13,403
2.515625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class User extends CI_Controller { public function __construct() { parent::__construct(); $this->load->database(); // $this->load->helper('url'); $this->load->model("PingoModel"); $this->load->libr...
true
6afa2608fd499677234dbb4aa41ba2cf22753f29
PHP
just-wkj/JustAdmin
/application/model/Base.php
UTF-8
1,896
2.625
3
[]
no_license
<?php /** * 模型基类 * @since 2017/07/25 创建 * @author zhaoxiang <zhaoxiang051405@gmail.com> */ namespace app\model; use app\util\Tools; use think\Config; use think\Model; class Base extends Model { //状态 const STATUS_SHOW = 1; const STATUS_HIDEN = 0; //所有状态 public function allStatusName() {...
true
e1a72be5928af01fe7b2d888e4266a47839cd254
PHP
lukeemery/Club-Management-System
/src/objects/time.php
UTF-8
254
3.359375
3
[]
no_license
<?php class Date { private $year, $month, $day, $hour, $minutes, $seconds; public function __construct() { } function SetTimeZone($tz) //set time zone +/- GMT ($tz) function __toString() { //Return a string that is the default print } }
true
12d3a0f964ade911b17a353b55fddd2a35843c38
PHP
yujinjiang/vue-php
/frienddata.php
UTF-8
1,857
2.65625
3
[]
no_license
<?php /* $server = "localhost"; $username = "root"; $password = "root"; $dbname = "userpassfinal"; $conn = new mysqli($server, $username, $password, $dbname); */ jkdhaksdasdlakjdldsjlkdlkj // echo json_encode($arr); // $times = date("Y-n-j-G-i-s"); fetdjsagdjsag{ $pdo=new PDO("mysql:host=localhost;dbname=vue","...
true
72213038c86a52ef97c666c1913126201eb3ad6e
PHP
bubargain/jiasp
/wx/mvc/lib/log.lib.php
UTF-8
2,997
3.203125
3
[]
no_license
<?php class Log { protected $_log_path; protected $_threshold = 4; protected $_date_fmt = 'Y-m-d H:i:s'; protected $_enabled = TRUE; protected $_levels = array('ERROR' => '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4'); //构造函数 public function __construct() { $config = array( "log_path"=...
true
3f72307011e9fa7cb6ebe2b3c33a2538b772ffbe
PHP
paulodutra/yii2-posts
/controllers/_ClientsController.php
UTF-8
2,858
2.90625
3
[]
no_license
<?php namespace app\controllers; use app\models\Clients; use yii\web\NotFoundHttpException; class ClientsController extends \yii\web\Controller { /** * <b>actionIndex</b> Método responsável por realizar a listagem dos clientes */ public function actionIndex() { $clients = Clients::fi...
true
00953a7b5a81ff74a8ff57ce1f13815b50f58555
PHP
Nikita-Pavlen/project
/core/Model.php
UTF-8
659
3.015625
3
[]
no_license
<?php namespace Core; class Model { protected static $link; public function __construct () { if (!self::$link) { self::$link = mysqli_connect (DB_HOST, DB_USER, DB_PASS, DB_NAME); mysqli_query (self::$link, "SET NAMES 'utf8'"); } } public function getUser ($login) { $query = "S...
true
9337b5258d1568da152befbc746146a5c7a1fe55
PHP
LamissAmrouch/Telemedecine-2.0
/application/models/Calendar_model.php
UTF-8
841
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Calendar_Model extends CI_Model { protected $table = 'rdv' ; public function get_events($start, $end) { return $this->db ->where("start >=", $start) ->where("end <=", $end) ->get("rdv"); } public function add_event($name,$desc,$start_date,$en...
true
f607bdf2bb9f7809614316805857cf15d6250c42
PHP
hokan-sfc/webpage
/lib/internal/template/parameter.php
UTF-8
1,256
2.90625
3
[]
no_license
<?php class Parameter { private $data; private $file; function __construct($data, $file=NULL) { $this->data = $data; $this->file = $file; } function get_string($key) { if (!$this->exist($this->data, $key)) { return FALSE; } $value = $this->data[...
true
625e2553456f80d57bfd27cf1c16071201949d1b
PHP
limegrow/ingenico-ogone-prestashop-payments
/vendor/ingenico/ogone-client/src/SessionInterface.php
UTF-8
670
3.203125
3
[]
no_license
<?php namespace IngenicoClient; interface SessionInterface { /** * Get all Session values in a key => value format * * @return array */ public function getSessionValues(); /** * Get value from Session. * * @param string $key * @return mixed */ public funct...
true
c29d2ad88e0f1cbc3389740877176ac03db10c68
PHP
lmaslowski/TuTu
/features/bootstrap/TutuContext.php
UTF-8
3,590
2.578125
3
[ "MIT" ]
permissive
<?php use Behat\Behat\Context\SnippetAcceptingContext; use Behat\Gherkin\Node\PyStringNode; use Behat\MinkExtension\Context\RawMinkContext; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Process\Process; use Symfony\Component\Process\ProcessBuilder; class TutuContext extends RawMinkContext impleme...
true
21fd5656fe11933265c5ea5a8c836c32242992e9
PHP
s1monRU/substring-library
/SubstringLibrary/Results/ComparedHashes/HashSum.php
UTF-8
672
3.515625
4
[]
no_license
<?php namespace SubstringLibrary\Results\ComparedHashes; /** * Class HashSum * * Class contains result of calculating file's hash * * @package SubstringLibrary\Results\ComparedHashes */ class HashSum implements HashSumInterface { /** * @var string A name of file */ public string $fileName; ...
true
e7b6d3b9ab8377b5776ee78d6465aa04c7361e4c
PHP
Dece0/ws
/app/Measurement.php
UTF-8
559
2.546875
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Measurement extends Model { // protected $primaryKey = 'mensuration_id'; public $timestamps = false; // ManyToOne relationship between Measurement and Physical quantity public function physical_quantity() { return $t...
true
b0189b4467e6328a42b8928ffd29604488982da0
PHP
935024109/itbbs
/app/Http/Middleware/ConfigMiddleware.php
UTF-8
587
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use DB; class ConfigMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { // 查看网站...
true
31a2f71c5cd8c955bd12b73421053fa9f0cf74f6
PHP
jorgefprietol/reservasy
/lib/Application/Attributes/Attribute.php
UTF-8
2,451
2.5625
3
[]
no_license
<?php /** * Copyright 2020 Prieto Linares, Jorge Fidel * * This file is part of Agenda Capacitaciones Yanbal 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 3 of the License, or * (at you...
true
93342bf24df2b6b40759bf7397ff8a873447fcf4
PHP
duuh30/people-reviews
/database/seeds/DepartmentsTableSeeder.php
UTF-8
615
2.609375
3
[]
no_license
<?php use Illuminate\Database\Seeder; class DepartmentsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $departments = ['Sales', 'Recursos Humanos', 'Marketing', 'Legal', 'Tech', 'Management']; $departmentsData = [];...
true
b33752b7886079e57d360af5262bad31f327a9e4
PHP
P79N6A/project_code
/project/images/controllers/DownwxController.php
UTF-8
2,567
2.515625
3
[]
no_license
<?php /** * 默认控制器 * 登录与退出 */ namespace app\controllers; use Yii; use app\common\UploadImage; use app\common\Http; use app\common\Logger; use app\models\ImgFileSave; /** * 下载wx的图片 * 要求xianhuahua.com同域名下 */ class DownwxController extends BaseController { public $enableCsrfValidation = false; /** * 图片上传 */ ...
true
1be25c3cd02f3bbb0be1b1f9a78935a9abcf86d3
PHP
cexarxd/4masc
/app/Services/Esteriles.php
UTF-8
318
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Esteril; class Esteriles{ public function get() { $esteril = Esteril::get(); $esterilArray[''] = 'Es Esteril?'; foreach ($esteril as $ril){ $esterilArray[$ril->esteriles_id] = $ril->nombre; } return $esterilArray; } }
true
3f01626fb7904a03bf5cd481fe0b2cc0b6e6184e
PHP
aaa101201/sfs
/ThinkPHP/Library/Org/Wechat/WechatPush.class.php
UTF-8
19,329
2.734375
3
[ "Apache-2.0" ]
permissive
<?php namespace Org\Wechat; /** * Created by PhpStorm. * User: StandOpen * Date: 15-1-7 * Time: 9:41 */ class OrderPush { protected $appid; protected $secrect; protected $accessToken; public function __construct($appId = false, $appSecret = false) { if ($appId) { $this->app...
true
3aac0b64c44e22211042cf387c73aa9ea8e18bd8
PHP
DerekRTP/rxp-js
/examples/hpp/proxy-request.php
UTF-8
2,466
2.671875
3
[ "MIT" ]
permissive
<?php function generateHash($data, $secret) { $toHash = []; $timeStamp = !isset($data['TIMESTAMP']) ? "" : $data['TIMESTAMP']; $merchantId = !isset($data['MERCHANT_ID']) ? "" : $data['MERCHANT_ID']; $orderId = !isset($data['ORDER_ID']) ? "" : $data['ORDER_ID']; $amoun...
true
732ca0b7013cc0658ba165f4f99bc45a201d39a2
PHP
paulchamberland/MESTO
/MESTO_WEB_APP/php/DAOEquipment.php
UTF-8
5,141
2.90625
3
[ "MIT" ]
permissive
<?php class Equipment { // structure of an equipment public $id; public $serialNumber; public $barCode; public $manufacturer; public $model; public $configHW; public $configSW; public $type; public $parentRoom; public $parentSite; public $updateBy; public $updateDate; public fu...
true
9a5680bf92d0866bbefd815fe8bcd743d09f6585
PHP
plumrocket/module-gene-braintree
/app/code/community/Gene/Braintree/controllers/GooglepayController.php
UTF-8
14,194
2.515625
3
[]
no_license
<?php /** * Class Gene_Braintree_GooglepayController * * @author Paul Canning <paul.canning@gene.co.uk> */ class Gene_Braintree_GooglepayController extends Mage_Core_Controller_Front_Action { /** * @var Mage_Sales_Model_Quote $_quote */ protected $_quote; /** * Return a client token to t...
true
50abba7f49f785784b9cf0accae7f5f03086dc16
PHP
LibrarySpaceUse/HSUSpaceUse
/source/phpcalls/submit-area.php
UTF-8
488
2.546875
3
[ "MIT" ]
permissive
<?php //insert the areas in the area_in_layout table require_once('./../config.php'); $areaName = $_REQUEST['areaName']; //$areaId = $_REQUEST['areaId']; //setup connection to DB $dbh = new PDO($dbhost, $dbh_insert_user, $dbh_insert_pw); $dbh->beginTransaction(); $stmt1 = $dbh->prepare('INSERT INTO area (name, faci...
true
89650939443d7192f661804de6856b66b8cc64d8
PHP
Drenso/symfony-shared
/src/Helper/GravatarHelper.php
UTF-8
567
2.859375
3
[]
no_license
<?php namespace Drenso\Shared\Helper; /** * Class GravatarHelper. * * This helper generates a gravatar url for any email address */ class GravatarHelper { public function __construct(private readonly string $fallbackStyle) { } public function gravatarImage(string $emailAddress, ?int $size = null, ?string...
true
af534ac5e0210308d3d54825ad4782a2f6aa9fa8
PHP
PROCERGS/vpr
/src/PROCERGS/VPR/CoreBundle/Entity/Sms/Sms.php
UTF-8
1,419
2.8125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace PROCERGS\VPR\CoreBundle\Entity\Sms; class Sms { /** @var PhoneNumber */ protected $to; /** @var PhoneNumber */ protected $from; /** @var string */ protected $message; /** @var \DateTime */ protected $createdAt; /** * @return PhoneNumber */ public ...
true
afe6e35e49ae9a8e78d3f295dccda7f186f4777c
PHP
scriptotek/php-alma-client
/src/Bibs/Holding.php
UTF-8
2,123
2.8125
3
[ "MIT" ]
permissive
<?php namespace Scriptotek\Alma\Bibs; use Danmichaelo\QuiteSimpleXMLElement\QuiteSimpleXMLElement; use Scriptotek\Alma\Client; use Scriptotek\Alma\Model\LazyResource; use Scriptotek\Marc\Record as MarcRecord; /** * A single Holding resource. */ class Holding extends LazyResource { /* @var string */ public ...
true
c2dbf72200506726146dda071c0d954019a6108f
PHP
imphunq/banhang
/change-pass.php
UTF-8
813
2.515625
3
[]
no_license
<?php include 'connection.php'; session_start(); ob_start(); if(!isset($_SESSION['isLogin'])) { header("Location:index.php"); } // nhan du lieu $id=$_SESSION['isLogin'][0]; $oldPass = md5($_POST['old_pass']); $newPass = $_POST['new_pass']; $reNewPass = $_POST['re_new_pass']; if($oldPass != $_SESSION['i...
true