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
beb0f1be608f204d49c9ae1a453b0c1e729e4cf7
PHP
KDAcohorte2021/POO-avec-PHP
/core/Database/MysqlDatabase.php
UTF-8
3,946
3.359375
3
[]
no_license
<?php namespace Core\Database; use Core\Database\Database; use \PDO; class MysqlDatabase extends Database { /** * @var string|null Ceci prend le nom de la base de données */ protected $db_name; /** * @var string|null Ceci prend le nom de l'utilisateur la base de données ...
true
1e57f01299d3fbcc8df5a4b6d946ec8419c4e655
PHP
FernleafSystems/iControlWP-WordPress-Plugin
/src/common/icwp-render.php
UTF-8
6,265
2.859375
3
[]
no_license
<?php class ICWP_APP_Render extends ICWP_APP_Foundation { const TEMPLATE_ENGINE_TWIG = 0; const TEMPLATE_ENGINE_PHP = 1; const TEMPLATE_ENGINE_HTML = 2; /** * @var ICWP_APP_Render */ protected static $oInstance = null; private function __construct() { } /** * @return ICWP_APP_Render */ public stat...
true
14d5573510a20010f861a0ebc0ab2ffbb7f2e6e0
PHP
gekko-framework/framework
/src/Core.php
UTF-8
291
2.65625
3
[ "MIT" ]
permissive
<?php namespace Gekko; class Core { /** * Project's path * * @var string|null */ private static $projectPath; public static function init(string $projectPath) : void { self::$projectPath = $projectPath; Env::init($projectPath); } }
true
b267cf0bcd7471e93920d85620c65c83e03761d5
PHP
X-Coder264/webshop_veralux_promet
/app/Manufacturer.php
UTF-8
493
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App; use Illuminate\Database\Eloquent\Model; class Manufacturer extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'product_manufacturers'; /** * The attributes that are mass assignable. ...
true
d3ce6a715e1040f19b93a4946a10707f4702bb7a
PHP
wojciechgawronski/make_it_simple
/oop/kompozycja.php
UTF-8
1,031
3.5625
4
[]
no_license
<?php declare(strict_types=1); /** * Kompozycja - przyklad * ścisła forma współpracy obiektów * obiekt zależny - podrzędny istnieje tak długo jak istnieje opbiekt zewnętrzny, który jest dla niego kontenerem */ class Flat { public function __construct( private string $size, private int $room =...
true
a33f82a3d034c440d4911eefa2e5e46ba40f4af1
PHP
harismuntazir/topper
/change.php
UTF-8
863
2.9375
3
[]
no_license
<?php //used to change data already inserted into database //converts html specials chars in their equivalent ones //then updates the data back to database require "server.php"; $get = mysqli_query($mysql, "SELECT * FROM Y2019;"); if (!$get) { echo "failed to get data <br />"; exit; } $records...
true
bb0fb4ba136fba3c434d83e0a69cf49489be1356
PHP
subho406/Trails
/Trails_Server/test.php
UTF-8
2,934
2.875
3
[]
no_license
<?php function CaputreFlow($value='') { if($_POST["flow"]) { $json_flow = $_POST["flow"]; echo "<h1>Flow Captured!</h1> <br>"; // Success Message // var_dump(json_decode($json_flow,true)); $flow = json_decode($json_flow,true); DataEntry($flow); // echo "<hr>".$flow[0]['ti...
true
4495a4e82e4107e811505a20f892de89ea78c946
PHP
LucasBadico/BulkInsertBenchmark
/DataProvider.php
UTF-8
247
2.578125
3
[]
no_license
<?php interface DataProvider { public function getName(); public function getDocumentCount(); public function getBlockSize(); public function init(); public function getNextDocument($offset, $id); public function shutdown(); }
true
73bb807c283273804b9e1f5ee9be819ff91a31ac
PHP
lilianabustos/SoloPHP
/FlatFile/logeador.php
UTF-8
542
2.65625
3
[]
no_license
<?php //se va a encargar de guardar un registro en una base de datos de todos aquellos visitantes //que visiten mi web //archivo donde se van a guardar lo9s log $archivologs= "logs.dat"; //averiguar la ip de quien visita mi web y averiguar el navegador @$ip = getenv(REMOTEADDR); $navegador = $_SERVER["HTTP_USER_AGENT...
true
5cf74e727f2f4675c3bc7cea2813e67c049665f5
PHP
TYPO3-svn-archive/ics_sitlor
/ics_sitlor_query/Classes/data/class.tx_icssitlorquery_Type.php
UTF-8
3,501
2.8125
3
[]
no_license
<?php /*************************************************************** * Copyright notice * * (c) 2011-2012 In Cite Solution <technique@in-cite.net> * All rights reserved * * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute it and/or modify * it under the terms ...
true
6560c9b8184983f5a8a0a42bbef75db72109db8f
PHP
sedamiqaelyan/ACA
/Daily/day15/Task1.php
UTF-8
383
3.71875
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <input name="fib" type="text"> <?php if(isset($_GET['fib'])){ echo fibonachi($_GET['fib']); function fibonachi($x) { if($x==0) return 1; if($x==1) return 1; ret...
true
ba68b1625b4cccb05cdf6789d16e485b9140b6d8
PHP
manishsahani999/Folle
/app/app.php
UTF-8
234
2.796875
3
[]
no_license
<?php class App { public $providers = []; public function bind($provider) { $classname = str_replace("ServiceProvider", "", get_class($provider)); $this->providers[$classname] = $provider; } }
true
0fcbd67adae00de0f1fd619081d05c55b7567ee3
PHP
scolate/GingerStockExchange
/member/agent/Lib/Security.class.php
UTF-8
5,219
2.890625
3
[]
no_license
<?php /** * Contains all necessary security functions */ class Security { /** * @var object $xltm - Will contain everything else */ var $xltm; /** * Construct class and clean input * @param object $xltm - Contains all other classes * @return void */ function Security(&$xltm) { // 检查 register_globals...
true
c80278cfd83161fdb0998f29579554e89a7c4929
PHP
belashdima/FCP
/admin/application/models/Value.php
UTF-8
893
3.125
3
[]
no_license
<?php /** * @package ${NAMESPACE} * @subpackage * * @copyright A copyright * @license A "Slug" license name e.g. GPL2 */ class Value { public $valueId; public $value; /** * Value constructor. * @param $valueId * @param $value */ public function __construct($valueId,...
true
074081571242381a44393c51a1c1193a9f86c1b5
PHP
kristof-siket/SportsDirectorSystem
/database/migrations/2018_01_31_084512_create_results_table.php
UTF-8
1,463
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateResultsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('results', funct...
true
08755d82586d4cbd4ea0aaf9e5c9080c4217adcd
PHP
Potelo/MultiPayment
/src/Contracts/Gateway.php
UTF-8
1,655
3.078125
3
[]
no_license
<?php namespace Potelo\MultiPayment\Contracts; use Potelo\MultiPayment\Models\Invoice; use Potelo\MultiPayment\Models\Customer; use Potelo\MultiPayment\Models\CreditCard; use Potelo\MultiPayment\Exceptions\GatewayException; use Potelo\MultiPayment\Exceptions\GatewayNotAvailableException; interface Gateway { /*...
true
1f409365e51934eca71219ffc3a42fbe7b964bd1
PHP
xieguanping12/Tools
/app/Http/Controllers/Tools/QiniuController.php
UTF-8
4,970
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Tools; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Storage; use Qiniu\Auth; use Qiniu\Storage\UploadManager; class QiniuController { public $access_key; public $secret_key; public $bucket; public $limit_file_siz...
true
02082413a482cb991fc7376a27fcfd97b373c3fc
PHP
MarioBlazek/Fraudator
/lib/Http/Response.php
UTF-8
723
2.953125
3
[]
no_license
<?php namespace Marek\Fraudator\Http; class Response { const HTTP_OK = 200; const HTTP_SERVER_ERROR = 500; /** * @var array */ protected $data; /** * @var string */ protected $code; /** * Response constructor. * * @param string $code * @param str...
true
b61b150349de9b39d9477a27e8ff13333ff85329
PHP
dmelo/DZend
/library/DZend/tests/FormTest.php
UTF-8
2,990
2.578125
3
[]
no_license
<?php class FormTest extends PHPUnit_Framework_TestCase { protected function _getEmailForm() { $form = new DZend_Form(); $form->addEmail(); $this->assertTrue( $form->getElement('email') instanceof DZend_Form_Element_Email ); return $form; } protecte...
true
5e8415ea1d686a0cc9a7e5ff21e9293479e84a64
PHP
crewkie/phpro
/lib/DataReader.php
UTF-8
1,149
3.109375
3
[]
no_license
<?php /** * @author Cookie * @file DataReader.php * @date 09/29/2013 02:00:00 * @version 0.1 * @desc The following class contains methods related to reading the txt tables from the RO /data/ folder. */ namespace Crewkie\PhpRo; class DataReader { public function __construct($dataSource) { $this->file...
true
af1d87163a8e29659caacca0fa3f1399a5a2e0f4
PHP
condesan/mtnforum
/templates/e-forums.tpl.php
UTF-8
576
2.53125
3
[]
no_license
<div id="e-forums"> <?php foreach ($forums as $comm_id => $forum) { $comm = node_load($comm_id); ?> <h3><?php print $comm->title; ?></h3> <?php $header = array(); $rows = array(); foreach ($forum as $data) { $title = l($data->title, 'node/'.$data->nid); $description = node_tease...
true
bab9c9f8e947d0a731ae94e4f4203ccf1cb47db0
PHP
kkhtun/photoshare-laravel
/app/Http/Controllers/UserController.php
UTF-8
1,928
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; class UserController extends Controller { // public function __construct() { $this->middleware('auth'); ...
true
e950c31d7e6075efa9652e2d8982dbc318c91161
PHP
ZdenekSrb/github_search_app
/github_repository/src/AppBundle/Entity/UserName.php
UTF-8
1,738
2.546875
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Entity; use Symfony\Component\Validator\Constraints as Assert; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="user_log") */ class UserName { /** * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Column(name="id", type="integ...
true
e64dbc7823bd883ff0db7308c934311d8ae46fbb
PHP
Misaelduarte/cadastro-nomes
/index.php
UTF-8
1,088
3.4375
3
[ "MIT" ]
permissive
<?php /* * Iniciando sistema para cadastro de nomes; * Sistema simples, usando conceitos de file_get_contents e file_put_contents; * Inserindo nome, e salvando em um arquivo .txt; */ session_start(); // Iniciando session; require './index.html'; // Requerindo arquivo index.html; // Condição para caso exista o arqu...
true
48bf2d2c716578b55b4314af122f92a269d6d899
PHP
DarylChristian/FEUC_BED_AES
/average.php
UTF-8
1,258
2.859375
3
[]
no_license
<?php include_once("connection_string_connection_string.php"); function countEvaluators($prof) { $con = $GLOBALS['dbh']; $select = "SELECT count(DISTINCT student_id) FROM tbl_rating WHERE prof_id = ?"; $stmt = $con->prepare($select); $stmt->execute(array($prof)); $res = $stmt->fetch(PDO::FETCH_NUM); $num = $res...
true
06128718543a4d136b78825576378decc161d3e9
PHP
phpstan/phpstan-src
/tests/PHPStan/Rules/Methods/data/static-method-named-arguments.php
UTF-8
212
3.046875
3
[ "MIT" ]
permissive
<?php namespace StaticMethodNamedArguments; class Foo { public static function doFoo(int $i, int $j): void { } public function doBar(): void { self::doFoo(i: 1); self::doFoo(i:1, j: 2, z: 3); } }
true
69c0a11f1408e137ea924b2c6f061537af75ecf8
PHP
fcunhaneto-test/mscollection-08
/app/Http/Controllers/Auth/AuthenticatorController.php
UTF-8
1,667
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use App\Models\User; use Illuminate\Support\Facades\Auth; class AuthenticatorController extends Controller { public function register(Request $request) { // n...
true
c80ad364f2b5ae76ca0cd0ef45236605f42b7db4
PHP
theallengroup/IntelNeo
/core/include/report.php
UTF-8
2,950
2.75
3
[]
no_license
<?php /** * \todo 268 excel like partitioning: * take a group of data and part it equally in X parts, display the results in different colors. * this is an excelent module. * \todo 270 calculated fields? * \todo 275 calculated fields in VIEWS in general? * */ class report extends db{ var $options; var $caller;...
true
ab2bd25f44d603efa6741a7b9464b709fe9627bd
PHP
edwardlorilla/books
/app/Http/Controllers/BookController.php
UTF-8
3,150
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Book; use Illuminate\Http\Request; class BookController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return response()->json(Book::orderBy(request(...
true
279be00a3d6f3f36bb99a733ee0bf77739fda792
PHP
satyamagarwal249/projects
/library manangement/removeshow2.php
UTF-8
4,789
2.625
3
[]
no_license
<?php function highlightKeywords($master,$cond ,$text ,$wordsAry) { //print_r($wordsAry); if($cond==1 || $master==1){ $wordsCount = count($wordsAry); for($i=0;$i<$wordsCount;$i++) { $highlighted_text = "#$^#$wordsAry[$i]#$$#"; $text = str_ireplace($wordsAry[$i], $highlighted_text,$text); } $text = ...
true
d02e1c2a958cf72f6a1c6fea1a44ed01fc9fef8b
PHP
Yuki-Kurita/TechBlog-templete
/admin/edit.php
UTF-8
2,003
2.5625
3
[]
no_license
<?php session_start(); if(!empty($_POST['title'])){ $_SESSION['title'] = $_POST['title']; } // 前の記事のタイトルを保管 $old_title = $_SESSION['title'][0]; // 記事が複数選択されている場合 if(count($_POST['title'])>1){ $_SESSION['message'] = '編集するときは記事を一つだけ選択してください'; header('Location:./main.php'); } // 記事が選択されていない場合 if(empty($_SESSION['tit...
true
0e23da6ae960fbeb2214664586b5b4efd9700ae9
PHP
karayabin/universe-snapshot
/universe/Ling/TimeFileUtil/TimeFileUtil.php
UTF-8
2,408
3.109375
3
[]
no_license
<?php namespace Ling\TimeFileUtil; class TimeFileUtil { private $extractor; private $isRecursive; public function __construct() { $this->isRecursive = true; } public static function create() { return new static(); } public function setIsRecursive($isRecursive...
true
fa204eaada605c6311bb8fc988f434c46c56fd5e
PHP
pedrosorio/southafrica.is-great.org
/htdocs/updatetable.php
UTF-8
1,200
2.515625
3
[]
no_license
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <?php /* * In case something went wrong * updates database based on game results */ session_start(); $con=mysql_connect($_SESSION['database_server'],$_SESSION['username'],$_SESSION['password']); mysql_sele...
true
3ad60e5ca0ff4fec1110ae49ce5e22cd68fa0ff4
PHP
mrahimygk/spy
/toss_api.php
UTF-8
3,814
2.8125
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); $servername = "localhost"; $username = "cafesqir_root"; $password = "iHNqXYexdFBg"; $db = "cafesqir_spy"; $conn = new mysqli($servername, $username, $password, $db); $conn-> set_charset("utf8"); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_e...
true
04718cb45a351c6302bd9a832c34ddaec25cd95f
PHP
tanvir-uits/mismatch
/login.php
UTF-8
1,279
2.515625
3
[]
no_license
<?php require_once('appvars.php'); if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) { // The username and password isn't entered so send the authentication headers header('HTTP/1.1 401 Unauthorized'); header('WWW-Authenticate: Basic-realm="mismatch"'); exit('<h3>Mismatch</h3> Sorry, ...
true
639b36a99c6f23dc6d4a609dda63ca43da084b69
PHP
Laemmi/simple-template-engine
/src/Plugins/CompileVariable.php
UTF-8
3,134
2.609375
3
[ "MIT" ]
permissive
<?php /** * 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, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * a...
true
c664b0eda89b735bc2e1aaf27198ac44f1811ed4
PHP
rHadzhitsenev/Mini_Lib
/Mini_Library/Services/addBooks/addBooksService.php
UTF-8
1,300
3.125
3
[]
no_license
<?php namespace Services\addBooks; use Adapter\PDODatabase; use Data\addBook\addBookViewData; class addBooksService { /** @var PDODatabase */ private $db; public function __construct($db) { $this->db = $db; } public function getAddBookViewData() { $viewData = new add...
true
4152e320fd2e8e1dd58e3d5b6f7c51e1d2d39e02
PHP
CindAlfi99/cf
/guru/add.php
UTF-8
2,671
2.59375
3
[]
no_license
<?php require 'conn.php'; if (isset($_POST['submitG'])) { //tangkap name $nip = $_POST['nipG']; $nama = $_POST['namaG']; $jenkel = $_POST['pilih']; $telpon = $_POST['telponG']; $status = $_POST['statusG']; $foto = $_POST['fotoG']; //masukkan ke db $myquery = mysqli_query($conn, "INSERT INTO guru VALU...
true
41104c4c0b518ff3bad7c0d5bd38cb04d8355907
PHP
elitedev201/curateship
/Modules/Blog/Entities/Blog.php
UTF-8
828
2.5625
3
[]
no_license
<?php namespace Modules\Blog\Entities; use Illuminate\Database\Eloquent\Model; class Blog extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['title', 'description', 'image', 'username']; /** * The attributes that appended to t...
true
c1e385c48f46e6a3a562586e8386860a2c2776cb
PHP
helsingborg-stad/force-ssl
/App.php
UTF-8
2,460
2.625
3
[]
no_license
<?php namespace ForceSSL; class App { public function __construct() { // Basic force $this->forceSSL(); //Redirects add_action('template_redirect', array($this, 'redirectToSSL'), 5); add_action('admin_init', array($this, 'redirectToSSL'), 5); add_action('login...
true
8ff02a4316cbfc41194e81b6dc3c5088ac3f68b4
PHP
pythonfree/itproger
/ajax/reg.php
UTF-8
1,391
2.921875
3
[]
no_license
<?php $username = trim(filter_var($_POST['username'], FILTER_SANITIZE_STRING)); $email = trim(filter_var($_POST['email'], FILTER_SANITIZE_EMAIL)); $login = trim(filter_var($_POST['login'], FILTER_SANITIZE_STRING)); $pass = trim(filter_var($_POST['pass'], FILTER_SANITIZE_STRING)); $error = ''; if (strlen($us...
true
e96a0fcebe1c8527abd1e0978c1308db56419d2d
PHP
trazzos/iap
/libs/plugins/modifier.html_parse.php
UTF-8
530
2.71875
3
[]
no_license
<?php /** * Smarty plugin * @package Smarty * @subpackage PluginsModifier */ /** * Smarty count_words modifier plugin * * Type: modifier<br> * Name: count_words<br> * Purpose: count the number of words in a text * @link http://smarty.php.net/manual/en/language.modifier.count.words.php * c...
true
60e5f5b4093589dcf911cb9698229158b17706b0
PHP
tanateros/big-data-devices
/src/Entity/DeviceData.php
UTF-8
6,051
2.703125
3
[]
no_license
<?php namespace High\Entity; use High\Helper\Uuid; use Sinergi\BrowserDetector\Os; /** * Class DeviceData * * @package High\Entity */ class DeviceData extends AbstractEntity { public $ip; public $lang; public $deviceType; public $osVersion; public $appVersion; public $data; publ...
true
f35b1d155ae0b5886a5ca6de9aacb4e591c27141
PHP
Ceindetec/AppLearningWords
/vendor/kendoui/lib/Kendo/UI/GridColumnFilterableCell.php
UTF-8
3,622
2.578125
3
[ "MIT" ]
permissive
<?php namespace Kendo\UI; class GridColumnFilterableCell extends \Kendo\SerializableObject { //>> Properties /** * Sets the data source of the GridColumnFilterableCell. * @param array|\Kendo\Data\DataSource $value * @return \Kendo\UI\GridColumnFilterableCell */ public function dataSource($val...
true
81309dda4dabb089ec4f69f61caa6526c84c5fb6
PHP
takagotch/php
/PhpMysql/17/modify_post.php
UTF-8
5,492
2.703125
3
[]
no_license
<?php include('db_login.php'); require_once('DB.php'); require_once('config.php'); // ログイン済みか確認する session_start( ); $stop=FALSE; $found_error=FALSE; // ヘッダを表示する $smarty->assign('blog_title',$blog_title); $smarty->display('header.tpl'); if (!isset($_SESSION['username'])) { echo ("Please <a href='login.php'>logi...
true
64ef1074b646b280e89a4648dfd430e78c196cec
PHP
eastukalov/php-lesson6
/list.php
UTF-8
1,030
2.59375
3
[]
no_license
<html> <head> <title>Выбор теста</title> </head> <body> <?php $dir = 'test/'; $check = false; $files = []; if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if (end(explode(".", $file))=='json') { $...
true
07f9382692c1c7845fa698e1f1f480affaa15249
PHP
shalva02/lab1-php
/davaleba3/form.php
UTF-8
610
2.84375
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"> <title>Document</title> </head> <body> <?php error_reporting(0); ?> <?php $arr = array("1","correct","3","calc","c...
true
ef00df6b1565fd86bbfbd3e6fae11f2bae80afe3
PHP
Mioramalala/ams
/ams_test/ams/ams-mvc/index.php
UTF-8
1,596
2.59375
3
[ "Apache-2.0" ]
permissive
<?php $environment = 'DEBUG'; setlocale(LC_ALL, 'fr_FR'); session_start(); // Check the environment for error displays if ($environment === 'DEBUG') { error_reporting(E_ALL); ini_set('display_errors', 1); // Check mission session if (!isset($_SESSION['idMission'])) { header("Location: ../in...
true
5c52e6dcbcaf9e3ead6924f0dec78c2d8cfddb64
PHP
Jadaw1n/webec-attendance-tool
/src/Controllers/Reason.php
UTF-8
1,358
2.75
3
[]
no_license
<?php namespace Controllers; use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; use \Interop\Container\ContainerInterface as ContainerInterface; use \RedBeanPHP\R; // reasons endpoints class Reason { protected $ci; public function __construct(ContainerInte...
true
9f32d9ed3ecde6a14447aeae03cc30478d26f99d
PHP
Frahli10/portfolio
/core/Model.php
UTF-8
1,251
2.984375
3
[]
no_license
<?php class Model { static $connections = array(); public $conf = 'default'; public $table = false; public $db; public function __construct() { $conf = Conf::$databases[$this->conf]; if (isset(Model::$connections[$this->conf])) { $this->db = Model::$connections[$th...
true
2dd20ba142255807318968b196ad17d138041866
PHP
gedwu/MuFan-Laravel
/database/factories/GameFactory.php
UTF-8
718
2.59375
3
[]
no_license
<?php use Faker\Generator as Faker; $factory->define(App\Game::class, function (Faker $faker) { $leagueIds = \App\League::all()->pluck('id')->toArray(); $teamsIds = \App\Team::all()->pluck('id')->toArray(); $goalsIn = [0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5]; $goalsOut = [0, 1, 2, 3, 4, 5]; retur...
true
6f6dc5eb5555be0fc914d035e404a0f5498a7833
PHP
hauserm3/hospital
/api/FileInfo.php
UTF-8
1,028
2.6875
3
[ "MIT" ]
permissive
<?php require_once 'settings.php'; class FileInfo{ var $errHandling; function __construct(){ $this->errHandling = new ErrorHandling(); } //1 function getTimestamp($filepath){ try{ if(file_exists($filepath)){ return filemtime($filepath); } else {...
true
254765764c2df717b833003d8d56e44981138196
PHP
JJRcop/newSS13tools
/inc/classes/stat.php
UTF-8
37,627
2.75
3
[]
no_license
<?php class stat { public function getStatForMonth($stat, $month = null, $year = null) { $db = new database(); if($db->abort){ return FALSE; } $db->query("SET SESSION group_concat_max_len = 1000000;"); //HONK // $db->query("SELECT tbl_feedback.var_name, // count(distinct tbl_feedback...
true
aad2eb537dd57f0fd82c60a3c87a5102010670aa
PHP
dacodemaniak/intranet-arcec
/_commun/classes/forms/dossier/addDossier.class.php
UTF-8
3,423
2.53125
3
[]
no_license
<?php /** * @name addDossier.class.php Formulaire de création de dossier * @author web-Projet.com (jean-luc.aubert@web-projet.com) * @package arcec\Dossier * @version 1.0 **/ namespace arcec; class addDossier extends \wp\formManager\admin{ /** * Instancie un nouvel objet de création de dossier *...
true
4298e1965cc5627d3b23cb53b2f848be5dbabb5b
PHP
doanlecong/HrStragy
/database/migrations/2018_05_27_111456_create_jobs_table.php
UTF-8
1,138
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateJobsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('jobs', function (B...
true
c75a277e5d5b526aaaa6d000b09264c2452c9b16
PHP
ctu-fee/elvo
/module/Elvo/tests/unit/ElvoTest/Domain/Entity/Collection/AbstractCollectionTest.php
UTF-8
2,783
2.5625
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php namespace ElvoTest\Domain\Entity\Collection; use Elvo\Domain\Entity\Collection\Exception\InvalidItemException; class AbstractCollectionTest extends \PHPUnit_Framework_Testcase { public function testConstructor() { $item1 = new \stdClass(); $item2 = new \stdClass(); $...
true
071cd72147a9252b5fb126d0458ffeb08eaf8961
PHP
ArcheeNic/decl-api
/tests/Unit/DeclApi/TestedBlank/TestedObjectClass.php
UTF-8
636
2.71875
3
[]
no_license
<?php namespace Tests\Unit\DeclApi\TestedBlank; use DeclApi\Core\ObjectClass; /** * Тестовый родительский объект * * Образец описания * Который никогда не кончается * * @package Tests\Unit\DeclApi * @property TestedObjectChildClass $test */ class TestedObjectClass extends ObjectClass { public function ini...
true
0395bcc95a8b018557f12fe5ecd9fd4e98d7b8a6
PHP
Ben-yachou/CoursAlkas
/php/objets/personnage.php
UTF-8
3,609
3.890625
4
[]
no_license
<?php //en Php également, une classe se définit avec le mot clé class class Personnage { //une classe d'objets possède des propriétés qui permettent de définir certaines données //ces propriétés ont une niveau de visibilité qui définit la possibilité d'accès aux données //private signifie que l'attribut n...
true
5fd7872803429366b55d159d22beec9e18a8c9a3
PHP
TitusdeMaupeou/macebook
/index.php
UTF-8
3,681
2.609375
3
[]
no_license
<?php /* if (isset($_COOKIE['UserId'])) {//Testen of de logincookie er is include_once 'DAO/PersonDAO.php; if (PersonDAO::getById($_COOKIE['UserId']) != false) {//testen of de ID binnen de login cookie bestaat $user = PersonDAO::getById($_COOKIE['UserId']);//indien deze bestaat word de ingelogd...
true
58f60da905c615e7e4ff74de0f93e14ba1c0fe89
PHP
markmorcos/eShop
/purchases.php
UTF-8
2,038
2.53125
3
[]
no_license
<?php include "header.php"; ?> <h1 class="row">Purchases</h1> <?php if(!$current_user) { $_SESSION["notice"] = "Please login to continue"; header("Location: index.php"); die(); } $result = mysqli_query($con, "SELECT * FROM purchases WHERE user_id = $id ORDER BY created_at DESC"); ?> <?php while($purchase = mysqli...
true
c7fcb7849b37ad56a651059233b41e32d05616de
PHP
maxpatro1/sportdates
/database/migrations/2021_07_18_152904_add_some_fields_to_users_table.php
UTF-8
1,120
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddSomeFieldsToUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', f...
true
eddc6a8e25b62ec4a0a795f5288b9a380e174d65
PHP
Molajo/Application
/Source/Resource/ExtensionMap/ModelName.php
UTF-8
2,172
2.515625
3
[ "MIT" ]
permissive
<?php /** * Model Name * * @package Molajo * @copyright 2014-2015 Amy Stephen. All rights reserved. * @license http://www.opensource.org/licenses/mit-license.html MIT License */ namespace Molajo\Resource\ExtensionMap; /** * Model Name * * @package Molajo * @copyright 2014-2015 Amy Stephen. All rig...
true
79754e4c583900da15866783397523c80eec88d4
PHP
WuSeHunxi/git
/PHP/NEW/10.23/文件/文件知识点.php
UTF-8
593
3.46875
3
[]
no_license
<?php /** * * fopen()--->打开文件 * fget()--->从文件中逐行读取文件 * fgetc()--->从文件中逐字符地读取文件 * fclose()--->关闭打开的文件 * feof()--->检查是否已经到达文件末尾 * */ $file = fopen("name.txt", "r") or exit("无法打开文件!"); // 读取文件每一行,直到文件结尾 echo $file;//Resource id #3hahhah while(!feof($file)) { // 读取文件 echo fgets($fil...
true
79c1c9cf51018f9dac73b906a77de256e2079919
PHP
rishabhgupta54/application-programming-interface
/Employees/Employees.php
UTF-8
3,226
2.984375
3
[]
no_license
<?php require_once './Config/Database.php'; class Employees extends Database { private $id; private $firstName; private $lastName; public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } private $designation; public f...
true
798189e33da346c2c96697cb2c1e5c6b7800de6e
PHP
Auferoz/PMTFacturas
/registro_.php
UTF-8
8,718
2.5625
3
[]
no_license
<?php require 'funcs/conexion.php'; require 'funcs/funcs.php'; $errors = array(); if (!empty($_POST)) { $nombre = $mysqli->real_escape_string($_POST['nombre']); $usuario = $mysqli->real_escape_string($_POST['usuario']); $password = $mysqli->real_escape_string($_POST['password...
true
e2815650ec81249f603a145e33459b5831cd81ee
PHP
NinaBaravaya/familySmile
/familySmile.by/www/mail.php
UTF-8
8,115
2.515625
3
[]
no_license
<?php session_start(); include('connect.php'); if (isset($_POST['formData'])) { $formData = isset($_POST['formData'])? $_POST['formData']:''; $name = isset($_POST['name'])? $_POST['name']:''; $phone = isset($_POST['phone'])? $_POST['phone']:''; //echo $formData; function String($str){ $...
true
5aa6805e548d559a2c1ec89bcf61480ccb88d592
PHP
lolster/flyly-chat-app
/public/phpscripts/login.php
UTF-8
3,286
2.703125
3
[]
no_license
<?php session_start(); require 'db_connect.php'; $entered_username = $_POST["username"]; $entered_password = $_POST["password"]; if(!$stmnt = $connection->prepare('select userid, username, firstname, lastname, email, password from `users` where username = ?')){ // die(json_encode(array( ...
true
5c44f5a8c5bc9286a88eb1aced07973319bf64d0
PHP
ipCoelho/Simple_Tool
/php/page.tabuada.php
UTF-8
4,080
2.609375
3
[]
no_license
<?php require_once('functions.php'); if(isset($_POST['btnCalcular'])){ $tabuada = $_POST['iptTabuada']; $contador = $_POST['iptContador']; if(!empty($tabuada) && !empty($contador)){ if(is_numeric($tabuada) && is_numeric($contador)){ if(!$tabuada === 0 && !...
true
95db5e050d935d43f5eaff235302c41522689bae
PHP
teu/AgileProfiler
/lib/AgileProfiler.php
UTF-8
833
2.765625
3
[ "BSL-1.0" ]
permissive
<?php /** * General utility class in Agile Profiler * * In a later version can be made into a proxy. * * @package AgileProfiler * * @author Piotr Jasiulewicz */ abstract class AgileProfiler { /** * Internal autoloader for spl_autoload_register(). * * @param string $class */ public static function...
true
ac278e43bc210c23d2f2c34bcfe3ddc0b7ef8416
PHP
ondrej-bouda/ivory
/src/Ivory/Type/Std/BinaryType.php
UTF-8
1,049
2.96875
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Ivory\Type\Std; use Ivory\Type\TypeBase; use Ivory\Type\ITotallyOrderedType; /** * Binary data. * * Represented as the PHP `string` type. * * @see https://www.postgresql.org/docs/11/datatype-binary.html */ class BinaryType extends TypeBase implements ITotallyOrderedType ...
true
45314d3aba2eb59c7c002c4d0a6ad9fe53894460
PHP
emch43l/marketMonitoring
/src/Entity/MarketItems.php
UTF-8
1,542
2.6875
3
[]
no_license
<?php namespace App\Entity; use App\Repository\MarketItemsRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=MarketItemsRepository::class) */ class MarketItems { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** *...
true
157f00b8118c3556f1f39fe0e0788647a14ffb78
PHP
Emanuelvillamayor/Laboratorio-3
/Parciales/2°Parcial/SP-LAB3(usuarios-autos)-2/BACKEND/Clases/UsuarioApi.php
UTF-8
5,247
2.734375
3
[]
no_license
<?php require_once "Usuario.php"; date_default_timezone_set('America/Argentina/Buenos_Aires'); class UsuarioApi extends Usuario{ public function TraerTodos($req, $res, $args){ $apellido = isset($args["apellido"]) ? $args["apellido"] : null; $newResponse = null; $objResponse= new stdclass...
true
ede9dfbec1ba93d4b691fc5dc30f809c10439fb1
PHP
vanhell86/Bison-register
/app/Http/Controllers/ParticipantController.php
UTF-8
1,517
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Participant; use App\Result; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class ParticipantController extends Controller { public function index() { $participants = Participant:: orderByRaw("CAST(SUBSTRING(age_group,2,99) as un...
true
d72be7e22d82427ef308ae66c63059f98b9ae055
PHP
fossabot/Scriptlog
/src/lib/dao/PostDao.php
UTF-8
13,281
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Post class extends Dao * * * @category Dao Class * @author M.Noermoehammad * @license MIT * @version 1.0 * @since Since Release 1.0 * */ class PostDao extends Dao { protected $linkPosts; public function __construct() { parent::__construct(); } /** * Find posts * * @param in...
true
2b2f22bc0647a1f058d1bb13af9f563eb730441f
PHP
jeffersonsylva/artgallery
/insertartwork.php
UTF-8
998
2.734375
3
[]
no_license
<?php include("header.html"); // uses header.html to give format and style to the page if (isset($_COOKIE["username"])) { $username = $_COOKIE["username"]; $password = $_COOKIE["password"]; $conn = mysql_connect("17carson.cs.uleth.ca",$username,$password) or die(mysql_error()); mysql_select_db("group12",$co...
true
767ee2b38cd1e0e97ee76819ba1bf1b47efe447c
PHP
Mujib07/restoran
/storage/framework/views/54b25e29a5dc5b29fe219981c8a4dd146e5721a5.php
UTF-8
566
2.6875
3
[ "MIT" ]
permissive
<?php if(count($datas)>0): ?> <?php $__currentLoopData = $datas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($data->nama); ?></td> <td><?php echo e($data->qty); ?></td> <td>Rp. ...
true
1ec82bef773c32df3f67ff2ccbff356b921774bb
PHP
adsr/a
/macephp/lib/Command/Syntax.php
UTF-8
2,145
2.625
3
[]
no_license
<?php /** * Syntax highlighting command */ class Command_Syntax extends Command { public function execute() { // Required params if (empty($this->params['action'])) { Logger::error('Missing action param', __CLASS__); return; } else if (empty($this->params['syntax...
true
5b92a8031e14e16b3a1cd34fc9e231a5e73f8975
PHP
dnivanthaka/mpd-webui
/src/Mpd/MpdClient.php
UTF-8
5,902
2.75
3
[]
no_license
<?php namespace Dinusha\Mpd; class MpdClient { const OK = 'OK'; const ERR = 'ACK'; const STATE_0 = '0'; const STATE_1 = '1'; const PASSWORD = 'password'; const CLEARERROR = 'clearerror'; const CURRENTSONG = 'currentsong'; const IDLE = 'idle'; const STATUS = 'status'; const...
true
980b171a5f465de5bf3c61c6ca1907c588a7d8ed
PHP
acffdev/php-core
/src/Utils.php
UTF-8
2,736
2.96875
3
[]
no_license
<?php /* --------------------------------------------------------- * CLASSE UTILS * * --------------------------------------------------------- * generic helper functions * * --------------------------------------------------------- * @licen...
true
7f707f2ebe9de36a4522a917741bab5aad6d027e
PHP
glen-s-abraham/SocialLoginApi
/app/Http/Controllers/User/UserController.php
UTF-8
1,657
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\User; use Illuminate\Support\Facades\Hash; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\User; class UserController extends Controller { public function register(Request $request) { $request->validate([ 'name'=>'requi...
true
e7f801360a6f6d561ea9d417ee1a9d94e9d36dc9
PHP
krissss/yii2-calendar-schedule
/src/events/UrlEvent.php
UTF-8
407
2.546875
3
[]
no_license
<?php namespace kriss\calendarSchedule\events; use yii\helpers\Url; class UrlEvent extends BaseEvent { public function __construct($title, $url, $start, $end, $extra = []) { $fields = array_merge([ 'title' => $title, 'url' => Url::to($url), 'start' => $start, ...
true
85e1d8467d9225f2593f6cb6cc86ff18f4ac7b9a
PHP
dipakyvyas/bs-file
/src/BsFile/Library/BsImage.php
UTF-8
5,314
3.015625
3
[]
no_license
<?php namespace BsFile\Library; use BsFile\Model\Mapper\ImageInterface; /** * * @author Mat Wright <mat.wright@broadshout.com> * */ class BsImage { /** * * @param string|ImageInterface $source * @param integer $x * @param integer $y * @para...
true
524f1cb33b66307e14e7b5ad17f75ee15c4d3066
PHP
sayeed-sazzad/Assignment
/name validation/check.php
UTF-8
701
3.015625
3
[]
no_license
<?php $name=$_REQUEST["name"]; $flag=0; if(empty($name)){ echo "can not be empty"; } else if($name[0]=='0' || $name[0]=='1' || $name[0]=='2' || $name[0]=='3' || $name[0]=='4' || $name[0]=='5' || $name[0]=='6' || $name[0]=='7' || $name[0]=='8' || $name[0]=='9') { echo "first letter can not start with dig...
true
09374f59430977b6cfc6cd533501f0f3ddb40aa5
PHP
sympal/sympal
/lib/plugins/sfSympalUpgradePlugin/lib/versions/1.0.0_ALPHA4__4.php
UTF-8
2,822
2.625
3
[ "MIT" ]
permissive
<?php /** * Worker class to upgrade to sympal version 1.0.0 ALPHA 4 * * This changes all of the content type configs (e.g. "page") to * their model name (e.g. sfSympalPage) * * @package sfSympalUpgradePlugin * @subpackage upgrade * @author Ryan Weaver <ryan@thatsquality.com> * @since 2010-03...
true
70d47aae31411a076d49477fab80c7f0ef62a81d
PHP
kizaki/php_practice
/exam03.php
UTF-8
175
3.171875
3
[]
no_license
<?php /* 連結した文字列を表示するプログラム */ $hello = "Hello,"; $name = "kizaki"; $world = "s World!"; echo $hello.$name.$world."\n"; ?>
true
553cffa72ab6b0497fe739227bdbc658637b6cec
PHP
LuismiG/Netflicks
/seguridad/Netflix/Cripto.class.php
UTF-8
1,566
2.84375
3
[]
no_license
<?php class Cripto { public static function encripta($clave, $mensaje){ /*creamos un identificador con metodo de encriptado cast-128 y el modo de cifrado ecb (muy básico) */ $identificador = mcrypt_module_open('cast-128', '', 'ecb', ''); /* longitud de un posible vector para cript/descrip */ $lo...
true
b4c1814c3945ed5e68ed37df4f7cf120ce254b0c
PHP
Fell/dcrt
/dcrt.php
UTF-8
8,071
2.96875
3
[]
no_license
<?php /** * Dropbox Conflict Resolving Tool * * This script allows you to scan for conflicted files in your Dropbox folder and automatically resolve any conflicts. * Currently, the only supported resolving method is KEEP_LATEST, which always keeps the latest version of a file and * deletes any others. * * WARNIN...
true
a7e0286011007f8490ed437480287259ce9aa0b5
PHP
cesarAugusto1994/Desenvolvimento
/tests/desenvolvimento/cliente/Test.php
UTF-8
482
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: cesar * Date: 27/08/15 * Time: 09:59 */ use Desenvolvimento\Cliente\Pessoa; class Pessoas extends PHPUnit_Framework_TestCase { protected $cliente; private $id = 3; public function setUp(){ $this->cliente = new Pessoa($this->id); } /** * ...
true
2121bcd4d6909e179ab4c5048b40872aac12cf7e
PHP
Falldanger/waybills
/controllers/indexController.php
UTF-8
3,824
2.8125
3
[]
no_license
<?php namespace controllers; use controllers\Connection; use controllers\connectionController; use PDO; class indexController { private $db; public function __construct(Connection $db) { $this->db = $db->make(); } public function index($dataForView) { $tab...
true
026fc5c0455c51f2a975bb4f179cbb445d9b759b
PHP
kblropb/todo
/app/form/AddTaskForm.php
UTF-8
2,020
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Zhdanovich Igor * Date: 14.12.2017 * Time: 20:50 */ namespace app\form; use app\core\BaseController; use app\core\BaseForm; class AddTaskForm extends BaseForm { public function process($formData = []) { $this->response->success = true; if (!$fo...
true
a2c3f61c43dd51cee25f1d6f16b7fad0050848ec
PHP
SmokeAngle/phalcon-swoole-framework
/app/Library/Common/SodiumFilter.php
UTF-8
4,751
2.5625
3
[]
no_license
<?php /** * App Category | app/Library/Common/SodiumFilter.php * * @package self-checkout * @subpackage Library * @author chenmiao<陈淼><382169722@qq.com> * @version v.1.0.1 (06/12/2016) * @copyright Copyright (c) 2016, honglingjin.cn */ namespace App\Library\Common; use Phalcon\Di; use App\Libr...
true
9c2f14e497a2eabdc7959996a9da66d102da05d2
PHP
alexander4096/gestor-cursos-online
/app/Http/Controllers/PaginaController.php
UTF-8
1,064
2.734375
3
[]
no_license
<?php namespace cursos\Http\Controllers; use Illuminate\Http\Request; use cursos\Cursos; use cursos\User; class PaginaController extends Controller { // function paginacionbasica() { // all() se omite cuando se usa paginate() // 5 es la cantidad de items a mostrar $cursos= Cursos...
true
0bda36ced5d12e1a279868ae7288e572e8f96ca6
PHP
MangoLau/reality
/App/Admin/Model/LinkModel.class.php
UTF-8
689
2.578125
3
[]
no_license
<?php namespace Admin\Model; use Think\Model; class LinkModel extends Model { protected $_validate = array( array('link_name','require','链接名必须!'), //默认情况下用正则进行验证 array('link_name','/.{0,32}/','链接名不得多于32个字符!',0,'regex',1), array('href','/.{0,32}/','链接地址不得多于32个字符!',0,'regex',1), ); protected $_auto = arr...
true
5395f718d0b13620acd4107a0f9279aac2ed2245
PHP
kinimodmeyer/tradebyte-sdk-php
/src/Product/Model/Product.php
UTF-8
10,438
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Tradebyte\Product\Model; use SimpleXMLElement; class Product { private ?int $id = null; private ?string $number = null; private ?int $changeDate = null; private ?int $createdDate = null; private ?string $brand = null; /** * @var Article[] ...
true
41f1838f931337271373a0166249f5ba3bc4642b
PHP
rjon76/raptor.u-pol.in.ua
/admin/application/controllers/AuthController.php
UTF-8
2,898
2.609375
3
[]
no_license
<?php class AuthController extends MainApplicationController { #PIVATE VARIABLES #PUBLIC VARIABLES public function init() { if($this->_request->action != 'logout') { parent::init(); } } public function __destruct() { $this->display(); } ...
true
896329bf7ac7fb9e4d51f35f54976045fe3bf25e
PHP
zinebELGHARIB/GestionProjet
/src/Utils/Traits/UploadTrait.php
UTF-8
724
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: afidoss * Date: 15/05/2017 * Time: 10:56 */ namespace Utils\Traits; use Symfony\Component\HttpFoundation\File\File; use Utils\Interfaces\UploadFileInterface; trait UploadTrait { private $baseDir; private $file; public function getBaseDir(){ return $t...
true
d16374d6c55af58b443fdcc806b9d512d8ceb61d
PHP
barihossain/mailerlite
/app/Rules/CheckApiKeyRule.php
UTF-8
1,257
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; use MailerLiteApi\MailerLite; class CheckApiKeyRule implements Rule { /** * Error message for invalid API key * * @var string */ protected $errorMessage; /** * Create a new rule instance. * * @return ...
true
b76995a444093188756bcec8c725572520437794
PHP
9bhavi/PHP-Basics
/operator&typecasting.php
UTF-8
3,179
4.03125
4
[]
no_license
<!DOCTYPE html> <body> <?php $a = 10; $b = 5; $c = 3; $d = 8; //addition example $add=$a + $b; echo $add; = echo "<br>"; //subtraction example $sub = $a - $b; echo $sub; echo "<br>"; //multiplication example $mul = $a * $b; echo $mul; echo "<b...
true
c77b90df169e039751d6620484348261ed5c1ca0
PHP
pestphp/pest
/tests/Features/BeforeAll.php
UTF-8
339
2.828125
3
[ "MIT" ]
permissive
<?php $foo = new \stdClass(); $foo->bar = 0; beforeAll(function () use ($foo) { $foo->bar++; }); it('gets executed before tests', function () use ($foo) { expect($foo)->bar->toBe(1); $foo->bar = 'changed'; }); it('do not get executed before each test', function () use ($foo) { expect($foo)->bar->to...
true
71b20764572f1f1edfd509a10e041fcac7ae2d34
PHP
bigdoods/theBIMportal
/application/models/apps.php
UTF-8
3,085
2.625
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Apps extends Ci_Model { public function __construct(){ parent:: __construct(); } /** * return all the apps in the database. * If the active flag is on then * Only return the active apps */ function getAllApps(...
true