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
cbc463c3487f2f1ab96af693487799e68477dcd3
PHP
infosportlery/Sportlery_mvp
/plugins/sportlery/library/models/LocationTime.php
UTF-8
1,325
2.625
3
[]
no_license
<?php namespace Sportlery\Library\Models; use Model; class LocationTime extends Model { use \October\Rain\Database\Traits\Validation; /* * Validation */ public $rules = [ 'monday_start' => 'before:monday_end', 'tuesday_start' => 'before:tuesday_end', 'wednesday_start' =...
true
5d5fd65bd163a13f79d58034c81e263c565b7d48
PHP
veewee/xpath-reader
/src/Reader/Handler/XmlImportingReader.php
UTF-8
833
2.75
3
[]
no_license
<?php declare(strict_types=1); namespace XpathReader\Reader\Handler; use XpathReader\Reader\Matcher\MatcherInterface; use XpathReader\Reader\Node\NodeSequence; use XpathReader\Reader\XpathReader; class XmlImportingReader { /** * @var MatcherInterface[] */ private array $matchers; /** * @...
true
ef0d6ed8efd52c7209301134bdf6212d053d6a56
PHP
gvsurenderreddy/aastra-phone-php
/src/Clearvox/Aastra/Phone/Contracts/SupportsHardKeyInterface.php
UTF-8
272
2.59375
3
[]
no_license
<?php namespace Clearvox\Aastra\Phone\Contracts; interface SupportsHardKeyInterface { /** * Returns the number of HardKeys on the phone or 0 * if the model doesn't support HardKeys. * * @return int */ public function numberOfHardKeys(); }
true
d942c46b620cc06a57da5eaebe79493ecd2cd4d6
PHP
MatokUK/shunting-yard-php
/src/Tokenizer.php
UTF-8
1,299
3.328125
3
[]
no_license
<?php namespace Matok\ShuntingYard; use Matok\ShuntingYard\Token\ValueToken; class Tokenizer { /** @var string */ private $expression; /** @var int */ private $length; public function __construct($expression) { $this->expression = $expression; $this->length = strlen($this->e...
true
8324ead492f6aa97de1e230647bfcf9ed74e0457
PHP
ningnayang/YNNshop
/backend/filters/RbacFilter.php
UTF-8
930
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php //命名空间 namespace backend\filters; use yii\base\ActionFilter; use yii\web\HttpException; class RbacFilter extends ActionFilter{ //在操作执行之前 public function beforeAction($action) { if(!\Yii::$app->user->can($action->uniqueId)){//如果用户没有权限 //如果没有登录,引导用户登录 if(\Yii::$app->use...
true
871bd35d39ec5f068713d86ddd13fdc3fc19c09c
PHP
Beaves83/cfgweb
/database/seeds/UserTableSeeder.php
UTF-8
1,579
2.5625
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\User; use App\Role; class UserTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //Creamos usuario con el perfil de Administrador $user = new User(); $user->name = ...
true
45e4408b907666d9aadfa8c689a1d3a2d34520b1
PHP
kennCK/ilinya
/api/app/Ilinya/Message/Facebook/Ai.php
UTF-8
4,351
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Ilinya\Message\Facebook; use App\Ilinya\Bot; use App\Ilinya\Tracker; use App\Ilinya\Http\Curl; use App\Ilinya\Message\Facebook\Codes; use App\Ilinya\Message\Facebook\Form; use App\Ilinya\Message\Facebook\Postback; use App\Ilinya\Message\Facebook\QuickReply; use App\Ilinya\Response\Facebook\AiRespo...
true
6f2017b434dade29bef242ac2ecc0ee049a1ead1
PHP
iopiopi1/roadaccident
/module/Application/src/src/models/Application/Entity/User.php
UTF-8
5,832
3.09375
3
[]
no_license
<?php namespace Application\Entity; /** * User */ class User { /** * @var integer */ private $id; /** * @var string */ private $username; /** * @var integer */ private $status; /** * @var \DateTime */ private $dateCreated; /** * @v...
true
747605b75658a1bac45b5443b8662119506a2b3c
PHP
dathalongbay/1901ephp
/day2/7.array/index3.php
UTF-8
882
3.90625
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <h1>Foreach mảng chỉ số ( mảng có key là số ) </h1> <h1>toán tử ! là toán tử phủ định</h1> <?php // Mảng chỉ số $students = array("nguyen van a1","nguyen van a2","nguyen van a3","nguyen van a4","nguyen van a5",); ...
true
f71c02b8a29642bd1e420b334d9f5af919753987
PHP
Funck-Felipe97/APS
/Model/Dao/funcionarioDao.php
UTF-8
3,252
2.71875
3
[]
no_license
<?php include "banco.php"; /** * @Funck */ class FuncionarioDao{ private $connection; function __construct(){ $this->connection = getConnection(); } public function insere_funcionario($funcionario){ $sql = "CALL insere_funcionario(? , ? , ? , ? , ? , ? , ? , ? , ? , ?);"; $stmt = $this->...
true
33aa7dade89b8acf7cc97926119e04c81f300fbb
PHP
rwivan/news
/models/User.php
UTF-8
1,551
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use app\mailer\Mailer; use dektrium\user\helpers\Password; use dektrium\user\models\Token; use dektrium\user\models\User AS BaseUser; /** * Class User. * Модель пользователя. * * @property-read Mailer $mailer * * @package app\models */ class User extends BaseUser { /** * С...
true
9d8e343fd2153fa7c3fa02ffea0d4e60c8bd863a
PHP
gabrielsalazar8486/laravel-ddd-skeleton
/src/ERP/Provider/Application/Find/ProviderFinder.php
UTF-8
696
2.546875
3
[]
no_license
<?php namespace Medine\ERP\Provider\Application\Find; use Medine\ERP\Provider\Application\ProviderResponse; use Medine\ERP\Provider\Domain\ValueObjects\ProviderId; use Medine\ERP\Provider\Infrastructure\Persistence\MySqlProviderRepository; class ProviderFinder { private $repository; public function __con...
true
2e127177be21d11b0d71acb6b7f45e0c326cecd3
PHP
vishnuprasadmuraleedharan/purephp-examples
/insertinto.php
UTF-8
737
2.890625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "pureDb"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "INSERT INTO MyGuests (firs...
true
632efccfbbc7a1e32640b041fcc3c36b9b553082
PHP
chpdesign/depcap
/System/ORM/Types/File.php
UTF-8
13,858
2.65625
3
[ "MIT" ]
permissive
<?php namespace ComposerPack\System\ORM\Types; class File extends Type { protected $valid = []; public function valid($valid = null) { if(is_null($valid)) { return $this->valid; } $this->valid = $valid; } public function blockField($model, $formid, $ur...
true
a90f0b842783394829574e1f86b4f2dde82000cf
PHP
Mateos81/ProjetAutoEcole
/EclipsePHP/Projet/application/BLL/Salarie.php
ISO-8859-1
7,723
3.046875
3
[]
no_license
<?php /** * Projet 2me Anne 3iL * @author CIULLI - MATEOS - ROUX * @version 1.0 * @package BLL */ include "Personne.php"; include "Vehicule.php"; include "Ville.php"; include __DIR__ . "/../DAL/DAL_Salarie.php"; /** * Classe reprsentant un salari. */ class Salarie extends Personne { /** Poste du ...
true
aaad0361d8615c17a63f004df7f8d5f0c61a9e0d
PHP
yfix/yf_utf8_funcs
/utf8_str_split.php
UTF-8
2,094
3.078125
3
[]
no_license
<?php /** * Implementation str_split() function for UTF-8 encoding string. * * @created 2008-12-15 * @license http://creativecommons.org/licenses/by-sa/3.0/ * @author Nasibullin Rinat <nasibullin at starlink ru> * @charset ANSI * @version 1.0.1 */ function utf8_str_split(/*string*/ $string, /*int*/ $lengt...
true
b45485cf16ead13607cac63e0beca8756a3c7790
PHP
binthec/meister
/app/Http/Controllers/Auth/AuthController.php
UTF-8
2,680
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\User; use App\PaidVacation; use Session; use Carbon\Carbon; use Validator; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; use App\Http\Requests; use Illuminate\Http\Request; use Auth; class AuthController extends ...
true
0a97b90f29a529624efa2edae552fe5fe8ab2dab
PHP
GadgetPodda/blog-script
/admin/addpost.php
UTF-8
1,647
2.984375
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Simple Blog Script</title> <style> .add{ padding: 25px; width: 150px; background-color...
true
c7a3d243426214b166fec98ac8441662ca9d088c
PHP
oach/tbd
/ci_test/application/helpers/admin_helper.php
UTF-8
4,801
2.71875
3
[]
no_license
<?php /*function createDropDown($config) { $class = key_exists('class', $config) ? ' class="' . $config['class'] . '"' : ''; $onchange = key_exists('onchange', $config) ? ' ' . $config['onchange'] : ''; $str = ' <select id="' . $config['id'] . '" name="' . $config['name'] . '"' . $class . $onchange . '> '; ...
true
9f4e26f9927a4c54823649ce83e1c391d44d1f70
PHP
ueccssrnd/training2014
/day2/examples/4.php
UTF-8
690
2.84375
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Handling User Input</title> </head> <body> <h1>Login</h1> <p> <?php $submitted = filter_input(INPUT_POST, 'submit'); if(isset($submitted)) { $user = filter_input(INPUT_POST, 'username'); $pwd = filter_input(INP...
true
8b0be06f4d04c565e5a370d55b4ae65d2fe20c48
PHP
shimoikura/basic_php
/Class/task.php
UTF-8
657
3.734375
4
[]
no_license
<?php class Calculater { public $a = 10; public $b = 20; public $c = 30; public $d = 50; public $result; public function add() { $this->result = $this->a + $this->b; return $this->result; } public function sub() { $this->result = $this->d - $this->b; return $this->result; } publi...
true
9fd48369e8a0ffe4f4fbf7c11a7303de3d6de3e6
PHP
myadminpanel/chipinnow
/PHPScript/sports/api/edit_trainer_profile.php
UTF-8
3,419
2.53125
3
[]
no_license
<?php include "../config.inc.php"; require_once '../class.database.php'; include "error_response.php" require_once 'function.php'; $arrRecord = array(); $arrError = array(); foreach ($_POST as $key => $value) { if ($key == 'trainer_id') { if (empty($value)) { $arrError[$key] = $key...
true
2920e99317a824dee5fc12b98a984ceb3f9f112a
PHP
famstutz/Workspace
/zwischenpruefung/view_products.php
UTF-8
1,796
3.140625
3
[]
no_license
<?php require_once("class.product.php"); require_once("class.cart.php"); require_once("class.parameterHelper.php"); session_start(); if (!parameterHelper::isSessionParameterSet("cart")) { $cart = new cart(); parameterHelper::setSessionParameter("cart", $cart); } els...
true
fecbd3e782252c42b847b27e300018cd95f96124
PHP
ccs-open-source/support-artists-project
/app/Models/Stream.php
UTF-8
2,005
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use DateTime; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class Stream extends Model { /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'tags' => 'array' ]; /** * @return mixed|string */ ...
true
351dc1919f2908da1ce8dad4ab8e6b5e0d01dcbf
PHP
shasha007/PUphp
/apps/pufinance/Lib/Model/PufinanceCreditModel.class.php
UTF-8
2,897
2.65625
3
[]
no_license
<?php /** * 用户PU金模型 */ class PufinanceCreditModel extends Model { public function getPufinanceCreditInfo($condtion) { return $this->where($condtion)->find(); } /** * 通过UID获取用户PU金额度信息 * * @param integer $uid 用户UID * * @return mixed */ public function getPufin...
true
d000de1cf5388b1db55488640e5096f827e9319c
PHP
oojacoboo/graphqlite
/tests/Fixtures/Integration/Controllers/ContactController.php
UTF-8
1,997
2.65625
3
[ "MIT" ]
permissive
<?php namespace TheCodingMachine\GraphQLite\Fixtures\Integration\Controllers; use Porpaginas\Arrays\ArrayResult; use Porpaginas\Result; use TheCodingMachine\GraphQLite\Annotations\Mutation; use TheCodingMachine\GraphQLite\Annotations\Query; use TheCodingMachine\GraphQLite\Annotations\Security; use TheCodingMachine\...
true
62d4f9866ea154300b51f0fe1922d2e9a1bf195b
PHP
Geldymuradov/WiRunner
/Aplikacja/tests/TestyKalkulatoraTempa.php
UTF-8
3,321
2.5625
3
[]
no_license
<?php class TestyKalkulatoraTempa extends PHPUnit_Framework_TestCase { /** * @backupGlobals disabled * @backupStaticAttributes disabled */ public function test_kalkulatorTempa_11_0() { $my_activities = new my_activities(); $this->assertNotEquals("Wprowadź prawidłowe wartości!", $my_activities->k...
true
878b8181c31324e093c57c4d3e259f3ef2a61b0b
PHP
Tyke1986/spheres
/profile.php
UTF-8
6,324
2.640625
3
[]
no_license
<?php /* Julien Roger http://www.julienroger.com julienroger@gmail.com November 21, 2011 Last updated: November 21, 2011 */ include("includes/db.php"); include("includes/session.php"); include("includes/components.php"); $profile_situaiton = $_GET['p']; if(empty($profile_situaiton)) { $profile_situaiton = 0; } s...
true
524cbccaab2126068a48d8cb0c227b7d5960917a
PHP
edwardyi/ProblemSet
/App/NumericFloatFunction.php
UTF-8
966
3.3125
3
[]
no_license
<?php namespace ProblemSets; class NumericFloatFunction { public function format($num) { if(!is_numeric($num)) { throw new \InvalidArgumentException(); } $formatted = (string)$num; $isPointExist = strpos(abs($formatted), '.'); $strLength = strlen(ab...
true
6aeafcbce81016efd0d91282b1858a895c0f5024
PHP
rmasters/DoctrineSchemaBuilder
/src/Doctrine/DBAL/Schema/Builder.php
UTF-8
5,240
2.828125
3
[ "MIT" ]
permissive
<?php /** * Copyright (c) 2013 Josiah Truasheim * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
true
b62a13d182c1d6ed8030ef00288eb90d73fb8482
PHP
sysvyz/hurl
/src/Node/Strings/StringLeftTrim.php
UTF-8
217
2.609375
3
[]
no_license
<?php namespace Hurl\Node\Strings; use Hurl\Node\Abstracts\AbstractStringNode; class StringLeftTrim extends AbstractStringNode { public function __invoke(...$data) { return ltrim($data[0]); } }
true
2a2ec3f4148bb27b1c434c07dff2ad7b4abd2b29
PHP
alanly/languageleap
/app/LangLeap/Rank/Answer.php
UTF-8
664
2.9375
3
[]
no_license
<?php namespace LangLeap\Rank; use App; use LangLeap\Quizzes\Answer as VideoAnswer; /** * A ranking quiz-question answer reprsentation structure. * @author Alan Ly <hello@alan.ly> */ class Answer { public $id; public $text; /** * Creates a new Answer instance from a given `LangLeap\Quizzes\Answer`. * @pa...
true
5372a8bd23e61bafa8afae4b1e1fb5960e58f3f6
PHP
FabienLY/tests
/22-activite/correction/2/blog/view/frontend/modify_view.php
UTF-8
1,696
2.5625
3
[]
no_license
<?php $template_title = 'Mon super blog - modifier le commentaire' ; ob_start(); if (!empty ($data_req_get_post['title'])) { ?> <br /> <br /> <div class="news"> <h3> <?php echo '<strong>' . htmlspecialchars(strip_tags($data_req_get_post['title'])) . '</strong> <em>le ' . htmlspecialchars(strip_tags($d...
true
85072957fe68ad46cd39d636b1f04775813f6966
PHP
minsuRob/devJunior
/승민스/workspace/phpProject/array/19.php
UTF-8
328
3.109375
3
[]
no_license
<?php $grades = array('egoing'=>10, 'k8805'=>6, 'sorialgi'=>80); echo $grades['sorialgi'].'<br/>'; $grades = array('egoing'=>10, 'k8805'=>6, 'sorialgi'=>80); foreach($grades as $key => $value){ echo "key: {$key} value:{$value}<br />"; } //foreach grades 배열에 담긴 요소의 숫자만큼 반복문을 실행 ?>
true
f8aa60cb0cadb2c91503c297ff10d529d9fd4824
PHP
lost1987/test_workspace
/core/db.class.php
UTF-8
2,537
3.09375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lost * Date: 14-8-5 * Time: 下午2:57 * 基于PDO:MYSQL的数据库操作类 */ namespace core; class DB { private $_resouce = null; private $_host = null; private $_user = null; private $_passwd = null; private $_port = null; private $_stmt = null; function __...
true
e985e2f95e1c357bab1048e6584b7795e41ffd44
PHP
SACMVK/LudothequeBTS
/job/dao/Config_Dao.php
UTF-8
3,276
3.140625
3
[]
no_license
<?php Function loadConfig() { // stefan : Chargement du fichier $xml_config = simplexml_load_file ( 'data/config/config.xml' ); // stefan : cr�ation d'un array $config = []; // stefan : pour chaque élément ... foreach ( $xml_config as $xml_option ) { // stefan : on ajoute l'option ainsi que son tex...
true
c3366b49d9985df67f97d4d7835f713e191cd594
PHP
andrew-ngui/puzzle-games
/model/PegSolitaire.php
UTF-8
7,600
3.453125
3
[]
no_license
<?php require_once("Game.php"); class PegSolitaire extends Game { public $size; public $num; public $pegs = array(); public $start; // the first click public $end; // the 2nd click public $rows; public $cols; public $pegsLeft; // game board: // 0 .... 6 // . . ...
true
833b6e5c47e2947f9638676661cb305b518e8d72
PHP
ManiiySosa/proyectoDesarrolloSoftware
/config/db.php
UTF-8
494
2.703125
3
[]
no_license
<?php class Database{ public static function connect(){ try{ $db = new mysqli('localhost', 'root', '', 'tienda_camisetas'); if (mysqli_connect_error()) { throw new Exception("base de datos sin servicio "); } }catch(Exception $e){ echo "<script>alert('Error en la base de datos, intentelo de ...
true
bb1e60d70485d0e4c4c1a37c49365ef0ce353277
PHP
fracz/git-exercises
/backend/controllers/AbstractController.php
UTF-8
1,505
2.640625
3
[ "MIT" ]
permissive
<?php namespace GitExercises\controllers; use Exception; use GitExercises\services\HasApp; use GitExercises\services\JsonHelper; use Slim\Exception\Stop; abstract class AbstractController { use HasApp; private $requestBody; protected function getRequestBody() { return $this->requestBody; ...
true
1e59b2b8cbf230801497eae1d858a4c488b855e5
PHP
rahulyhg/latest
/module/Application/src/Application/Service/EventsServiceInterface.php
UTF-8
310
2.578125
3
[]
no_license
<?php namespace Application\Service; interface EventsServiceInterface { public function findAllPosts(); public function findPost($id); public function savePost(\Application\Model\Entity\EventsInterface $data); public function deletePost(\Application\Model\Entity\EventsInterface $data); }
true
37969f67c295d964d616cc0ef26c6f8a927ed665
PHP
walerij/mainweb
/models/CacheRecord.php
UTF-8
1,090
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "cache". * * @property integer $id * @property string $cache_paysystem * @property string $cache_number * @property integer $user_id */ class CacheRecord extends \yii\db\ActiveRecord { /** * @inheritdoc */ public st...
true
5a728f5c79eca31fe3c6b4a8c844ca31f30581b9
PHP
yinanchuan/HHWechat
/lib/core/web.php
UTF-8
3,736
2.953125
3
[]
no_license
<?php /** * web: a microframework for managing web requests. * * web maps url patterns to classes and allows you to install middleware objects * that perform interrequest opertaions. Here is the general lifecycle of a * reqeust according to web: * * 1. request received; * 2. middleware objects instantiated, * ...
true
fa474ff17f0c18c4fb37a819e11af2d460ed16e8
PHP
mykhie/ePT-Repository
/database/crud/MailTemplate.php
UTF-8
23,083
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace database\crud; use database\core\mysql\DatabaseUtils; use database\core\mysql\InvalidColumnValueMatchException; use database\core\mysql\NullabilityException; /** * THIS SOURCE CODE WAS AUTOMATICALLY GENERATED ON Fri 03:16:43 09/12/2016 * * * DATABASE CRUD GENERATOR IS AN OPEN SOURCE...
true
141aafee00b33b3cf59a57bd92d214a531f3d22d
PHP
duke-libraries/drupal-dul-system
/libcatalog/libcatalog.xserver.item.inc
UTF-8
1,132
2.640625
3
[]
no_license
<?php class XServerItem { public static $BARCODE = 'z30-barcode'; public static $SUBLIBRARY = 'z30-sub-library'; public static $COLLECTION = 'z30-collection'; public static $CALLNO_TYPE = 'z30-call-no-type'; public static $CALLNO = 'z30-call-no'; private $_xml; function __construct($xmlElement) { $this->_x...
true
2948fef45692346e56ceeac4a46e036f354f5e78
PHP
kevinliposl/ProyectoGestion
/domain/Career.php
UTF-8
1,085
2.984375
3
[]
no_license
<?php class Career { //Attributes private $careerid; private $careercode; private $careername; private $careergrade; private $careerenclosureid; function __construct() { ; } function getCareerid() { return $this->careerid; } function getCareercode() { ...
true
76395dc8ba548e4be433d30fe7c0d69324ef4981
PHP
pablo2004/noticia
/View/Helper/FormatHelper.php
UTF-8
669
3
3
[]
no_license
<?php class FormatHelper extends AppHelper { public function formatCallback($record, $callback) { $return = ""; if(is_array($record) && is_callable($callback)) { $return = call_user_func($callback, $record); } return $return; } p...
true
d03d015322d17b19765227206e4f6c257027cd7c
PHP
Cash-Money-McCoy/COSC-412
/wordpress/wp-content/plugins/woo-paypalplus/src/Order/OrderDataProviderFactory.php
UTF-8
2,121
2.5625
3
[ "GPL-2.0-or-later", "GPL-2.0-only", "GPL-1.0-or-later", "MIT" ]
permissive
<?php # -*- coding: utf-8 -*- /* * This file is part of the PayPal PLUS for WooCommerce package. */ namespace WCPayPalPlus\Order; use Exception; use OutOfBoundsException; use RuntimeException; use UnexpectedValueException; use WC_Order; use WC_Order_Refund; use WCPayPalPlus\Payment\CartData; use WCPayPalPlus\Paymen...
true
14d93dff3ca2fec8d552260ad7449e6b81881d39
PHP
AzureCloudMonk/The-Art-of-Modern-PHP-8
/src/Part2/Chapter6/equality.php
UTF-8
343
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Book\Part2\Chapter6; echo "\n30 == ' 30 ', " . \var_export(30 === ' 30 ', true) . "\n"; echo "\n30 === ' 30 ', " . \var_export(30 === ' 30 ', true) . "\n"; echo "\ntrue == ' 30 ', " . \var_export(true === ' 30 ', true) . "\n"; echo "\ntrue === ' 30 ', " . \var_export(true ===...
true
91a824bd0407ff8b55fb57226d97079cd45985c9
PHP
janephp/janephp
/src/Component/OpenApi3/Tests/fixtures/github/expected/Model/Traffic.php
UTF-8
1,665
2.875
3
[ "MIT" ]
permissive
<?php namespace Github\Model; class Traffic extends \ArrayObject { /** * @var array */ protected $initialized = array(); public function isInitialized($property) : bool { return array_key_exists($property, $this->initialized); } /** * * * @var \DateTime *...
true
e10c789e550992fe2bcef652a16ec2b40f9808d9
PHP
matheusbiagini/AliceFramework
/Infrastructure/Data/Session.php
UTF-8
1,717
2.71875
3
[]
no_license
<?php declare(strict_types=1); namespace Infrastructure\Data; class Session { private const APP_KEY = '_app_'; public function setAuthenticated() : self { return $this->set('auth', true); } public function setWebsiteAuthenticated() : self { return $this->set('authWebsite', t...
true
b480aa9b0849c2d3984c00e9d49868a29b07a0ab
PHP
RomainMarecat/sessions-api
/src/Traits/TimestampableTrait.php
UTF-8
1,634
2.609375
3
[]
no_license
<?php namespace App\Traits; use Doctrine\ORM\Mapping as ORM; trait TimestampableTrait { /** * @var \DateTime * @ORM\Column(name="created_at", type="datetime") */ private $createdAt; /** * @var \DateTime * @ORM\Column(name="updated_at", type="datetime") */ private $updat...
true
ed5b07b8242da034e3687d53059281c7e55f2892
PHP
sbeland13/twitterconnector
/twitterwebconnect.php
UTF-8
2,068
2.59375
3
[ "MIT" ]
permissive
<?php /*********************************************************************************************************/ /** Twitter Web Connector **/ /** Manages Oauth Authentication To Twitter Search API **/ /** Author Stephane Beland **/ /*...
true
e2e380c2437d959dd5931c8d3aab629053071ee0
PHP
HelitonLeno/app
/admin/app/User.php
UTF-8
1,373
2.9375
3
[]
no_license
<?php class User { private $conn; //construtor user function __construct($conn) { $this->conn = $conn; } //metodo para autenticar login na pagina de admin public function login($anome, $asenha) { try { $stmt = $this->conn->prepare("SELECT * FROM admin WHERE...
true
20536d749bc6b1c0c645886745bf5884da906dab
PHP
markmercedes/AlgoTel
/src/ResourceManagers/Base.php
UTF-8
2,692
2.65625
3
[]
no_license
<?php namespace ResourceManagers; use Utils\Arr; class Base { const MODEL_CLASS = ''; const RESOURCE_LABEL = ''; const RESOURCES_LABEL = ''; const EDITABLE_ATTRIBUTES = []; const LISTABLE_ATTRIBUTES = []; const TOP_LIST_ACTIONS = ['new']; const LISTABLE_ACTIONS = ['edit']; const EDITABLE_ACTIONS = ['...
true
46496bf6369811b3a3bc05e7ad60ab998abfae3d
PHP
dextermb/ledger
/src/Eve/Models/Shared/Mail.php
UTF-8
839
2.53125
3
[]
no_license
<?php namespace Eve\Models\Shared; use Eve\Abstracts\Model; use Eve\Exceptions\ApiException; use Eve\Exceptions\JsonException; use Eve\Exceptions\ModelException; use Eve\Exceptions\NoAccessTokenException; use Eve\Exceptions\NoRefreshTokenException; class Mail extends Model { /** @var string $subject */ public $sub...
true
813518a08a46013cf890662738b88fecf8402286
PHP
A-Marzouk/resume-manager
/app/Traits/Billable.php
UTF-8
603
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Ahmed-pc * Date: 9/22/2020 * Time: 10:54 AM */ namespace App\Traits; use App\Subscription; use App\Billing\paymentGatewayInfo; trait Billable { public static function byStripeCustomerId($id){ $subscription = Subscription::where('stripe_customer_id', $id)->f...
true
531b42eda2b98eaf9044306845458b691465dfec
PHP
Dora-Sellami/GestionEcole
/include/config.php
UTF-8
187
2.59375
3
[]
no_license
<?php // Connexion à la base de données try { $dbh = new PDO('mysql:host=localhost;dbname=ecole', "root", null); } catch(Exception $e) { die('Erreur : '.$e->getMessage()); } ?>
true
9e38044df0eecbf92dda8746b660165ab10c5206
PHP
Gauerdia/Guwon-Ui-Son-Prototype
/PHP-Skripts/enterAnwesenheit.php
UTF-8
2,577
2.8125
3
[]
no_license
<?php $link = mysqli_connect("****", "****", "****", "****"); if (!$link) { echo 'Verbindung schlug fehl'; } if (mysqli_connect_errno()) { echo 'Connection Error'; } $body = file_get_contents('php://input'); $postvars = json_decode($body, true); $heute = date("d-m-Y"); $username = "[" . $heute . "]" . $postva...
true
5c859546d30361c67dea39d64374e916fb38c319
PHP
leo2012/wda-lecture-examples
/17.html_form.php
UTF-8
1,162
2.859375
3
[]
no_license
<?php include "db_secure.php"; if (!($connection = @ mysql_connect(DB_HOST, 'conference', 'conference'))) { showerror(); } $id = mysqlclean($_GET, "id", 11, $connection); if (!isset($id)) { die('no id given'); } if (!mysql_select_db('conference', $connection)) { showerror(); } $query ...
true
dd6ce0b7c59b28e25a0ff1c79f3b842e4419be59
PHP
newphper0703/360InterviewCourses
/innerFunc.php
UTF-8
219
2.765625
3
[]
no_license
<?php /** * File innerFunc.php * Created by PhpStorm. * User: liuzhi1107 * Date: 2019/1/25 * Time: 18:05 */ $a = 1; $b = 2; $c = 3; print($a); echo $a, $b, $c; $arr = [$a, $b, $c]; print_r($arr); var_dump($arr);
true
0528354ad80ab3d2c3726c3eb205682b84cc5418
PHP
AathmanT/AccidentReporting
/test/user-upload-img.php
UTF-8
1,833
2.90625
3
[]
no_license
<!DOCTYPE html> <html> <body> <form method="post" enctype="multipart/form-data"> <input type="file" name="image"> <br> <input type="submit" name="submit" value="Submit"> </form> </body> </html> <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); if (isset($_PO...
true
4bf5ea3cc0db39ac31ccc2efed6d81c19d3f70a1
PHP
rafidmahin20/Shop-Management-System
/Tonwi/control/employeeRegistration.php
UTF-8
2,862
2.59375
3
[]
no_license
<?php include("../db/empDb.php"); $validateName=""; $validateEmail=""; $validateUsername=""; $validatePassword =""; $validateConfirmPassword =""; $validateNid=""; $validateDob=""; $validateMobile=""; $validateAddress=""; $validateGender=""; $gender=""; $validateCheckbox=""; $checkbox=""; $flag=true; ...
true
60a84f5a6b42129dd01fc3c3bd6f37a606c15c5e
PHP
any88/proyecto1
/modelo/PacienteServicio.php
UTF-8
1,571
2.796875
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 PacienteServicio * * @author MARGOTH TAPIA */ class PacienteServicio { private $idps; pri...
true
d81a67b23ba9def3ffb926298d460ec617bcc975
PHP
PrinsFrank/measurement-unit
/src/Length/Inch.php
UTF-8
593
3.109375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PrinsFrank\MeasurementUnit\Length; use PrinsFrank\ArithmeticOperations\ArithmeticOperations; class Inch extends Length { public static function getSymbol(): string { return '″'; } public static function fromMeterValue(float $value, ArithmeticOperation...
true
2afb29f6b1d20e664d56b3ca6ede2c2340646796
PHP
manutdvncom/php0720e_project
/backend/configs/Database.php
UTF-8
359
2.78125
3
[]
no_license
<?php //Tên class sẽ trùng với tên file class Database { public function connection(){ try { $conn = new PDO('mysql:host=localhost;dbname=php0720e_project;port=3306;charset=utf8', 'root',''); return $conn; } catch (PDOException $e){ die('Lỗi: '.$e->ge...
true
d7c4f6f5e23b503efcaa78ee2c7cfef10039ef98
PHP
sanzhumu/xaircraft1.1
/src/Console/Daemon/Daemon.php
UTF-8
6,062
2.546875
3
[ "Unlicense" ]
permissive
<?php /** * Created by PhpStorm. * User: lbob * Date: 2015/12/23 * Time: 16:07 */ namespace Xaircraft\Console\Daemon; use Xaircraft\App; use Xaircraft\Console\Process; use Xaircraft\Core\IO\File; use Xaircraft\DI; use Xaircraft\Exception\ConsoleException; use Xaircraft\Exception\DaemonException; abstract class...
true
d427686494ca82aaa4e7d52a64c9f3a332606507
PHP
ellipsephp/resolvable-value
/src/Executions/ExecutionInterface.php
UTF-8
623
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Ellipse\Resolvable\Executions; use ReflectionParameter; interface ExecutionInterface { /** * Return the value of the given factory by resolving the value of the given * reflection parameter with the given tail and placeholders. * * @param callable ...
true
bba16a2caeba6ba7e6af473f867f90bef7357bdb
PHP
marb61a/phpsocial
/register.php
UTF-8
6,173
2.515625
3
[]
no_license
<?php require 'config/config.php'; require 'includes/functions/email_exists.php'; // Register handler must come before login handler require 'includes/form_handlers/register_handler.php'; require 'includes/form_handlers/login_handler.php'; if(isset($_SESSION["username"])){ hea...
true
d58983b5839ba9a431a1769234237787da009154
PHP
atmtk/php-xbase
/src/Record/FoxproRecord.php
UTF-8
651
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace XBase\Record; use XBase\Enum\FieldType; use XBase\Header\Column; class FoxproRecord extends AbstractRecord { public function get(string $columnName) { $column = $this->table->getColumn($columnName); switch ($column->type) { case FieldType:...
true
e6536f97f20247b4e7e858b4966afa15505dbb55
PHP
gcraig14/ucteswp
/wp-content/plugins/dahz-extender/extensions/modules/shortcodes/includes/params/parallax_option.php
UTF-8
15,304
2.5625
3
[]
no_license
<?php /** * */ if( !class_exists( 'Dahz_Framework_Parallax_Option' ) ){ class Dahz_Framework_Parallax_Option{ public $settings = array(); public $value = ''; public $params = array(); public function __construct( $settings, $value ){ $this->settings( $settings ); $this->value( ...
true
6611e43929a5f29db706d95443ed66503d79f73e
PHP
Gasolene/Rum.tests
/app/code/ui/fbrowser.class.php
UTF-8
5,192
2.65625
3
[]
no_license
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ // +----------------------------------------------------------------------+ // | PHP version 4.3.8, 4.3.9 (tested) | // +----------------------------------------------------------------------+ // | Copyright (c) ...
true
76bf0b8f89eb3f10b8c752594d150437c685613d
PHP
zyhwyl/whathebook
/app/models/UnitsTaskComplete.php
UTF-8
419
2.703125
3
[]
no_license
<?php class UnitsTaskComplete extends Eloquent{ public $table = 'units_task_complete'; public function registerDataInit($id,$task_id,$pub_user,$status){ $this->id=$id; $this->task_id=$task_id; $this->pub_user=$pub_user; $this->status=$status; } public function task(){ return $this->belongsTo("CourseUn...
true
b342f1eabf8d279ac03102b7deba7088e26ada02
PHP
vipxieliang/xieliangtest
/basic-master/protected/modules/mall/models/Item.php
UTF-8
13,767
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This is the model class for table "{{item}}". * * The followings are the available columns in table '{{item}}': * @property string $item_id * @property string $category_id * @property string $title * @property string $sn * @property string $unit * @property integer $stock * @property string $min_...
true
eb167dbe58766691828fe61c7ea75bc2bc1b2a48
PHP
jasonwatt/SMParser
/src/Traits/Song/Subtitle.php
UTF-8
762
3.015625
3
[ "MIT" ]
permissive
<?php namespace Zanson\SMParser\Traits\Song; use Zanson\SMParser\SMException; /** * This text will appear underneath the main title of the * song on the Select Music screen. e.g. "~Dirty Mix~" or "(remix)". * * Class Subtitle * * @package Zanson\SMParser\Traits\Song */ trait Subtitle { public $subtitle = '...
true
599507100709b2f0b782c3da67c156e457f92726
PHP
reliv/rcm-php
/switch-user/src/Acl/DoesAclSayUserCanSU.php
UTF-8
708
2.671875
3
[ "ISC" ]
permissive
<?php namespace Rcm\SwitchUser\Acl; use Rcm\Acl\AclActions; use Rcm\Acl\IsAllowedByUser; class DoesAclSayUserCanSU { protected $isAllowedByUser; public function __construct(IsAllowedByUser $isAllowedByUser) { $this->isAllowedByUser = $isAllowedByUser; } /** * Returns true if ACL sa...
true
c97750c82f73005b1dfc446580c119664ee397e5
PHP
LukasSeglias/ticket-recognition-web
/public_html/components/tours/tours.php
UTF-8
1,227
2.828125
3
[]
no_license
<?php namespace CTI; require_once './components/page.php'; class TourSearchPage implements Page { private $context; private $state; function __construct($context) { $this->context = $context; } public function update() { if ($_SERVER['REQUEST_METHOD'] === 'POST') { $description = strip_tags($_POST['d...
true
70cc1915336d31a631463ce013869b165ec444be
PHP
shayrm/PHP_backup_course
/PhpCourse/PhPCourseSession_05/Ses5_upload_file.php
UTF-8
1,148
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. */ //var_dump($_FILES); if (!empty($_FILES["file_name"]["name"])) { $C_folder= getcwd(); $file_name=$_FILES["f...
true
83cfd2547674acaac7be2454d30b255e64ba8e72
PHP
illuminate/process
/FakeProcessDescription.php
UTF-8
5,151
3.328125
3
[ "MIT" ]
permissive
<?php namespace Illuminate\Process; use Symfony\Component\Process\Process; class FakeProcessDescription { /** * The process' ID. * * @var int|null */ public $processId = 1000; /** * All of the process' output in the order it was described. * * @var array */ pu...
true
2472e31c2c44c508cc35dae7ec25fb308210e8d9
PHP
Mohan-Patidar/Admin-and-user-login-in-php-and-mysql-database-
/user/adminlogin.php
UTF-8
1,511
2.625
3
[]
no_license
<?php include "dbcon.php"; session_start(); if(isset($_SESSION['user'])){ header("location: adminlogin.php"); }?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Admin</title> </head> <body>...
true
2d4cc7221bc77580d2865694f8673e992d95d364
PHP
npush/company
/shell/fixProductDescription.php
UTF-8
2,875
2.5625
3
[]
no_license
<?php /** * Created by nick * Project magento1.dev * Date: 11/23/16 * Time: 11:44 AM */ require_once 'abstract.php'; class Mage_Shell_FixProductDescription extends Mage_Shell_Abstract{ /** * Run script * */ public function run(){ $this->fixDescriptionR('tooltops'); } pu...
true
af9652c300f454be85a89ec5a96d0f113a60a970
PHP
aswitzer/oauth1
/src/Signature/SignerInterface.php
UTF-8
579
2.984375
3
[ "MIT" ]
permissive
<?php namespace Risan\OAuth1\Signature; interface SignerInterface { /** * Get signer method name. * * @return string */ public function getMethod(); /** * Check if the signer is key based. * * @return bool */ public function isKeyBased(); /** * Create...
true
a4516780c740c22b3eec29b784b2c6900007e55f
PHP
ZacharyVasey/Internet_Software-Development_Project
/php/paymentinformation.php
UTF-8
1,568
2.671875
3
[]
no_license
<?php session_start(); $cardType=$_POST['paymentSelect']; $cardNum=$_POST['cardNumberTxt']; $date=$_POST['cardExpirationTxt']; $userID = $_SESSION['userId']; <<<<<<< HEAD $productId = $_SESSION['cart']['1']['productId']; $units = $_SESSION['cart']['1']['units']; $totalPrice = $_POST['total']; ======= >>>>>>> 2e2d8b91...
true
dfe4cad2cb53fef734eff06beb4d8a0f1e1cb748
PHP
Vald0/la_huerta
/pruebas.php
UTF-8
2,546
3.359375
3
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>La Huerta</title> </head> <body> <?php $productos = ($_GET["objectTicket"]); $obj = json_decode($productos, tru...
true
17b9017819a59c24f2de3eb33869a07417dc5428
PHP
wangchlxt/Swarm
/module/Application/src/Application/View/Helper/Utf8Filter.php
UTF-8
2,271
2.8125
3
[]
no_license
<?php /** * Perforce Swarm * * @copyright 2013-2018 Perforce Software. All rights reserved. * @license Please see LICENSE.txt in top-level readme folder of this distribution. * @version 2017.4/1623486 */ namespace Application\View\Helper; use P4\Filter\Utf8; use P4\Validate\MultibyteString; use Zend\V...
true
cb28b344f02b3961dcc28164b346b0e563f34fa1
PHP
jkunggit/webcrawler_api
/config/routes.php
UTF-8
1,083
2.546875
3
[]
no_license
<?php use MyCrawler\CurlMultiCrawler; //use Phalcon\Config; $app->get('/api/crawler', function() use ($app, $config){ $url = $app->request->getQuery('url'); // make sure the url is provided $url_parsed = parse_url($url); $max_curls = 10; if($url_parsed){ if($url_parsed["host"] == "agencyanalytics.com"...
true
f642ebf5bcccfe6be949da0784dee36363d28014
PHP
mamogmx/pagopa.test
/inviarichiesta.php
UTF-8
2,328
2.53125
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. */ error_reporting(E_ERROR); require_once "config.php"; $d = $_REQUEST["richiesta"]; if (!$d){ $result["error"] = Array("NO D...
true
0de29cf5c5b2e3f12f73df94295a4c33b91e67bf
PHP
jeepin95/derbynet
/website/ajax/query.settings.inc
UTF-8
331
2.515625
3
[ "MIT" ]
permissive
<settings> <?php $stmt = $db->prepare('SELECT itemkey, itemvalue FROM RaceInfo'); $stmt->execute(array()); foreach ($stmt as $row) { echo ' <setting key=\''.htmlspecialchars($row['itemkey'], ENT_QUOTES, 'UTF-8').'\'>'; echo htmlspecialchars($row['itemvalue'], ENT_QUOTES, 'UTF-8'); echo '</setting>'."\n"; } ?> <...
true
0272636b9c7be3bfc3d2a784855c0c53301dcdb6
PHP
olesiavm/yii2-currency
/src/SiteRbc.php
UTF-8
1,045
2.625
3
[ "MIT" ]
permissive
<?php namespace olesiavm\currency; use yii\web\NotFoundHttpException; class SiteRbc extends Site { const RBC_EUR = "EUR"; const RBC_USD = "USD"; /** * Get url for parsing * * @param string $day * @param string $currency * @return string */ public function getUrl($day, $c...
true
01bcc9c42fbad4b0c82f5d47c886540c283957d5
PHP
hb08/ASSL
/gmgrotto/app/controllers/CharController.php
UTF-8
28,674
3.15625
3
[ "MIT" ]
permissive
<?php class CharController extends Controller { public function ran(){ // Get desired power level $pl = Input::get('pl'); // PowerPoints Min $min = $pl * 15; // PowerPoints Max $max = (($pl + 1) * 15)-1; // Random from middle $pp = User::rollDic...
true
40e050f556831df27b7db448d9db7cea2401671f
PHP
ashique19/peer
/database/migrations/2016_05_26_172101_create_buyers_new_table.php
UTF-8
1,562
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBuyersNewTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('buyers_new', function (Blueprint $table) { ...
true
ba7384d06b0239bbd9af5f333cfe739adaf4c8e6
PHP
chrodriguez/hydra-php-idp
/src/hydra_adapter.php
UTF-8
853
2.84375
3
[]
no_license
<?php class HydraAdapter { private $pdo; private $user_sql; private $auth_sql; public function __construct($opts) { $this->db = $opts['pdo']; $this->user_sql = $opts['user_sql']; $this->auth_sql = $opts['auth_sql']; } public function doLogin($username, $password) { $stm = $this->db->prepare...
true
432241f2119191c73275d9706eeb50fa0461ffb7
PHP
Kader93/DynamicForm
/tests/DynamicFormTest/Model/FileTest.php
UTF-8
1,516
2.703125
3
[]
no_license
<?php namespace DynamicFormTest\Model; use DynamicForm\Model\FormConfigManager\File; use PHPUnit_Framework_TestCase; class FileTest extends PHPUnit_Framework_TestCase { protected static $filepath; protected static $filetest; protected static $strContentsfile; public static function setUpBeforeClass(...
true
1e8abba3911b9db988aa31c8f789b4db18a07926
PHP
soleneantoine/theoriesecurite
/class/Version.php
UTF-8
1,811
3.0625
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of Version * * @author soleneantoine */ class Version { var $numero; var $estAttaque; var $pdf; var $groupe; function Version($g,$n,$pdf) { $this->numero = $...
true
4d064bc609a5d3a356b63f85d9d982f08214c797
PHP
linkjian/HarborSdk
/src/Sdk.php
UTF-8
2,225
2.734375
3
[]
no_license
<?php namespace Harbor; use Harbor\Http\Client; /** * Class Sdk * @package Harbor * @property \Harbor\Services\Product product * @property \Harbor\Services\Category category * @property \Harbor\Services\Collection collection * @property \Harbor\Services\Order order * @property \Harbor\Services\Webhook webhook ...
true
c483cb5950f407b2a90a78f975bf419b763f1fbb
PHP
cmcclees/PHP-DVD-Laravel
/app/views/dvds/dvds-list.php
UTF-8
1,292
2.765625
3
[]
no_license
<!doctype html> <html> <head> <title>My Dvds</title> <style> .dvds table, .dvds td, .dvds th { border:1px solid black; text-align:center; padding-left:4px; padding-right: 4px; } table { width:100%; } h1 ...
true
1d6ab1405e7b4263f95230f0a8f33b460b3001e3
PHP
alissoncs/descartemap-api
/src/Domain/Address.php
UTF-8
3,162
3.140625
3
[]
no_license
<?php namespace Domain; use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; /** @ODM\EmbeddedDocument */ class Address { /** * @ODM\String */ private $street; /** * @ODM\Int */ private $number; /** * @ODM\String */ private $neighborhood; /** * @ODM\String */ private $city;...
true
f53c2b07b69fd7f3f41ca4d4756168917540d7cf
PHP
symnoureddine/design-patterns
/Creational/Builder/ProductRepository.php
UTF-8
2,093
3.28125
3
[ "Apache-2.0" ]
permissive
<?php namespace DesignPatterns\Creational\Builder; /** * Repository that is responsible for retrieving product's data from database. * It contains high level methods of such retrieval. * An instance of concrete builder is used to implement these methods. * * It corresponds to `Director` in the Builder pattern. ...
true
3216143d203b70735393a756be90900e60b96898
PHP
maury91/NiiCMS
/_proto/func.php
WINDOWS-1252
6,059
2.953125
3
[]
no_license
<?php /* Funzioni CMS ultima modifica 19/03/2013 (v0.6.1) */ //Per evitare che ci siano casini se inclusa 2 volte if (!function_exists("randword")) { include('php4_5.php'); //Variabili globali define('sitemail',$sitemail); define('sitemailn',$sitemailn); function randword($len) { //Una parola alfanumerica ca...
true
d616acca624b45aa83e76b639c6720be4827910a
PHP
CGCE/information-home-page
/submit.php
UTF-8
1,633
2.734375
3
[]
no_license
<?php ini_set('display_errors',1); error_reporting(999); require_once "config.php"; require_once "vendor/CJDB.php"; $data=$_POST["data"]; $token=$_POST["token"]; $db=new CJDBH(); $db->prepare("REPLACE INTO `{$config['dbtable']}` SET `token`=:token, `token-field`=:tokenField, `field`=:field, `value`=:value"); forea...
true
1ff8795c07482edb5bca3cddb2d91bf83f44c85a
PHP
smontieltorres/examenLaravel
/app/Http/Livewire/UserList.php
UTF-8
1,026
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire; use Livewire\Component; use App\User; use Illuminate\Support\Facades\Hash; class UserList extends Component { public $Edit = false, $Create = false; public function render() { //variable de usuarios, pasada a la vista para renderizar la lista de usuarios ...
true