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
d4e193f95262911c4be47364afbb6154b58775e0
PHP
Chanif2003/laravel8-shop
/app/Authorizable.php
UTF-8
1,682
2.703125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Support\Arr; trait Authorizable { private $abilities = [ // .. 1 'index' => 'view', 'edit' => 'edit', 'show' => 'view', 'update' => 'edit', 'create' => 'add', 'store' => 'add', 'destroy' => 'delete', 'options' =>...
true
f06f4fa6a854d331022bfe801a2d6406271121ad
PHP
sauron07/symfony-study
/src/MailerBundle/Entity/ContactList.php
UTF-8
1,592
2.53125
3
[ "MIT" ]
permissive
<?php namespace MailerBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * ContactList */ class ContactList { /** * @var integer */ private $id; /** * @var string */ private $title; /** * @var \Doctrine\Common\Collections\Collection */ private $emails; ...
true
c38bf849af8fd8bdae5521abe541e1a85df01513
PHP
fedelucesoli/LobosWeb
/fuel/app/classes/model/noticias.php
UTF-8
798
2.5625
3
[ "MIT" ]
permissive
<?php class Model_Noticias extends \Orm\Model { protected static $_properties = array( 'id', 'titulo', 'slug', 'descripcion', 'contenido', 'categoria', 'imagen', 'usuario_id', 'created_at', 'updated_at', ); protected static $_observers = array( 'Orm\Observer_CreatedAt' => array( 'events' =>...
true
2d1c343815bac0e5bb081650e848b0d802882ffe
PHP
AqieffNoh/Piltonhotel
/PiltonHolten/includes/functions.inc.php
UTF-8
3,635
2.6875
3
[]
no_license
<?php // function emptyInputSignup($name, $birthd, $desc, $email, $phone, $requestdate) { // $result; // if (empty($name) || empty($email) || empty($phone) || empty($address) || empty($birthd) || empty($requestdate)) { // $result = true; // } // else { // $result = false; // }...
true
f77fb32bdd1d5dfdace082344d63b04eee3bd3c9
PHP
anshidai/qupu
/application/model/permission/RoleUserModel.php
UTF-8
1,226
2.640625
3
[ "Apache-2.0", "PHP-3.0" ]
permissive
<?php namespace app\model\permission; use think\Request; use app\model\BaseModel; use app\model\permission\RoleModel; /** * 用户管理角色模型 */ class RoleUserModel extends BaseModel { protected $table = 'qp_role_user'; /** * 检查是否存在记录 * @param int $userid 用户id * @param int $roleid 角色id * @return boole true-存在 fals...
true
227f065f23425572d00cf3d7481c14914e2a0ebd
PHP
newloong/blockpress
/classes/class.entity.php
UTF-8
12,381
3
3
[ "MIT" ]
permissive
<?php /** * BlockPress - Entity * * Represents a generic entity in BlockPress */ namespace LVL99\BlockPress; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Entity { /** * A unique identifier for the entity * * @var array */ public $key = []; /** * A name for th...
true
678715f01ed76041be03ffff84931b8ee2ca6ef5
PHP
gitter-badger/framework-18
/src/Viserio/Translator/PluralCategorys/None.php
UTF-8
1,280
2.546875
3
[ "MIT" ]
permissive
<?php namespace Viserio\Translator\PluralCategorys; use Viserio\Contracts\Translator\PluralCategory as CategoryContract; class None implements CategoryContract { /** * Returns category key by count. * * Locales: az bm bo dz fa id ig ii hu ja jv ka kde kea km kn ko lo ms my sah ses sg th to tr vi wo...
true
e6dee108fe7dfe04010c39b589f7610d88c70357
PHP
nidza5/MiddlewarePricePlenty
/app/Services/src/Sync/TransactionHistory/TransactionHistoryBaseFilter.php
UTF-8
2,306
2.65625
3
[ "MIT" ]
permissive
<?php namespace Patagona\Pricemonitor\Core\Sync\TransactionHistory; use Patagona\Pricemonitor\Core\Infrastructure\Logger; abstract class TransactionHistoryBaseFilter { /** @var int|null */ protected $id; /** @var int|null */ protected $limit; /** @var int|null */ protected $offset; ...
true
7ef52c38127f84ddd9df1850b6c1e627822e2483
PHP
Tilogorn/iSpindel-PHP
/post.php
UTF-8
1,004
2.625
3
[]
no_license
<?php // JSON-POST-Body einlesen // https://stackoverflow.com/a/14794856 $rest_json = file_get_contents("php://input"); $info_arr = json_decode($rest_json, true); // Ein Beispiel-JSON sieht zB so aus: // file_put_contents('./post_log.txt', date('Y-m-d H:i:s') . '-----------------------' . PHP_EOL, FILE_APPEND); f...
true
7084a73d1e70202c74bc2aa114bcb44397f1a5d9
PHP
subotto/website
/graph_global.php
UTF-8
2,158
2.765625
3
[]
no_license
<?php include_once 'inclusions.php'; require_once ('jpgraph/src/jpgraph.php'); require_once ('jpgraph/src/jpgraph_bar.php'); $type = "participants"; if ( array_key_exists("type", $_GET) ) { $type = $_GET["type"]; } $stats = new GeneralStatistics(); $stats->load_graph_data($type); // Create the graph. These two ...
true
223a2e0f77ea578e1d3011fc699fb757f7d72af4
PHP
sakattack1994/Project_Avourh
/welcome.php
UTF-8
3,497
2.71875
3
[]
no_license
<?php if(!isset($_SESSION)) { session_start(); } $alert=""; if(isset($_POST['header']) OR isset($_POST['par1']) OR isset($_POST['par2']) OR isset($_POST['par3']) OR isset($_POST['par4']) OR isset($_POST['par5'])){ $myfile = fopen("myresources/welcome.txt", "w") or die("Unable to open file!"); ...
true
697faded0e93816298282bdd8604c180e6ed37c5
PHP
franko4don/cloudflare
/src/Helpers/Http.php
UTF-8
2,170
2.59375
3
[ "MIT" ]
permissive
<?php namespace Frank\Cloudflare\Helpers; use GuzzleHttp\Client; use Psr\Http\Message\ResponseInterface; use GuzzleHttp\Exception\RequestException; use Exception; /** * @method mixed post($url, $_ = null) * @method mixed get($url, $_ = null) * @method mixed patch($url, $_ = null) * @method mixed post($url, $_ = n...
true
a25709e12d871b109d718fdf646f43bbd563d719
PHP
tkaneda0078/PHP-Learning
/object_and_call_by_reference/object2.php
UTF-8
779
3.5625
4
[]
no_license
<?php /** * Created by PhpStorm. * User: tkaneda * Date: 2017/02/14 * Time: 13:19 * * 継承 */ class Animal { protected $name = null; public function __construct($name) { $this->name = $name; } public function getName() { return $this->name; } } class AnimalKing extends Anima...
true
43d89981f4c4d7b5bbfde1c5e49731f2bcb13563
PHP
include-x/colada
/src/Colada/Option.php
UTF-8
2,583
2.921875
3
[]
no_license
<?php namespace Colada; /** * Optional value. * * @todo Links to examples. * * @author Alexey Shockov <alexey@shockov.com> */ abstract class Option implements \IteratorAggregate, Equalable, \Countable { /** * @param callback $mapper * * @return Option */ abstract public function flat...
true
e5b536a9f334f14fdef6de71a889a59925181d3b
PHP
webcammusica/php
/lista/Ejercicio3.php
UTF-8
1,096
3.078125
3
[ "Apache-2.0" ]
permissive
<?php //Crea una variable que almacene los nombres de una lista de alumnos en forma de lista. Imprímelo en el body. $lista = "<li>Nerea</li>"; $lista .= "<li>Iker</li>"; $lista .= "<li class='bianca'>Bianca</li>"; $lista .= "<li>Adolfo</li>"; $lista .= "<li>Rakel</li>"; $lista .= "<li>Isabel</li>"; $lista .= "<li>Fern...
true
57324dc8ee884bdc75fffc295d961031220fa6ae
PHP
ruanlx22/GOLNG
/map.php
UTF-8
20,550
2.78125
3
[ "MIT" ]
permissive
<?php require_once('company.php'); session_start(); $USER = 'root'; $PASSWORD = ''; $SERVER = 'localhost'; $DB = 'GOLNG'; $conn = mysqli_connect($SERVER, $USER, $PASSWORD, $DB); if (!$conn){ die("Connection to DB failed :" . mysqli_connect_error() . "</br>"); } //echo "company info get successfully!" . "</br>"; $...
true
cbd5d519f92cde8770f2a34164f3b0f724422e9d
PHP
alejoluc/Via
/src/Match.php
UTF-8
1,434
2.796875
3
[ "MIT" ]
permissive
<?php namespace alejoluc\Via; class Match { private $matchFound; private $destination; private $filters; private $filterErrors; /** @var Request */ private $request; public function __construct() { $this->matchFound = false; $this->destination = null; $this->request = null; $this-...
true
12201c01142fcd0052c5351b7bbc6a9e8d2ade42
PHP
AniSoft/WebDevBasicProject
/php-mvc-blog/controllers/TagsController.php
UTF-8
2,366
2.8125
3
[]
no_license
<?php class TagsController extends BaseController { private $db; public function onInit() { $this->db = new TagsModel(); $this->title = "Tags"; } public function index($page = 1, $pageSize = 5) { $this->isAdmin(); $this->page = $page; $this->pageSize = $pa...
true
adae4e4202929db3b217b4cb42ba3944b8a47772
PHP
melnikov-anton/ac-test
/app/Router.php
UTF-8
1,001
2.984375
3
[]
no_license
<?php class Router { private $routes; public function __construct($routes) { $this->routes = $routes; } public function route() { $reqUri = $_SERVER['REQUEST_URI']; $reqPath = explode('?', $reqUri)[0]; $reqMethod = $_SERVER['REQUEST_METHOD']; if (array_key_exists($reqPath, $this->routes)...
true
4af8a879f9e1872915d2124d8faa77896b8f7a6d
PHP
nialltiernan/GameHub
/app/Enums/Genres.php
UTF-8
2,010
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Enums; use MyCLabs\Enum\Enum; class Genres extends Enum { public const ACTION = ['display_name' => 'Action', 'id' => 4]; public const INDIE = ['display_name' => 'Indie', 'id' => 51]; public const ADVENTURE = ['display_name' => 'Adventure', 'id' => 3]; publ...
true
10a47e5364f3af33835abb4576063c21a2546f3d
PHP
snipercool/todophp
/todophp/admin.php
UTF-8
2,253
2.796875
3
[]
no_license
<?php include_once("bootstrap.php"); if (isset($_SESSION['username'])) { $user = new User(); $user->setUsername($_SESSION['username']); //var_dump($_SESSION); } else { header('location: login.php'); } $user = new User(); $users = $user->getAll(); $c...
true
d48f50976de32bf8b91185764302110675788bbb
PHP
antonwo7/beejee
/system/classes/Loader.php
UTF-8
619
2.875
3
[]
no_license
<?php Class Loader{ public static function loadController($controllerName, $controllerMethod = 'Index'){ $controllerFullName = '\\'. 'Controller' . '\\' . $controllerName; $controller = new $controllerFullName(); return $controller->$controllerMethod(); } public static function loadModel($modelName, $...
true
b45520cbb99743384bd184f2723578bebb1e7aaa
PHP
POMAOCHOA/PHP-MIERCOLES
/EJERCICIO_1.PHP
UTF-8
509
2.859375
3
[]
no_license
<?php print_r(getProductos(1)); function getproductos($id) { if($id == 1): return [ 'nombre' =>'Zapatillas', 'precio' => 200.00, 'stock' => 2 ]; endif; if($id == 2): return [ 'nombre' => 'Pelotas', 'precio' => 60....
true
f05057a8ae2576ac321cf4d5d3273a8555bfc7f8
PHP
ntrv/slim-sample-app
/app/Middleware/CORSMiddleware.php
UTF-8
1,105
2.8125
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Middleware; use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; class CORSMiddleware implements MiddlewareInterface { /** @var string */ protected $origin; /** @var array */ private const ALLOW_METHODS = ['GET', 'POST', 'PU...
true
5d4312ffe2d4c4cbfe91ed4b0fd74a6a6746c954
PHP
pagarme/magento2
/Block/Customer/Cards/Container.php
UTF-8
1,573
2.609375
3
[ "MIT" ]
permissive
<?php /** * @author Open Source Team * @copyright 2023 Pagar.me (https://pagar.me) * @license https://pagar.me Copyright * * @link https://pagar.me */ declare(strict_types=1); namespace Pagarme\Pagarme\Block\Customer\Cards; use Magento\Framework\Exception\LocalizedException; use Magento\Frame...
true
4e0da90ea17b2bde59e5de089b26d0f4502c66cb
PHP
HaironTaveras/Sistema_Facturacion
/sistema/editar_proveedor.php
UTF-8
3,467
2.546875
3
[]
no_license
<?php session_start(); if ($_SESSION['rol'] !=1 AND $_SESSION['rol'] !=2) { header("location: ./"); } require "../conexion.php"; if(!empty($_POST)) { $alert=''; if(empty($_POST['proveedor']) || empty($_POST['rnc']) || empty($_POST['contacto']) || empty($_POST['telefono']) || empty($_POST['dire...
true
632d1c0af442aa9212bac860a079b170b2529201
PHP
ronanguilloux/algorithms
/Tests/Problem/PercolationTest.php
UTF-8
2,941
2.640625
3
[]
no_license
<?php namespace LB\Tests\Problem; use LB\Problem\Percolation; class PercolationTest extends \PHPUnit_Framework_TestCase { public function testInitialize() { $p = new Percolation(5); $this->assertTrue($p->isBlockedCell(0)); $this->assertTrue($p->isBlockedCell(24)); } public fu...
true
bf07f53dcec4aae322c7d198831c268691d737bb
PHP
nicokwakk/Team11
/web/include/process_registerWAY1.php
UTF-8
3,674
2.734375
3
[]
no_license
"" && "" && <?php include_once('db.php'); include_once('include_functions.php'); include_once('process_phppostcode.php'); $passw = $email =$add1 =$add2 =$postcode =$country =$city =$fname = $mname =$lname =$pnum =$nlp =""; //$_POST['email']; //$_POST['add1']; // $_POST['add2']; //$_POST['postcode']; // $_POST['countr...
true
6b70d53d7e8e8853dd2806bde672d5f8df2593b7
PHP
sarifishak/newquotation
/userTypes.php
UTF-8
1,802
3.3125
3
[]
no_license
<?php require_once 'dbmanager.php'; ?> <?php class UserTypes{ /* CREATE TABLE userTypes( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, userType VARCHAR(100) NOT NULL, defaultPage VARCHAR(200) NOT NULL ); */ var $id; var $userType; var $defaultPage; var $foundRecord; fun...
true
40d689fb37b8b1ccf0115e17ef1065ee6da97530
PHP
Vandinei/Laravel-5.1-com-Ionic-Cordova
/src/Application/Model/Abstrato/Cliente.php
UTF-8
2,261
3.328125
3
[]
no_license
<?php /** * User: jeferson.ferreira * Date: 22/10/2015 * Time: 20:45 * Crie uma classe com os principais atributos que um cliente deve ter, como nome, cpf, endere�o, etc. */ namespace Application\Model\Abstrato; abstract class Cliente { private $codigo; private $nome; private $tipo; private $ende...
true
3fa84b277cd96d10ca5af03abccbdceb2c5c7675
PHP
darwinyusef/educativo
/app/Models/Links.php
UTF-8
524
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Links extends Model { use HasFactory; protected $fillable = [ 'id', 'uuid', 'url', 'name', 'description', 'notes', 'icon', 'location', 'target', 'visible', 'parent', 'para...
true
bcc7a828d457f46b5de3469c3cabd6fecf80bc8e
PHP
lyhiving/cn-bad-words
/lin/21mmm_tp/Home/Lib/ORG/ArrayO.class.php
UTF-8
4,137
3.046875
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2009 http://domain All rights reserved. // +--------------------------------------------------------...
true
d8ed8dbc98dfa065e039f32f53ffbe57d1382fa4
PHP
RichVRed/lavacharts
/src/Traits/ReverseCategoriesTrait.php
UTF-8
503
2.703125
3
[ "MIT" ]
permissive
<?php namespace Khill\Lavacharts\Traits; trait ReverseCategoriesTrait { /** * If set to true, will draw series from bottom to top. * * The default is to draw top-to-bottom. * * @param boolean $reverseCategories * @throws \Khill\Lavacharts\Exceptions\InvalidConfigValue * @return...
true
145b74db3de50e77f375782986ca616da2a289e9
PHP
SHIVAM8552/school
/reg_process4.php
UTF-8
332
2.5625
3
[]
no_license
<?php if (isset($_POST['register'])) { $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $description = $_POST['description']; echo "Your Information: <br/> Name:".$name." <br> Email: ".$email." <br> Subject: ".$subject." <br> description: ".$description;} else{ echo "Access Forbidd...
true
90edc56d0de9c7036dd0bebf82c79ae2b4ec44cf
PHP
rebet/rebet
/src/Rebet/Mail/Mailer.php
UTF-8
1,450
2.8125
3
[ "MIT" ]
permissive
<?php namespace Rebet\Mail; use Swift_Events_EventListener; use Swift_Mailer; use Swift_Mime_SimpleMessage; use Swift_Transport; /** * Mailer Class * * @package Rebet * @author github.com/rain-noise * @copyright Copyright (c) 2020 github.com/rain-noise * @license MIT License https://github.com/rebet/rebe...
true
947e80e7b5b35d9fd138305a74da9f888640ebad
PHP
LM25TTD/UEA2012
/Instalação/SisQuest/dao/assuntoDao.php
UTF-8
6,152
2.578125
3
[]
no_license
<?php /** *Obtem todas as áreas para carregar o combobox de áreas */ function obterAreas($link){ $resultado = mysql_query("SELECT id_area, nome_area from tb_area",$link); return $resultado; } /** *Obtem todas as disciplinas para carregar o combobox de disciplinas */ function obterDisciplinas($link,$idArea){ ...
true
ce9cba1e5df5b26a2c3b4008ad4c26ef4549c0cd
PHP
allure-framework/allure-php-commons2
/test/Io/SystemClockTest.php
UTF-8
800
2.703125
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Qameta\Allure\Test\Io; use PHPUnit\Framework\TestCase; use Qameta\Allure\Io\SystemClock; use function floatval; use function time; use function usleep; /** * @covers \Qameta\Allure\Io\SystemClock */ class SystemClockTest extends TestCase { public function testTime_Cal...
true
3f979786f521cc1d8db8bc21f18e3b6d94a22a7e
PHP
lehag92/restapi
/app/Log/Logger.php
UTF-8
641
2.90625
3
[]
no_license
<?php namespace Guz\Rest\Log; class Logger { /** * Writes message to error log file * @param string $message */ public static function write($message) { $name = date('d-m-Y') . '.log'; $logDir = ROOT . "Logs/"; //Creates logs dir if (!file_exists($logDir)) {...
true
ec8c4f27b4958028a33e5345a5364339ad2f6e61
PHP
davidverholen/magento2-teaser
/Block/Adminhtml/Button/GenericButton.php
UTF-8
2,437
2.640625
3
[]
no_license
<?php /** * GenericButton.php * * PHP Version 5 * * @category magento2 * @package magento2 * @author David Verholen <david@verholen.com> * @license http://opensource.org/licenses/OSL-3.0 OSL-3.0 * @link http://github.com/davidverholen */ namespace DavidVerholen\Teaser\Block\Adminhtml\Button; use Mag...
true
e3ab9ff0d9382a42e1b42d8723f6e2c88e54fb62
PHP
WsdlToPhp/PackageEws365
/src/ArrayType/EwsArrayOfBodyContentAttributedValuesType.php
UTF-8
6,398
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ArrayType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructArrayBase; /** * This class stands for ArrayOfBodyContentAttributedValuesType ArrayType * @package Ews * @subpackage Arrays * @author WsdlToPhp <contact@wsdltophp.com> */ class EwsArrayOfBo...
true
a49ce73bf416029ba4cb6c89a62095d251f84b3c
PHP
philippebeck/lottery
/src/Controller/UsersController.php
UTF-8
4,136
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Controller; use Pam\Controller\MainController; use Pam\Model\Factory\ModelFactory; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Error\SyntaxError; /** * Class UsersController * @package App\Controller */ class UsersController extends MainController { /** * @var ar...
true
4302eb88c6a8f52f88cd5a666f871f4dc9edf565
PHP
kananasadov123/nextsale
/app/libs/AppConfig.php
UTF-8
893
2.859375
3
[]
no_license
<?php namespace app\libs; use app\repositories\Interfaces\DbInterface; use app\repositories\MSSqlConnection; use app\repositories\MysqlConnection; use app\repositories\PostgreSqlConnection; class AppConfig { private $dataSource; public function __construct() { $this->init(); } private f...
true
32334520ff93c33cc1f44927431bca9ad59d1171
PHP
alexgolod/salary-calculator
/src/Salary/ConditionInterface.php
UTF-8
128
2.65625
3
[]
no_license
<?php namespace App\Salary; interface ConditionInterface { public function match(EmployeeInterface $employee): bool; }
true
1e4ac5493e751c3d2b659c39dbc4f3ec62fb4984
PHP
alyfmendonca/CodeIgniter-project
/application/modules/jumbotron/libraries/component/jumbo/JumboData.php
UTF-8
634
2.53125
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); include_once APPPATH.'libraries/util/CI_Object.php'; class JumboData extends CI_Object{ public function __construct($id){ parent::__construct(); $this->load_data($id); } private function load_data($id){ $rs = $...
true
569b87d1e67e9de042b3a1ad274e1d5556c3827b
PHP
Caroline-Thies/WebEng2
/ppoker/controllers/login.php
UTF-8
652
2.578125
3
[]
no_license
<?php require_once("classes/userModel.php"); if(isset($_POST["loginSubmit"])){ if(isset($_POST["email"]) && isset($_POST["password"])){ $email = $_POST["email"]; $password = $_POST["password"]; $model = new UserModel(); $user = $model->getUserByMail($email); if ($user && $use...
true
de2970d5ba9997463cf46fc3ff45331b9562e002
PHP
hideyuk1-jp/AtCoder
/php/abc047_d.php
UTF-8
367
2.859375
3
[]
no_license
<?php list($n, $t) = ints(); $a = ints(); $min = $a[0]; $maxd = 0; for ($i = 1; $i < $n; ++$i) { $min = min($min, $a[$i - 1]); $d = $a[$i] - $min; if (isset($cnt[$d])) { ++$cnt[$d]; } else { $cnt[$d] = 1; } } ksort($cnt); echo array_pop($cnt); function ints() { return array_map(...
true
c1216829aa02bc570fea5c72049df8ec8edf292d
PHP
edumenu/Report-Specification-react-laravel
/database/seeds/StudiesTableSeeder.php
UTF-8
505
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Study; class StudiesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Study::truncate(); $faker = \Faker\Factory::create(); $array = array ('CDK9', 'QED PROPEL 00...
true
83318dc169ab7e0d178d4d85e6bb96f0eee78773
PHP
yaeli28/Amazon-PHP
/CategoryModel.php
UTF-8
1,259
3.15625
3
[ "Apache-2.0" ]
permissive
<?php require ("Connection.php"); require ("EntityCategory.php"); //Contains database related code for the Category page. class CategoryModel{ //Get all Categories types from the database and return them in an array. function GetAllCategories() { require 'Connection.php'; //Open connec...
true
d2191e90b61ff0917c72382c36982b6f5cbacfbb
PHP
Dawaam/victory
/application/helpers/kemenangan_helper.php
UTF-8
380
2.828125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php function hash_password($password){ return hash('sha512', $password . config_item('encryption_key')); } function wordlimiter($string, $limit = 1){ return str_replace('&#8230;','',word_limiter($string, $limit)); } function dollar($number){ return '$ '.number_format($number,2); } function rupiah($n...
true
9f1284efcec0694020a5a68bf2c6c40e1849c26a
PHP
rdmpage/bibscraper
/citations-new/lookup.php
UTF-8
1,094
2.796875
3
[]
no_license
<?php // Look up citations in BioNames require_once('../lib.php'); //-------------------------------------------------------------------------------------------------- function lookup($reference) { global $config; $ch = curl_init(); $url = 'http://bionames.org/bionames-api/api_lookup.php'; curl_setopt ($...
true
6e7422fcdb387c1b45fce741119bd8732c1b748b
PHP
jordnV/Project-4
/chepomail.php
UTF-8
2,192
2.65625
3
[]
no_license
<?php echo "<link rel='stylesheet' href='form.css'>"; $user = $_REQUEST['username']; $password = $_REQUEST['password']; //$firstname = $_REQUEST['firstname']; //$lastname = $_REQUEST['lasttname']; #using cookies require("session.php"); $variable = $_COOKIE["name"]; echo ('C...
true
a325b85b9ff79c016b2303659b53b685cb305a64
PHP
Schaidhauer/phpfunv2
/app/core/class.uri.php
UTF-8
486
2.984375
3
[]
no_license
<?php Class Uri{ public static function getURI() { $requestURI = explode('/', $_SERVER['REQUEST_URI']); $scriptName = explode('/',$_SERVER['SCRIPT_NAME']); //para remover a pasta do projeto for($i= 0;$i < sizeof($scriptName);$i++) { if ($requestURI[$i] == $scriptName[$i]) { unset($reques...
true
7a857119dd6d4e8bea512ad5eba7fee367ba5d58
PHP
ouracademy/repuestop
/app/Interfaces/Serializables/Company.php
UTF-8
479
3.078125
3
[ "MIT" ]
permissive
<?php namespace App\Interfaces\Serializables; class Company extends Serializable { public $id; public $name; public $ruc; public $email; public $telephone; public $address; public function __construct($id, $name, $ruc,$email, $telephone, $address) { $this->id = $id; $th...
true
231922e1e3d37c10c6aa31fe7e53f453a0057d27
PHP
huynhchanhuy/comvp
/business/auth.php
UTF-8
6,255
2.953125
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. */ class Authentication { private function __construct() { } public static function IsValid($...
true
6cec2db6a0b6bababc19a6421a464b0d44efb035
PHP
dansieg422000/brighte
/src/PropertyAnalyticBundle/Services/FormService.php
UTF-8
4,054
2.65625
3
[]
no_license
<?php namespace App\PropertyAnalyticBundle\Services; use App\PropertyAnalyticBundle\ErrorCode; use Symfony\Component\Form\FormError; use Symfony\Component\Form\FormInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Translation\TranslatorInterface; use Symfony\Component\Validator\Constraint...
true
29669204e0c4bdd797c3cf21811f634eac86b93e
PHP
rommel-rodriguez/booksite
/App/Model/dbsuite.php
UTF-8
222
3.046875
3
[ "MIT" ]
permissive
<?php function pdoErrorString($pdoCon):string{ $arrayInfo = $pdoCon->errorInfo(); $errorString = "THIS PDO ERROR"; foreach($arrayInfo as $info){ $errorString += "<br> {$info}"; } return $errorString; } ?>
true
b0511eff26e22df001ac6182cb10640dd1b9373c
PHP
AlexMoriarty/TannerCode
/Courseware/php/php6/index1.php
UTF-8
552
3.53125
4
[]
no_license
<?php header("content-type:text/html;charset=utf-8"); // 数组函数 //each():返回数组中当前的键/值对并将数组指针向前移动一步 $arr1 = array('id'=>1,'name'=>'tom','age'=>16); var_dump(each($arr1)); //var_dump(each($arr)); //var_dump(each($arr)); //list():把数组中的值赋给一些变量 //list() 仅能用于数字索引的数组并假定数字索引从 0 开始。 //$arr= array(1,2,3); //var_dump(list(...
true
3e3003b38549bf53d20c7dbf07d1725c8dbcd37c
PHP
bpb54321/portfolio
/wp-content/themes/portfolio/parts/components-image-slider.php
UTF-8
2,808
2.71875
3
[]
no_license
<?php //-----------------------Photo Gallery-------------------------------------// $photo_gallery_id_string = get_post_meta( $post->ID, 'slam_photo_order', true); //True that it will be single value //error_log( '------------------------------------$photo_gallery_id_string---------------------------------'); //err...
true
eab2cfd81c88ffd8bd7fdc6c7448edf0c332ff11
PHP
WebDmitryPetrov/IRSIORT
/www_admin/sdt/template/view/messages/messages_list.php
WINDOWS-1251
1,790
2.515625
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: LWR * Date: 20.03.15 * Time: 17:01 * To change this template use File | Settings | File Templates. */ $npp=0; ?> <table class="table table-bordered table-striped"> <thead> <th> / </th> <th> </th> <th> </t...
true
a657fc68aa47fb43cc89bc1964191ae21eeab95b
PHP
frodosghost/PorterStemmerBundle
/Tests/Component/ConfigurationTest.php
UTF-8
1,828
2.515625
3
[ "MIT" ]
permissive
<?php namespace Manhattan\PorterStemmerBundle\Tests\Component; use Manhattan\PorterStemmerBundle\Component\Configuration; /** * ConfigurationTest * * @author James Rickard <james@frodosghost.com> */ class ConfigurationTest extends \PHPUnit_Framework_TestCase { /** * @covers Manhattan\PorterStemmerBundl...
true
06df60853c71ba625ee72976a7d6c70348aa19ec
PHP
WaseemWebDev/onlinebooking-application-for-restaurent
/ajax/search.php
UTF-8
1,268
2.703125
3
[]
no_license
<?php include '../config/connection.php'; try { $textValue = $_POST["value"]; $data = ""; $query = "(SELECT id,name,category FROM restaurents as r WHERE name like'%" . $textValue . "%' order by id asc limit 3) union (select id,name,category from tables as t where name like'%" . $textValue . "%' order by id...
true
f8ad799d78ddcfe4319ed21f14f91f501ebf6bcc
PHP
samorenoq/TISTarea1
/index.php
UTF-8
2,470
3.359375
3
[]
no_license
<?php include 'db_connection.php'; $errores = ['nombre'=>'','apellido'=>'']; //Revisar que haya habido un submit if (isset($_POST['submit'])) { //Revisar que los campos no estén vacíos if (empty($_POST['nombre'])) { $errores['nombre'] = "Nombre no puede estar vac...
true
94c3533aa35f7eeefd111f3c97752a573a1058c4
PHP
jhdielman/atommvc
/atom/app/core/Mail.php
UTF-8
2,656
2.96875
3
[]
no_license
<?php namespace Atom; class MailHelper { public static function getUsePearMail() { return MAIL_USE_PEAR_MAIL; } public static function getHost() { return MAIL_HOST; } public static function getPort() { return MAIL_PORT; } public static function getUse...
true
f78eb3ac10cea61741c2197700e4151b3fb74130
PHP
AbdulrahmanMasoud/helpy
/app/Http/Controllers/API/AuthController.php
UTF-8
6,851
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use App\Http\Requests\API\LoginRequest; use App\Http\Requests\API\RegisterRequest; use App\Models\User; use Illuminate\Support\Facades\Auth; use Symfony\Component\HttpFoundation\Response; use App\Traits\ResponsTrait; use App\Traits\Upload...
true
abbe4d49640bc9a31486b733c2c9b2b8b4cd6cc5
PHP
MarcoSampaio/PHP-Fatec
/aula11/mvc/app.php
UTF-8
787
2.859375
3
[ "MIT" ]
permissive
<?php class App{ //VEM DA URL private $met, $clazz; public function __construct($met,$clazz){ $this->met = $met; $this->clazz = $clazz; } public function startApp(){ $clazzName = ucfirst($this->clazz) . "Controller"; $modelName = ucfirst($this->clazz) . "Mo...
true
09792fd86fd04c77d99645184321fd4467b676b5
PHP
dani452/portfolio
/lib/opinion.php
UTF-8
691
2.609375
3
[]
no_license
<?php if(isset($_POST['opinion'])) { // getting Post values $name=$_POST['name']; $message=$_POST['message']; $isvisible=0; // Insert query $sql="INSERT INTO opinion(FullName,Message,Is_Visible,PostingDate) VALUES(:fname,:message,:isvisible,NOW())"; $query = $db->prepare($sql); // Bind parameters $query->bindParam('...
true
3bc7d562c158b6704d09617c589ad6ada61d35f8
PHP
Erekys/zhframe
/zhframe/Exception/Exception.php
UTF-8
575
2.84375
3
[]
no_license
<?php namespace zhframe\Exception; use zhframe\Exception\IException; class Exception implements IException{ protected $message = 'unknow exception'; protected $code = 0; protected $file = ''; protected $line = ''; public function __construct($message = null,$code = null); { final funct...
true
cbc22e687a92716e2bbb762673ea2c1a8b912d26
PHP
ziggymant/test_92
/public/photo.php
UTF-8
2,379
2.703125
3
[]
no_license
<?php require_once("../includes/initialize.php"); ?> <?php if(empty($_GET['id'])) { $session->message("No photograph ID was provided."); redirect_to('index.php'); } $photo = Photograph::find_by_id($_GET['id']); if(!$photo) { $session->message("The photo could not be located."); redirect_to('i...
true
ac0f23f3e05a40548be4025b94cd8c172cc1bc56
PHP
fontebasso/cart
/src/core/Database.php
UTF-8
1,788
2.78125
3
[ "MIT" ]
permissive
<?php namespace Fontebasso\Core; class Database { private $fields; private $table; private $where = array(); private $driver; public function __construct() { $dotenv = new \Dotenv\Dotenv(__DIR__ . '/../'); $dotenv->load(); $driver = getenv('DB_DRIVER'); ...
true
718d9edd7f34ef79d27da8ee4a75407dcd057686
PHP
ivanbueno/drupal
/7.x/search_api_solr_synonyms/includes/search_api_solr_synonyms_filter_empty_display.inc
UTF-8
2,719
2.609375
3
[]
no_license
<?php /** * @file * Product display data alteration callback. */ /** * Data alteration callback that filters out nodes that * do not have an lf_id */ class CommerceSearchApiEmptyProductDisplayFilter extends SearchApiAbstractAlterCallback { /** * Check whether this data-alter callback is applicable for a c...
true
113e7de840e5c48a43d0227eb624312cc34ad13b
PHP
pojok-webdev/pctransition
/application/modules/groups/models/group.php
UTF-8
801
2.59375
3
[]
no_license
<?php class Group extends CI_Model{ var $has_many = array('user','group_preference'); var $ci; var $id; function __construct($id = NULL){ parent::__construct(); $this->ci = & get_instance(); $this->id = $id; } function get_groups(){ $sql = "select * from groups "; $que = $this->ci->db->query($sql); $r...
true
f58683294b64b5e31dc5b223119524c3a58edffb
PHP
rokasra/PayTask
/src/Tests/CurrencyConverterTest.php
UTF-8
1,275
2.78125
3
[]
no_license
<?php namespace App\Tests; use App\Document\Money; use App\Service\CurrencyConverter; /** * App\Tests\CurrencyConverterTest */ class CurrencyConverterTest extends \PHPUnit\Framework\TestCase { /** * @var CurrencyConverter */ protected $converter; /** * @param Money $data * @param ...
true
37a6c4be962b291e01f26fe1cacbcac6c9381b02
PHP
uwetews/smarty4
/lib/Smarty/Method/ClearCompiledTemplate.php
UTF-8
1,143
2.671875
3
[]
no_license
<?php /** * Smarty Extension * Smarty class methods * * @package Smarty\Extension * @author Uwe Tews */ /** * Class for clearCompiledTemplate method * * @package Smarty\Extension */ class Smarty_Method_ClearCompiledTemplate { /** * Delete compiled template file * * @api * * @pa...
true
da26ef0ab65103a339545b00c55a6080496d8e0d
PHP
kamaludinnoviyanto/Aplikasi-pemesanan-tiket-wisata-Mahuzetick-
/homepage/beli.php
UTF-8
1,675
2.59375
3
[]
no_license
<?php session_start(); // Start session nya // Kita cek apakah user sudah login atau belum // Cek nya dengan cara cek apakah terdapat session username atau tidak if(!isset($_SESSION['username'])){ // Jika tidak ada session username berarti dia belum login header("location: login.php"); // Kita Redirect ke halaman ind...
true
a643142695afa8ca9b65f047a5ffddd686a24cc1
PHP
fbriceno/test
/lib/filter/base/BaseCheckinsFormFilter.class.php
UTF-8
3,307
2.515625
3
[]
no_license
<?php /** * Checkins filter form base class. * * @package facebook * @subpackage filter * @author Your name here */ abstract class BaseCheckinsFormFilter extends BaseFormFilterPropel { public function setup() { $this->setWidgets(array( 'use_id2' => new sfWidgetFormPropelChoice(array(...
true
5a74f959ec907ae6f6c0e904cc5c02f80965a8dc
PHP
epgmedia/powersportsbusiness
/wp-content/plugins/publishthis_plugin/classes/class-endpoint.php
UTF-8
17,357
2.59375
3
[]
no_license
<?php /** * This handles the input and response for the Publishing Endpoints from * the PublishThis platform * Current Actions * 1 - Verify * 2 - Publish * 3 - GetAuthors * 4 - GetCategories */ class Publishthis_Endpoint { function __construct() { add_filter( 'query_vars', array ( $this, 'add_endpoint_tri...
true
57b00346eaff8e5c0dafed47ed879476cefebb8b
PHP
mp5maker/Note
/Codes/PHP Certification/9. Security/process.php
UTF-8
1,532
2.890625
3
[]
no_license
<?php session_start(); $error = array(); $clean = array(); function sanitize($data, $key){ if(!empty($data)): global $error; $data = htmlentities(htmlspecialchars($data)); switch($key): case "username": return (ctype_alpha($data))? $data: ""; break; case "password": ...
true
70d3299ab846b6d524b6c38c124f746996603fff
PHP
undera/pwe
/PWE/Utils/PWEXML.php
UTF-8
11,573
2.796875
3
[ "Apache-2.0" ]
permissive
<?php namespace PWE\Utils; use Exception; use InvalidArgumentException; use PWE\Core\PWECore; use PWE\Core\PWELogger; use PWE\Exceptions\PHPFatalException; use PWE\Modules\Setupable; use RuntimeException; class PWEXML extends PWEXMLFunctions implements Setupable { var $cache_dir; var $parsed...
true
932eea142c0bd962e4003badb7067d6bdc6d090e
PHP
Zelrone/zimbra-api
/src/Zimbra/Mail/Tests/Struct/NewContactAttrTest.php
UTF-8
1,608
2.671875
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Zimbra\Mail\Tests\Struct; use Zimbra\Mail\Tests\ZimbraMailTestCase; use Zimbra\Mail\Struct\NewContactAttr; /** * Testcase class for NewContactAttr. */ class NewContactAttrTest extends ZimbraMailTestCase { public function testNewContactAttr() { $name = $this->faker->word; $va...
true
dbeb7c30c6589d2ffb65357d02d056b929aa68f3
PHP
visi27/zf-cms
/application/classes/Dispatcher.php
UTF-8
2,738
2.765625
3
[]
no_license
<?php class Dispatcher { private static $controllerName; // kerkon nje modifikim, per te redirektuar kerkesat me ajax // ne momentin kur useri nuk eshte i authentifikuar // example: clicking over an autocomplete list while session is expired public static function loadController($controller) { // check aut...
true
26881d11babe39ad76cf3050fc67e951edd3ae11
PHP
maxleesilva/expressao
/expressao.php
UTF-8
1,153
3.046875
3
[]
no_license
<html lang="pt-BR"> <head> <meta charset="utf-8"/> <title>Calculando expressão</title> </head> <body> <p>Crie um script em PHP que receba pela URL do navegador valores numéricos e os armazene nas variáveis $a, $b e $c. Em seguida calcule e escreva o valor da expressão ($a - $b) * $c...
true
1452913b30bce33e911104aa86c19ce7eecc3904
PHP
omargt8/clinica
/src/Controller/AllergysController.php
UTF-8
5,311
2.53125
3
[]
no_license
<?php namespace App\Controller; use App\Controller\AppController; /** * Allergys Controller * * @property \App\Model\Table\AllergysTable $Allergys */ class AllergysController extends AppController { /** * Index method * * @return \Cake\Network\Response|null */ /** * View method ...
true
b8228fe43e5bab557a5bb980c963b2c0eff365cf
PHP
ale252/theatre
/src/theBundle/Entity/contact.php
UTF-8
1,795
2.6875
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php // src/Blogger/BlogBundle/Entity/Enquiry.php namespace theBundle\Entity; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Constraints\NotBlank; use Symfony\Component\Validator\Constraints\Email; use Symfony\Component\Validator\Constraints\MinLength; use Symfony\C...
true
90727dea6d1f7f1fb78eb7bbfdd804030c148e6e
PHP
geeShoe/bluefish
/tests/UnitTests/Users/LoginTest.php
UTF-8
2,138
2.640625
3
[ "Apache-2.0" ]
permissive
<?php /** * Copyright 2019 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
3cadd7cccd5e2038c08271c58fa861ca85a0ee26
PHP
vvasystem/o-data
/src/OData/Parser/XMLReaderAdapterInterface.php
UTF-8
787
2.84375
3
[ "MIT" ]
permissive
<?php namespace OData\Parser; interface XMLReaderAdapterInterface { /** * @param string $xml * @return mixed */ public function loadFromString(string $xml); /** * @param mixed $object * @param string $xPathExpression * @return mixed[] */ public function findObjects...
true
4c4c3fcd72bda0bef749d5cf89961d6533199fdb
PHP
Azure-OSS/azure-storage-php
/src/Blob/Models/CopyBlobFromURLOptions.php
UTF-8
2,029
2.859375
3
[ "MIT" ]
permissive
<?php namespace AzureOSS\Storage\Blob\Models; class CopyBlobFromURLOptions extends BlobServiceOptions { use AccessTierTrait; private $sourceLeaseId; private $sourceAccessConditions; private $metadata; private $isIncrementalCopy; /** * Gets source access condition * * @return A...
true
9415ec97f40f281fd8eed7b3c2f0863b04780bae
PHP
andparsons/mage-app-start
/app/code/Magento/PageBuilderDataMigration/Setup/DataConverter/ColorConverter.php
UTF-8
459
2.953125
3
[]
no_license
<?php declare(strict_types=1); namespace Magento\PageBuilderDataMigration\Setup\DataConverter; /** * Class ColorConverter */ class ColorConverter { /** * Convert a hex value into it's corresponding RGB values * * @param string $hex * * @return string */ public function convert(...
true
a17c6f9eb52f5e7c154314fdbad015a9500e9568
PHP
edy3991/pcto-anagrafe
/api/auth/privileges.php
UTF-8
678
2.875
3
[]
no_license
<?php function hasPermission($id, $type) { global $dbc; $q = "SELECT * FROM Privilege WHERE user = :id AND type = :type"; $stmt = $dbc->prepare($q); $stmt->bindParam(":id", $id, PDO::PARAM_INT); $stmt->bindParam(":type", $type, PDO::PARAM_STR); $stmt->execute(); return $s...
true
760cf0e8793f082e843d1c29d211173c943685e8
PHP
maxim-oleinik/sfAdStatPlugin
/lib/helper/sfAdStatHelper.php
UTF-8
520
3.21875
3
[]
no_license
<?php /** * Посчитать конверсию * * @param numeric|null $dividend * @param numeric|null $divisor * @return numeric|string */ function conversion($dividend = null, $divisor = null) { $dividend = (float) $dividend; $divisor = (float) $divisor; if ($di...
true
29e56f5387ac3123d7439b15d59d76a85800a829
PHP
abdelrahmanMA/ecommerce_sample
/database/seeders/OrderSeeder.php
UTF-8
1,791
2.71875
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Order; use App\Models\Product; use App\Models\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class OrderSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { ...
true
db673fb34b42a0a20b1adba189d6771ef23fbec7
PHP
elminson/laravel8-guzzle
/cool-app/app/Repositories/Photos.php
UTF-8
396
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; class Photos extends HttpRequestClass { public function __construct() { parent::__construct(); } /** * Get All Photos * * @return mixed */ public function all() { return $this->get('photos'); } /** * Find a Photos * * @param $id * * @return mixed ...
true
d5c6fe5662eab7a828c6c8e08cd89d8e3c41a309
PHP
leloulight/SmartCities
/app/Http/Controllers/SocialWorkerController.php
UTF-8
3,273
2.71875
3
[ "MIT" ]
permissive
<?php namespace SmartCity\Http\Controllers; use SmartCity\Facebook; use SmartCity\FacebookTags; use DateTime; /** * This class will retrieve the Facebook user Access Token stored in the database * and use it to connect to Facebook and get the user posts on Facebook */ class SocialWorkerController extends Controller{ ...
true
0e5b99ffa4e9b50ad238d0a45d295bcfec1cf9cc
PHP
assertis/config-lib
/src/Drivers/File/PhpDriver.php
UTF-8
516
2.796875
3
[]
no_license
<?php namespace Assertis\Configuration\Drivers\File; /** * @package Assertis\Configuration\Drivers\File * @author Maciej Romanski <maciej.romanski@assertis.co.uk> */ class PhpDriver extends AbstractFileDriver { const FILE_EXTENSION = 'php'; /** * @param string $path */ public function __cons...
true
84deb4bd8fbcffc76a36b863fd3dfd0437d37527
PHP
schmarjames/University-Dorms
/application/classes/validator.class.php
UTF-8
7,150
3.5
4
[]
no_license
<?php class Validator { /** * * Checks the form inputs to check to see if they * match the rules * * @package University Dorms * @subpackage Validator * @author Schmar James <loyd.slj@gmail.com> */ const REGEX_ALPHA = '/^[A-Z.]+$/i'; const REGEX_ALPHA_NUM = '/^[A-Z0-...
true
3fce35f563b8b8add981b51cf92425c9ac3847e3
PHP
ifa6/AppMaker
/Cls/ApplicaitonRatingManager.php
UTF-8
3,519
2.875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of ApplicaitonRatingManager * * @author zohaib */ class ApplicaitonRatingManager implements IApplicationRatingManager { //put your code here public function AddRating...
true
a179042d75e0c6fb0aa5585afb2ccb2db13eace7
PHP
plenvsdata/enviroflo
/dev/appClasses/appDBClass_OK.php
UTF-8
1,703
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Mauricio * Date: 22/09/17 * Time: 18:13 */ namespace app\dbClass; use mysqli; class appDBClass { private $con; public $result; private $db; public function __construct() { $this->db = parse_ini_file($_SERVER['DOCUMENT_ROOT']."/appConfig/appDat...
true
32674eeec43ab7b25128e8e54c5aea65e88fed7d
PHP
univeros/framework
/src/Altair/Http/Collection/HttpStatusCollection.php
UTF-8
7,304
2.921875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the univeros/framework * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Altair\Http\Collection; use Altair\Http\Contracts\HttpStatusCodeInterface; use Altair\Http\C...
true
d93687f6659b1f6711ee472e43f2da7e58470965
PHP
big-javascript-fan/HyonMoo-WooCom
/hyunmoo/framework/theme/widgets/tabs.php
UTF-8
9,464
2.734375
3
[]
no_license
<?php /** * Adds Tabs Widget. */ class HyunmooTabsWidget extends WP_Widget { /** * Register widget with WordPress. */ function __construct() { parent::__construct( 'tabs', // Base ID 'Hyunmoo: Tabs Widget', // Name array( 'description' => __( 'Popular posts, recent post and comments.', 'hy...
true
d69516f164ec66ecc8f3066c2e716b44fe22be2f
PHP
Gueststream-Inc/iqware
/src/API/GetRatesAndRoomsPricesByUnitNumberResponse.php
UTF-8
1,142
2.671875
3
[ "MIT" ]
permissive
<?php namespace Gueststream\PMS\IQWare\API; class GetRatesAndRoomsPricesByUnitNumberResponse { /** * @var ArrayOfStayValue3 $GetRatesAndRoomsPricesByUnitNumberResult */ protected $GetRatesAndRoomsPricesByUnitNumberResult = null; /** * @param ArrayOfStayValue3 $GetRatesAndRoomsPricesByUnit...
true
76bedbea1d2f71032695e23dc1e9a359f2a47ea3
PHP
ukd1/right_now_search
/classes/Scraper.php
UTF-8
2,089
3.265625
3
[ "MIT" ]
permissive
<?php /** * Scraper class * */ class Scraper { /** * Debug mode - should we output debug information on * the requests we are making? * */ const DEBUG = false; /** * Don't wait too long for feeds, abort the request after * this many seconds * */ const FETCH_TIMEOUT = 3; /** * The user ag...
true