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
aca35dfdd3365afa9860e8c561a9b1f9f37f4b2e
PHP
sunxyw/BdWebV2
/app/Http/Requests/ProjectRequest.php
UTF-8
1,167
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; class ProjectRequest extends Request { public function rules() { switch ($this->method()) { // CREATE case 'POST': { return [ 'name' => 'required|min:2|unique:projects,name', ...
true
1c4f1ed4600ef8817f00d37094560c8ee960531f
PHP
McGoblin/kursovayaBD
/Config/MainFunction.php
UTF-8
1,422
3.140625
3
[]
no_license
<?php /** * Основные функции приложения */ /** * Функция выбора контролелера и действия * @param $controllerName * @param string $actionName */ function loadPage ($controllerName, $actionName = 'index'){ include_once "Controller/" . $controllerName . "Controller.php"; //подключаем функцию $function ...
true
563301a4ba4e1583dee113707562cdaf0e3e87ab
PHP
tulparbot/tulpar
/app/Extensions/FileStore.php
UTF-8
2,894
2.984375
3
[]
no_license
<?php namespace App\Extensions; class FileStore extends \Illuminate\Cache\FileStore { /** * Get path for our keys store * * @return string */ private function keysPath() { return storage_path(implode(DIRECTORY_SEPARATOR, ['framework', 'cache', 'keys.json'])); } /** ...
true
d128004cb7c23dca413196199503bb94795679e3
PHP
haotheheck/Web-Development
/MyPhpAdmin_Database/add.php
UTF-8
3,764
3.171875
3
[]
no_license
<?php //pluging the database from MyPhpAdmin include "process.php"; //connecting the form to my database in order to sucessfully Insert data into USERNAME if(isset($_POST['submit'])){ $title = $_POST['title']; $firstName = $_POST['firstName']; $surName =$_POST['surName']; $mob...
true
572e6b8b169ddeafc3aa518027dcb5285842a58a
PHP
sarthaksnh5/Sports-Website-
/getuser.php
UTF-8
837
2.796875
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php $q = intval($_GET['q']); //$con = mysqli_connect(host, username, password, dbname); $con = mysqli_connect('localhost','root','','my_db'); if (!$con) { die('Could not connect: ' . mysqli_error($con)); } mysqli_select_db($con,"ajax_demo"); $sql="SELECT * FROM user WH...
true
4e149997ea1bcf0d7f4af9c7c5ed085487aa67d1
PHP
JoeRowe123/EnterpriseWeChatApplications
/common/models/Article.php
UTF-8
5,264
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "article". * * @property string $id * @property string $title 标题 * @property array $image 封面图 * @property string $abstract 摘要 * @property int $reading_time 阅读期限 * @property int $is_push_msg 是否推送消息;1=>是;0=>否; * @property int $is_...
true
14693b5c2f0f2cd7331786e884163b2adfc60b63
PHP
webclinic017/studies
/my_projects/booklist/getbookdata.php
UTF-8
728
2.921875
3
[]
no_license
<?php $conn; connectMySQL(); getBookData(); function connectMySQL() { global $conn; $hostName = "localhost"; $userId = "201629115"; $userPw = "201629115"; $dbName = "books"; $conn = new mysqli($hostName, $userId, $userPw, $dbName); if ($conn->connect_errno) die("Cannot Connect to MySQL: "...
true
181a2fbad85ba714ce53ba03964584f453c5a33b
PHP
marmotz/WallIrc
/src/Module/Commands/Commands.php
UTF-8
679
2.515625
3
[]
no_license
<?php namespace Marmotz\WallIrc\Module\Commands; use Hoa\Core\Event\Bucket; use Marmotz\WallIrc\Module\Module; class Commands extends Module { public function getSubscribedEvents() { return array( 'private-message' => 'onPrivateMessage', ); } public function onPrivateMess...
true
58508b6657d58d5ee657f6814ebc307485b8bc9d
PHP
alphonsasebastian55/employee_app
/database/factories/EmployeeFactory.php
UTF-8
763
2.53125
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\Employee; use App\Models\Designation; use Illuminate\Database\Eloquent\Factories\Factory; class EmployeeFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Employee::class; ...
true
79ee1e572c351f5f50d492f0e6ecc824faf0b50a
PHP
PedroPadilhaPortella/Curso_PHP7_Hcode
/01 - Fundamentos/Aula-08-(Functions)/function01.php
UTF-8
681
4.03125
4
[ "MIT" ]
permissive
<?php //function em php function soma ($a = 0, $b = 0) { return $a + $b; } echo soma(-5, 3); echo "<br><br>"; function args() { $argumentos = func_get_args(); var_dump($argumentos); } args(True, 10, -10, "nametag", [1, 2, 3, 4, 5]); echo "<br><br>"; //escopo de função em php, onde é diferente a variavel dentro e ...
true
f2f657c1c895536adaeb32cca70e797642afe4fb
PHP
devhood/erp-base
/module/Security/src/Security/Entity/Tblrealmtypes.php
UTF-8
1,615
2.625
3
[]
no_license
<?php namespace Security\Entity; use Doctrine\ORM\Mapping as ORM; /** * Tblrealmtypes * * @ORM\Table(name="tblRealmTypes") * @ORM\Entity */ class Tblrealmtypes { /** * @var integer * * @ORM\Column(name="intRealmTypeID", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue...
true
567ffd6330b43bdba9849390c1be375893b21524
PHP
uchennaanya/pictures
/index.php
UTF-8
1,660
2.84375
3
[]
no_license
<html> <?php error_reporting(1); $conn = new mysqli("localhost", "root", "", "test"); if ($conn->connect_error) { die("Error: ".$conn->connect_error); } if (ISSET($_POST['upd'])) { extract($_POST); $target_dir = "test_upload/"; $target_file = $target_dir . basename($_...
true
cabc40ef910e492e522c8c76253a80da150fed4a
PHP
kunihikoogawa/Slideshow
/src/Models/Slideshow.php
UTF-8
1,902
2.625
3
[ "MIT" ]
permissive
<?php /** * Contains the Slideshow class. * * @copyright Copyright (c) 2017 Attila Fulop * @author Attila Fulop * @license MIT * @since 2017-10-07 * */ namespace Vanilo\Slideshow\Models; use Cviebrock\EloquentSluggable\Sluggable; use Cviebrock\EloquentSluggable\SluggableScopeHelpers; use Illu...
true
281759430a022664bdbfe61a2f1ca34d4f3d84f0
PHP
pacificnm/pnm
/module/Auth/src/Auth/Entity/AuthEntity.php
UTF-8
5,774
2.890625
3
[]
no_license
<?php namespace Auth\Entity; use Employee\Entity\EmployeeEntity; use User\Entity\UserEntity; class AuthEntity { /** * * @var number */ protected $authId; /** * * @var string */ protected $authRole; /** * * @var string */ protected $authEmail; ...
true
b464fc84004c7fff1e718e89f1b754036df99b3d
PHP
lukavavetic/digital-city-api
/src/Business/Factories/Organisation/OrganisationDeleteResponseMapperFactory.php
UTF-8
439
2.5625
3
[ "MIT" ]
permissive
<?php namespace src\Business\Factories\Organisation; use src\Business\Mappers\Organisation\Response\OrganisationDeleteResponseMapper; use src\Data\Entities\Organisation; class OrganisationDeleteResponseMapperFactory { public static function make(Organisation $organisation) : OrganisationDeleteResponseMapper ...
true
8468ea60bed241329ef48fe1594bb44d7badb915
PHP
limweb/photoncmsdocker
/app/PhotonCms/Core/Entities/DynamicModuleSubscriber/DynamicModuleSubscriberFactory.php
UTF-8
3,620
2.5625
3
[]
no_license
<?php namespace Photon\PhotonCms\Core\Entities\DynamicModuleSubscriber; use Photon\PhotonCms\Core\Exceptions\PhotonException; use Photon\PhotonCms\Core\IAPI\IAPI; use \Carbon\Carbon; use Photon\PhotonCms\Core\Entities\NotificationHelpers\NotificationHelperFactory; class DynamicModuleSubscriberFactory { public st...
true
e20b416fbdf2136067ce526cd4ae7a5adf6d0888
PHP
ox404fff/base
/modules/auth/forms/LoginForm.php
UTF-8
3,339
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\auth\forms; use app\base\behaviors\FormBehavior; use app\base\web\ModelForm; use app\models\User; use app\modules\auth\components\events\LoginEvent; use Yii; use yii\helpers\ArrayHelper; /** * LoginForm is the model behind the login form. * * @mixin FormBehavior */ class LoginForm ext...
true
224c1cdbf40d2de9972c20afcc4719c679c310c8
PHP
ooo-texno-dargoh/profit-model.uz
/models/Printers.php
UTF-8
1,315
2.65625
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "printers". * * @property int $id * @property string $name * @property string $ip * @property string $port * @property string $host * @property string $note * @property int $status * * @property PrinterThemes[] $printerThemes */...
true
810715dcd1e8c1e0c2b0545ceffec56d837b77ca
PHP
bvalerin/veterinary_app
/app/Config/Validation.php
UTF-8
3,228
2.53125
3
[ "MIT" ]
permissive
<?php namespace Config; class Validation { //-------------------------------------------------------------------- // Setup //-------------------------------------------------------------------- /** * Stores the classes that contain the * rules that are available. * * @var array */ public $ruleSets = [...
true
48535202ec417418612236213e4a0ecb08f853e2
PHP
Ahmed0shokry/doctor-clinic
/app/Console/Commands/ReindexDB.php
UTF-8
5,313
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Elasticsearch\Client; use Illuminate\Console\Command; class ReindexDB extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'search:reindex'; /** * The console command descriptio...
true
4500f6e4906a44041ce4572883cd279167e1cae1
PHP
badgercl/poto
/app/core/PoTo.php
UTF-8
4,903
2.546875
3
[ "MIT" ]
permissive
<?php foreach(glob(__DIR__ . "/../lib/*.php") as $file) { require_once $file; } require_once(__DIR__. "/HandlerInterfaces.php"); require_once(__DIR__. "/AbstractModel.php"); require_once(__DIR__. "/AbstractCommand.php"); foreach(glob(__DIR__ . "/../handlers/*.php") as $file) { require_once $file; } foreach(glob(__DI...
true
5e9dabc27d1b818e2eb4ff1dd7fae952f2a65e97
PHP
marscore/hhvm
/hphp/test/zend/good/ext/gd/tests/jpeg2png.php
UTF-8
827
2.578125
3
[ "Apache-2.0", "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php <<__EntryPoint>> function main() { $cwd = dirname(__FILE__); echo "PNG to JPEG conversion: "; echo imagejpeg(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test_jpeg.jpeg") ? 'ok' : 'failed'; echo "\n"; echo "Generated JPEG to PNG conversion: "; echo imagepng(imagecreatefromjpeg($cwd . "/test_jpeg.jpeg")...
true
bf3eccff4ce2584c31e4b696b2c607fe6287cc91
PHP
Salvi00/Login
/api/users/login.php
UTF-8
1,614
2.640625
3
[]
no_license
<?php echo '<body style ="color:black;background-color:a03010;text-align:center;font-size: 50px;">'; // includo i file include_once '../config/database.php'; include_once '../objects/user.php'; $message = ""; // ottengo la connessione del DB $database = new Database(); $db = $database->getConnection(); // ...
true
550d0e02cefc02a37b3ab774f5da3a44b47a3263
PHP
BogdanGaybura/web-catalog
/classes/DropDownList.php
UTF-8
1,616
2.796875
3
[]
no_license
<?php class DropDownList { static public function getUsersByUserRole() { global $app; $sql = 'SELECT id, name FROM users WHERE roles = "ROLE_USER"'; $result = $app['db']->fetchAll($sql); return $result; } static public function getProvider() { global $app;...
true
ec7612c4c8e4a1387908fa5f1dcff2f98d710d6c
PHP
phower/image
/test/Phower/ImageTest/ImageTest.php
UTF-8
9,999
2.65625
3
[]
no_license
<?php /** * Native functions mocked for Phower\Image namespace */ namespace Phower\Image; use Phower\ImageTest\ImageTest; function class_exists($name) { if ($name === 'Imagick' && null !== ImageTest::$mockClassExistsImagick) { return ImageTest::$mockClassExistsImagick; } return \class_exists($...
true
f0073015a1aad174497526b4ad2500a8ab65e1e9
PHP
jayachandragoteti/Blood-Bank
/BasicMethod/Hospital/changePassword.php
UTF-8
4,921
2.640625
3
[]
no_license
<?PHP session_start(); include './../includes/databaseConnection.php'; if (!isset($_SESSION['HospitalLogin'])) { header("Location: ./../includes/logout.php"); } $HospitalLogin = $_SESSION['HospitalLogin']; $msg = ""; $error = ''; if (isset($_POST['UpdatePasswordSubmit']) && isset($_SESSION['HospitalLogin'])) { if (i...
true
d09fa315e33a2b9ad1602469aaf8efab5e7d1623
PHP
Donly-Wilson/restaurant-fullstack
/app/Http/Controllers/admin/SettingController.php
UTF-8
4,559
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\admin; use App\Http\Controllers\Controller; use App\Models\GeneralSetting; use App\Models\SeoSetting; use App\Models\SocialSetting; use Illuminate\Http\Request; //This Controller only has edit and update because by it comes with default settings we build in seed class SettingCon...
true
46a018616703817af3c2b84012833d5588a69c30
PHP
kofhearts/ticket-to-fitness
/app/models/ActivityModel.php
UTF-8
7,540
2.71875
3
[]
no_license
<?php class ActivityModel { private $db; public function __construct() { $this->db = new Database; } public function filterByCategory($param) { $this->db->query('SELECT gym_activity.id, gym_activity.gym_id, gym_activity.activity_name, gym_activity.category, gym_activity.sessions_per_week, gy...
true
076c23afefa4b39364173ce6a42e4fd3a531f3d9
PHP
melanchthon/board
/Application/Model/Comment.php
UTF-8
2,665
2.6875
3
[]
no_license
<?php class Model_Comment extends Core_Model { public function createComment (Core_Comment $comment) { $DBH = Core_DbConnection::getInstance(); $STH = $DBH->prepare("INSERT INTO comment(create_time, post_id, content, name) VALUES (:createTime, :postId, :content, :name)"); $STH->execute(array...
true
f38447531dd84af6023777b32ea51cddfd8b081f
PHP
fpg100/miniyun
/protected/plugins/ldap/commands/PluginLdapCommand.php
UTF-8
9,458
2.65625
3
[]
no_license
<?php /** * LDAP业务层 * @author app <app@miniyun.cn> * @link http://www.miniyun.cn * @copyright 2015 Chengdu MiniYun Technology Co. Ltd. * @license http://www.miniyun.cn/license.html * @since 2.2 */ class PluginLdapCommand extends CConsoleCommand{ private $userId = -1;//当为-1时,表示部门 /** * 通过分析dc获得Host ...
true
05844155a237aeb2b02a38589d658086f1dc62ba
PHP
linkuha/parsers-benchmarks
/classes/parsing/wrappers/FDomDocumentParser.php
UTF-8
1,593
3
3
[ "MIT" ]
permissive
<?php namespace parsing\wrappers; use TheSeer\fDOM; class FDomDocumentParser { public static function parseLinks($html, $contentType = 'text/html', $css = false) { $links = array(); // fDOMDocument extend the standard DOM to use exceptions // at all occasions of errors instead of PHP warnings or notices. ...
true
5f15cddb1401f602040bfc3c6a6c273cc115ce4e
PHP
crude-forum/crude-forum
/app/Exception/PostInvalid.php
UTF-8
924
2.890625
3
[ "MIT" ]
permissive
<?php /** * Error to throw if attempt to open a non-existed post * * PHP Version 7.1 * * @category File * @package CrudeForum\CrudeForum\Storage * @author Koala Yeung <koalay@gmail.com> * @license https://opensource.org/licenses/MIT MIT License * @link https://github.com/crude-forum/crude-forum Source...
true
bc277ef35c6c24562dcda423abcb28790b45278a
PHP
stevestrebl/urad.pirati.cz
/app/model/Table/FieldsCategory.php
UTF-8
1,265
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Nette; class FieldsCategory //extends Nette\Object { use Nette\SmartObject; /** @var Nette\Database\Context */ private $database; public function __construct(Nette\Database\Context $database) { $this->database = $database; } /** @return Nette\Database\Table\Selection */...
true
473fdce9ae610c9a4296c6cbbd8cb2fbd23cbdd6
PHP
aufawibowo/ddd
/app/modules/marketplace-toko/Core/Application/Services/ShowSingleReview/ShowSingleReviewRequest.php
UTF-8
638
2.703125
3
[]
no_license
<?php namespace A7Pro\Marketplace\Toko\Core\Application\Services\ShowSingleReview; class ShowSingleReviewRequest { public ?string $sellerId; public ?string $reviewId; public function __construct( ?string $sellerId, ?string $reviewId ) { $this->sellerId = $sellerId; $th...
true
9baedaeb80f39470338a6ca927d90dd852fbcefd
PHP
soldatigabriele/Tech4you
/classes/Validate.php
UTF-8
3,213
3.28125
3
[]
no_license
<?php //Questa classe permette la validazione degli input. In input prende un array contenente le varie regole che devono // essere soddisfatte e il metodo con cui vengono passati i parametri class Validate { private $_passed = false; private $_errors = array(); private $_db = null; //effettuo la con...
true
d1a1e6fed8a3188aca6c10f7ec39b74f81f7b933
PHP
Tenorio94/LabdeIdiomas
/olvidoContrasena.php
UTF-8
1,020
2.828125
3
[]
no_license
<?php //Obtenemos la matricula $matricula = $_REQUEST['m']; //Abriendo conexion con la base de datos $idiomas = getConection(); //Obteniendo la informacion del alumno $query_matricula = $idiomas->query("SELECT * FROM tbl_matriculas WHERE matricula = $matricula"); $matricula = $query_matricula->fetch_assoc(); //Si n...
true
42f5bfd108e35ce6103b4ea39c11677d701a2124
PHP
starfalling/ipip
/src/ipip/db/Reader.php
UTF-8
10,171
2.734375
3
[ "Apache-2.0" ]
permissive
<?php namespace ipip\db; class Reader { const IPV4 = 1; const IPV6 = 2; private $fileSize = 0; private $nodeCount = 0; private $nodeOffset = 0; private $meta = []; private $database = ''; private $database_content = null; private function readDatabaseContent() { glo...
true
4e166bc3e89ea49ca2895f2d63330e9ecc838db5
PHP
pbertolami/foobooks
/database/factories/ModelFactory.php
UTF-8
1,948
2.59375
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
true
2b70a9cca6218dec5f49c49208bbe05c4a500bba
PHP
KIMEUIJOON/workspace
/web/application/controllers/member/basic.php
UTF-8
5,112
2.71875
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); require_once( 'Member_Controller.php' ); class Basic extends Member_Controller { const FORM_RULES_NAME = 'member_basic'; public function __construct() { parent::__construct(); $this->config->load('my/form_validation'); $this->con...
true
d9fd3d16b4242cff4f0ecf0bcd3f6cdae5dfb22c
PHP
noway-s-studies/na_1404_KPHP
/ea01/plus/20140405-131031_fori0.php
UTF-8
51
2.859375
3
[]
no_license
for($i=0;$i<10;$i++) { print "$i<br>"; }
true
31c9b6f2e3d97b3e7cf1f68686aa48bed977f30e
PHP
everyworkflow/core-bundle
/Helper/CoreHelper.php
UTF-8
1,086
2.71875
3
[ "MIT" ]
permissive
<?php /** * @copyright EveryWorkflow. All rights reserved. */ declare(strict_types=1); namespace EveryWorkflow\CoreBundle\Helper; use EveryWorkflow\CoreBundle\Cache\CacheInterface; use EveryWorkflow\CoreBundle\Message\MessageInterface; use Psr\Log\LoggerInterface; class CoreHelper implements CoreHelperInterface ...
true
56b46e5778fedd6e7a4ce57f46b617e32e13db65
PHP
raynaldmo/php-education
/Examples/OOP/rectangle/rectangle2.php
UTF-8
1,434
3.921875
4
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Rectangle</title> <link rel="stylesheet" href="style.css"> </head> <body> <?php # rectangle2.php /* This page uses the revised Rectangle class. * This page shows a bunch of information * about a rectangle. */ // Include the class definition: /...
true
a16e821b77373469b81e40a969bdfe953aaf2b59
PHP
17515713997/elm
/php/getVaildCode.php
UTF-8
1,572
3.265625
3
[]
no_license
<?php //设置请求头 --- 指定请求头的类型 header("Content-Type:image/png"); //开启服务器存储 session session_start(); $_code = ""; //随机生成几位数的验证码 $_arr = array("q","w","e","r","t","y","u","i","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","n","m","1","2","3","4","5","6","7","8","9","0","Q","W","E","R...
true
b1636b7ba52687ef45d9adfb8154beef5dd503e4
PHP
kashifakhan/training-backup
/NewYii/yii-application/console/migrations/m171010_065102_pridefalls_product_variants.php
UTF-8
2,978
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; use console\components\TableExists; class m171010_065102_pridefalls_product_variants extends Migration { public function safeUp() { } public function safeDown() { echo "m171010_065102_pridefalls_product_variants cannot be reverted.\n"; return false; ...
true
b0d046edc1a32f7da77d44ab5c7a43b48e4deafa
PHP
WyriHaximus/reactphp-child-process-pool
/src/QueueInterface.php
UTF-8
374
2.515625
3
[ "MIT" ]
permissive
<?php namespace WyriHaximus\React\ChildProcess\Pool; use WyriHaximus\React\ChildProcess\Messenger\Messages\Rpc; interface QueueInterface { /** * @param Rpc $rpc * @return void */ public function enqueue(Rpc $rpc); /** * @return Rpc */ public function dequeue(); /** ...
true
4c1fa639a206e10d43f95404d68837d9bb0cc5a9
PHP
hansputera/php-crud
/libs/base.php
UTF-8
2,095
3.140625
3
[]
no_license
<?php class Base { public function __construct($server) { $this->server = $server; } function getById($id) { $sql = "SELECT * FROM users WHERE id = '$id'"; $sql_q = mysqli_query($this->server, $sql); if (mysqli_num_rows($sql_q) < 1) { return NULL; } else { return mysqli_fetch_assoc(...
true
531f036d8373f5a2c00ff1e84886416a757dd338
PHP
nguyenducdat157/Project-II
/ecommerce/api/Application/Controllers/Wishlist.php
UTF-8
2,266
2.609375
3
[]
no_license
<?php use MVC\Controller; use JWT\JWT; require SYSTEM . 'JWT.php'; class ControllersWishlist extends Controller { private $_model; public function __construct(){ Controller::__construct(); $this->_model = $this->model('wishlist'); } public function add_to_wishlist(){ header('Co...
true
7a12b4f5920cd398c8b9501d5f9e49065f305575
PHP
KetanVinchhi/Project-Work
/Sem4PHP/Registration.php
UTF-8
4,738
2.765625
3
[]
no_license
<?php session_start(); require_once("DatabaseConn.php"); if (isset($_POST["signup_submit"])) { $f_name = $_POST["first_name"]; $l_name = $_POST["last_name"]; $email = $_POST['user_email']; $password = $_POST['password']; $repassword = $_POST['re_enter_pass']; $mobile = $_POST['mobile_number']; $address1 = $_POS...
true
0f4cf57159d9d451542cb76a80c0df028f6c97c7
PHP
kimael-code/studium
/app/Traits/EventLogger.php
UTF-8
800
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Traits; use App\Models\ActivityLog; use Illuminate\Support\Facades\Request; /** * Encargado de gestionar el registro de eventos del usuario en el sistema. */ trait EventLogger { public function logEvent(array $event) { $data = [ 'description' => $event['description']...
true
e3ba421f8ac2908bd1cb5bab4e17bba5f5ff7e7b
PHP
dzoxploit/arkademy
/soalno2.php
UTF-8
843
3.453125
3
[]
no_license
<?php /** * Generate a random string, using a cryptographically secure * pseudorandom number generator (random_int) * * For PHP 7, random_int is a PHP core function * For PHP 5.x, depends on https://github.com/paragonie/random_compat * * @param int $length How many characters do we want? * @param strin...
true
1ec06a168aae4f66a373b997996d259a49db5c5e
PHP
firehare/IMRIMLmsBundle
/Entity/UserEnrolment.php
UTF-8
6,594
2.578125
3
[]
no_license
<?php namespace IMRIM\Bundle\LmsBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * IMRIM\Bundle\LmsBundle\Entity\UserEnrolment * * @ORM\Table() * @ORM\Entity(repositoryClass="IMRIM\Bundle\LmsBundle\Entity\UserEnrolmentRepository") */ class UserEnrolment ...
true
767c37cbf30218d01a838e5508b51ce661725ee0
PHP
tobbegsson/general
/Webb_Server/6.2.1/6.2.1.php
UTF-8
2,318
2.640625
3
[]
no_license
<?php //Hämta innehållet ur .html, explodera i tre delar och eka ut första delen $html = file_get_contents('6.2.1.html'); $htmlSplit = explode('<!-- ==xxx== -->', $html); echo "$htmlSplit[0]"; //Uppgifter om databasen (anvnamn, lösen, databasnamn samt anslutning till db) $user = 'root'; $pass = ''; ...
true
b5bc00086b429f6d9b0e63edf1cc31f0c16fb1c8
PHP
magmaticlabs/obsidian
/app/Console/Commands/Queue.php
UTF-8
663
2.53125
3
[ "MIT" ]
permissive
<?php namespace MagmaticLabs\Obsidian\Console\Commands; use Illuminate\Console\Command; class Queue extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'obsidian:queue'; /** * The console command description. * ...
true
0aeed904e89b6f6b50a973cf489d056739672baa
PHP
Jordanbana/ITP_405_Final_Laravel
/app/Http/Controllers/VideoController.php
UTF-8
2,381
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; use App\Videos; use Validator; class VideoController extends Controller { //Getting all the videos public function index() { //Using Eloquent instead of DB $videos = Videos::orderBy('votes', 'DESC')->get(); ...
true
dfc8d47a9bfe1d36fc261817f402ff3cdee4c35f
PHP
MaleneBille/marvelgame
/highscore.php
UTF-8
1,046
2.703125
3
[]
no_license
<?php require_once('includes/db.php');?> <?php require_once('includes/header.php');?> <!-- HIGHSCORE TABEL --> <div class="container-fluid"> <div class="row game-text"> <div class="col-8"> <h1 class="game-text">Highscore</h1> <div class="highscore"> ...
true
af2dcf6efc0655f83c470cd5f2c2bb03a09f02bf
PHP
vutran03699/tintuc-php
/admin/inc/pagination.php
UTF-8
874
2.6875
3
[]
no_license
<ul class="pagination pagination-cover"> <!-- BUTTON Previous --> <?php if ($current_page > 1 && $total_page > 1): ?> <li class="page-item"><a class="page-link" href="index.php?page=<?= $current_page-1 ?>">Previous</a></li> <?php endif ?> <!-- PAGINATION --> <?php for ($count = 1; $count <= $total_page; $count+...
true
ddad27d73e50165cc4a668523918fb4ed6c70c66
PHP
marscore/hhvm
/hphp/test/zend/good/Zend/tests/bug39990.php
UTF-8
194
3.40625
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php class Foo { public function __get($name) { return array('Hello', 'World'); } } <<__EntryPoint>> function main() { $obj=new Foo(); foreach($obj->arr as $value) echo "$value\n"; }
true
2d0abe5d2406b23ed45627a7b36f12323d3d1993
PHP
haroutweb/match-score
/application/module/App/src/Service/ImportService.php
UTF-8
6,840
2.828125
3
[]
no_license
<?php namespace App\Service; class ImportService { const FILE_MAX_SIZE = 50*1024*1024; /** * File fields * * @var array */ private $fields = [ 'A' => [ 'name' => 'name', 'type' => 'string', 'required' => true, ], 'B' ...
true
f8d30b0e6939faea04a0e7e993ff5d77c5462414
PHP
jcartwri/PHP-Piscine
/Ser/day01/ex11/do_op_2.php
UTF-8
1,794
3.15625
3
[]
no_license
#!/usr/bin/php <?php function ops($op, $a, $b) { switch ($op) { case "+": echo $a + $b; break; case "-": echo $a - $b; break; case "/": echo $a / $b; break; case "%": echo $a % $b; break; case "*": echo $a * $b; break; } echo "\n"; } function new_vali...
true
71f5c777cbffa69dd2b7bfb73ea7fa51b796b93e
PHP
ariful-khan/php-senior-test
/src/Service/CacheAbleGenerator.php
UTF-8
763
2.8125
3
[]
no_license
<?php declare(strict_types = 1); namespace Searchmetrics\SeniorTest\Service; use Searchmetrics\SeniorTest\Network\UrlIdGenerator; final class CacheAbleGenerator { private $generator; private $cache; /** * @param UrlIdGenerator $generator * @param Cache $cache */ public function __cons...
true
966983c3cae15a6584ee6268b961752e32c158fe
PHP
yiyouguisu/betawoniu
/Application/Api/Common/CommonController.class.php
UTF-8
23,362
2.765625
3
[]
no_license
<?php namespace Api\Common; use Think\Controller; use Org\Util\Aes; class CommonController extends Controller { public function _initialize() { header('Content-type:text/html;charset=UTF-8'); $data['controller']=CONTROLLER_NAME; $data['action']=ACTION_NAME; $data['get']=$_SERVER...
true
4ab144ec131bf201611fab67705b41f831cf45ca
PHP
Mohit-Singh/AssignSeat
/libraries/validate.php
UTF-8
6,331
3.28125
3
[]
no_license
<?php /** * **************************** Creation Log ******************************* * File Name - Validate.php * Project Name - AssignSeat * Description - Model class from RoomRow Table * @Version - 1.0 * ***************************** Update...
true
22653d8808b440e7b2444b6a69b9cbadf3cb0b35
PHP
AlexNiko01/testproject
/console/migrations/m180615_113351_create_pages_translations_table.php
UTF-8
1,706
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `pages_translations`. * Has foreign keys to the tables: * * - `pages` */ class m180615_113351_create_pages_translations_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('pag...
true
a7dbef2b2892ccca6fb781bef21822aaf28877e4
PHP
duyet/BGate
/app/SellGenericRTB/src/SellGenericRTB/common/workflows/tasklets/common/AdjustBidAmountWithMarkup.php
UTF-8
1,680
2.515625
3
[]
no_license
<?php /** * BGate Project * * @version 1.x * @author ISLab UIT * @copyright (C) 2015 */ namespace sellrtb\workflows\tasklets\common; class AdjustBidAmountWithMarkup { public static function execute(&$Logger, &$Workflow, \sellrtb\workflows\tasklets\popo\AuctionPopo &$AuctionPopo) { $result = false; ...
true
c7744db234da2fe3137b85aecb45346fdccb428a
PHP
mrfengz/php_practice
/design_patterns/structure/decorator/simple/Maintance.php
UTF-8
696
3.328125
3
[]
no_license
<?php /** * 具体装饰器 * Class Maintance */ class Maintance extends Decorator { public function __construct(IComponent $siteNow) { $this->site = $siteNow; } /** * 在原组件的基础上,增加新的内容(装饰) * @return string */ public function getSite() { // TODO: Implement getSite() metho...
true
cb07323c2131c28a70c32c453c055d68af4dd081
PHP
nitinprajapati/chat
/dbClass.php
UTF-8
331
2.671875
3
[ "Unlicense" ]
permissive
<?php class _dbConnection{ public static $username = "root"; public static $password = ""; public static $host = "127.0.0.1"; public static $dbName = "chatapplication"; public static function conn(){ $db = new mysqli('p:'.self::$host, self::$username, self::$password, self::$dbName, 3306); return $d...
true
8fe0fca4119c2da6b4a1d76882088f0ba22d6cf9
PHP
Bassel-kh/myposMy
/app/Models/Role_Permission/Role.php
UTF-8
526
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models\Role_Permission; use Carbon\Carbon; use DateTimeInterface; use Laratrust\Models\LaratrustRole; class Role extends LaratrustRole { public $guarded = []; protected function serializeDate(DateTimeInterface $date) : string { return $date->format('Y-m-d H:i:s'); // r...
true
c1e2f38994ad3509c3175197721a2937c34a4152
PHP
gizmore/gwf3
/core/inc/util/GWF_Sortable.php
UTF-8
344
2.578125
3
[]
no_license
<?php /** * Interface for sortable GDO classes. * @author gizmore */ interface GWF_Sortable extends GWF_Displayable { public function getSortableDefaultBy(GWF_User $user); # return string public function getSortableDefaultDir(GWF_User $user); # return string public function getSortableFields(GWF_User $user); # re...
true
dec79fdf694b2cb825ae225024d15bf952c53642
PHP
jsturek/UNL_Events
/src/UNL/UCBCN/Event/Webcast/Link.php
UTF-8
1,649
2.546875
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php namespace UNL\UCBCN\Event\Webcast; use UNL\UCBCN\ActiveRecord\Record; /** * Table Definition for webcastlink * * PHP version 5 * * @category Events * @package UNL_UCBCN * @author Brett Bieber <brett.bieber@gmail.com> * @copyright 2009 Regents of the University of Nebraska * @license http://www1....
true
b996902e6da81fd736301450484d27da39bf7035
PHP
zeoharlem/newgmanzo
/app/frontend/plugins/LoggersPlugin.php
UTF-8
1,316
2.625
3
[ "MIT" ]
permissive
<?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 Logger * * @author Theophilus Alamu <theophilus.alamu at gmail.com> */ namespace Multiple\Frontend\Plu...
true
3b0facb40de8d15599f2147f7321c5dd65cd492a
PHP
a501986411/tp5
/application/common.php
UTF-8
2,324
2.5625
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
true
7498a14bb461a36a73edabb55a1af42b4d7bc00d
PHP
manachyn/imshop
/modules/users/src/clients/ClientInterface.php
UTF-8
538
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace im\users\clients; use yii\authclient\ClientInterface as BaseInterface; /** * Enhances default yii client interface by adding methods that can be used to * get user's email, username and full name. * * @package im\users\clients */ interface ClientInterface extends BaseInterface { /** * @...
true
7e88710457f03ce51650ad52851525a98b020727
PHP
nanduzira/lednssweb
/db_functions.php
UTF-8
2,047
2.859375
3
[]
no_license
<?php class DB_FUNCTIONS { public $db, $con; function __construct() { require_once 'db_connect.php'; $this->db = new DB_CONNECT(); } function __destruct() { } public function storeHouse($ward, $house_no, $head, $address, $ration_no, $caste, ...
true
e3169e71b99e2b13063711daa656895d260a1f9c
PHP
dongcai/bootstrap-php-framework
/resource/controller/register.php
UTF-8
1,133
2.75
3
[]
no_license
<?php /* * Register Page * use php-login-master * */ // checking for minimum PHP version if (version_compare(PHP_VERSION, '5.3.7', '<')) { exit("Sorry, Simple PHP Login does not run on a PHP version smaller than 5.3.7 !"); } else if (version_compare(PHP_VERSION, '5.5.0', '<')) { // if you are using PH...
true
fcff793b81c3343b892c06af7f8b3a04f912721e
PHP
SobrancelhaDoDragao/Exercicio-De-Programacao
/Exercicios-PHP/Exercicios de PHP/Array_unshift_Array_shift.php
UTF-8
410
3.703125
4
[]
no_license
<!DOCTYPE html> <html lang="PR-BR"> <head> <meta charset="utf-8"> <title>Array_shift e Array_unshift</title> </head> <body> <pre> <?php $vetor = array(5,6,7,2); array_unshift($vetor,'1000');//Adcionando o valor '1000' na primeira posição print_r($vetor); array_shift($vetor);//Remov...
true
0702d96f4cb241dfcbeed00bc198983152152a99
PHP
MAMinhaz/portfolio
/app/Http/Controllers/LandviewController.php
UTF-8
4,213
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Image; use Carbon\Carbon; use App\Models\Landview; use Illuminate\Support\Str; use Illuminate\Http\Request; use App\Models\Landview_profession; class LandviewController extends Controller { /** * heros info index page * * @return void */ function ...
true
4e68cd8621c451afbb9abfae3c99a8d112029662
PHP
rb59/shop
/Classes/Model.php
UTF-8
1,869
2.84375
3
[]
no_license
<?php require_once 'Config/Database.php'; require_once 'QueryHelper.php'; class Model { private $conn; protected $db; protected $table; protected $helper; public function __construct() { $this->conn = new Database(); $this->db = $this->conn->connect(); $this->helper = ne...
true
7265f9a1830736d6f37ac9c0aabd22d34475678c
PHP
logscaleph/logscale
/database/seeds/DiameterRangeTableSeeder.php
UTF-8
2,153
2.671875
3
[ "MIT" ]
permissive
<?php use App\Http\Models\DiameterRange; use App\Http\Models\EntryType; use Illuminate\Database\Seeder; class DiameterRangeTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { foreach ($this->data() as $value) { Diam...
true
2bd73f283af393df66348e8e4c96d0255c6572e7
PHP
maxdolski/KTA16V
/array.php
UTF-8
1,583
2.8125
3
[]
no_license
<?php include "include.inc"; back_home(); menu($files_arr); $imja = "Tarmo"; // loome näidismassiivi /* kommeentaar mis on pikem kui 1 rida */ $test_arr = array("Maksim", "Aleksandr", "Jevgeni", 121, $imja, 12.1213); $test_arr[] = "Kim"; for ($i=0; $i < count($test_arr); $...
true
8b8df993a81afbf3f70e8f0261f901b954916de7
PHP
AmandaVales/Projeti
/Modulos/equipamentos/adicionar.php
UTF-8
1,024
2.8125
3
[]
no_license
<?php if (isset ($_POST[ 'botao' ]) && $_POST [ 'botao' ] == 'Salva' ) { $descricao = $_POST [ 'descricao' ]; $preco = $_POST [ 'preco' ]; $quantidade = $_POST [ 'quantidade' ]; $sql = "INSERT INTO equipamentos (descricao, preco, quantidade) VALUES (: descricao,: preco,: quantidade) " ; try...
true
e33c5d537d01408b13bb7438857203cdbde2b4f1
PHP
okante/NovaCollection
/src/Factory.php
UTF-8
1,209
2.90625
3
[ "MIT" ]
permissive
<?php /** * Novactive Collection. * * @author Luke Visinoni <l.visinoni@novactive.us, luke.visinoni@gmail.com> * @author Sébastien Morel <s.morel@novactive.us, morel.seb@gmail.com> * @copyright 2017 Novactive * @license MIT */ declare(strict_types=1); namespace Novactive\Collection; class Factory { ...
true
a6f341272bfb3371e9428436e5ac37e295b28a9e
PHP
2Seg/numeris-v2
/back/database/seeds/MessagesTableSeeder.php
UTF-8
571
2.5625
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Carbon\Carbon; use App\Models\Message; class MessagesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { if (Message::all()->isEmpty()) { $this->createMessage(); } ...
true
73c94558232896bddc86399d2ccf6734dbb9f884
PHP
shamsshovon/Virtual_Classroom
/classes/Exam.php
UTF-8
2,824
2.9375
3
[]
no_license
<?php $filepath = realpath(dirname(__FILE__)); include_once ($filepath.'/../lib/Database.php'); include_once ($filepath.'/../helpers/Format.php'); class Exam { private $db; private $fm; function __construct() { $this->db= new Database(); $this->fm= new Format(); } public function ad...
true
c2982ec7a2498ce74f83db09694895fd4f09dd5c
PHP
celalceken/SecureSoftwareDevelopment
/Lecture7/2InputFilteringOutputEncoding/1InputFilteringEncodingPHP/Filtre.php
UTF-8
4,521
3.015625
3
[ "MIT" ]
permissive
<?php /* * * * *** Güvenli olmayan kaynaklardan gelen verilerin sunucu tarafında doğrulanması ve filitrelenmesi uygulamaların güvenliği açısından son derece önemlidir. Harici verilerin (form giriş verileri, çerezler, web servislerinin verileri,Veritabanı sorgu sonuçları, sunucu değişkenleri) her zaman filitrelenm...
true
384a7774c694d748169cd15e2deebc2734c5aad2
PHP
Pietto/stage-jaar2
/test/calculator/calculator/include/classes/calculator.php
UTF-8
9,233
3.421875
3
[]
no_license
<?php class calculator { private $cal1; private $operator; private $cal2; function __construct( Number $cal1, MyString $operator, Number $cal) { try { $this->setCal1($cal1->getValue()); $this->setOperator($operator->getValue()); ...
true
e90fd1cfe0b92e7a3687526dc94f671deb763c32
PHP
arka816/forum
/updateTopic.php
UTF-8
392
2.59375
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password,$dbname); $name = $_GET["name"]; $content = $_GET["content"]; $sql = "UPDATE topicTable SET content = '$content' WHERE name = '$name'";...
true
c125a52b3e6341f2c39d8c636ac99c0b393ed5f6
PHP
marscore/hhvm
/hphp/test/slow/ext_memcached/inc_dec.php
UTF-8
982
2.75
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php const key = 'incr_decr_test'; $mc = new Memcached; $mc->addServer('127.0.0.1', 11211); $mc->set(key, 0); var_dump($mc->get(key)); $mc->increment(key, 3); var_dump($mc->get( key)); $mc->decrement(key, 1); var_dump($mc->get(key)); //increment with initial value only works with binary protocol const non_existant_ke...
true
a8968c9e4c20832688665ef45c88f97b87c82be3
PHP
jengerph/simplicity
/includes/xisoap/includes/XiSoapClient.php
UTF-8
3,092
2.8125
3
[]
no_license
<?php namespace XiSoap; class XiSoapClient { private $client; /** * XiSoapClient constructor. * @param SoapService $service * @param $username * @param $password * @param int $soapVersion * @internal param $url */ public function __construct(SoapService $service, $use...
true
00c4f5c5cb14283acc635397243d5a953f0beb12
PHP
Ocramius/php-analyzer
/tests/Scrutinizer/Tests/PhpAnalyzer/Pass/Fixture/TypeInference/deadlock_test.php
UTF-8
1,321
3.390625
3
[ "Apache-2.0" ]
permissive
<?php /** * Return Types per Iteration: * 1st: array<integer,Node>{0:Node} * 2nd: array<integer,Node>{0:Node,1:Node} * 3rd: array<integer,Node>{0:Node,1:Node,2:Node} * . * . * . * nth: array<integer,Node>{0:Node,...,n:Node} * * The special problem here is that the method is called recursively and thus a chan...
true
d946a8a00208ce873c141d4eef62b481fd54520a
PHP
proyectosMarslnlau/archivos-prueba
/servidorPhp/petition/class/requestRead.php
UTF-8
624
2.703125
3
[]
no_license
<?php require_once('../../config/database.php'); class petitionRead { function __construct() { } //Consulta de USUARIO Y PASSWORD ************************** //Consulta todos los datos ********************************** public static function consultarTodo() { $consulta = "SELECT * F...
true
b12a5dea930acdd687b5fa4f246cc74cd1940942
PHP
colombo-group/phuchn005
/bai4.php
UTF-8
657
3.046875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Bai 4</title> <meta charset="utf-8"> </head> <body style="padding: 0 500px"> <form method="post" action=""> <input type="number" name="num" min="0" value="<?php echo $_SERVER['REQUEST_METHOD']=='POST' && isset($_POST['num']) ? $_POST['num']:""; ?>"> <input type="submit" name=...
true
10b5e2ba507525edacdc6927a66f42e03fb198e4
PHP
GasparyanG/pc_parts
/src/Services/API/JsonApi/DataFetching/Fetcher.php
UTF-8
3,526
2.59375
3
[]
no_license
<?php namespace App\Services\API\JsonApi\DataFetching; use App\Database\Connection; use App\Services\API\JsonApi\Specification\Links; use Doctrine\ORM\EntityManager; use Doctrine\ORM\Query\ResultSetMappingBuilder; use Doctrine\ORM\QueryBuilder; use Symfony\Component\HttpFoundation\ParameterBag; class Fetcher { ...
true
be770f122091d2b2f7abd5e4f344f13515e0da61
PHP
Extme/keyTraff_test
/Data/create_db.php
UTF-8
3,503
2.640625
3
[]
no_license
<?php include ('config.php'); try { $db_connect = new PDO($host, $db_user, $db_password); $db_connect->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "CREATE DATABASE IF NOT EXISTS key_traff"; $db_connect->exec($sql); $sql = "USE key_traff"; $db_connect->exec...
true
350be2097174c863bc98d24eedd15c659a316cbb
PHP
TJ09/xhp-lib
/src/core/XHP.php
UTF-8
3,968
2.6875
3
[ "MIT" ]
permissive
<?php /* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ abstract class :xhp implements XHPChild, JsonSerializable { abstract public function __construct( ...
true
0e445b9ade587e1d97a5903eda5a7ff5bf2e3559
PHP
munhing/llpm
/app/LLPM/Settings/RegisterFeeCommandHandler.php
UTF-8
2,290
2.6875
3
[]
no_license
<?php namespace LLPM\Settings; use Laracasts\Commander\CommandHandler; use Laracasts\Commander\Events\DispatchableTrait; use LLPM\Repositories\FeeRepository; use Fee; class RegisterFeeCommandHandler implements CommandHandler { use DispatchableTrait; protected $feeRepository; function __construct(FeeRepository...
true
d4a0b74ae8e8e9d9bb70cab06f59c0528fe143cf
PHP
sphere-engine/php-client
/tests/CompilersClientV3Test.php
UTF-8
3,985
2.703125
3
[ "Apache-2.0" ]
permissive
<?php use SphereEngine\Api\Mock\CompilersClientV3; // backward compatibility if (!class_exists('\PHPUnit\Framework\TestCase') && class_exists('\PHPUnit_Framework_TestCase')) { class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase'); } class CompilersClientV3Test extends \PHPUnit\Framew...
true
20979a4a8c7fa9878b994a5bc5d7a3feea315bbe
PHP
halgurdh/site
/wp-content/plugins/jetpack/modules/protect/math-fallback.php
UTF-8
6,085
2.828125
3
[ "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "MIT" ]
permissive
<?php if ( ! class_exists( 'Jetpack_Protect_Math_Authenticate' ) ) { /* * The math captcha fallback if we can't talk to the Protect API */ class Jetpack_Protect_Math_Authenticate { static $loaded; function __construct() { if ( self::$loaded ) { return; } self::$loaded = 1; add_action( 'l...
true
ca4214dc2b969481ec67ef46d7fbe3dcd3937897
PHP
zapheus/zapheus
/tests/Http/Message/FileTest.php
UTF-8
2,802
2.859375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Zapheus\Http\Message; /** * File Test * * @package Zapheus * @author Rougin Gutib <rougingutib@gmail.com> */ class FileTest extends \PHPUnit_Framework_TestCase { /** * @var \Zapheus\Http\Message\FileInterface */ protected $file; /** * @var string */ protected...
true
42a2a1dfa87d37322d0266d8d75c6bc2a87a90f9
PHP
Jonhks/php
/parametrosDentreDeFunciones.php
UTF-8
338
3.296875
3
[]
no_license
<?php function saludo($nombre){ return "saludo!, $nombre"; } echo saludo('Carlos') . '<br />'; echo saludo('Alex'). '<br />'; echo saludo('Miky'). '<br />'; function sumar($numero1, $numero2){ $resultado = $numero1 + $numero2; return $resultado; // no se puede escribir nada abajo } $resultado = sum...
true
c0b8078b6f98951fc7ebbd66f6183341797c56bd
PHP
israrwz/buddypress-api
/includes/class.bp-oauth.php
UTF-8
2,269
3.046875
3
[]
no_license
<?php require ( CIAB_LIB_DIR . 'oauth-php/library/OAuth.inc' ); class BP_OAuth extends OAuth { /** * Make sure that the client credentials is valid. * * @param $client_id * Client identifier to be check with. * @param $client_secret * (optional) If a secret is required, check that they've given the ...
true