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
680e2907021e9a120d00e798bc9623a8134e2d65
PHP
MayaLekova/moovr
/src/questions/m20151.php
UTF-8
358
2.9375
3
[]
no_license
<?php $processAnswer = function($answer) { $grade = 0; $outcome = 'грешен'; if($answer == '(0,1,0)') { $grade = 1; $outcome = 'верен'; } else if($answer == '(1,0,0)' || $answer == '(0,0,1)') { $grade = 0.5; $outcome = 'почти верен'; } return array( 'grade' => $grade, 'outcome' => $outcome.' отговор' ...
true
1bbbbb4843116861e87321ced45ca25f37c51a0f
PHP
isabella232/PoCRabbit
/rabbit_kafka_poc/src/RabbitMqPocBundle/Consumer/PubSub.php
UTF-8
583
2.578125
3
[ "MIT" ]
permissive
<?php namespace RabbitMqPocBundle\Consumer; use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface; use PhpAmqpLib\Message\AMQPMessage; class PubSub implements ConsumerInterface { /** * @var string */ private $name; public function __construct($name) { $this->name = $name; } ...
true
49fa8bdf61eb1525127954b9e7a500888aab00bc
PHP
ntemple/intellispire-builder
/lib/toolkit-2010/oldlib/serializers.php
UTF-8
63,923
2.984375
3
[]
no_license
<?php /** * Kris Bailey <kbailey@moderngigabyte.com> * * this file creates a serializer/unserializer for each of the following formats: * xml * json * SS_toXML(); * SS_fromXML(); * and for JSON and YAML, just switch with XML. * * SS_XtoY(); * where X is one of those and Y is a different one.yaml * * SS_...
true
e9f3caa28665593401e05ef3327aa5c41cf33248
PHP
Webcretaire/PIG
/src/PIG/Formatter.php
UTF-8
777
3.40625
3
[ "MIT" ]
permissive
<?php namespace PIG; /** * Class Formatter * * Static formatting functions * @author Julien EMMANUEL <contact@julien-emmanuel.com> * @package PIG */ class Formatter { /** * Formats a date to be used in an ICS file * * @param \DateTime $date * @return string */ public static func...
true
704360e841b6d59d7335dbae2952b410ee4aa3dc
PHP
aidanoflann/aidanoflann.github.io
/pokecheck/index.php
UTF-8
6,466
2.546875
3
[]
no_license
<!doctype HTML public "-//W3O//DTD W3 HTML 2.0//EN"> <html> <head> <title>Pokecheck</title> <link type ="text/css" rel="stylesheet" href = "stylesheet.css"> </head> <body OnLoad="document.searchbar.pokeName.focus();" align="center"> <!-- <div id="header" align="center"> <h1>Pokecheck</h1> </div>--> <...
true
baff7ea4742947a355d62c6c4ef65c29969871dc
PHP
Focus43/missgreek
/web/packages/miss_greek/controllers/dashboard/miss_greek/controller.php
UTF-8
2,449
2.546875
3
[ "MIT" ]
permissive
<?php defined('C5_EXECUTE') or die("Access Denied."); class DashboardMissGreekController extends MissGreekPageController { public function on_start(){ $this->addHeaderItem($this->getHelper('html')->css('miss-greek.dashboard.css', 'miss_greek')); $this->addFooterItem($this->getHelpe...
true
477713b4312ed999ede22fbf6afd46f54b435359
PHP
jotheeswaran-dev/developer-joyofenergy-php
/app/Http/Middleware/Services/MeterReadingsInitialize.php
UTF-8
2,046
2.75
3
[]
no_license
<?php namespace App\Http\Middleware\Services; use App\Models\ElectricityReading; use App\Models\PricePlan; use Nette\Utils\Random; use phpDocumentor\Reflection\Types\Integer; use function Sodium\add; class MeterReadingsInitialize { public $smartMeterToPricePlanAccounts = []; public $pricePlans = []; pub...
true
b28f05f2487ecd605dd2c85080144e6e85dd500a
PHP
malezidevs/mobile-money
/src/Mpesa/Library/StkPush.php
UTF-8
5,333
2.515625
3
[ "MIT" ]
permissive
<?php namespace DervisGroup\Pesa\Mpesa\Library; use Carbon\Carbon; use DervisGroup\Pesa\Database\Entities\MpesaStkRequest; use DervisGroup\Pesa\Exceptions\MpesaException; use DervisGroup\Pesa\Repositories\Generator; use DervisGroup\Pesa\Repositories\Mpesa; use GuzzleHttp\Exception\RequestException; use Illuminate\Sup...
true
c5eddfb0e0f20c58eea0cfa5e264439780438bfb
PHP
kaust-library/ioi
/functions/evenOrOdd.php
UTF-8
569
3.296875
3
[ "MIT" ]
permissive
<?php /* **** This file is responsible for checking if a number is even or odd, and return back the bins for the chart as even always. ** Parameters : $number: numeric number ** Created by : Yasmeen Alsaedy ** Institute : King Abdullah University of Science and Technology | KAUST ** Date : 16 April 2019- 10:30 AM...
true
587def9b22099bb3b41ea30a6946080c12c814c5
PHP
AppUlvi/wifi-jwe21
/PHP/PHP1/Uebungen/10regex.php
UTF-8
1,052
3.625
4
[ "MIT" ]
permissive
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Reguläre Ausdrücke in PHP</title> </head> <body> <h1>Reguläre Ausdrücke in PHP</h1> <?PHP // ...
true
7496c90c2759935075ff252b772020a178c678ce
PHP
iluvatarTim/freelance
/app/Company.php
UTF-8
1,762
2.8125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Company extends Model { protected $table = 'company'; public $timestamps = true; protected $fillable = ['siret', 'denomination', 'user_id']; /* * * class company contenant les requetes SQL permettant l'int...
true
5b377232f2971a8e623b0db320d4af135624b37f
PHP
PlayerManagementSystem/PlayerManagementSystem
/scripts/utente/cambia_email.php
UTF-8
1,916
2.671875
3
[]
no_license
<?php require "../funzioni_comuni.php"; //Avvio sessione session_start(); //Verifico se l'utente è collegato check_collegato(); if (!isset($_POST['nuova_email']) || empty($_POST['nuova_email'])) errore("Nuova email non inviata."); require "../../classi/Attivazione.php"; $attivazione = new Attivazione(); try { ...
true
30ec74a675514ae2741f882f337f4a5570d61590
PHP
Letractively/c200remote
/src/webui/webrc200.php
UTF-8
5,113
2.640625
3
[ "BSD-3-Clause", "WTFPL" ]
permissive
<?php // A PHP script to send remote commands to the Popcorn Hour C-200. // By dc11ab, November 15, 2009. // 11/16/2009 - Modified by Blade to allow direct commands and friendly command names // See README.NFO for more information. $cmd=$_GET['cmd']; $fcmd=$_GET['fcmd']; function sendCommand($theCmd) { // Open th...
true
f0f14c65762393e4ad0b849c72657e49138eea38
PHP
Artem-Schander/phpunit-workshop
/slug-example/tests/SlugifyTest.php
UTF-8
973
2.984375
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; use App\Slugify; class SlugifyTest extends TestCase { /** @test */ public function creating_a_slug_from_a_string() { $result = Slugify::make('Zwölf große Boxkämpfer jagen Viktor quer über den Sylter Deich'); $this->assertEquals('zwoelf-grosse-boxkaempfe...
true
57947bbf6f8fe8b85f37f1eec80a5752610d8d57
PHP
nedretb/apoteke-app
/modules/core/vendor/Helper.php
UTF-8
2,183
2.921875
3
[]
no_license
<?php function view($location, $variables = []) { $location = $location . ".aurora.php"; $s = file_get_contents('../views/' . $location); foreach ($variables as $key => $value) { $s = str_replace('{{ $' . $key . ' }}', $value, $s); } echo $s; } class Helper { public static functio...
true
446aaa979f487dac38af96befc21a46d52c111b5
PHP
infohojin/daelim_db_2020
/201930311/if/if01.php
UTF-8
81
3.375
3
[]
no_license
<?php $age = 25; if($age>=18) echo "성인"; else print "미성년";
true
b0e42084be3661feb6552f9781b5a102fdaecaf9
PHP
lechuzasoft/Curso-php-web-2018
/ejercicios/Clase4/e_04_02.php
UTF-8
1,286
3.09375
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Page Title</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="styles...
true
b66199c53e7b4a136d31054d0e3d8db26d4a140f
PHP
Bam101996/Customer-Resource-Management-Database-Project
/contactInsert.php
UTF-8
1,697
2.609375
3
[]
no_license
<html> <head> <title>Contact Insertion</title> </head> <body> <?php session_start(); $servername = "cs314.iwu.edu"; try{ $conn = new PDO("mysql:host=$servername;dbname=DB_BLAKE", $_SESSION['username'], $_SESSION['pass']); $conn -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION)...
true
6d10297f005fa57e9cbcdd2d6b48f7f4660553bb
PHP
liaoshanggang/MyGitHub
/HBuilderProjects/php/SY5_1.php
UTF-8
2,120
3.078125
3
[]
no_license
<?php @header('Content-type: text/html;charset=UTF-8'); ?> <!DOCTYPE html> <style type="text/css"> div{ font-size: 18px; color: #0000FF; } li{ font-size: 24px; color:#FF0000; } </style> <form enctype="multipart/form-data" action="" method="post"> <table> <tr> <td bgcolor="#CCCCCC"> <div>当前最流行的Web开...
true
fcd001c20f045e5c78fa4b81fbfa63036490bd97
PHP
game103/game103
/ws/downloadservice.php
UTF-8
1,244
2.84375
3
[ "MIT" ]
permissive
<?php /** * Script to provide a download service for items * This hides the download links */ // A standard error message $error_val = "Sorry, an error occured while trying to get your download link."; if(!isset($_GET['name'])) { echo $error_val; exit(); } // Create the link $path = $_SERVER['DOCUM...
true
65ccb4cb2893126bb53f00e5fbb2f8186a860e49
PHP
khalilst/coupon
/database/seeds/CouponsTableSeeder.php
UTF-8
1,666
2.890625
3
[]
no_license
<?php use App\Enums\ECodeType; use App\Models\Brand; use App\Models\Code; use App\Models\Coupon; use Illuminate\Database\Seeder; class CouponsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Brand::inRandomOrder() ...
true
f8e2cf9d75f83af162d0fee38709ca7bce37d5fc
PHP
smsshafi/GroceryXpress
/editdeletecritique.php
UTF-8
1,573
2.515625
3
[]
no_license
<?php include 'authheader.php'; ?> <?php $redirect = 0; include 'etc.php'; $message = ''; if ($_POST['questions'] != "") { if ($_POST['delete'] != "") { if (DeleteQuestion($_POST['questions'])) { $message = 'Question deleted!'; } else $message = 'Delete failed!'; } if ($_POST['edit'] !=...
true
0298f6f99cc6232b5ce3bea5033290cfcf3ecb09
PHP
mitsukiogawa/Algorithm
/question2.php
UTF-8
509
4.09375
4
[]
no_license
<?php /* 問題2 交互に要素を取ることで、2つのリストを結合する関数を記述せよ。 例えば [a, b, c]と[1, 2, 3]という2つのリストを与えると、関数は [a, 1, b, 2, c, 3]を返す。 */ function getAlternationArrayMerge($list1, $list2) { $answer = array(); while(true) { if (empty($list1) && empty($list2)) { break; } if($list1) { $answer[] = array_shift($list1); } if ($li...
true
10bc7dc4cece2bca601d4733295d1a13e7814068
PHP
justcoded/swagger-tools
/src/Helpers/Cli.php
UTF-8
1,172
3
3
[]
no_license
<?php /** * Created by PhpStorm. * User: alex * Date: 5/7/18 * Time: 21:26 */ namespace JustCoded\SwaggerTools\Helpers; class Cli { /** * Help to parse arguments to key/value * * @param array $arguments Composer arguments. * * @return array */ public static function parseArguments($arguments = arr...
true
c92423b9a32bb68f370cc1790e238964036a7d4c
PHP
TYPO3-svn-archive/security_check
/mod1/classes/security_check_runner.php
UTF-8
1,252
2.6875
3
[]
no_license
<?php require_once (dirname(__FILE__).'/conf.php'); require_once (dirname(__FILE__).'/security_check_result.php'); require_once (dirname(__FILE__).'/security_check_test.php'); require_once (dirname(__FILE__).'/security_check_renderer.php'); /** * @version 1.0 * @author Axel Jung * @created 23-Aug-2006 10:59:38 */ c...
true
0639af0d2a8a81f28589c2e3415a1d27c4ef8842
PHP
dmensh/logger
/tests/EntryTest.php
UTF-8
1,567
2.703125
3
[ "MIT" ]
permissive
<?php namespace NZTim\Logger; use InvalidArgumentException; use PHPUnit_Framework_TestCase; class EntryTest extends PHPUnit_Framework_TestCase { public function testInInstantiable() { $this->assertTrue(class_exists('NZTim\Logger\Entry')); } /** * @test */ public function normalC...
true
c57842bfa292575cdb73f4cce52b58b5a9fd1646
PHP
dewan-official/Web-Design
/Bari_Bhara/dist/func/update.inc.php
UTF-8
23,190
2.6875
3
[]
no_license
<?php session_start(); ob_end_flush(); require_once 'insert.inc.php'; class updateProfile extends work{ // Edit Profile Information // Edit Name Function function editUserName($data){ $conn = $this->connect(); $fname = $this->modify(mysqli_real_escape_string($conn, $data['fname'])); $lname = $this->m...
true
d9085050e827b78e05427288cb85138710d30246
PHP
kotarot/labot
/mastodon_yahooweather.php
UTF-8
1,172
2.8125
3
[]
no_license
<?php require_once(__DIR__ . '/mastodon.config.php'); // Yahoo 天気 RSS から「東京」の今日の天気を取得する function get_yahooweather() { $rsspath = 'https://rss-weather.yahoo.co.jp/rss/days/4410.xml'; $xml = simplexml_load_file($rsspath); $todaystr = date('j') . '日'; $posttext = '今日の天気だよ'; foreach ($xml->channel->i...
true
6364c9d2559e15fdf949896ff1ebdbe3f21a5696
PHP
itedev/common
/Extension/ExtensionFinder.php
UTF-8
3,266
2.9375
3
[]
no_license
<?php namespace ITE\Common\Extension; use Symfony\Component\ClassLoader\ClassMapGenerator; /** * Class ExtensionFinder * * @author sam0delkin <t.samodelkin@gmail.com> */ class ExtensionFinder { /** * Find all classes, that extending base class or implementing interface in given dir. * * @para...
true
1318db93ac32d5ca1253096cc4cd88b0637bcee8
PHP
gradus/cottage_wp_theme
/lib/classes/favicon.php
UTF-8
3,540
2.609375
3
[]
no_license
<?php $thesis_favicon = new thesis_favicon; class thesis_favicon { function thesis_favicon() { $saved_favicon = get_option('thesis_favicon'); #wp if (!empty($saved_favicon)) $this->favicon = $saved_favicon; } function __construct() { $saved_favicon = get_option('thesis_favicon'); #wp if (!empty($saved_...
true
d3508e32a9b419204d5b160efb614792bedd85be
PHP
MartynovArtyom/php-laravel-angular
/app/Portal/Repositories/CompanyLeasingSettingRepository.php
UTF-8
2,622
2.625
3
[]
no_license
<?php namespace App\Portal\Repositories; use App\Repositories\BaseRepository; use App\Models\LeasingCondition; use Carbon\Carbon; use Illuminate\Support\Collection; /** * Class CompanyLeasingSettingRepository * * @package App\Portal\Repositories * @method LeasingCondition find(int $id, array $relations = []) */...
true
db5dc72052281d0924d71109c700d42d47355975
PHP
Theyl44/A2_TP_PHP
/TP8/citation.php
UTF-8
2,235
2.71875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> TP PHP </title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> </head> <body> <nav...
true
da2d502c8cc2525a4ffa813a90bdf6ff80f6a8aa
PHP
DonnyVanDeBeek/mmorpgTelegram
/classes/item/item/Item79.php
UTF-8
156
2.640625
3
[]
no_license
<?php //UOVO class Item79 extends Item{ private $itemId = 79; public function __construct(&$OBJ){ parent::__construct($OBJ, $this->itemId); } }
true
11b7886460c553d9b37f8e9db6f4f73c39935d18
PHP
Arnorec/string-validator
/src/Result/Result.php
UTF-8
668
3.03125
3
[]
no_license
<?php namespace Brightgrove\Validator\Result; use Brightgrove\Validator\Error\ErrorInterface; class Result implements ResultInterface { protected $errors = []; public function isValid(): bool { return empty($this->errors) ? true : false; } /** * @return string[] */ public ...
true
fb85148c23f40fec6675fbb7adfceb4ffd84b4c4
PHP
samclair/fresh-cooking-assistant
/server/api/maps-details.php
UTF-8
965
2.5625
3
[]
no_license
<?php require_once '_api-keys.php'; if ($request['method'] === 'GET') { $place_id = $request['query']['placeId']; if (!isset($place_id)) { throw new ApiError('Place ID required', 400); } $data = get_location_details($maps_api_key, $place_id); $response['body'] = $data -> result; send($response); } function...
true
9a1136ebc6c52dc693c7c3e41d7ba9fb281597ae
PHP
transip/tipctl
/src/Command/Vps/License/Update.php
UTF-8
1,368
2.71875
3
[ "Apache-2.0" ]
permissive
<?php namespace Transip\Api\CLI\Command\Vps\License; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Transip\Api\CLI\Command\AbstractCommand; use Transip\Api\CLI\Command\Field; class Update extends Abstra...
true
484db7526402780b3399a4ada9808ff5dfe42a2f
PHP
fracz/refactor-extractor
/results/piwik/a00487b0b841c4b15463b591c7f62176c4b84d15/after/CompareKeys.php
UTF-8
4,155
2.5625
3
[]
no_license
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik\Plugins\LanguagesManager\Commands; use Piwik\Plugin\ConsoleCommand; use Piwik\Translate; use Symfony\Component\Console\Input\ArrayInput; use ...
true
020838662fc6a401de70ab8a12e0fd733fdc2ec4
PHP
Tejaswini-707/Sentiment-Analysis-For-Product-Rating-based-on-comments
/login.php
UTF-8
1,619
2.625
3
[]
no_license
<?php session_start(); $usererr= $usererr1= $passerr= $passerr1= ""; $user= $pass= ""; $flag=true; if(isset($_POST['submit'])) { $user=$_POST['Username']; $pass=$_POST['Password']; if(empty($user)) { $usererr="username compulsory"; $flag=false; } elseif(!preg_match("/^[A-Za-z]+$/",$use...
true
eeaa65afbda4dcbf15943eb159f0ccf82e142398
PHP
patrickqz/UW-Schedule-Share
/addDaysToQuery.php
UTF-8
206
3.125
3
[]
no_license
<?php //adds elements into SQL query function addDaysToQuery($array, $db) { $query = ""; foreach($array as $value) { $value = $db->quote($value); $query .= ", $value"; } return $query; } ?>
true
ebfc424083eaa0b1589b32affc1f8edaf87dc823
PHP
hamzaelazizi/admin_side
/app/Http/Controllers/Structure.php
UTF-8
1,267
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class Structure extends Controller { // public function __construct() { $this->middleware('auth'); } public function store(){ $request->validate([ 'titre' => 'required', 'type' => ...
true
a7e5069953720a30370348a205bdbdb1c2a9becb
PHP
gilberson/laravel-api
/app/Http/Controllers/TaskController.php
UTF-8
2,737
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Repositories\TaskRepositoryInterface; class TaskController extends Controller { //instance of task protected $task; /** * TaskController constructor. * * @param TaskRepositoryInterface $task */ public func...
true
728462a9669a8e4119360d790343896860bf1593
PHP
Catfeeds/ebh_ebh2
/models/SmartexamModel.php
UTF-8
7,913
2.765625
3
[]
no_license
<?php class SmartexamModel extends CModel{ /** *获取学生自己布置的作业的详情 */ public function getSmartExamDetail($eid = 0,$uid = 0){ $sql = 'select e.* from ebh_smartexams e where e.eid = '.$eid.' AND e.uid = '.$uid; return $this->db->query($sql)->row_array(); } /** *获取学生自己布置的智能试卷列表 */ public function getList($par...
true
e1fbeaf7b0d29dc41feba01f9c1314229e5ed2eb
PHP
memreas/memreas-dev-php-ws
/module/Application/src/Application/memreas/FeedBack.php
UTF-8
2,665
2.59375
3
[]
no_license
<?php /** * Copyright (C) 2015 memreas llc. - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential */ namespace Application\memreas; use Zend\Session\Container; use Application\Model\MemreasConstants; use Application\memreas\MUUID; use \Exce...
true
71c89fa38c5e8ebcdc960e061be3340934b4297d
PHP
AL3X09/ixa
/Model/SettingModel.php
UTF-8
11,564
2.671875
3
[]
no_license
<?php include_once '../Model/Connection/Connection.php'; class SettingModel { private $classConnection; private $objectPdo; private $statement; public function __construct() { $this->classConnection = new Connection (); $this->objectPdo = $this->classConnection->connect (); } public function getAllDocumentTyp...
true
7c201a783fea586abdc26c1e321500c5244eea38
PHP
bkrukowski/transparent-email
/src/TransparentEmailFactory.php
UTF-8
1,143
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace bkrukowski\TransparentEmail; use bkrukowski\TransparentEmail\Services\AppsGoogleCom; use bkrukowski\TransparentEmail\Services\GmailCom; use bkrukowski\TransparentEmail\Services\OutlookCom; use bkrukowski\TransparentEmail\Services\TlenPl; use bkrukowski\TransparentEmail\Servic...
true
8396dbe78a6a84d3fdba1328d1e34b9d206591a6
PHP
Nicole-DeBord/Codeup_Exercises
/while.php
UTF-8
177
3.203125
3
[]
no_license
<?php // exercise 3.1.4. $test=5; while ($test <= 15) { echo "$test\n"; $test++; } //echo "Our loop is done!\n"; // while (true) { // echo "never gonna stop\n"; // } ?>
true
7adb7d55a440ae93f725175b57bd317f054351c7
PHP
smwhr/recette-2020
/add_recipe.php
UTF-8
413
2.609375
3
[]
no_license
<?php session_start(); $name = $_POST['recipe_name']; if(!isset($_SESSION['recettes'])){ $_SESSION['recettes'] = []; } $newRecette = ["name" => $name, "created_at" => date("Y-m-d H:i:s") ]; $_SESSION['recettes'][] = $newRecette; //EXo 1 : sauvegarder tout sans écraser //Exo 2 : réc...
true
765e5094916d6db01168ee5a12c8669434c2ac9d
PHP
stixx/tradetracker-api-client
/src/Mapper/FeedMapper.php
UTF-8
939
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Hypeit\TradeTracker\Mapper; use Hypeit\TradeTracker\Model\Feed; use Hypeit\TradeTracker\Normalizer\IntervalNormalizer; class FeedMapper implements MapperInterface { /** * {@inheritdoc} * * @return Feed * @throws \Exception */ public function hydrate($value) { ...
true
411cc774dedbd4b05a9595dba95c34535b83eda4
PHP
rzu59210/blog_lprsc
/index.php
UTF-8
4,826
2.953125
3
[]
no_license
<?php /* les includes */ require_once('libs/Smarty.class.php'); include('includes/connexion.inc.php'); include('includes/haut.inc.php'); include('includes/verif_connexion.php'); include('includes/notification.inc.php'); /*----------------*/ if(isset($_GET['p'])) $page = $_GET['p']; // Je stocke...
true
f21a43d27fa3e174252c1218dc9920f03a6a26d3
PHP
ArcadioAlpuche/BookLibrary
/books-newdata.php
UTF-8
940
2.703125
3
[]
no_license
<?php If (isset($_POST['submitted'])) { include('db-connect.php'); $title = mysqli_real_escape_string($dbcon, $_POST['title']); $lastname = mysqli_real_escape_string($dbcon, $_POST['author_lastname']); $firstname = mysqli_real_escape_string($dbcon, $_POST['author_firstname']); $genre = mysqli_real_es...
true
138f393678f2d8f5477f44efd95dd8485d0b169d
PHP
travisfont/ek0x0ol
/array_column.php
UTF-8
1,208
2.859375
3
[ "MIT" ]
permissive
<?php if (!function_exists('array_column')) { function array_column(array $input, $column_key, $column_key = NULL) { $output = array(); foreach ($input as $row) { $key = NULL; $value = NULL; $key_set = FALSE; $value_s...
true
2b6b65849b7dd8db10c72ed19014587fc5c36b53
PHP
TrinityH/Social
/views/viewLogin.php
UTF-8
1,657
2.53125
3
[]
no_license
<?php if (!isset($userName)) { $userName = ''; } if (!isset($pass)) { $pass = ''; } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Team Quebec</title> <link rel="stylesheet" type="text/css" href="views/confirmation.css?<?php /*I found this piece online(...
true
11a5eb120fd4a510d6fb77fe23f186a601bc8d85
PHP
unclecheese/silverstripe-graphql
/examples/code/CommentsResolver.php
UTF-8
401
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace MyProject; use SilverStripe\GraphQL\Scaffolding\Interfaces\ResolverInterface; class CommentsResolver implements ResolverInterface { public function resolve($object, $args, $context, $info) { $comments = $object->Comments(); if(isset($args['Today']) && $args['Today']) { $comments = $...
true
8da288477ce52a2db0e406dac029d534cb3ee369
PHP
shishirg804/phpsolution
/website4/page3.php
UTF-8
361
2.8125
3
[]
no_license
<?php session_start(); $name=$_SESSION['name']; $email=$_SESSION['email']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP Sessions</title> </head> <body> <h2>Hello to page 3, <...
true
d7afa45a4a0037a9bc23a7e7b92dea2e3bd5ab47
PHP
MirzaChilman/CRUD
/unggah_ktm.php
UTF-8
1,904
2.9375
3
[]
no_license
<?php include('db_login.php'); $nim = $_REQUEST['nim']; if (!file_exists("uploads/$nim")) { mkdir("uploads/$nim", 0777, true); } $target_dir = "uploads/$nim/"; $target_file = $target_dir . "ktm_$nim.jpg"; $file_ktm = "ktm_$nim.jpg"; $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Ch...
true
530e4e0ea03ea27cf6a85a0028f39f0af79b2086
PHP
Ch-Hamza/projet-stage
/tracking/testexpo.php
UTF-8
1,849
2.5625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php $ch = curl_init(); $base_url= "https://www.museums.ch/fr/au-musee/expositions.html"; curl_setopt ($ch, CURLOPT_URL, $base_url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); $output = curl_exec($ch); curl_close($ch);...
true
ee3d8c35a283ba31f4c32e830c8cff99802795df
PHP
elifesciences/api-sdk-php
/test/Client/EventsTest.php
UTF-8
9,300
2.609375
3
[ "MIT" ]
permissive
<?php namespace test\eLife\ApiSdk\Client; use BadMethodCallException; use eLife\ApiClient\ApiClient\EventsClient; use eLife\ApiClient\MediaType; use eLife\ApiSdk\ApiSdk; use eLife\ApiSdk\Client\Events; use eLife\ApiSdk\Collection\Sequence; use eLife\ApiSdk\Model\Block\Paragraph; use eLife\ApiSdk\Model\Event; use test...
true
3ed98c369bc1909dacc1000d57eff63915d0d70a
PHP
eugeniak99/recipe_book
/app/src/DataFixtures/CommentFixtures.php
UTF-8
1,169
2.671875
3
[]
no_license
<?php /** * Comment fixtures. */ namespace App\DataFixtures; use App\Entity\Comment; use Doctrine\Persistence\ObjectManager; /** * Class TaskFixtures. */ class CommentFixtures extends AbstractBaseFixtures { /** * Load data. * * @param \Doctrine\Persistence\ObjectManager $manager Persistence ob...
true
e85398425159a257d5efc8225eb006f437f542e7
PHP
jonathanpe/templatenewreworked
/src/Repository/Main/UserRepository.php
UTF-8
8,124
2.734375
3
[]
no_license
<?php namespace App\Repository\Main; use App\Entity\Main\Action; use App\Entity\Main\Stage; use App\Entity\Main\Subject; use App\Entity\Main\User; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Common\Persistence\ManagerRegistry; /** * @method User|null find($id, $lockMode = nul...
true
f1866f356a70076b6b4029753695a8680aef7368
PHP
mrsmithsee/orientacao-objetos
/Cartao.php
UTF-8
631
3.265625
3
[]
no_license
<?php class CartaoDeCredito{ public $numero; public $dataDeValidade; } //require 'lib/Carbon.php'; //use Carbon\Carbon; $cartao = new CartaoDeCredito(); $cartao->numero = "111111"; $cartao->dataDeValidade = "01/01/2013"; //$cartao->dataDeValidade = // Carbon::createFromDate(2022, 3, 7, 'America/Sao_Paulo'); ...
true
537d7f3c2468c4c42cdcc4d906e23a4c62a01c2e
PHP
zhulinmq/gongxiang
/extend/AliSend/lib/Core/Auth/ISigner.php
UTF-8
207
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace Aliyun\Core\Auth; interface ISigner { public function getSignatureMethod(); public function getSignatureVersion(); public function signString($source, $accessSecret); }
true
88a4ca129c6a556b67ce25ff5398b14872c75c1c
PHP
sumocoders/fork-cms-module-generator
/src/Domain/File/FileDBALType.php
UTF-8
1,662
2.734375
3
[ "MIT" ]
permissive
<?php namespace ModuleGenerator\Domain\File; use ModuleGenerator\CLI\Service\Generate\GeneratableClass; use ModuleGenerator\PhpGenerator\ClassName\ClassName; final class FileDBALType extends GeneratableClass { /** @var ClassName */ private $className; /** @var ClassName */ private $fileClassName; ...
true
3d4119fa719ef7e668c5eaeeab51994b3244461e
PHP
UzeeDevelopers/AccountBooks
/entity/KamokuMst.php
UTF-8
338
2.59375
3
[]
no_license
<?php /** * Description of kamokuMst * * @author Sho */ class KamokuMst { private $kamoku_cd; private $kamoku_nm; public function getKamokuName($kamoku_cd) { return $this->kamoku_nm; } public function getKamokuCode($kamoku_nm) { return $this->kamoku_cd;...
true
58cadbd807408d56fc5f2829b7aa1e00e259bda9
PHP
prsawant/kaltura
/AsyncMediaServerProcessClientApp/asyncMediaServerProcessScript.php
UTF-8
4,184
2.609375
3
[]
no_license
<?php $configFilePath = $argv[1]; $config = parse_ini_file($configFilePath); //Load configuration $files = glob($config['dirName'] . '/*.xml'); if (!count($files)) { logMsg("No files at this time."); die(); } logMsg(count ($files) . " files found."); $inProgress = array(); if (file_exists('in_progress')) { $cont...
true
6eff397e5ec9bd4d4f8a0bc086e55073052a5215
PHP
FriendsOfREDAXO/cache_warmup
/lib/generator_pages.php
UTF-8
853
2.515625
3
[ "MIT" ]
permissive
<?php /** * Class cache_warmup_generator_pages. */ class cache_warmup_generator_pages extends cache_warmup_generator { /** * Generate cache for given items. * * @param array $items * @return array */ public function generateCache(array $items): array { if (rex_addon::get(...
true
2df1cbf7691162fcfc9803578dbfd4b54604e1f7
PHP
tasfe/xytaobao
/xygirl/class/mysql.cls.php
UTF-8
4,879
2.75
3
[]
no_license
<?php class db_mysql { var $querynum = 0; var $con; function connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect = 0) { if($pconnect) { if(!@mysql_pconnect($dbhost, $dbuser, $dbpw)) { $this->halt('Can not connect to MySQL server'); } } else { if(!@mysql_connect($dbhost, $dbuser, $dbpw)...
true
456a30bfe73a34d634fbca5744960f8d71222519
PHP
nayzawoo/mongo-ng-old
/app/MongoAdmin/Models/Collection.php
UTF-8
3,705
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\MongoAdmin\Models; use App\MongoAdmin\Exceptions\MongoAdminException; use App\MongoAdmin\Json\Json; use Illuminate\Contracts\Support\Jsonable; use Jenssegers\Mongodb\Query\Builder; class Collection implements Jsonable { private $database; private $queryBuilder; private $name; pr...
true
b8b14470039d4d2e3d5946a0a27c0a8c22f9dbee
PHP
cybalex/test_helpers
/src/DtoTestHelperTrait.php
UTF-8
1,837
2.953125
3
[]
no_license
<?php namespace Cybalex\TestHelpers; /** * @author Zymovets Oleksii <cybalex87@gmail.com> */ trait DtoTestHelperTrait { /** * @var object */ protected $entity; public function DTOSetUp(): void { $className = $this->getEntityClass(); $arguments = array_map( func...
true
618907d3ab74fcc60b80534d6c87558115e9ae76
PHP
bestit/harvest-api
/src/Models/Reports/DayEntries.php
UTF-8
481
2.734375
3
[ "MIT" ]
permissive
<?php namespace BestIt\Harvest\Models\Reports; use BestIt\Harvest\Models\ModelCollection; /** * Class DayEntries * * @package BestIt\Harvest\Models\Reports * @author Ahmad El-Bardan <ahmad.el-bardan@bestit-online.de> * @method DayEntry offsetGet($offset) */ class DayEntries extends ModelCollection { /** ...
true
1e885a9a5fc96bb2588236c5c5d521ae81495310
PHP
shingo-namihira/kancolle
/kancolle_deck_select.php
UTF-8
6,326
2.6875
3
[]
no_license
<?php /*++++++++++++++++++++ 開始 ++++++++++++++++++++*/ /*-------------------- 終了 --------------------*/ /********** データベース情報などの読み込み **********/ require_once("data/db_info.php"); /************ データベースへ接続、デーたベース選択 ***********/ $s=mysql_connect($SERV,$USER,$PASS) or die("失敗しました"); mysql_select_db($DBNM); // 提督情報の抽出 $p=my...
true
8af72d2ce3c2ab26f34ac98d0ecccfcd1cb5567f
PHP
breachofmind/birdmin
/src/Console/Commands/ImportCommand.php
UTF-8
1,291
2.71875
3
[]
no_license
<?php namespace Birdmin\Console\Commands; use App\Modules\Site; use Birdmin\Media; use Illuminate\Console\Command; class ImportCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'birdmin:import'; /** * The con...
true
3099f20a0b4fd1efcfbef95cb1c4d667fdf906ca
PHP
revededev/cube
/include/tools.php
UTF-8
11,875
2.6875
3
[]
no_license
<?php /* liste des fonctions : is_log() [ligne 30] print_lf($t) [ligne 30] printr($t) [ligne 30] valid_date($sup,$inf='') [ligne 30] change_mois($t,$type,$sep) [ligne 30] sup_car ($t) inv_date($d,$sep,$long=0) [ligne 30] last_car($t) vire_espace($t) decoupe_chaine($string, $start, $length, $endStr = '...') decou...
true
073e3fe3643d2d6c6f43888ea7cb9e1069bc73c0
PHP
schmengler/magento2-hyva-admin
/Model/TypeReflection/ExtensionAttributeTypeExtractor.php
UTF-8
2,534
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Hyva\Admin\Model\TypeReflection; use Magento\Framework\Api\ExtensibleDataInterface; use Magento\Framework\Api\ExtensionAttributesInterface; use Magento\Framework\Api\SimpleDataObjectConverter; use function array_filter as filter; use function array_keys as keys; use function ...
true
fe05ed9382570abed390b8700e63df7ecc218443
PHP
Ngannguyendt2/libraryManager
/books/show.php
UTF-8
2,669
2.984375
3
[]
no_license
<?php include "../database/DBconnect.php"; include "../class/Books.php"; include "../class/LibraryManager.php"; $libraryManager = new LibraryManager(); $bookManager = $libraryManager->getAll('books'); $books= []; foreach ($bookManager as $item) { $book = new Books(); $book->setId($item['id']); $book->setNam...
true
802de9bb5047fe7f2f158ddfe8c7344c03a26e56
PHP
mochilor/setlists
/tests/Unit/Setlist/Infrastructure/DataTransformer/SetlistDataTransformerTest.php
UTF-8
2,805
2.515625
3
[]
no_license
<?php namespace Tests\Unit\Setlist\Infrastructure\DataTransformer; use Setlist\Application\DataTransformer\SongDataTransformer; use PHPUnit\Framework\TestCase; use Setlist\Application\Persistence\Setlist\PersistedSetlist; use Setlist\Application\Persistence\Song\PersistedSong; use Setlist\Application\Persistence\Song...
true
1b94a1aec786c41156efdea59472de33f4f3cf64
PHP
include-minimaltools/credimas
/controllers/AdminController.php
UTF-8
2,497
2.515625
3
[]
no_license
<?php class AdminController extends SessionController { function __construct() { parent::__construct(); } function Render() { $this->GetAllUsers(); } function GetAllUsers() { $users = $this->model->GetAll(); $html = ''; fore...
true
b121e7e21497356913e082ae58cf2928a4b004d2
PHP
SSTechvn/virgil-sdk-php
/src/Client/VirgilClientParamsInterface.php
UTF-8
1,820
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Virgil\Sdk\Client; /** * Interface provides services specific params. */ interface VirgilClientParamsInterface { /** * Sets Identity Service url. * * @param string $identityServiceAddress * * @return VirgilClientParamsInterface */ public function setIdentityServ...
true
93ca453d569d724de1ae1ca2e2421aec5490b84b
PHP
anthonyL05/archi-eisi-18.3
/src/Infrastructure/Repository/Invoice.php
UTF-8
844
2.703125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Infrastructure\Repository; use App\Domain\Collection\Invoice as InvoiceCollection; use App\Domain\Entity\Invoice as InvoiceEntity; use App\Domain\Repository\Invoice as InvoiceRepositoryInterface; use App\Infrastructure\ValueObject\Uuid; use DateTimeImmutable; final class...
true
3450fd637afb50cdde6cb61b58df3d63c055744d
PHP
mail2rkjaiswal/emdbold
/refinefolder.php
UTF-8
1,653
2.546875
3
[]
no_license
<?php $folder = $_GET['foldername']; $mainfolder=$folder."/"; $incrementvalue=0; function listFolderFilescheck($dir) { if($dir == ''){ exit; } foreach (new DirectoryIterator($dir) as $fileInfo) { if (!$fileInfo->isDot()) { global $mainfolder; if ($fileInfo->isDir()) { $dirnam=$fil...
true
bf6d0e792fdf93d2f031d121f205f62e0987d02f
PHP
hikoboshi1/Holiday
/app/Providers/AppValidateProvider.php
UTF-8
813
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Validator; class AppValidateProvider extends ServiceProvider { /** * Register services. * * @return void */ public function register() { // } /** * Bootstrap ser...
true
9d38cbc45cdbce6c82a6ef5b9ea9fedf0d642a08
PHP
dev-hvstle/plvdocx-qwerty
/student/test.php
UTF-8
163
2.546875
3
[]
no_license
<?php $id = "18-0227"; $level = 2; if(substr($id, 0, 3) !== "SHS" && $level == 2){ echo "wrng"; } else{ echo "riight"; } ?>
true
cdfa7e670f37f38a76ecd921c981e03bdd7cc94a
PHP
yakovenkodenis/projectpracticum
/WebApp/protected/models/Group.php
UTF-8
4,187
2.71875
3
[]
no_license
<?php /** * This is the model class for table "group". * * The followings are the available columns in table 'group': * @property integer $group_id * @property integer $autoschool_id * @property string $name * @property string $practice_start * @property integer $practice_days * @property integer $practice_te...
true
603d4fab4ac1fa18a1eb396a4c68fab95410c6c3
PHP
yannlo/AGL-site
/src/Framework/Session/SessionInterface.php
UTF-8
1,302
2.953125
3
[]
no_license
<?php namespace YannLo\Agl\Session; use Psr\Container\ContainerInterface; interface SessionInterface extends ContainerInterface { /** * set * * add or set session var * * @param string $name * @param mixed $value * @param bool $locked * @return void */ ...
true
52d898052b69fb5d11ae0bbbfa38d2908d2225fb
PHP
jrising/reals
/amg/buttons.php
UTF-8
1,991
2.640625
3
[ "MIT" ]
permissive
<?php require_once("amg.php"); function amgButton($text, $width, $height, $attr = array()) { global $amgDefaults; $options = $amgDefaults + $attr; $fsize = $options['fsize']; $color = $options['buttoncolor']; $im = imagecreatetruecolor($width, $height); $bordcolor = imagecolorallocate($im, 0, 0, 0); ...
true
19bd48999e05fffaadce4cdc76934ea886fafebc
PHP
ProjectOrangeBox/OrangeV4application
/packages/projectorangebox/orange/libraries/cache/Request.php
UTF-8
4,168
2.75
3
[]
no_license
<?php namespace projectorangebox\orange\library\cache; /** * Orange * * An open source extensions for CodeIgniter 3.x * * This content is released under the MIT License (MIT) * Copyright (c) 2014 - 2019, Project Orange Box */ /** * Cache_request * * Cache for this request only. * * @package CodeIgniter /...
true
17a3a348fb6b7801a6b245569d2d4f25992a01ad
PHP
yujon/WeixinSDK
/PHPSDK/controls/Jssdk.class.php
UTF-8
1,894
2.609375
3
[]
no_license
<?php namespace Controls; class Jssdk extends Common{ private static $instance; //单例模式 public static function getInstance(){ if(!(self::$instance instanceof self)){ self::$instance = new self(); }else{ self::$instance->resetInfo(); } return self::$instance; } //获取jsapi_ticket function get_jsapi...
true
5f33dde371fb735e154856ef3ee7c1dfeb7619f4
PHP
blue-bxy/park-api
/app/Packages/JPush/Clients/PushClient.php
UTF-8
332
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Packages\JPush\Clients; class PushClient extends Client { protected $url = "https://api.jpush.cn/v3/push"; /** * send * * @param array $params * @return array|mixed */ public function send(array $params) { return $this->httpPost($this->url, $param...
true
938922315eb780c310764ae3f7f70ffb815c7941
PHP
Hunk0/InstitutoPry
/presentacion/profesor/asistenciaPdf.php
UTF-8
2,992
2.546875
3
[]
no_license
<?php include('pdf/class.ezpdf.php'); if(isset($_GET["idMateria"])){ $materia = new Materia($_GET["idMateria"]); $materia -> consultar(); $curso = new Curso($materia->getCursoId()); $curso -> consultar(); /* $variantes = $curso -> consultarVariantes(); $matriculas = array(); forea...
true
12470fd14a6a5f33925c27fd29a41ecfa0316acf
PHP
mizanur090148/hrm
/app/Http/Controllers/api/v1/settings/WeekendController.php
UTF-8
1,996
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\api\v1\settings; use App\Http\Controllers\api\v1\ApiCrudHandler; use App\Http\Controllers\api\v1\BaseController; use App\Models\Settings\Leave; use App\Models\Settings\Weekend; use Exception; use Illuminate\Http\Request; use Illuminate\Http\Response; class WeekendController exten...
true
f51da0d1aa9df4ab7d543e12bcae31c9cda4034f
PHP
shandygunawan/ProBook
/view/history.php
UTF-8
3,203
2.5625
3
[]
no_license
<?php include_once($_SERVER['DOCUMENT_ROOT']."/php/script.php"); if(!checkActiveUser()) { clearAllCookies(); header('Location: '. "login.php"); } $result = $client_order->call('getOrdersByUserId', array('user_id'=>$_COOKIE['user_id'])); $list_of_order = json_decode($result); console_log($list_of_order)...
true
90207fd9edc11e0322a7d04f5ed572e9d3b56d0a
PHP
Don-Lab/phpDates
/phpDates.php
UTF-8
1,286
3.6875
4
[]
no_license
<DOCTYPE! html> <head> <title>PHP Dates</title> </head> <body> <?php //syntax => date(format, timestamp); format is the required but timestamp optional; in array form /* --DATES-- d - day of the month (1-31) m - month of the year (1-12) y - year (four digits) l (lower case L) - day of the week if you inse...
true
68c6617c43cbdb496992ca5b6fc8c18a8f649df9
PHP
mshukurlu/blogable-archived
/shukurlu/blogable/src/Http/Controllers/Backend/PageController.php
UTF-8
1,382
2.671875
3
[]
no_license
<?php /** * User: Murad Shukurlu * Date: 1/27/2019 * Time: 5:24 PM * */ namespace Blogable\Http\Controllers\Backend; use Blogable\Repository\BlogRepository; use Illuminate\Http\Request; class PageController { protected $blogRepository; public function __construct(BlogRepository $blogRepository) {...
true
e13f7fd5e3c743dbecf4a811dfc9f05f1fa1ca75
PHP
HarpreetBatth/Project1
/Project1/index.php
UTF-8
668
2.546875
3
[]
no_license
<?php # Script 3.7 - index.php #2 // This function outputs theoretical HTML // for adding ads to a Web page. function create_ad() { echo '<div class="alert alert-info" role="alert"><p>BookStore!... BookStore!... BookStore!... BookStore!...</p></div>'; } // End of the function definition. $page_title = 'Welcome to...
true
d85c884c7553de3e23c75e96d976c49e47dfc5ff
PHP
ugursogukpinar/o365graph-sdk
/src/Managers/AuthorizationManager.php
UTF-8
1,548
2.84375
3
[]
no_license
<?php /** * User: ugursogukpinar * Date: 13/04/16 * Time: 11:41 */ namespace O365Graph\Managers; class AuthorizationManager { protected $loginUrl; protected $accessToken; private static $instance; /** * @var array */ protected $keys; private function __construct(array $keys)...
true
db839d51f9f898608c853abfd1a27724d113d0b9
PHP
kseta/ITLeague
/src/AppBundle/Entity/User.php
UTF-8
878
2.578125
3
[ "BSD-2-Clause" ]
permissive
<?php namespace AppBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="user") */ class User extends BaseUser implements EntityInterface { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO"...
true
64eef2d59921da4e1e3aa2f16dc40fd04cd2f2ac
PHP
Basch/rpgtool-trinite
/src/Service/Math/CharacterSheetService.php
UTF-8
835
2.96875
3
[]
no_license
<?php namespace App\Service\Math; use App\Entity\CharacterSkill; use App\Entity\PlayerCharacter; use App\Entity\Skill; class CharacterSheetService { public function totalSkillPoints( PlayerCharacter $character, Skill $skill ): int { $zodiacLevel = $character->getZodiacLevel( $skill->getZodiac() ); ...
true
e01685e8726c6977dbe1521488cef2921997f5b4
PHP
larangogon/JAM12E
/app/Interfaces/InterfaceProducts.php
UTF-8
876
2.578125
3
[]
no_license
<?php namespace App\Interfaces; use App\Entities\Product; use App\Http\Requests\ItemCreateRequest; use App\Http\Requests\ItemUpdateRequest; interface InterfaceProducts { /** * @param ItemCreateRequest $request * @return mixed */ public function store(ItemCreateRequest $request); /** ...
true
573a627d455cf770ce62fe3b42b8af923c4660db
PHP
ebazaars/php-sdk
/src/Factory/ServiceFactory.php
UTF-8
2,474
2.734375
3
[]
no_license
<?php namespace EbazaarsSdk\Factory; use EbazaarsSdk\Constant\Http; use EbazaarsSdk\Service\AuthService; class ServiceFactory { /** * @param $serviceClass * @param array $config { * @param string $baseUrl (required) * @param string $clientUsername (required) * @param string $cl...
true
9ad023a22b0298b8a304a5559447db8bc63979c7
PHP
art0fdesign/pcn_live
/protected/modules/simpleCart/models/SimpleCartItem.php
UTF-8
6,233
2.5625
3
[]
no_license
<?php /** * This is the model class for table "mod_simplecart_item". * * The followings are the available columns in table 'mod_simplecart_item': * @property string $id * @property string $cart_id * @property string $item_id * @property string $category * @property string $name * @property string $description...
true
caa06fd066560ff586eafa50900541b0610fa4c7
PHP
DmytroChymyrys/ILABS
/app/Controllers/Controller.php
UTF-8
489
3.078125
3
[]
no_license
<?php namespace App\Controllers; abstract class Controller{ protected $container; /** * Controller constructor. * @param $container */ public function __construct($container) { $this->container = $container; } /** * @param $prop * check if container has a s...
true