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
6853c934189fba62dede8af5b14c7b1dd74755a4
PHP
irvindeveloper/academiacisco
/modelo/consulta.php
UTF-8
2,074
2.53125
3
[]
no_license
<?php require_once('../modelo/conexion.php'); $tabla=""; $query="SELECT * FROM estudiantes"; if(isset($_POST['estudiantes'])) { $q=$conexion->real_escape_string($_POST['estudiantes']); $query="SELECT * FROM estudiantes WHERE idEstudiantes LIKE '%".$q."%' or Nombre LIKE '%".$q."%' or Apellidos LIKE '%".$q."%' or Dir...
true
f04417cc660fc93a16ce1d075e7f4f5d85781304
PHP
MaestroError/php-heic-to-jpg
/tests/Unit/IsHeicTest.php
UTF-8
655
2.671875
3
[ "MIT" ]
permissive
<?php use Maestroerror\HeicToJpg; test('Checks heic file correctly', function () { // Check image is Heic format $fileIsHeic = HeicToJpg::isHeic(__dir__ . "/images/image1.heic"); expect($fileIsHeic)->toBeTrue(); }); test('Checks jpg file correctly', function () { // Check image is not Heic format ...
true
c917953c527ab7a4c8792f41db36c8cc134977af
PHP
sbrilenko/lyufari
/views/admin/ajax/events/date_online.php
UTF-8
2,917
2.5625
3
[]
no_license
<?php $param_date=$_POST['date_begin']; $param_date_end=$_POST['date_end']; if($_POST['time_start_hour']!='-1' AND $_POST['time_start_min']!='-1') { $arr_evets_value_explode_time_start=$_POST['time_start_hour'].':'.$_POST['time_start_min'].':00'; } else { $arr_evets_value_explode_time_start='00:00:00'; } if($_POST['t...
true
f4699d61ddf18a0eb42802ae2a24392cc54240c8
PHP
rforks/core
/src/row/RowInterface.php
UTF-8
426
2.671875
3
[ "MIT" ]
permissive
<?php namespace Athens\Core\Row; use Athens\Core\FieldBearer\FieldBearerInterface; use Athens\Core\Writable\WritableInterface; interface RowInterface extends WritableInterface { /** * @return FieldBearerInterface */ public function getFieldBearer(); /** * @return string */ publi...
true
70f549679202d8bafe949c28f4628b1372ded73f
PHP
Maclaud49/Alaska_Soutenance
/src/Domain/Article.php
UTF-8
2,645
3.09375
3
[ "MIT" ]
permissive
<?php namespace Alaska\Domain; class Article { /** * Article id. * * @var integer */ private $id; /** * Article comments number. * * @var integer */ private $commentsNb; /** * Article views number. * * @var integer */ private $views...
true
0e1222b4c9f07b89fb93b570b79a06239f6fa678
PHP
Bere224/projet-tutore
/listeCommentaire.php
UTF-8
313
2.8125
3
[]
no_license
<?php require_once("commentaire.php"); class listeCommentaire { private $commentaires; function __construct($commentaires) { $this->commentaires = $commentaires; } function getNbrCommentaires(){ return count($this->commentaires); } function getCommentaires(){ return $this->commentaires; } } ?>
true
45f705780a2eebe9d5df3dd2576f57ce0ef25107
PHP
imesrar/pisicine_php
/day01/ex06/ssap.php
UTF-8
266
3.078125
3
[]
no_license
#!/usr/bin/php <?PHP if ($argc > 1) { $i = 1; while($i < $argc) { $string .= " ".$argv[$i]." "; $i++; } $tr = trim($string); $pr = preg_replace('/ +/', ' ',$tr); $tab = explode(" ", $pr); sort($tab); foreach ($tab as $elem) echo "$elem\n"; } ?>
true
ebcd5dcb97c853fc5b7f7bae87179f82c6e1ea56
PHP
brakkum/gigs.brakke.dev
/public/delete.php
UTF-8
1,030
2.53125
3
[]
no_license
<?php if (!isset($path)) { header("Location: /"); } if (!isset($_SESSION["logged_in"]) || $_SESSION["logged_in"] !== true) { header("Location: /login"); } $gig_id = isset($_GET["gig_id"]) ? intval($_GET["gig_id"]) : 0; $gig = $db->getGig($gig_id); if (empty($gig) && !$is_n...
true
479591c339b5ddc9e640caf27f08704c94a96baf
PHP
chatharold/Php
/07.conditionals/02.switch/index 3.php
UTF-8
273
3.796875
4
[]
no_license
<?php // the first to be true runs $number = 12; switch($number) { case ($number > 5): echo "Twelve is greated than 5"; // this one break; case ($number < 30): echo "Twelve less than 30"; break; default: echo "Not defined"; }
true
7ce94e047a6297f85ceff5ca9f19063707e0b7c4
PHP
jmurilloariza/cinemongo_php_mongo
/Backend/router/router.php
UTF-8
2,558
2.6875
3
[]
no_license
<?php /** * */ class router { private $controller; function __construct(){ $this->controller = new Controller(); } public function router(){ if(isset($_POST['mode'])){ if($_POST['mode']=="registrarCliente"){ $cedula = $_POST['dni_txt']; $nombre = $_POST['nombre_txt']; ...
true
7e8c3b6c426cf3787c3abc6f22004ade57bf32b1
PHP
pwnzr/trilogic_exam
/example.php
UTF-8
2,283
2.640625
3
[]
no_license
<?php require_once('vendor/autoload.php'); require_once('generated-conf/config.php'); date_default_timezone_set('Europe/Ljubljana'); // PropelORM is ready for use. // Your code goes here ... //naročila na dan 1.8.2018 $searchDate = '2018-08-01'; $orderDay = OrdersQuery::create() ->filterByDate(array("min" => $searc...
true
d05186b58464a41d15be1a5b8713464f93f47a42
PHP
tcamelus/timchistadventures
/backend/api/classes.php
UTF-8
2,407
3.328125
3
[]
no_license
<?php // //manage cores to allow sharing header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: PUT, GET, POST, DELETE'); header('Access-Control-Allow-Headers: *'); class dbase extends \PDO { // //The properties of this class are:- public $username = "timchis2"; public $passwor...
true
6cb45b602822b7c277e562c5f17a3c4cdd475a16
PHP
shimabox/pemojine
/src/Structure/Vendor/Google.php
UTF-8
932
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace SMB\Pemojine\Structure\Vendor; use SMB\Pemojine\Structure\Interfaces\Configurable; /** * */ class Google implements Configurable { /** * * @return string */ public function getVendorName() { return 'Google'; } /** * * @return array */ ...
true
9165bc835c25ae310d8692c5f29ab33adbbbdba3
PHP
trogloman/Snippets
/php/serialized_str_replace.php
UTF-8
1,788
3.265625
3
[]
no_license
<?php /** * Replace all occurrences of the search string with the replacement string in serialized string. * @param string $search The value being searched for. * @param string $replace The replacement value that replaces found search values. * @param string $str The serialized string being searched and replaced ...
true
6c7998bcaafe05ae82825cbe570df25695ca2baa
PHP
v0j/gwt-wordpress
/inc/vendors/envato-flex-slider/envato-flex-slider.php
UTF-8
2,725
2.53125
3
[]
no_license
<?php /* Plugin Name: Envato FlexSlider Plugin URI: Description: A simple plugin that integrates FlexSlider (http://flex.madebymufffin.com/) with WordPress using custom post types! Author: Joe Casabona Version: 0.5 Author URI: http://www.casabona.org */ /*Some Set-up*/ define('EFS_PATH', get_template_directory_uri() ...
true
3e32abe09d70d9df72cb4f6f73bdec84c7796804
PHP
rafaelfqueiroz/SisgeBones
/application/controller/ControllerProfessor.php
UTF-8
1,929
2.671875
3
[]
no_license
<?php /** * Description of ControllerProfessor * * @author RAFAEL */ class ControllerProfessor extends CrudController { public function __construct() { $this->persistencia = new ProfessorPersistence(); } public function encontrarProfessorPorIdUsuario($idUsuario) { $resultado = $...
true
d4ab8530fe28e127df779a9192ce6934fd2cb089
PHP
RosenKrumov/Software-University
/Level #1/PHP-Basics-Course/PHP-Basics/Exam-21-Dec/_1_UsernameParser/username-parser.php
UTF-8
646
3.046875
3
[]
no_license
<?php $list = $_GET['list']; $length = $_GET['length']; $names = preg_split('/[\n\r]/', $list, -1, PREG_SPLIT_NO_EMPTY); $output = "<ul>"; foreach ($names as $name) { if(isset($_GET['show'])) { if(strlen($name) >= $length) { $output .= "<li>".htmlspecialchars($name)."</li>"; ...
true
5fbd8ca5239d1b8dfac591c21baec78fee473c6f
PHP
huyufan/webbase_v2
/core/WebBaseMcache.class.php
UTF-8
2,259
3.015625
3
[]
no_license
<?php class WebBaseMcache { public $mem = null; public function __construct() { if (class_exists("Memcache")) { $this->mem = new Memcache(); //$memcached = webbase_config::xpath('memcached'); //var_dump($memcached); //die(); //$this->mem->ad...
true
652cf243dbc07bc8e62778ab8bbc006f4632d3bb
PHP
slimouGit/PHP_Sandbox
/Seminar_ISP/001_Grundlagen_PHP-Programmierung/in_de_krementieren_Operator.php
UTF-8
239
2.78125
3
[]
no_license
<meta charset="utf-8"/> <?php $a = 5; $b = "Seminar"; $b .= "raum"; echo "$a Männer und ". --$a. " Frauen sitzen im $b.<br/>"; echo "Die Frauen sind im ", $a--, ". Semester<br/>"; echo "und $a Männer sind im ", $a*2, ". Semester."; ?>
true
000d054145df3808c6185c569bb0f9cbfa2c9cc3
PHP
atkinsonaxiotek/VOA_Data_Conversion_Toolkit
/write_new_file.php
UTF-8
2,215
2.671875
3
[]
no_license
<?php session_start(); $title = "Receive Your New File"; include "header.php"; //Load functions require 'php_libraries/file_modification.php'; require 'php_libraries/utilities.php'; //Set variables $original_filename = $_SESSION["original_filename"]; $target_dir = "uploads/"; $intermediate_dir = "interm...
true
b74ff381cc5f0f62f8d901210eccb7b0455b407f
PHP
barkerja/EightPHP
/system/classes/libraries/cache/driver.php
UTF-8
840
2.640625
3
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('SYSPATH') OR die('No direct access allowed.'); /** * Cache driver abstract class. * * @package System * @subpackage Libraries.Cache * @author EightPHP Development Team * @copyright (c) 2009-2010 EightPHP * @license http://license.eightphp.com */ abstract class Cache_Driver { /** * Set cache...
true
c0caf1cc6a2ebb2284bb3e486f12e828c99a0859
PHP
tota1099/product
/src/main/factories/Product/UpdateProductFactory.php
UTF-8
399
2.53125
3
[]
no_license
<?php class UpdateProductFactory { public static function build() : Controller { $productTypeRepository = new ProductTypeRepository(); $productRepository = new ProductRepositoryAdapter(); $validator = new ValidatorAdapter(); $updateProduct = new DbUpdateProduct($productRepository, $productTypeReposit...
true
9c86d2015ad6ca34bc4cc64f53d077d809c3c1fe
PHP
MohamedSamiKhiari/testmsk
/index.php
UTF-8
117
2.625
3
[]
no_license
<?php echo "hello MOHAMED"; function sami($x) { $x=$x+1; return -2; } function xe($x) { echo " hello you"; } ?>
true
8e855ff747d924e56210a7ecdfce20358fea7948
PHP
L2jLiga/WSR-2016-10-Moscow
/module 2/auth.php
UTF-8
3,057
2.859375
3
[ "MIT" ]
permissive
<?PHP // Помошник в очистке function clean_var($var) { return htmlspecialchars(stripslashes(trim($var))); } // Цепляемся к БД $link = mysqli_connect('localhost','st8','2856','st8'); mysqli_set_charset($link, 'utf8'); // Тут у нас проверочка на аутентификацию if(!isset($_POST['act']) || empty($_POST['ac...
true
20ba1fe31b3874e817544a1ac8d659b50e05a029
PHP
gmurambadoro/speedtrack
/src/Entity/Server.php
UTF-8
1,543
2.578125
3
[]
no_license
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\ServerRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=ServerRepository::class) * @ApiResource( * collectionOperations={"get"}, * itemOperations={"get"}, * shortName="Server" * ...
true
0a5af3c577a520bd72e27ddef64e627872c3992f
PHP
codegooglecom/torpor-php
/src/GridColumnCollection.php
UTF-8
1,116
2.953125
3
[]
no_license
<?PHP // $Rev$ class GridColumnCollection extends stdClass { private $_filled = false; function __construct( array $collection ){ foreach( $collection as $key => $value ){ $this->$key = $value; } $this->_filled = true; } function __get( $columnName ){ $columnName = $this->checkColumnName( $columnName )...
true
b0702da2a0a1077a5a573fb0d9b63876c4993ef9
PHP
splickit-inc/OrderingAPI
/lib/adapters/ziplookupadapter.php
UTF-8
3,054
2.71875
3
[]
no_license
<?php class ZipLookupAdapter extends MySQLAdapter { function ZipLookupAdapter($mimetypes) { parent::MysqlAdapter( $mimetypes, 'Zip_Lookup', '%([0-9]{1,15})%', '%d', array('zip_tz_id'), array('zip_tz_id','zip','city','state','lat','lng','time_zone_offset','dst'), null ); $this->field_ty...
true
aad2edbfee6b7d1daa9bfc7a5eff672e36108800
PHP
vuongthehuy/Random-Array-Items-From-Flat-Text-File-Database
/index.php
UTF-8
245
2.671875
3
[]
no_license
<?php $text = file_get_contents('flatFileDB.txt'); $textArray = explode("\n", $text); $randArrayIndexNum = array_rand($textArray); $randPhrase = $textArray[$randArrayIndexNum]; ?> <html> <body> <h2><?php echo $randPhrase; ?></h2> </body> </html>
true
57caea68612d7093f7c4c1be53bcf132863abb52
PHP
djiaiejo/mypl_v0
/fplsave/Modele/Trace.php
UTF-8
401
2.59375
3
[]
no_license
<?php require_once 'Framework/Modele.php'; class Trace extends Modele{ public function getTraces($idleague) { $sql = "select p.name as playername, u.username as username, DATE_FORMAT(t.date, '%d/%m/%Y') as date from trace t, player p, user u where t.idplayer=p.ID and t.iduser=u.ID and t.idleague=? order by da...
true
31f6caf926d3ca5f0f8012be06b005c8d7f00381
PHP
devinjh/DM_Term_Project
/AdvancedDatabaseOperations.php
UTF-8
12,304
3.109375
3
[]
no_license
<!-- This is the home page for Devin Hopkins and Tristan Hess' database management term project. --> <!-- Included files. --> <?php include 'DatabaseOperations.php' ?> <!-- Functions --> <?php // Determines the operation being performed and performs it function determineOperation() { // Using the global v...
true
2543cd3b50b85854166fa7e153d7b4399dfd8a10
PHP
mrlima49/blogautosports
/pages/postagens.php
UTF-8
646
2.53125
3
[]
no_license
<?php $postagem = new Postagem(); $dados = $postagem->read(); ?> <h1>Postagens Cadastradas</h1> <?php foreach($dados as $dado): ?> <div class="card mb-4" style="width: 50rem;"> <div class="card-body"> <h5 class="card-title"><?= $dado['titulo'];?></h5> <h6 class="card-subtitle mb-2 text-muted"><?= $dado['desc...
true
bfea68902a314c2459992f25297fa9c62cc1ab1b
PHP
ko-htet/HMH_Portfolio
/oop/classes/User.php
UTF-8
3,185
2.6875
3
[]
no_license
<?php class User{ public static function auth(){ if(isset($_SESSION['user_id'])){ $user_id = $_SESSION['user_id']; return DB::table('users')->where('id', $user_id)->getOne(); }else{ return false; } } ...
true
c035c99a582a93ec9734c234954c2b37a192e804
PHP
maxprofs-llcio/apator
/skrypty/cennik_tresc.php
UTF-8
1,427
2.734375
3
[]
no_license
<?php $grupa = ($_GET['q']); function cennik_tresc($grupa){ require_once '../config.php'; $polaczenie = new Connection(); $connection=mysqli_connect($polaczenie->getHost(),$polaczenie->getUser(),$polaczenie->getPassword(),$polaczenie->getDbName()); if($grupa!=''){ $query=mys...
true
81f949dc69c453cd7f22c6f842dfe4ff46705f31
PHP
hiendt58/tolich
/inc/widgets/banner/banner.php
UTF-8
1,930
2.546875
3
[]
no_license
<?php /* Widget Name: Banner Description: Chọn ảnh để hiển thị ở banner sidebar */ class Banner_Widget extends SiteOrigin_Widget { function __construct() { //Call the parent constructor with the required arguments. parent::__construct( // The unique id for your widget. 'ban...
true
93d35646b32d3aeff905170825d87c0baa55a5be
PHP
exigoking/PAW_v2
/facebook/callback.php
UTF-8
1,379
2.578125
3
[]
no_license
<?php /** * @file * Take the user when they return from Facebook. Get access tokens. * Verify credentials and redirect to based on response from Facebook. */ /* Start session and load lib */ session_start(); require_once('facebook.php'); //require_once('facebookQuery.php'); require_once('config.php'); $username = ...
true
fb8759086cdf9d00a4075acf92f2a17b17688b64
PHP
Johnpaul90/dashboard
/date/date_converter.php
UTF-8
1,867
3.34375
3
[]
no_license
<?php if (array_key_exists('convert', $_POST)) { $m = $_POST['month']; $d = trim($_POST['day']); $y = trim($_POST['year']); if (empty($d) || empty($y)) { $error = 'Please fill in all fields'; } elseif (!is_numeric($d) || !is_numeric($y)) { $error ...
true
9c003ba5abc4361716d01d3da910bd9bed2bc0b2
PHP
MahmoudMiehob/php
/oop/magic.php
UTF-8
2,484
3.5
4
[]
no_license
<?php /* class iphone { public $name ; public $ram ; public function sayhello (){ echo "hello user" ; } public function __construct (){ echo "object is creted " ; } } $phone = new iphone() ; echo '<pre>' ; print_r($phone) ; echo '<pre>' ; */ // *********...
true
88e8843ff8f59e7f270eacd60ac632c62e9aed70
PHP
Purnima77/test
/test_project/src/AppBundle/DataFixtures/ORM/LoadUser.php
UTF-8
709
2.609375
3
[]
no_license
<?php namespace AppBundle\DataFixtures\ORM; Use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager as OM; Use AppBundle\Entity\User; class LoadUsers implements FixtureInterface { public function load(OM $manager) { $user1 = new User(); $user1->setName('...
true
a7b2e8c0b661dc83f98e2edd1e2a63a8a1261e06
PHP
php2015/hsshop
/app/Jobs/LoginStatistics.php
UTF-8
1,889
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 何书哲 * Date: 2018/9/19 * Desc: 登录统计 */ namespace App\Jobs; use Illuminate\Bus\Queueable; use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use App\S\Foundation\Bi; use App\Lib\BLogger; class LoginSta...
true
052c1cdebb50e6ecb5ab70470dd2072fd61af867
PHP
StepanBronovskyi/images
/common/components/StringHelper.php
UTF-8
168
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\components; class StringHelper { public function getShortNews($text) { return substr($text, 0, 3); } }
true
42bc0b0c4ea648ae0e068fe702fb53dc98f62d00
PHP
themeblvd/Stealth-WordPress-Theme
/includes/theme_functions/stealth_bg.php
UTF-8
854
2.671875
3
[]
no_license
<?php /** * * Stealth WordPress Theme * Background Display * * This function displays the necessary CSS background * properties selected from the theme options panel * for either the header or footer. * * @author Jason Bobich * */ function stealth_bg($selector, $color, $texture) { //$texture will be a...
true
9e3201dd887553eea2042536eb7b9b35d8542781
PHP
mrkarr7/Web_Technology_Laboratory
/09.Regex.php
UTF-8
1,517
3.875
4
[]
no_license
<!-- 9. Write a PHP program named states.py that declares a variable states with value "Mississippi Alabama Texas Massachusetts Kansas". write a PHP program that does the following: a. Search for a word in variable states that ends in xas. Store this word in element 0 of a list named statesList. b. Search for a word ...
true
583e5afd8b98806184fb9733b8e4c0b2bfae87d7
PHP
J4ckyLIM/POO
/GameBallPocahontas.php
UTF-8
1,290
3.359375
3
[]
no_license
<?php require_once "GameBallArena.php"; require_once "GameBallHit.php"; require_once "GameBallCharacter.php"; Class Pocahontas extends Character implements GameBallHit { final function __construct($Name,$HP, $Attack,$Defence,$Agility,$Crit){ parent::__construct($Name,$HP, $Attack,$Defence,$Agility,$Cri...
true
d7bcb6cbda7b15b1f8756372729ece25f3fc82e4
PHP
israelitalo/Plataforma-para-anuncios-de-produtos
/produto.php
UTF-8
3,038
2.609375
3
[]
no_license
<?php require 'pages/header.php'; require 'classes/anuncios.class.php'; $anuncio = new Anuncios(); if(isset($_GET['id']) && !empty($_GET['id'])){ $id = addslashes($_GET['id']); }else{ ?> <script type="text/javascript">window.location.href="index.php";</script> <?php ...
true
51bcadeff96baa77c9ad754ee67290c1f9237433
PHP
wesavetheworld/DropGal
/lib/php/Database.php
UTF-8
1,990
3.046875
3
[]
no_license
<?php namespace Noidexe\Autogal; class Database { private $categories = array(); private $collection = array(); public function getCategories() { return $this->categories; } public function getCollection() { return $this->collection; } public function addCategory($newcat) { array_push($this-...
true
f12cad7b731174aa90d61c1bb897d5a2bad0936d
PHP
Hullmano/htdocs
/funcao/ex01.php
UTF-8
327
3.59375
4
[]
no_license
<?php function calc($x=3,$y=3){ $w = $x * $y; return $w; } echo calc(); echo "<hr>"; function string($text){ return "Oi $text!"; } echo string("Pai"); echo "<hr>"; function hi(){ $args = func_get_args(); //retorna a qtdade e tipos de argum. passados na função. return $args; } var_dump(hi("oi",1));...
true
eaaf0ed0fc727e553aca775f9d8eabc63179f86e
PHP
v1shva/adminLaravel
/app/Entities/EmployeeEntity.php
UTF-8
2,267
2.640625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: inova * Date: 8/18/2017 * Time: 11:27 AM */ namespace App\Entities; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="employees") */ class EmployeeEntity { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ ...
true
7a94cf47c25323f8c87bcc51a2253ab160e666e0
PHP
debuss/lapostesuivi
/src/Suivi/Request.php
UTF-8
2,225
2.984375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * La Poste Suivi API * * @author debuss-a <zizilex@gmail.com> * @copyright 2020 debuss-a * @license https://github.com/debuss/LaPosteSuivi/LICENSE.md MIT License * @link https://developer.laposte.fr/products/suivi/2 */ namespace LaPoste\Suivi; use InvalidArgumentException; /** * Class Request * *...
true
d2c60bbf252c54844184ef373fea7893c9b58a28
PHP
superspring/dataobjectcoach
/code/manifest/DataObjectCoach_Manifest.php
UTF-8
9,637
2.984375
3
[]
no_license
<?php /** * @file * Adds classes stored in the database to the manifest. */ class DataObjectCoach_Manifest extends SS_ClassManifest { const DUMMYCLASS_FILE = '../dataobjectcoach/code/manifest/DataObjectCoach_DummyClass.php'; /** * Replace the old manifest. */ public function __construct($base, $includeTests...
true
83a2564a33c6edfbecdc9b9f281544962b47d746
PHP
wilokecom/wiloke-shopify
/src/Helpers/Session.php
UTF-8
1,614
2.6875
3
[]
no_license
<?php namespace WilokeShopify\Helpers; class Session { protected static $expiration = 900; public static function generatePrefix($name) { return 'wiloke-'.trim($name); } public static function sessionStart($sessionID = null) { global $pagenow; if ($pagenow == '...
true
753b672d40bdeff18234bd2b484ff714bf90abd2
PHP
egoeast/vocabulary
/common/components/YandexTranslator.php
UTF-8
1,570
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\components; use common\components\TranslatorInterface; use yii\httpclient\Client; class YandexTranslator implements TranslatorInterface { /** * @var string */ private $apiKey = 'trnsl.1.1.20171116T103815Z.de890509a05594eb.07ad8f63c2e9da3b843adc43104ebcde9bb0e6d4'; private ...
true
28f46f9d888ff304c5e2f4d7265ebc1ecf6b1a78
PHP
bc140400911/SportsLiga
/app/Helper/Helper.php
UTF-8
2,804
2.765625
3
[ "MIT" ]
permissive
<?php use App\Models\Team; use App\Models\Match; if (! function_exists('fetchFromApi')){ function fetchFromApi($link) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $link); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $result = json_decode(curl_exec($curl), true); ...
true
93eea096c1fd447834fe98b3d7b194955fc86c4d
PHP
ArtemBrovko/foundation
/src/Modera/SecurityBundle/Command/InstallPermissionsCommand.php
UTF-8
1,055
2.578125
3
[ "MIT" ]
permissive
<?php namespace Modera\SecurityBundle\Command; use Modera\SecurityBundle\DataInstallation\PermissionAndCategoriesInstaller; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * @author Sergei...
true
0aaf5f89036447a4c7df82b06ac8056640238c79
PHP
hyperwallet/php-sdk
/src/Hyperwallet/Model/WebhookNotification.php
UTF-8
3,526
2.953125
3
[ "MIT" ]
permissive
<?php namespace Hyperwallet\Model; /** * Represents a V4 Webhook Notification * * @property string $token The webhook notification token * @property string $type The webhook notification type * @property \DateTime $createdOn The webhook notification creation date * * @package Hyperwallet\Model */ class Webhook...
true
e2b6e0f56b8fd025aae1eb78b7cfc243f84fdd02
PHP
E1sM33r/BrowserGameCollection
/app/Http/Controllers/UserController.php
UTF-8
2,691
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class UserController extends Controller { public function __construct() { $this->middleware('auth'); } public function edit(User $user) { $this->authorize(...
true
5261b6e4195af9c6286c50ea08b2d6960eb27dec
PHP
Slykeren/starcraftdb
/index.php
UTF-8
3,474
2.671875
3
[]
no_license
<?php require("connect.php"); session_start(); $query = "SELECT * FROM units ORDER BY race_id DESC"; $statement = $db -> prepare($query); $statement -> execute(); $units = $statement -> fetchAll(); if(!isset($_SESSION['user'])) { $_SESSION['user'] = ""; } ?> <!DOCT...
true
8222a3311fc307fbb154aae1f5515a6e7abf7b32
PHP
krystiantargonski/product_api
/src/Api/Validator/ErrorFormatter.php
UTF-8
392
2.59375
3
[]
no_license
<?php namespace App\Api\Validator; use Symfony\Component\Validator\ConstraintViolationListInterface; class ErrorFormatter { public function format(ConstraintViolationListInterface $violations) { $errors = []; foreach ($violations as $violation) { $errors[$violation->getPropertyPath(...
true
818821bcbdd052a6ec2a9480b43ce110630bca7b
PHP
YiMAproject/Analytics
/src/Analytics/Service/Analytic/Interfaces/ClientAwareAnalyticInterface.php
UTF-8
448
2.78125
3
[]
no_license
<?php namespace Analytics\Service\Analytic\Interfaces; use Analytics\Service\Client\Interfaces\ClientInterface; interface ClientAwareAnalyticInterface { /** * Set Service Client Object * * @param ClientInterface $client * * @return $this */ public function setClient(ClientInterfa...
true
4b5adab8724cdb3d0c36e3081c496252d44ec8a5
PHP
ali-ghanas/sitampan
/sitampanbtd/hanggar/upload_masukcont_proses.php
UTF-8
2,646
2.625
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Proses</title> <!--<script type="text/javascript" src="jquery-1.5.1.min.js"></script>--> </head> <body> <?php // menggunakan class phpExcelReader include "exc...
true
38c32cbc634b3f777c116c64701b8cf4006c7663
PHP
achriki/maravel-permissions
/src/Cerebro.php
UTF-8
1,352
3.03125
3
[]
no_license
<?php namespace Inani\Maravel; class Cerebro { /** * @var IsMarvel */ protected $hero; /** * Scan the user * * @param IsMarvel $hero * @return Cerebro */ public function scan($hero) { $this->hero = $hero; return $this; } /** * ch...
true
8b53612e087b7f4f6ef0fdae2ea40e2024a9e0f6
PHP
pipee26/CCAAdmin
/Directorioempresarial/electronica.php
UTF-8
1,157
2.78125
3
[]
no_license
<?php require '../conexion.php'; //Creamos la conexión //generamos la consulta $sql = "SELECT * FROM empresas where tipo='Electronica'"; mysqli_set_charset($conexion, "utf8"); //formato de datos utf8 if(!$result = mysqli_query($conexion, $sql)) die(); $clientes = array(); //creamos un array while($row = mysql...
true
07b1408483e683644cf6882ac75489e88b89f058
PHP
fostam/php-buildinfo-create
/src/lib/FileCreator/JSON.php
UTF-8
521
2.96875
3
[ "Apache-2.0" ]
permissive
<?php namespace Fostam\BuildInfoCreate\FileCreator; use Fostam\BuildInfo\BuildInfo; use Exception; class JSON implements FileCreator { /** * @param string $filename * @param BuildInfo $buildInfo * @throws Exception */ public function create(string $filename, BuildInfo $buildInfo): void { ...
true
62e3c6fcde023231e7b6b98f2f09baf75df655ca
PHP
nmd974/Plateforme-enchere-cts
/src/controllers/encherirEnchere.php
UTF-8
1,862
2.65625
3
[]
no_license
<?php function encherir($id) { $poursuite = true; $data = json_decode(file_get_contents(__ROOT__.'/src/data/users.json'), true); //On recupere le contenu des users $enregistrementData = json_decode(file_get_contents(__ROOT__.'/src/data/data.json'), true); //On recupere le contenu de data.j...
true
7ba74ceaef276eb162aeb37728f2f73715ad7bbc
PHP
yaojinhui1993/.leetcode
/136.只出现一次的数字.php
UTF-8
2,470
3.609375
4
[]
no_license
<?php /* * @lc app=leetcode.cn id=136 lang=php * * [136] 只出现一次的数字 * * https://leetcode-cn.com/problems/single-number/description/ * * algorithms * Easy (71.28%) * Likes: 1870 * Dislikes: 0 * Total Accepted: 406.2K * Total Submissions: 568.3K * Testcase Example: '[2,2,1]' * * 给定一个非空整数数组,除了某个元素只出现一次...
true
9020277e2a6f66b3014a94c542b4284f5decad34
PHP
jkapuscik2/design-patterns-php
/src/Structural/Bridge/Standard.php
UTF-8
308
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Structural\Bridge; final readonly class Standard extends Display { public function render(): string { $html = $this->content->getHtml(); $css = $this->content->getCss(); return <<<CONTENT $html; <style> $css </style> CONTENT; } }
true
378de78a513be71e9dde19f0452da330c0cc629d
PHP
bmax152/Le-blog
/php/update_article.php
UTF-8
3,475
2.796875
3
[]
no_license
<?php session_start(); if (isset($_SESSION["login"])) { if (isset($_GET['idArticle'])) { try { include "connection.php"; $sql = 'SELECT * FROM test_blog WHERE Id = :id AND Auteur LIKE :auteur'; $resultat = $base->prepare($sql); $resultat->bindParam(':id',...
true
23decf1762f8fbc3200b0b26a12d0744d9df8748
PHP
k-ishiwata/LaravelMiniCMS2020
/database/seeders/TagSeeder.php
UTF-8
1,058
2.515625
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Faker\Factory as Faker; class TagSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { \DB::table('tags')->insert([ [ 'name' => 'お知らせ',...
true
3b130c782618ee02b6eadf5edbfe35798b956251
PHP
kawika-connell/todo
/tests/Feature/TestCase.php
UTF-8
974
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace KawikaConnell\Todo\Tests\Feature; use PHPUnit\Framework\TestCase as BaseTestCase; use KawikaConnell\Todo\Input; use function KawikaConnell\Todo\todoFilePath; use function KawikaConnell\Todo\formatPath; class TestCase extends BaseTestCase { /** * Changes working dir...
true
b63c59536a9c9875cde1940f9f176bbd3ae93bbc
PHP
downsider/loggerhead
/src/Log/MessageProcessor.php
UTF-8
2,018
2.875
3
[ "MIT" ]
permissive
<?php /** * @package loggerhead * @copyright Copyright © 2015 Danny Smart */ namespace Downsider\Loggerhead\Log; use Downsider\Loggerhead\Exception\LogProcessingException; use Downsider\Loggerhead\Format\FormatRepository; use Downsider\Loggerhead\Format\Format; class MessageProcessor { /** * @var Format...
true
010be162b361ad52f4833aad37e10f0915c9d28e
PHP
Koriit/PHPDeps
/src/PHPDeps/Tokenizer/TokensIterator.php
UTF-8
3,115
3.15625
3
[ "MIT" ]
permissive
<?php /** * @copyright 2018 Aleksander Stelmaczonek <al.stelmaczonek@gmail.com> * @license MIT License, see license file distributed with this source code */ namespace Koriit\PHPDeps\Tokenizer; use ArrayIterator; use Koriit\PHPDeps\Tokenizer\Exceptions\UnexpectedEndOfTokens; use Koriit\PHPDeps\Tokenizer\Exceptio...
true
356b09b55722eac9f7046c78fc503bd3a17d07bd
PHP
Ane-Beatriz-Ramos-Paulino/exercicio
/aula20181105/aulas_php/pares.php
UTF-8
326
4.21875
4
[]
no_license
<?php $numeroInicial = 0; $numeroFinal = 30; $contador = $numeroInicial; echo "Os números pares entre " . $numeroInicial . " e " . $numeroFinal. " são: <br>"; while($contador <= $numeroFinal){ if($contador % 2 == 0){ echo $contador . "<br>"; } $contador++; ...
true
2c4b3dfaed62c9ac3cb06906a91b6e0bef6fc08f
PHP
StefanoAraujo/com_cadastrocliente
/models/classes/tipoTelefone.php
UTF-8
278
2.53125
3
[]
no_license
<?php defined('_JEXEC') or die; abstract class TipoTelefone { public $tipoTelefone; public function __construct() { $this->tipoTelefone = new stdclass(); $this->tipoTelefone->id = null; $this->tipoTelefone->descricao = null; } abstract public function get(); }
true
262a3f2f9de3889154fd981ade890830d176c057
PHP
alejandrososa/demo-rbac-yii2
/frontend/tests/acceptance/RegistroCest.php
UTF-8
1,538
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\tests; use frontend\tests\AcceptanceTester; use yii\helpers\Url; class RegistroCest { /** * @var string */ public $formularioId; public function _before(AcceptanceTester $I) { $this->formularioId = '#form-signup'; } public function _after(Acceptance...
true
717879cedc912d6241b755505fe6512e6bb0ac0e
PHP
digit-soft/re-action-redis
/src/Cache.php
UTF-8
7,179
2.578125
3
[ "MIT" ]
permissive
<?php namespace Reaction\Redis; use Reaction\Cache\ExpiringCache; use Reaction\Cache\ExpiringCacheInterface; use Reaction\DI\Instance; use Reaction\Exceptions\Exception; use function Reaction\Promise\all; use function Reaction\Promise\reject; use function Reaction\Promise\resolve; use Zumba\JsonSerializer\Exception\J...
true
a886a252c0a64c8eae0d6d1e1cccb7e06f8bbeca
PHP
LinggaWahyu/Belajar-Pemrograman-Web
/Pertemuan_4/nomor1.php
UTF-8
1,024
3.109375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Nomor 1</title> </head> <body> <form action="nomor1.php" method="POST"> <table> <tr> <td>Tarif</td> <td><input type="text" name="tarif"></td> </tr> <tr> <td> <input type="submit" name="submit" value="Cek Hotel"> </td> </tr> </table> </form> <...
true
90edfddc0d3e1b4d8c3c6ba74cd3b4a2f61d669b
PHP
vanderli2020/php-curso
/aula10/exercicio13.php
ISO-8859-1
137
3.296875
3
[]
no_license
<?php //Exiba todos os mltiplos de 3 de 0 a 100; for($contador = 0; $contador < 100; $contador += 3){ echo $contador." <br />"; } ?>
true
65f5fb9741c87421a4052676fb6e32806eaebcab
PHP
bitotamas/GYAKORLATOK
/PHP/magantanar/forras/tanarTanitvany.php
UTF-8
1,403
2.578125
3
[]
no_license
<?php $tanarOpt=""; $tanitvanyok=""; $sql="SELECT tanar_id,nev from tanar order by nev"; $stmt=$db->query($sql); while($row=$stmt->fetch()){ $tanarOpt.="<option value='{$row['tanar_id']}'>{$row['nev']}</option>"; } if(isset($_POST['listaz'])){ if($_POST['tanar']!=0){ $sql="SELECT a.nev as nev,b.datum as...
true
2f2dcca1a62ab0824fb7ea46ad14bd1b8d61e081
PHP
alexdu98/Ambiguss
/tests/AppBundle/Entity/PhraseTest.php
UTF-8
13,481
2.625
3
[ "MIT" ]
permissive
<?php namespace Tests\AppBundle\Entity; use AppBundle\Entity\Phrase; use AppBundle\Util\InvalidPhraseMessage; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; class PhraseTest extends KernelTestCase { private $container; private $entity; protected function setUp(): void { $kernel = se...
true
72e26259c7e2f540e469d88e529ea77d26f318b7
PHP
zhangxiaoman/scheduledTask-workerman
/cronWeb/application/controllers/User.php
UTF-8
3,124
2.578125
3
[]
no_license
<?php /** * 用户管理 * * @author: moxiaobai * @since : 2016/9/19 11:29 */ class UserController extends Yaf_Controller_Abstract { private $_model; private $_pageSize; function init() { $this->_model = new UserModel(); $this->_pageSize = 20; } /** * 引导页 */ funct...
true
f046150efea68012d7f0142c361b9eb3011b3011
PHP
JamesBondsky/4lapy
/src/BitrixOrm/Model/Interfaces/FileInterface.php
UTF-8
596
2.734375
3
[]
no_license
<?php namespace FourPaws\BitrixOrm\Model\Interfaces; /** * Interface FileInterface * * @package FourPaws\BitrixOrm\Model */ interface FileInterface extends ActiveReadModelInterface { /** * @return int */ public function getId() : int; /** * @param int $id */ public functio...
true
c26bd6e7d61a78b59a9e20bbed835d10d41ad11e
PHP
alex-dwt/cars-oop-test-task-2020
/src/Entity/Manufacturer.php
UTF-8
272
2.796875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Entity; class Manufacturer implements EntityInterface { use IdTrait; private string $name; public function __construct(int $id, string $name) { $this->id = $id; $this->name = $name; } }
true
65f23d30c944db0517a7588e8298f72fa8fb61af
PHP
KartikeyaMalimath/Rate-My-Ride
/functions/login.php
UTF-8
4,190
2.71875
3
[]
no_license
<?php //session session_start(); $_SESSION = array(); include ('../include/db.php'); if(isset($_POST["submit"])) { if(empty($_POST["username"]) || empty($_POST["password"])) { echo '<script>alert("Both Fields are required")</script>'; echo "<script>top.window.location = '../...
true
9c22c7b1fcfb6e562872e2ed8e06b399e80bde1c
PHP
sieppl/yii-job
/components/JobManager.php
UTF-8
13,219
2.75
3
[]
no_license
<?php class JobManager extends CApplicationComponent { /** * A list of job types that have an array describing the job. * These jobs are synched with the database. All recurring jobs in the database are cleaned up, when they are not mentioned in the config. * * @var array * * Jobs may be configured in a...
true
7948a1a04e53036b30037a02ced5ce0b0c533b17
PHP
stepanych/diafan
/modules/visitors/visitors.inc.php
UTF-8
2,030
2.5625
3
[]
no_license
<?php /** * Подключение модуля «Посещаемость» * * @package DIAFAN.CMS * @author diafan.ru * @version 7.0 * @license http://www.diafan.ru/license.html * @copyright Copyright (c) 2003-2021 OOO «Диафан» (http://www.diafan.ru/) */ if ( ! defined('DIAFAN')) { $path = __FILE__; while(! file_exists(...
true
d2706a120b3871168136031af290d0010331fe3e
PHP
eskylake/poler
/app/core/DB.php
UTF-8
2,666
3.40625
3
[ "MIT" ]
permissive
<?php namespace App\core; use PDO; /** * The base database class that creates a connection to the database using PDO driver. * It prevents database duplication. * * @author Ali Tavafi <ali.tavafii@gmail.com> */ class DB { /** * @var PDO $connection Database connection. */ private $connection; ...
true
fbb264fccf8c7df7bed94f1a3832450a836a9521
PHP
kjavorek/php-academy
/03-statements.php
UTF-8
730
2.890625
3
[]
no_license
<?php $isTrue=true; $isTrue=':]'; $isTrue=0; $isTrue=[]; $isTrue=-10; $isTrue=null; $isTrue;//null /*if($isTrue){ echo "It's true\n"; }else { echo "It's false\n"; } */ //var_dump("123abc"==123); //true //var_dump(123=="123abc"); //true //var_dump(1==1.0)==(true=='false'); //true //var_dump(123==="123"); //f...
true
d7578d7dd4b325734e705b29ed3e234179542c2a
PHP
rubenVillca/sistemaHotelero
/controllers/StateController.php
UTF-8
2,790
2.546875
3
[]
no_license
<?php require_once 'model/StateModel.php'; /** * Created by PhpStorm. * User: ruben * Date: 11/06/2017 * Time: 10:24 */ class StateController extends Controller { public function __construct() { parent::__construct(); } public function indexAction() { header('Location: '.Helper::base().'settings/'); re...
true
ff7f97665d7a21460cc58ba1aed5ff8bf306bdc0
PHP
rapando/tablemigration
/php/dest.php
UTF-8
719
3.0625
3
[]
no_license
<?php /* * This code connects to a database (we assume it is different from the first db) * it reads data from a single row from the js file then saves the data in the new table * it then replies with either a success or error message to the ajax code in js */ $connection = mysqli_connect('localhost', 'db_username', '...
true
81f39a8369da48f1ae7dd65a1b6134de98479ce3
PHP
AkshayPatel20/Online-examination-for-blind
/blind --/test.php
UTF-8
883
3.390625
3
[]
no_license
<?php $numbers = range(1,9); shuffle($numbers); foreach($numbers as $i) { echo $i; } for($i = 0 ; $i < count($numbers) ; $i++) { echo $numbers[$i]; } $total = 9; $num = range(1,$total); shuffle($num); print_r($num); foreach ($num as $i) { echo $i; } /*// session start session_start(); // take 10 random ...
true
b53ef46fe990ceb418203093aad01da4e21c8dc0
PHP
pvs9/youdo
/app/Resume.php
UTF-8
1,088
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Resume extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'experience', 'is_urgent', 'with_loaders', 'rating', 'is_paid', 'is_active', ]; /** * The attributes that should be mutat...
true
7aa6fe118c934b8f36d2b4ab9206569b4d5ee01c
PHP
player259/graphql-bundle
/Service/TypeRegistry.php
UTF-8
4,050
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Player259\GraphQLBundle\Service; use GraphQL\Type\Definition\NamedType; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Definition\ScalarType; use GraphQL\Type\Definition\Type; class TypeRegistry { /** * @var array */ protected $types; /** ...
true
2e363c832cf86d5b9c0469b18b2f592332922e1e
PHP
shyjuonetikk/chicagotimes
/inc/widgets/class-cst-ad-widget.php
UTF-8
2,533
2.59375
3
[]
no_license
<?php class CST_Ad_Widget extends WP_Widget { protected $ad_units = array( 'dfp-rr-cube-1' => 'rr cube 1', 'dfp-rr-cube-2' => 'rr cube 2', 'dfp-rr-cube-3' => 'rr cube 3', 'dfp-rr-cube-4' => 'rr cube 4', 'dfp-rr-cube-5' => 'rr cube 5', 'dfp-rr-cube-6' => 'rr cube 6', 'dfp-rr-cube-promo-7' => 'rr cube 7...
true
0ac1d81dbe4a874b79e16dcf852017a1c78c224d
PHP
NaotoYoneyama/php_practice
/laravel03.php
UTF-8
514
3.765625
4
[]
no_license
<?php $name="Yoneyama"; if ($name=="naoto"){ echo "私はYoneyamaです"; }else { echo "私はあなたの名前ではありません"; } <?php $total = 1; echo $total; for ($i = 1; $i <= 10000; $i++) { $total += $i; } echo $total; ?> <?php $fruits=array("orange","apple","pineapple","kiwi","strawberry"); foreach($fruits as $fruits){ echo "...
true
80898635f77db5775eee8fcf838c3f5dc66dc564
PHP
itarato/hawk_drupal_adapter_core
/hawk_core/src/ContentParser.php
UTF-8
975
2.671875
3
[]
no_license
<?php /** * @file */ namespace Drupal\hawk_core; class ContentParser implements ContentParserInterface { private $body; private $bodyParsed; private $assets = []; public function __construct($body) { $this->bodyParsed = $this->body = $body; } public function parse() { $relativePathFixer = [...
true
f74ff224a68fa6604c1e646c95de2685f5dfb1b6
PHP
mrsalt/scouts
/include/login_include.php
UTF-8
22,115
2.703125
3
[]
no_license
<?php require_once 'globals.php'; require_once 'email_functions_new.php'; function get_validation_script($purpose, $require_email = true, $require_password = true, $require_troop = true, $require_council = true) { echo '<script type="text/javascript">'."\n"; // Change Password Form // 1. make sure old password f...
true
2b6aa51492de771ba5893bedc41abc9ce6cf7fc3
PHP
nvieirafelipe/graviola-project
/plugins/ckWebServicePlugin/lib/vendor/ckWsdlGenerator/wsdl/ckWsdlMessage.class.php
UTF-8
3,537
2.984375
3
[ "MIT" ]
permissive
<?php /** * This file is part of the ckWsdlGenerator * * @package ckWsdlGenerator * @author Christian Kerl <christian-kerl@web.de> * @copyright Copyright (c) 2008, Christian Kerl * @license http://www.opensource.org/licenses/mit-license.php MIT License * @version SVN: $Id: ckWsdlMessage.class.ph...
true
f4f12bcd8d2c9da58499427b0b6550e4aa366ac9
PHP
alf1995/laravel-admin-shreyu
/app/Http/Requests/Dashboard/UserRequest.php
UTF-8
2,144
2.546875
3
[]
no_license
<?php namespace App\Http\Requests\Dashboard; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class UserRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { re...
true
0ff1c2b73dcc0e9dbccf767341d7b1cd6e834b57
PHP
tomyqg/knxBase
/apps/sani/mipSim/Experimental/khAuftrag.php
UTF-8
5,608
2.796875
3
[ "MIT" ]
permissive
<?php /** * Class _Auftrag * * Anmerkung * Aufgrund des unterschiedlichen Handlings der Mehrwertsteuer, sowohl Brutto als auch Netto Beträge koennen, * je nach LEGS Daten, als Kalkulationsbasis dienen, wird die Mehrwertsteuer explizit mitgefuehrt und * lediglich auf Positionsebene errechnet. * */ class _Auft...
true
f733bcf90d8cbd0395f10648bb11b5c261ffa7f6
PHP
oreiner/Wahlpflichtblock-Gutachter
/public/exam_avg.php
UTF-8
1,023
2.546875
3
[]
no_license
<?php require_once ('../includes/phpgraphlib/phpgraphlib.php'); require_once ('../includes/functions.php'); require_once ('../includes/db_connection.php'); $Safe_Fach = mysqli_real_escape_string($connection, $_GET["Fach"]); $query = "SELECT durchschnitt, Semester"; $query .= " FROM exam_grades"; $query .= " Wher...
true
20ad0637960558bd039f34ae6e0e81a6bca9069c
PHP
Rovota/Core
/src/Storage/Directory.php
UTF-8
1,189
2.734375
3
[ "MIT" ]
permissive
<?php /** * @author Software Department <developers@rovota.com> * @copyright Copyright (c), Rovota * @license MIT */ namespace Rovota\Core\Storage; use Rovota\Core\Storage\Interfaces\DirectoryInterface; use Rovota\Core\Storage\Traits\DirectoryFunctions; use Rovota\Core\Support\Str; use Rovota\Core\Sup...
true