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
d2c200482bad628d3d0a1616156e84418cf403f7
PHP
dieze/suivi-projet
/module/SuiviProjet/tests/acceptance/5.Un_chef_de_projet_supprime_un_projet_Cept.php
UTF-8
3,918
2.5625
3
[ "MIT" ]
permissive
<?php /** * Test d'acceptation ShowActiveProjectsToVisitor. * Un utilisateur se connecte au site. La liste des projets est affichée. * Une ligne projet contient la désignation, le chef de projet et la période. * Si la date du jour n'est pas dans la période d'un projets on n'affiche pas le projet. * * PHP Version...
true
00498c4c427aa528e3f78319ac8ac504a40a6453
PHP
AccioCMS/core
/src/app/Traits/CategoryTrait.php
UTF-8
5,916
2.78125
3
[ "MIT" ]
permissive
<?php namespace Accio\App\Traits; use App; use App\Models\Language; use App\Models\MenuLink; use Illuminate\Support\Facades\DB; use \App\Models\Menu; use App\Models\PostType; trait CategoryTrait { /** * @var array */ private $categoriesToBeDeleted = []; /** * @var array used for parent ch...
true
469b3e6a7456a69b9826af14ca6393d5dd0ec978
PHP
Karreen/uwiaa
/app/Events/UserWasSignedIn.php
UTF-8
426
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Events; use App\Events\Event; use App\Models\User; use DateTime; use Illuminate\Queue\SerializesModels; class UserWasSignedIn extends Event { use SerializesModels; public $user; /** * Create a new event instance. * * @return void */ public function __construct(User $user) { ...
true
bf3463d5bb93de99846e827c41971f5939e96035
PHP
slicta/lsd-account
/app/controllers/InvitationController.php
UTF-8
1,258
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: yann * Date: 13/06/2020 * Time: 15:03 * * Invitations list */ require_once __DIR__ . '/../models/Role.php'; require_once __DIR__ . '/../models/User.php'; class InvitationController { /** * Control who can have access * @return ActiveRecord|bool */ ...
true
31b7aef9f4b0816c8d2a65add46604e431808fbb
PHP
tonenao/step
/app/Http/Requests/StepRequest.php
UTF-8
1,444
2.6875
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StepRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the v...
true
62b427e802837b81cef442ab96b407c2c6ea09ee
PHP
noumanbhai/php-basic-in-Enigma
/home.php
UTF-8
566
2.546875
3
[]
no_license
<?php // get // var_dump($_GET); // echo $_GET['name']; // echo "<br>"; // echo $_GET['age']; // post // echo "<pre>"; // var_dump($_POST); // echo "</pre>"; // echo $_POST['name']; // echo "<br>"; // echo $_POST['age']; // Repuest // // var_dump($_REQUEST); // echo $_REQUEST['name']; // echo ...
true
1d002ef1308fc88957fb0154b45576f6ea5dc7ce
PHP
dulcejazminantunezrios/Practica-2-AWOS
/app/Http/Controllers/API/PersonaController.php
UTF-8
1,560
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\modelos\personas; class PersonaController extends Controller { public function mostrar_per($id=null){ if($id) return response()->json(["Persona"=>personas::find($id)],201); ...
true
cefbe4911b785e408b066374c012a1973c6e1c0b
PHP
NASOEL/Explorateur-de-fichiers-php
/text.php
UTF-8
309
2.984375
3
[]
no_license
<?php $dir = "/tmp/php5"; // Ouvre un dossier bien connu, et liste tous les fichiers if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "fichier : $file : type : " . filetype($dir . $file) . "\n"; } closedir($dh); } } ?>
true
4077fe5e6c4aae76a9bc7c96827086a48f1d57d8
PHP
Kiel-H-Byrne/WePopulUs
/lib/session_secure.php
UTF-8
475
2.53125
3
[]
no_license
<?php function session_secure(){ // wrapped for the php entry.... $alph =array('A','a','B','b','C','c','D','d','E', 'e','F','f','G','g','H','h','I','i','J','K','k', 'L','l','M','m','N','n','O','o','P','p','Q','q', 'R','r','S','s','T','t','U','u','V','v','W','w', 'X','x','Y','y','Z','z'); for...
true
9586297f0f538de6a52b315c61fb2f9d1eef2042
PHP
AOEpeople/meals
/src/Mealz/MealBundle/Message/AbstractOfferMessage.php
UTF-8
1,279
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Mealz\MealBundle\Message; use App\Mealz\MealBundle\Entity\Dish; use App\Mealz\MealBundle\Entity\Participant; use App\Mealz\MealBundle\Service\Notification\MessageInterface; use Symfony\Contracts\Translation\TranslatorInterface; abstract class AbstractOfferMessage impleme...
true
7e90e0483d7fd6d2e3afb4e3aa69aaf98c66d139
PHP
fdess1/coursSymfony
/src/Entity/Langages.php
UTF-8
2,078
2.640625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Symfony\Component\Validator\Constraints as Assert; use http\Env\Response; /** * @ORM\Entity(repositoryClass="App\Repository\LangagesRepository") */ class La...
true
fb15e1989d1e98d77a8b6fe04c5f3ea1401bf5cd
PHP
chovancova/IT_CAMP
/public_html/soapClient.php
UTF-8
1,018
2.921875
3
[]
no_license
<?php /* Create a class for your webservice structure, in this case: Contact */ class Driver { function addDriver($meno, $priezvisko, $login, $heslo) { $this->meno = $meno; $this->priezvisko = $priezvisko; $this->login = $login; $this->heslo = $heslo; } } /* Ini...
true
6f7a90d3fa627e48514a9e004d65a026875cb18c
PHP
contributte/fly-response
/src/Adapter/StdoutAdapter.php
UTF-8
827
2.765625
3
[]
permissive
<?php namespace Minetro\FlyResponse\Adapter; use Minetro\FlyResponse\Buffer\FileBuffer; use Nette\Http\IRequest; use Nette\Http\IResponse; class StdoutAdapter implements Adapter { /** @var callable */ private $callback; /** * @param callable $callback */ public function __construct(callab...
true
71ac7b3c4d2b81623b904dce7cd23412fba6958b
PHP
annbernadska/test-shop
/models/Cart.php
UTF-8
1,984
2.859375
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Cart * * @author Anna */ class Cart { public static function addProduct($id) { ...
true
14da3b12ac618aa8df1e3b353739be2ea4eda07c
PHP
daithi-coombes/exporter
/lib/exporterdatabase.class.php
UTF-8
208
2.796875
3
[]
no_license
<?php class ExporterDatabase extends mysqli{ public function factory( $host, $user, $pswd, $name ){ $obj = new ExporterDatabase(); $obj->__construct( $host, $user, $pswd, $name ); return $obj; } }
true
2989e75d6dfaebad655eafba70f796f148fe2f79
PHP
Jeroen-G/Explorer
/src/Domain/IndexManagement/IndexAliasConfiguration.php
UTF-8
1,030
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); namespace JeroenG\Explorer\Domain\IndexManagement; final class IndexAliasConfiguration implements IndexAliasConfigurationInterface { private string $name; private bool $pruneOldAliases; private function __construct(string $name, bool $pruneOldAliases) { $this-...
true
93ab42a6585c46ad0fcc495ab9feed127ef30ddc
PHP
showonmydev/vuejs-laravel
/dms/database/migrations/2017_07_25_095512_create_system_integrator_sync_table.php
UTF-8
1,043
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; //create system_integrator_sync table class CreateSystemIntegratorSyncTable extends Migration { public function up() { if (!Schema::hasTable('system_integrator_sync')) ...
true
569243eb5a3b16a15557d2bfaf34c60b72772a58
PHP
jpedroc/CursoPHPCod3r
/funcoes/map_filter.php
UTF-8
957
3.4375
3
[]
no_license
<div class="titulo"> Map & Filter </div> <?php $notas = [5.8, 9.3, 4.5, 6.2, 5.9, 10, 3.7, 7.9]; $notasFinais1 = []; foreach($notas as $nota) { $notasFinais1[] = round($nota); } print_r($notasFinais1); echo "<br>"; $notasFinais2 = array_map(round, $notas); print_r($n...
true
4c6fd746ad11a171b2339964cd20984214221abb
PHP
rakesh-skills/gist
/idfa_encode.php
UTF-8
279
2.5625
3
[]
no_license
<?php $idfa = "5ab8d1be-0f17-401c-891f-54dde5bf3d1d"; $hash = hash('sha256', strtolower(utf8_encode($idfa))); $firstFourChar = substr($hash, 0, 4); echo $firstFourChar. PHP_EOL; $hexdec = hexdec($firstFourChar); echo $hexdec. PHP_EOL; $module = (int)$hexdec % 10; echo $module;
true
67e408c707101b731578da77a58bb8d51ca8b00a
PHP
MathieuDelrot/portfolio
/App/EntityManager/AdminManager.php
UTF-8
876
2.671875
3
[]
no_license
<?php namespace App\EntityManager; use App\Entity\AdminEntity; use App\Helper\SessionHelper; class AdminManager extends Manager { public function adminConnection(AdminEntity $admin) { $email = $admin->getEmail(); $password = $admin->getPassword(); $stmt = $this->bdd->prepare('SELEC...
true
ea0a99f2a4b91dd32731e3271110e92d7a93f139
PHP
customizations/silverstripe-ecommerce
/code/forms/ProductSearchForm.php
UTF-8
24,320
2.953125
3
[]
no_license
<?php /** * @description: Allows user to specifically search products **/ class ProductSearchForm extends Form { /** * set to TRUE to show the search logic. * * @var bool */ protected $debug = false; /** * list of additional fields to add to search. * * Additional fiel...
true
95ed753f7045fbf8191462fc2463fcbb9d8220a9
PHP
gianiaz/alunni
/features/bootstrap/FeatureContext.php
UTF-8
1,101
2.75
3
[]
no_license
<?php use Behat\Behat\Context\Context; use Behat\Gherkin\Node\PyStringNode; use Behat\Gherkin\Node\TableNode; use Behat\MinkExtension\Context\MinkContext; /** * Defines application features from the specific context. */ class FeatureContext extends MinkContext implements Context { private $webDriver; prote...
true
c0948596fea7b4c19e0c8855153316971f14ef1c
PHP
DmitryYamshikov/swanlake
/protected/modules/extend/modules/slider/widgets/Slider.php
UTF-8
4,157
2.515625
3
[]
no_license
<?php namespace extend\modules\slider\widgets; use common\components\helpers\HYii as Y; use common\components\helpers\HArray as A; use extend\modules\slider\models\Slide; class Slider extends \extend\modules\slider\components\base\SliderWidget { /** * Функция отрисовки сладера. * Принимает параметры fun...
true
620ffbb7292388d80466975792b191cc523462a4
PHP
KONE1998/Online-Quiz-Portal
/Quiz/Admin/tabledelete.php
UTF-8
1,207
2.625
3
[]
no_license
<?php include('header.html'); include('footer.html'); ?> <!DOCTYPE html> <head> <title>Online Quiz</title> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <style> #form{ margin-left:35%; margin-top:8%; font-weight:bold; } h1{ text-align:center; } .button{ margin-left:15%; } </style> </head>...
true
66d1412ffcf417704ffd2c460c259c9cbe52467e
PHP
biurad/php-loader
/src/Interfaces/FileAdapterInterface.php
UTF-8
1,433
2.890625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); /* * This file is part of BiuradPHP opensource projects. * * PHP version 7 and above required * * @author Divine Niiquaye Ibok <divineibok@gmail.com> * @copyright 2019 Biurad Group (https://biurad.com/) * @license https://opensource.org/licenses/BSD-3-Clause License * * Fo...
true
685efe8561ca192ac525d1e1f3a015cf5d2c00b8
PHP
robgridley/zebra
/src/Zpl/Builder.php
UTF-8
2,188
3.015625
3
[ "MIT" ]
permissive
<?php namespace Zebra\Zpl; use Zebra\Contracts\Zpl\Image as ImageContract; class Builder { /** * ZPL commands. * * @var array */ protected $zpl = []; /** * Add a command. * * @return Builder */ public function command(): self { $parameters = func_g...
true
998b151ecad72a66186eec9936bb6695813fc88e
PHP
joelawm/Airsoft-Association
/public/app/config.php
UTF-8
1,049
2.78125
3
[]
no_license
<?php //Database class for the entire application class DB { function __construct() { $maintenance = false; } public static function connToDB() { /* Database credentials. Assuming you are running MySQL server with default setting (user 'root' with no password) */ if(!defined('DB_SERVER...
true
3b6c8cc51861244485e43050c3af64426599d7ef
PHP
sonata-project/SonataClassificationBundle
/src/Document/CategoryManager.php
UTF-8
7,442
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\ClassificationBundle\...
true
0b43751d7a937b6af09a26718e619136e01e8ccb
PHP
Novembert/zsk
/tabliczka_mnozenia/Zadanie_2.php
UTF-8
990
3.0625
3
[]
no_license
<!DOCTYPE html> <html lang="pl" dir="ltr"> <head> <meta charset="utf-8"> <title>Zadanie_1</title> <link rel="stylesheet" href="./css/style.css"> </head> <body> <form method="post"> <label for="numer">Podaj n</label> <input type="number" name="numer" id="numer"> <input ...
true
7d63a1fb29d4145ced83e5a186af21c5529ebaf6
PHP
mattfisc/php_prac
/lab11a.php
UTF-8
1,203
3.421875
3
[]
no_license
<?php //TASK 1: MAKE A CONNECTION TO THE DATABASE, DISPLAY ERROR FOR FAILED CONNECTIONS // Argument 1: IP address provided by GoDaddy // Argument 2: Database user with access privileges // Argument 3: Database password // Argument 4: Database Name // Argument 5: Port for MySQ...
true
6c53e38c58ac198749212fadf1fc2fc7b278d403
PHP
abrahamf24/plans-subscriptions
/src/Models/PlanSubscription.php
UTF-8
12,381
2.578125
3
[]
no_license
<?php namespace Abrahamf24\PlansSubscriptions\Models; use Illuminate\Database\Eloquent\Model; use Carbon\Carbon; use Abrahamf24\PlansSubscriptions\Events\FeatureConsumed; use Abrahamf24\PlansSubscriptions\Events\FeatureUnconsumed; use Abrahamf24\PlansSubscriptions\Library\Dates; use Abrahamf24\PlansSubscriptions\Even...
true
cdaa6b14de8f7f3fa728c3ee66b85c1fddacfb1f
PHP
DavidToca/programming-challanges
/leetcode/20. Valid Parentheses/solve.php
UTF-8
973
3.359375
3
[]
no_license
class Stack { public $stack; public function __construct() { $this->stack = array(); } public function push($item){ array_unshift($this->stack, $item); } public function pop(){ return array_shift($this->stack); } public function isEmpty() { return ...
true
b894239c80bb5e5d97c443ef77ada3bf5c145e80
PHP
Indieaiden/Daw2
/LorenaBele/tema4/tema4.7/procesar.php
UTF-8
1,106
3.296875
3
[]
no_license
<?php //desde un formulario recibe una cadena y utiliza los distintos metodos pa if( isset($_POST["cadena1"])and isset($_POST["opcion"])){ $cadena1=$_POST["cadena1"]; $opciones=$_POST["opcion"]; }else{ echo "error el dato esta vacio rellene todos los campos"; echo"<br/><a href=\"formulario.php\">ir al formulario ...
true
86cd9acc572e799ec075b1a4061eb574bb9f6c8f
PHP
gitter-badger/php-yaoi
/tests/PHPUnit/Base/BaseTest.php
UTF-8
473
2.953125
3
[ "MIT" ]
permissive
<?php use Yaoi\BaseClass; use Yaoi\Test\PHPUnit\TestCase; class BaseTest1 extends BaseClass { public $amount; public function __construct($var1, $var2, $var3, $var4, $var5) { $this->amount = $var1 + $var2 + $var3 + $var4 + $var5; } } class BaseTest extends TestCase { public function testBa...
true
b273d40ec6701a55f5cd71a2869da12843e36446
PHP
RevisionTen/cleverreach
/Services/CleverreachService.php
UTF-8
4,190
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace RevisionTen\Cleverreach\Services; use GuzzleHttp\Client; use Symfony\Component\HttpFoundation\RequestStack; class CleverreachService { /** @var RequestStack */ private $requestStack; /** @var array */ private $config; /** @var Client */ private $cli...
true
ca22a60ae84a4afbc440a089236434d8a23b4e0b
PHP
dariobada/labo4final
/fw/View.php
UTF-8
276
2.65625
3
[]
no_license
<?php // fw/View.php abstract class View{ public function render(){ //de esta forma, incluyo el nombre de la clase de donde estoy llamado, y así se llama el archivo html (mismo nombre) include '../html/'.get_class($this).'.php'; } } ?>
true
343b08b781655e06d905dbfb428353aa8e0bc99c
PHP
wtshek/claim_app_backend
/file/snippet/8/index.php
UTF-8
4,771
2.71875
3
[]
no_license
<?php /** * The Subscription Form snippet. * * The subscription form * * @since 2015-08-03 * @param module The module * @param snippet The snippet * @param parameters The parameters * @return HTML content */ function enews_signup_form_snippet( &$module, &$snippet, $parameters ) { // Pr...
true
297488c3a7e403a1e8a47579703101e1e9063831
PHP
meinemitternacht/Gazelle
/app/File/RipLogHTML.php
UTF-8
1,500
2.703125
3
[ "Unlicense" ]
permissive
<?php namespace Gazelle\File; class RipLogHTML extends \Gazelle\File { const STORAGE = STORAGE_PATH_RIPLOGHTML; /** * Remove one or more HTML-ized rip logs of a torrent * * @param array $id The unique identifier [torrentId, logId] of the object * If logId is null, all log...
true
db5353b18f688a8537a433c14848ffd9e9d4e0bf
PHP
xxKosukexx/cakephp_blog
/app/Controller/CategoriesController.php
UTF-8
1,661
2.6875
3
[]
no_license
<?php class CategoriesController extends AppController { public $uses = array('Post', 'Category'); public function add() { if ($this->request->is('post')) { $this->Category->create(); if ($this->Category->save($this->request->data)) { $this->Flash->success(__('Y...
true
48424dbc0f8ca6ef37a07eaee1cb14e9cd4d91c4
PHP
aedart/model
/src/Contracts/Strings/MaterialAware.php
UTF-8
1,262
3.15625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Aedart\Model\Contracts\Strings; /** * <h1>Material Aware</h1> * * Component is aware of a string "material" value, which can * also be specified. * * @author Alin Eugen Deac <aedart@gmail.com> * @package Aedart\Model\Contracts\Strings */ interface MaterialAware { /** * Set material ...
true
20ce199feefac614000833cf3c8120b89fb68791
PHP
macressler/brick
/src/Validation/Validator/DateValidator.php
UTF-8
2,030
3.21875
3
[ "MIT" ]
permissive
<?php namespace Brick\Validation\Validator; use Brick\Validation\AbstractValidator; /** * Validates an RFC 3339 date. */ class DateValidator extends AbstractValidator { /** * {@inheritdoc} */ public function getPossibleMessages() { return [ 'validator.date.invalid-format' ...
true
8eff5bec81062302ea8c5646e5a473a584c35f89
PHP
gleft/web_14
/logs.php
UTF-8
615
2.890625
3
[]
no_license
<?php session_start(); $con=mysqli_connect("localhost","root","","dimos") or die(mysql_error()); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM users"); echo "<table border='1'> <tr> <th>email</th> <th>n...
true
cf02dacb445aa41b01c398b43a2f063352d74e7e
PHP
Yproximite/yprox-api-client
/spec/Model/TeamWorker/TeamWorkerSpec.php
UTF-8
682
2.546875
3
[ "MIT" ]
permissive
<?php namespace spec\Yproximite\Api\Model\TeamWorker; use PhpSpec\ObjectBehavior; use Yproximite\Api\Model\TeamWorker\TeamWorker; class TeamWorkerSpec extends ObjectBehavior { function it_is_initializable() { $this->shouldHaveType(TeamWorker::class); } function let() { $data = [...
true
4797d76b4c20c644ffe2bdef06a18f222d6f6e0d
PHP
kl09/curl
/RequestTrait.php
UTF-8
6,328
2.96875
3
[]
no_license
<?php namespace EacLibrary\RequestTrait; trait RequestTrait { private $maxTimeOut = 10; private $statusCode; private $response; private $method = "GET"; private $body; private $headers = []; private $addHeader = false; private $siteHost = 'http://example.org'; private $url; priv...
true
a34126d83300af1e54edcbe7293d3cd2e687f491
PHP
kokokanti98/Projet_CMS_web
/utilisateur.php
UTF-8
1,596
2.53125
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang ="FR"> <head> <link rel="stylesheet" href="utilisateur.css"> <?php include('bootstrap.php'); ?> <style> .navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent; } .navbar-default { background-color...
true
84b4b0c93ec9506b3c666f008a5f125f22cb9f23
PHP
danielpereirabp/php-oo
/src/Cliente.php
UTF-8
717
3.359375
3
[]
no_license
<?php class Cliente { private $nome; private $cpf; private $dataNascimento; private $sexo; private $endereco; public function __construct($nome, $cpf, $dataNascimento, $sexo, $endereco) { $this->nome = $nome; $this->cpf = $cpf; $this->dataNascimento = $dataNascimento; $this->sexo = $sexo; $this->ende...
true
7f14dd4e45daff6973e37fbb6accc25180e1b22a
PHP
accountYwz/hyperfReadCode
/vendor/lovetrytry/jichukuangjia/src/Format.php
UTF-8
1,344
2.734375
3
[ "MIT", "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Lovetrytry\Jichukuangjia; use Lovetrytry\Jichukuangjia\Config; use Lovetrytry\Jichukuangjia\Format\ClassEnum; use Lovetrytry\Jichukuangjia\Format\FormatInterface; class Format { /** * @var Config */ protected $config; protected $class; public func...
true
092a2c05933c2331b99cc06d6e94eacaa8cd6f07
PHP
vasco-martins/cat-framework
/src/Cat/Kernel/App.php
UTF-8
1,249
2.59375
3
[]
no_license
<?php namespace Cat\Kernel; use Cat\Lang\Translator; use Cat\Router\Router; use Cat\Router\RouterException; use Dotenv\Dotenv; use Symfony\Component\HttpFoundation\Session\Session; class App { private static Session $session; public function __construct(public $basePath) { self::$session = new...
true
fe9d5ae423b5b44b5884dfaf36f990bb47a31e1c
PHP
CC-Areeb/CC_Package
/package/CC-SMS/src/Console/SmsCommand.php
UTF-8
1,491
2.703125
3
[]
no_license
<?php namespace CooperativeComputingSMS\Console; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; class SmsCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'install:sms'; /** * The cons...
true
7f11c67ad3ad304023b29f39c4f086a5180fbbf5
PHP
simbalekerova/onlineExamination
/user/user_functions/dashboard.func.php
UTF-8
3,231
2.703125
3
[]
no_license
<?php // function to display profile picture function displayProfilePic() { global $db; $image = $db->query("SELECT userProfilePic FROM users WHERE id= '{$_SESSION['id']}' ") ; return $image; } // function to publish a post function publishPost() { global $db; i...
true
0a31178e36e391ae252fef3eba98292ba53ed569
PHP
lnmpoo/wechat_tp
/Application/Home/Controller/WebDevelopController.class.php
UTF-8
4,359
2.609375
3
[]
no_license
<?php /* * 微信网页开发相关类 * * 使用方法: * 1.调用 getCodeByUserinfo 或者 getCodeByBase 方法,跳转到需要授权的网页 * 2.在需要授权的网页调用 getUserinfoByAccessToken() 方法即可 * */ namespace Home\Controller; use Think\Log; class WebDevelopController extends WechatController { /* * * 实例方法: * */ public function index() { } /*...
true
03de9a59b4b8997ad7c9af48a9719756da21a6af
PHP
mattw0110/WordPress-Snippets
/Blog/blog-template.php
UTF-8
3,174
2.765625
3
[]
no_license
<?php /** * Genesis Sample Custom Blog * * This file adds the blog template to the Genesis Sample Theme. * * Template Name: Blog * * @package Genesis Sample * @author StudioPress * @license GPL-2.0-or-later * @link https://www.studiopress.com/ */ get_header(); function genesis_sample_landing_body_class...
true
f3317f830a5fc8cf42ca33d2b9e941c5769110ff
PHP
jedi-academy/learn-4711
/application/core/MY_Controller.php
UTF-8
2,402
2.78125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * core/MY_Controller.php * * Default application controller * */ class Application extends CI_Controller { protected $data = array (); // parameters for view components protected $id; // identifier for our content /** * Construc...
true
748c6741aac2bc32932f56ddb10310edfa8fe4d4
PHP
AlexanderSiguenza/PraxSistemaEscolar
/Modelo/C_usuario.php
UTF-8
2,157
3.015625
3
[ "Apache-2.0" ]
permissive
<html> <head> <title>Usuario</title> </head> CREATE TABLE `usuario` ( `CodigoUsuario` int(7) NOT NULL, `nombreUsuario` char(15) NOT NULL, `Contrasenia` varchar(20) NOT NULL, `Privilegio` char(20) NOT NULL, PRIMARY KEY (`CodigoUsuario`) <body> <? class usuario{ var $CodigoUsuario; var $n...
true
c77e56e7a951adefb8c7f65dfd2c5e03b21efbaf
PHP
BGFR/PHP
/PHP_Web_Development_Basics/18.InterfacesAndAbstracionEx/1.DefineAnInterfacePerson/3.WildFarmHierarchy/FoodFactoryInterface.php
UTF-8
116
2.984375
3
[]
no_license
<?php interface FoodFactoryInterface { public static function create(string $type,int $quantity):Food; }
true
8ee48d01901c6d2ad896101c714cd980a00239a7
PHP
daveroberts/happypuppy-core
/lib/html/form/htmlElement.php
UTF-8
1,461
3.25
3
[]
no_license
<?php namespace HappyPuppy; class HtmlElement { var $tagname; var $id; var $single; var $htmlOptions; var $innerHTML; var $doubleQuotes = true; function __construct($tagname, $single, $htmlOptions = array()) { $this->tagname = $tagname; $this->single = $single; $this->htmlOptions = $htmlOptions; } ...
true
5465c63d812a720a335512aa1d6c55de825d97cb
PHP
Jurassic-Park/cache
/src/Chips/Prefixed.php
UTF-8
348
2.625
3
[ "MIT" ]
permissive
<?php /** * Prefixed cache-key * User: moyo * Date: 26/10/2017 * Time: 10:56 AM */ namespace Carno\Cache\Chips; trait Prefixed { /** * @param string $input * @return string */ protected function key(string $input) : string { return $this->prefix ? sprintf('%s:%s', $this->prefix...
true
fe363969a26bf580819d90884f971ae06906f8f6
PHP
drdesigner/hotel-system
/include/Page/PageSignup.php
UTF-8
2,899
2.75
3
[]
no_license
<?php // check for invalid entry point if(!defined("HMS")) die("Invalid entry point"); class PageSignup extends PageBase { protected function runPage() { $showError = ""; $error = ""; global $cWebPath; $this->mBasePage = "signup.tpl"; if(Session::isCustomerLoggedIn() ){ // why do you want another acc...
true
982f080a01fd66a1db1fa23ad6236f6ad4713a8e
PHP
Prezent/pulse-bundle
/src/Schema/EventSchema.php
UTF-8
1,546
2.640625
3
[ "MIT" ]
permissive
<?php namespace Prezent\PulseBundle\Schema; use Doctrine\DBAL\Schema\Schema; /** * DBAL Schema for events * * @author Sander Marechal */ class EventSchema { /** * Add all tables to a schema * * @param Schema $schema * @return void */ public static function addToSchema(Schema $sch...
true
4271a53a0f0b52e8f0521563eb210e66424486fe
PHP
RSenApps/homeworktracker
/login.php
UTF-8
1,119
2.578125
3
[]
no_license
<?php session_start(); require("config.php"); //error handler function function customError($errno, $errstr) { echo "Please try again later."; } //set error handler set_error_handler("customError"); // Create connection $conn = new mysqli($GLOBALS["hostname"], $GLOBALS["username"], $GLOBALS["password"], $G...
true
5b9674d521e74aa3a1789848129e4ae60e4f3e3c
PHP
HighlanderAlt/Exercise-App
/files/lib/getExerciseNames.php
UTF-8
626
2.640625
3
[]
no_license
<?php require "requires/config.php"; $sql = "SELECT exercise_name FROM `routine_exercises` JOIN exercise ON routine_exercises.exercise_id=exercise.exercise_id WHERE routine_exercises.routine_id = " . $_SESSION['postRoutineVal']; $stmt = $conn->prepare($sql); $stmt->execute(); $result = $stmt->setFetchMod...
true
2d5bfd71d712f37c2ba7863ebc31c8d9f492de78
PHP
amandine-duvanel/Mon-depot-distant
/BACK/PHP/exercices/exercice 2.php
UTF-8
174
3
3
[]
no_license
<html> <body> <?php // boucle avec for for ($i=1;$i<=500;$i++){ echo "Je dois faire des sauvegardes régulières de mes fichiers.<br>"; } ?>
true
12e53360bff9438fb0100737a2eb3612b1629ade
PHP
tfwcn/CX
/app/Extended/Dal/TAutoload.php
UTF-8
759
2.625
3
[]
no_license
<?php namespace App\Extended\Dal; use App\Extended\Dal\Base\DalBase; use Illuminate\Support\Facades\DB; class TAutoload extends DalBase { /** * 初始化 */ public function __construct() { parent::__construct("\\App\\Extended\\Model\\TAutoload"); } /** * 通过URL获取对象 */ pub...
true
8ee733808f3fc8eac5d6d29f861d29b59bc6fe4b
PHP
AKASHX5/HR
/training_process.php
UTF-8
1,330
2.84375
3
[]
no_license
<html> <head> <title>Add Data</title> </head> <body> <?php //including the database connection file include_once("config.php"); if(isset($_POST['submit'])) { $id = $_POST['id']; $prog_name = $_POST['prog_name']; $s_date = $_POST['s_date']; $e_date = $_POST['e_date']; $jobid = $_POST['jobid']; ...
true
ebca9bbc401907fe226a2e2d8f1723194f1c14e4
PHP
zeljkolivaja/Kreator-Liga
/mojapp/app/model/Igraci.php
UTF-8
2,924
2.65625
3
[]
no_license
<?php class Igraci { public static function popis() { $db = Db::getInstance(); $izraz = $db->prepare("select id,nameOfLeague from league"); $izraz->execute(); return $izraz->fetchall(); } public static function popisKlubova($id) { $db = Db::getInstanc...
true
97556cd09b9ab91809df729704d10dbe33b56d7e
PHP
superhero/php.framework
/src/Joppli/Domain/Gateway/ElasticSearchGateway.php
UTF-8
3,398
2.609375
3
[ "MIT" ]
permissive
<?php namespace Joppli\Domain\Gateway; use Joppli\Domain\Gateway, Elasticsearch\Common\Exceptions\Conflict409Exception; // @todo: currently we can only delete or update 10000 items at the time... class ElasticSearchGateway implements Gateway, ElasticSearch\ElasticSearchClientAware { use ElasticSearch\ElasticSearch...
true
559d71f4a76e2630107ace81b822c1d24b48a7b4
PHP
PodZone/PodZone
/functions/getsearchresults.php
UTF-8
265
2.578125
3
[]
no_license
<?php function getSearchResults($tosearch, $db) { $req = $db->prepare('SELECT * FROM pod_podcast WHERE pod_podcast.podcast_title LIKE :search'); $req->execute(array(':search' => $tosearch.'%')); $studios = $req->fetchAll(PDO::FETCH_ASSOC); return $studios; }
true
0644e0f6c6ea40b0183032d8b171ca9ec6ab008a
PHP
lehadnk/crawler-server
/src/Behaviours/Base.php
UTF-8
468
2.96875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lehadnk * Date: 24/03/2017 * Time: 9:23 AM */ namespace Behaviours; abstract class Base { /** * @var \Game\Entity\Creature */ protected $actor; public function __construct(\Game\Entity\Creature $actor, $options = []) { $this->actor = $a...
true
ae75944188886f1a5991fd3cdc2eeac44680691d
PHP
zerolethanh/Qbingo
/app/Http/Controllers/QuizController.php
UTF-8
2,622
2.734375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Happy; use App\Quiz; use App\Upload; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Intervention\Image\Facades\Image; use Symfony\Component\Process\Process; use Symfony\Component\Process\Exception\ProcessFailedException; class QuizController extends ...
true
66750350e904ec9a833a1380f3eca012d906740f
PHP
ejs-ejs/php-odt
/class.tablestyle.php
UTF-8
8,522
2.875
3
[]
no_license
<?php //require_once 'class.contentautostyle.php'; //require_once 'exceptions/class.styleexception.php'; include_once 'phpodt.php'; /** * A Class representing style properties for tables. * * @author Issam RACHDI */ class TableStyle extends ContentAutoStyle { private $tableProp; public function __construct(...
true
5cabc95cb829ee12a2d6729a05b5bc400d03149c
PHP
dukizwe/ci-blog
/app/Controllers/ReactionsController.php
UTF-8
6,037
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use App\Controllers\BaseController; use CodeIgniter\Database\BaseConnection; use CodeIgniter\Database\Query; use CodeIgniter\Database\ResultInterface; use Config\Services; use Exception; class ReactionsController extends BaseController { private $postId = null; ...
true
3bfcfe44065b8105b9f0b9e6fbe81a496ffd8cb6
PHP
sourcesnow/xpspl
/tests/thread_duplicate.php
UTF-8
1,113
2.890625
3
[ "Apache-2.0" ]
permissive
<?php // namespace test; // if (class_exists('\\Thread')) { // class Thread extends \Thread { // public $_callable = ''; // public function __construct($callable) // { // $this->_callable = $callable; // } // public function run() // { // call_user_func($this->_callable); // ...
true
27b9d5cbd33e618f9e15967978c648b73621fc2d
PHP
SownBanana/HUST-graduate-project
/backend/app/Repositories/Course/CourseRepository.php
UTF-8
861
2.71875
3
[]
no_license
<?php namespace App\Repositories\Course; use App\Repositories\BaseRepository; use App\Repositories\Room\RoomRepository; use App\Repositories\Traits\Paginatable; class CourseRepository extends BaseRepository implements CourseRepositoryInterface { use Paginatable; protected $roomRepository; public functio...
true
cc753c01bea5a4fab749f40e714de87ec7f8801c
PHP
GiZystems/GizlabUploaderBundle
/Service/UploaderService.php
UTF-8
11,656
2.75
3
[]
no_license
<?php namespace Gizlab\Bundle\UploaderBundle\Service; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\HttpFoundation\Response; /** * Service for uploading any files * * @author juriem * */ class UploaderService { /** * * @var \Doctrine\ORM\EntityManager */ private $entityMana...
true
96548b7f52a1bbbfc3670dde900af1c812714bde
PHP
nanson/rzwebsys7
/app/modules/geo/models/Region.php
UTF-8
856
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\geo\models; use common\db\ActiveRecord; /** * Class Region * Модель региона * @package app\modules\geo\models * @author Churkin Anton <webadmin87@gmail.com> */ class Region extends ActiveRecord { use \app\modules\main\components\PermissionTrait; /** * @inheritdoc */ public ...
true
ff3ca52d16c88d011be97e9a13ed23b88a94dd31
PHP
nicolascanto/karamusecl-api
/app/api/client.php
UTF-8
2,182
2.640625
3
[]
no_license
<?php $app->get('/api/client/bars', function($request, $response, $args){ $mysqli = getConnection(); $result = $mysqli->query("SELECT tbl_bars.id, tbl_bars.name, tbl_bars.address, tbl_bar_settings.avatar, tbl_bar_settings.banner_ad, tbl_bar_settings.text_ad FROM tbl_bars JOIN tbl_bar_settings ON tbl_bars.id = ...
true
558955e3eec9b480a8953b53fcea359366a9630f
PHP
mustafayasar/blogmus
/common/models/Category.php
UTF-8
3,483
2.578125
3
[]
no_license
<?php namespace common\models; use Yii; use yii\base\Model; use yii\base\NotSupportedException; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; use yii\helpers\VarDumper; use yii\web\IdentityInterface; /** * Category model * * @property integer $id * @property integer $parent_id * @property string ...
true
cb7582b3d87bb25672edbb93b940e5c8ec015b84
PHP
TimeToogo/Pinq
/Source/Expressions/ClosureUsedVariableExpression.php
UTF-8
1,784
3.078125
3
[ "MIT" ]
permissive
<?php namespace Pinq\Expressions; /** * <code> * use (&$i) * </code> * * @author Elliot Levin <elliotlevin@hotmail.com> */ class ClosureUsedVariableExpression extends NamedParameterExpression { /** * @var boolean */ private $isReference; public function __construct($name, $isReference) ...
true
c474ad803e7c4fd9fe43557271116ed6b8cbe530
PHP
juxR/portfolio-wp
/page-contact.php
UTF-8
8,006
2.796875
3
[]
no_license
<?php /* Template Name: Contact */ ?> <?php //If the form is submitted if(isset($_POST['submitted'])) { //Check to see if the honeypot captcha field was filled in if(trim($_POST['checking']) !== '') { $captchaError = true; } else { //Check to make sure that the name field is not empty if(trim($_POST['cont...
true
ca4d8855b93a1bacb177679bf9c198e68e5c7de5
PHP
Restoration/Laravel-Boilerplate
/app/database/seeds/CategoriesTableSeeder.php
UTF-8
425
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; use App\Category; class CategoriesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { for ($i = 1; $i <= 10;$i++) { $category = new Categ...
true
31594ca3a654e1cede09e18a1bb6c2c972aac9b4
PHP
yoelfme/cms
/app/Cms/Stubs/StubModel.php
UTF-8
714
2.78125
3
[ "MIT" ]
permissive
<?php namespace Cms\Stubs; class StubModel { protected $data = []; protected $fillable = []; public function __construct(array $data = []) { $this->setData($data); } public function __isset($property) { return isset($this->data[$property]); } public function __ge...
true
caf2a4572c5c3260218fea5823c149591bd1a5ee
PHP
georgi-yankov/phpcourse
/homework-4/add-author.php
UTF-8
1,908
2.59375
3
[]
no_license
<?php $pageTitle = 'Add Author'; require 'includes/header.php'; if (isset($_SESSION['tempAuthorName'])) { $authorName = $_SESSION['tempAuthorName']; } else { $authorName = ''; } if (isset($_GET['sort']) && $_GET['sort'] == 'DESC') { $currentSort = 'DESC'; $nextSort = 'ASC'; } else { $currentSort...
true
db7eb8271d3074a1b24715f90657d132133919e0
PHP
yiisoft/yii-view
/src/LayoutParametersInjectionInterface.php
UTF-8
552
2.53125
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Yiisoft\Yii\View; /** * LayoutParametersInjectionInterface is an interface that must be implemented by classes to inject layout parameters. */ interface LayoutParametersInjectionInterface { /** * Returns parameters for added to layout. * * For example: ...
true
1090a4396080cf2e674fd297ebb5c33c6c1b089a
PHP
leDebutant/EcoleDuNumFiles
/16_myForum/lectureDeTableau.php
UTF-8
797
3.125
3
[]
no_license
<?php //mélange non assocatif avec les associatif $tableau = [ "Marcel", ["prenom" => "Bernard","nom"=>"Laporte"], ["animaux"=>[ ["chat","domestic"=>"chien"] ] ] ]; //Essayer d'accéder à la valeur Marcel, Laporte et chien; // var_dump($tableau[2]['animaux'][0]['domestic']); /...
true
7e1744c8a2c73ae96f8563a2362c69639c83c699
PHP
rufaidulk/papyrus
/database/factories/CommissionFactory.php
UTF-8
650
2.515625
3
[]
no_license
<?php namespace Database\Factories; use App\Models\Commission; use Illuminate\Database\Eloquent\Factories\Factory; class CommissionFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Commission::class; /** * Define...
true
9d2ced3600bf77bcbb24def42c9a248329932c43
PHP
DV2017/Blogger
/app/Http/Controllers/PagesController.php
UTF-8
916
2.671875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class PagesController extends Controller { // public function index(){ // return 'INDEX'; // } public function index(){ //example on how to set a title dynamically $title = "Welcome to MyLaravel"; //load vi...
true
ac8e45047eddcaa2ce2da6aa3513b1f5b7775abb
PHP
ChristianChalacan/Ojala
/database/seeders/ChatTableSeeder.php
UTF-8
827
2.65625
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Chat; use App\Models\User; use Illuminate\Database\Seeder; use Tymon\JWTAuth\Facades\JWTAuth; class ChatTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Vaciamos la tabla...
true
0cb3affefe7651a92119b4fb5472c5ae2df042b8
PHP
aerovir/amoCrmTest
/src/index.php
UTF-8
1,943
2.765625
3
[]
no_license
<?php namespace index; use function auth\authReq; use const n; use function request\answerReq; include_once 'auth.php'; include_once 'request.php'; include_once 'addContact.php'; authReq(); $res = answerReq(); $statusSuccess = 142; $statusEnd = 143; $currentTime = time(); ?> <br> <br> <?php // //for($i = 0; $i < ...
true
c1df3ee7d202e517a65bf4503a278740a2f07d06
PHP
Villanelle-V/BCW4
/PHP/Bender/natural.php
UTF-8
93
2.765625
3
[]
no_license
<?php $increase = fgets(STDIN); echo implode(' ', range(1, $increase)) . PHP_EOL; ?>
true
e3ded854850e36feab534f3c6536a6516abaad65
PHP
juakacc/controller-fuel
/classes/class-Evento.php
UTF-8
1,047
3.15625
3
[]
no_license
<?php class Evento { private $id; private $id_veiculo; private $data; private $nome; private $metrica_inicial; private $id_secretaria; public function __construct($id_veiculo, $nome, $data, $metrica_inicial, $secretaria) { $this->id_veiculo = $id_veiculo; $this->data = data_para_banco($data); ...
true
897027ad06b34933fe8d694464635b5686ec59b1
PHP
ludovicjj/p6-snowtricks
/src/DTO/TrickDTO.php
UTF-8
745
3
3
[]
no_license
<?php namespace App\DTO; use App\Entity\Category; class TrickDTO { /** * @var string */ public $title; /** * @var string */ public $description; /** * @var Category */ public $category; /** * @var array */ public $videos; /** * @var...
true
7a38fa4fd5cc7c47fe5a06e2720ac2ea48712bfe
PHP
NJSharrocks/treeUK3
/app/Http/Controllers/WoodlandsController.php
UTF-8
3,222
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Woodland; class WoodlandsController extends Controller { function __construct(Request $request) { //ensures this controller and all corresponding routes are behind //the auth meaning login is required to ac...
true
00b5c718eb4539f99d83e92c75ddd46b4005342c
PHP
pekand/calendar
/Pages/Login/LoginValidator.php
UTF-8
946
2.796875
3
[]
no_license
<?php namespace Pages\Login; use Core\Validator; /* Login form validator */ class LoginValidator extends Validator { public function validCredentials($errorMessage = "Wrong credentials.") { $username = $this->getValue('username'); $password = $this->getValue('password'); $success = $...
true
d69d6ae8c302272bd7d1009ca10051376b7f3962
PHP
NaClnik/2x3-sea-battle-backend
/core/Base/Abstracts/RouteDefiner.php
UTF-8
339
2.609375
3
[]
no_license
<?php namespace Core\Base\Abstracts; use Core\Routing\RoutesCollection; abstract class RouteDefiner { protected RoutesCollection $routesCollection; public function __construct() { $this->routesCollection = new RoutesCollection(); } // __construct. abstract public function getRoutes();...
true
83674e47587f7b28810ecea97b181c041226a818
PHP
geeShoe/db-connector
/src/ConfigAdapter/JsonConfigAdapter.php
UTF-8
4,945
2.703125
3
[ "Apache-2.0" ]
permissive
<?php /** * Copyright 2018 Jesse Rushlow - Geeshoe Development * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
true
f0c32bae862e3a06a4ea2571fe4c52a655f4e0b8
PHP
srinivaasang1/bookmates
/application/controllers/EventDetail.php
UTF-8
4,219
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Created by PhpStorm. * User: TomLiu * Date: 7/04/2016 * Time: 12:27 AM * * The class is a Controller handling event detail page */ class EventDetail extends CI_Controller { public function __construct() { parent::__construct(); //configure email settings: } /* ...
true
414d134a4b2b8ff83fb8c82c8a9607fe6951bc0c
PHP
AndrewGoyer/Senior-Seminar
/Inventory/add_item/add.php
UTF-8
1,969
2.703125
3
[]
no_license
<html> <body> <button type="button" onclick="window.location= 'default.html'">Return</button><br> <?php define('DB_NAME', 'id889647_inventory'); define('DB_USER', 'id889647_acg006'); define('DB_PASSWORD', 'CSCI-440'); define('DB_HOST', 'localhost'); $link = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); if...
true
e5fd4e952c34b0439bfc437652c975820009fa8b
PHP
filbertkm/wikibot
/src/Upload/CommonsUploader.php
UTF-8
1,835
2.84375
3
[]
no_license
<?php namespace Wikibot\Upload; use Wikibot\ApiClient; use Wikibot\Api\Response; class CommonsUploader { private $apiClient; public function __construct( ApiClient $apiClient ) { $this->apiClient = $apiClient; } /** * @param string $fileTitle Title of the file page * @param string $filePath Path to the ...
true
41d664538f74fa278d2bfc25c7d44d3276a4df4d
PHP
mindofmicah/plist
/src/MindOfMicah/Plist/Parser.php
UTF-8
1,357
2.984375
3
[]
no_license
<?php namespace MindOfMicah\Plist; use DomDocument; use DomElement; class Parser { public static function parseXML($string, $root_element = null) { return (new self(DomDocument::loadXML($string), $root_element))->parse(); } protected function __construct(DomDocument $document, $root_element = ...
true
337e89f44d814b88ab2216a8e031b97521f04631
PHP
sjardon/anima
/App/Models/Share/Route/AbstractRouteRun.php
UTF-8
416
2.546875
3
[]
no_license
<?php namespace App\Models\Share\Route; use \App\Models\Share\Http\Request as Request; use \App\Models\Share\Route as Route; abstract class AbstractRouteRun{ protected $route; protected $request; public function __construct(Route $route,Request $request){ $this->route = $route; ...
true