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
b26234984e20170123375bd2e36c1a717d6a1430
PHP
fliglio/health
/src/Behavior/StatusCodeBehavior.php
UTF-8
546
2.765625
3
[]
no_license
<?php namespace Fliglio\Health\Behavior; use Fliglio\Http\Http; use Fliglio\Http\ResponseWriter; use Fliglio\Health\Api\HealthStatus; class StatusCodeBehavior implements Behavior { private $response; public function __construct(ResponseWriter $response) { $this->response = $response; } public function act(H...
true
e0644897eb95298d626ef72a6ea72da0cb01b212
PHP
SpacefulSpecies/html-form
/src/Contract/HtmlForm.php
UTF-8
894
2.859375
3
[]
no_license
<?php namespace Species\HtmlForm\Contract; use Psr\Http\Message\ServerRequestInterface; use Species\HtmlForm\Contract\Node\NodeCollection; use Species\HtmlForm\Contract\Value\ArrayValue; /** * Html form interface. */ interface HtmlForm extends ArrayValue { const POST = 'post'; const GET = 'get'; /*...
true
b1d24f210ba1a90eaf354b9e05c5b33ca303babd
PHP
ec-europa/nesrm_cookbook
/nesrm_cookbook/nesrm_cookbook.drush.inc
UTF-8
4,222
2.671875
3
[]
no_license
<?php /** * @file * Drush commands for NESRM Cookbook module. */ /** * Implements hook_drush_command(). */ function nesrm_cookbook_drush_command() { $items['cookbook-chapter1'] = array( 'description' => 'NESRM Cookbook drush command for its Chapter One.', 'aliases' => array('cbc1'), 'callback' => 'n...
true
dd9241fb267c01581454af2b4526c3d965f107f7
PHP
hasibomi/phps3cli
/src/Core/PhpS3CliBase.php
UTF-8
1,194
3.125
3
[]
no_license
<?php namespace Hasibomi\PhpS3Cli\Core; abstract class PhpS3CliBase { /** * Abstract method that will be run by this class. * * @param array $args */ abstract protected function run($args); private $args; protected $commands = ["help", "upload", "list"]; protected $s3; /** * PhpS3CliBase Constructor...
true
b7eadc4898857dd9cb12d83e9094c0907369ef22
PHP
soysaucekmiz/neenee_v1
/cms/app/Http/Controllers/ItemsController.php
UTF-8
16,140
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; use Validator; use Auth; use App\User; use DB; class ItemsController extends Controller { /* |-------------------------------------------------------------------------- | Constructor(auth認証) |----------------------------...
true
56f56397b0880a0d24409b312a402e9b97b1d47c
PHP
MantasLengvinas/Dienynas
/4.1v/API/loadPeriodTable.php
UTF-8
13,094
2.578125
3
[]
no_license
<?php include "../config/db.php"; if (!function_exists('getLink')) { function getLink($serverName,$userName,$userPassword,$nameOfDataBase){ $link=@mysqli_connect($serverName,$userName,$userPassword,$nameOfDataBase); if(!$link){ echo "connection Error".mysqli_connect_errno(); ...
true
60014c96002f4922c4d8c6b54d01561d378145db
PHP
leolai/apeng
/database/seeds/DatabaseSeeder.php
UTF-8
636
2.6875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; use App\Data; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(DataTableSeeder::class); Mo...
true
36b3c51c9e8da6c22606db6381390a1d2d68d927
PHP
gesior/password-manager-backend
/src/Model/LoginStatus.php
UTF-8
1,214
3.1875
3
[]
no_license
<?php namespace App\Model; class LoginStatus { /** * @var bool */ private $isLogged = false; /** * @var string */ private $username = ''; /** * @var string[] */ private $roles = []; /** * @return bool */ public function isLogged(): bool { ...
true
563e0a498e76eaed8a9ec3224b72249fcafd0833
PHP
sreesankar97/project-management-system
/app/Http/Controllers/MaatwebsiteDemoController.php
UTF-8
6,376
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Redirect; use Illuminate\Http\Request; use \App\Student; use \App\sorted; use \App\faculty; use Excel; use App\geninfo; use App\studentmark; class MaatwebsiteDemoController extends Controller { public function __construct() { $this->middl...
true
d52306d747b46beb52500675e4bda658f04eef48
PHP
kJamesy/tulip
/app/User.php
UTF-8
5,108
2.734375
3
[]
no_license
<?php namespace App; use App\Notifications\AdminPasswordReset; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Laravel\Scout\Searchable; class User extends Authenticatable { use Notifiable; use Searchable; /** * The attributes that are mass assig...
true
d73f03f36f0c8e74d58876baf5a3432b017feacd
PHP
tusharvikky/th_demo
/database/seeds/dbSeeder.php
UTF-8
468
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Carbon\Carbon; use App\Log; class dbSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { for($i = 0; $i < 500; $i++){ $data[] = [ 'id' => NULL, 'v_id'...
true
96ed1f7cac8bbe92f4863b887e0bb08d79554439
PHP
Pablofva/Juna
/database/seeds/AulasTableSeeder.php
UTF-8
6,760
2.578125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Edificio; use App\Aula; class AulasTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //AULAS DE EDIFICIO MOSCONI $id_mos = Edificio::where('nombre', 'Enrique Mosconi')->v...
true
105b7dd31ec3159e7fcaa2dd85b7f8fab6a3f920
PHP
chathuRashmini/IMS_system
/model/Model.php
UTF-8
18,079
2.75
3
[]
no_license
<?php class Model { public static function getlogin($empid, $password, $connect) { $query = "SELECT * FROM users WHERE empid ='{$empid}' AND password='{$password}' AND is_deleted=0" ; $result_set = mysqli_query($connect, $query); return $result_set; } public static function checkEmpid($empi...
true
9e70c1d523bbd478f7ddbd5cd4ce0d62ce8af385
PHP
OpenClassrooms/CodeGenerator
/src/Entities/Object/MethodObject.php
UTF-8
1,660
2.9375
3
[]
no_license
<?php declare(strict_types=1); namespace OpenClassrooms\CodeGenerator\Entities\Object; use OpenClassrooms\CodeGenerator\Utility\MethodUtility; class MethodObject { /** * @var FieldObject[] */ protected array $arguments = []; protected ?string $docComment = null; protected string $name = ...
true
6154352a457d27033b74939fcb3fc26bb33e1fd8
PHP
chalidade/api-bootcam
/app/Http/Controllers/UserController.php
UTF-8
2,228
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\DB; use Illuminate\Http\Request; class UserController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct(Request $request) { $this->request = $request;...
true
1dd8534926b60fa33e9cf569d62704f7bc7be146
PHP
MasayukiHirokawa/tohokaihatu
/app/src/Model/Entity/Product.php
UTF-8
2,039
2.59375
3
[]
no_license
<?php namespace App\Model\Entity; use Cake\ORM\Entity; /** * Product Entity * * @property int $id * @property int $factory_id * @property string $product_code * @property string $name * @property string|null $sakuin * @property float|null $length * @property string|null $tanni * @property int $customer_id ...
true
4f07d8e466bc379fc6d463ad820ee39634194f4b
PHP
cetessai2501/pouressai
/src/Session/SessionInterface.php
UTF-8
638
3.15625
3
[]
no_license
<?php namespace App\Session; interface SessionInterface { /** * Permet de récupérer une information depuis la session. * * @param string $key */ public function get(string $key); /** * Permet de stocker une information en session. * * @param string $key * @param $val...
true
3f305678f5542f5e8dc0f4ad31e91fba874b1f44
PHP
maihavela/blog_laravel
/app/Http/Controllers/ArticlesController.php
UTF-8
4,657
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Article; use App\Tag; use App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests\ArticleRequest; use Illuminate\Support\Facades\Auth; class ArticlesController extends Controller { /** * Create a new article controller instance. */ public function ...
true
33fb80ccedd2c131f40bc670264c3dc43341fedc
PHP
sekka1/SynthTesting
/library/Monitors/apirest.php
UTF-8
5,551
2.625
3
[]
no_license
<?php //$curlMon = new CurlMon(); //$definitionInput = '{"url":"http://v1.api.algorithms.io/jobs/run/40","post_params":{"method":"sync","outputType":"json","datasources":"[3297]","type":"user","item":196},"headers":["authToken: 2cf26b0ee492b7852e92463d41705558"],"regex_check":"recommendation\":\\\[{\"id"}'; //print_r...
true
b67f561ef8e90e55233466068ad58eefbe4e8bb4
PHP
sreikanth/open-swamp
/registry-web-server/var/www/directory-server/app/models/users/LinkedAccount.php
UTF-8
1,108
2.515625
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Models\Users; use Illuminate\Support\Facades\Config; use Models\CreateStamped; use Models\Users\User; use Models\Users\LinkedAccountProvider; class LinkedAccount extends CreateStamped { /** * database attributes */ public $primaryKey = 'linked_account_id'; /** * mass assignment policy */...
true
246cea01f35ae834a4f9bb9ffb22b4e93eeb7fbe
PHP
qjon/ri-filemanager
/Model/FileModel.php
UTF-8
4,637
2.78125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the RIFilemanagerBundle package. * * (c) Rafal Ignaszewski <https://github.com/qjon> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace RI\FileManagerBundle\Model; use Doctrine\ORM\EntityMana...
true
7c19df84c7fdc2a384358357758a3192980058f2
PHP
chaplean/location-bundle
/Utility/LocationUpgradeCitiesUtility.php
UTF-8
2,643
2.796875
3
[]
no_license
<?php namespace Chaplean\Bundle\LocationBundle\Utility; use Chaplean\Bundle\CsvBundle\Utility\CsvReader; use Chaplean\Bundle\LocationBundle\Entity\City; use Chaplean\Bundle\LocationBundle\Repository\CityRepository; use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityNotFoundException; use Symfony\Bridge\Doctrine\R...
true
dd5322db2c545650ba1c02413d7ef6d483172369
PHP
AlMahfuzKhanD/galleryOopAgain
/admin/includes/session.php
UTF-8
3,159
3.1875
3
[]
no_license
<?php class Session { private $signedIn = false; public $userId; public $message; function __construct(){ session_start(); $this->checkTheLogin(); $this->checkMessage(); } // end of construct public function message($msg=""){ if(!empty($msg)){ $_SESSION['message'] = $msg; }else{ return $thi...
true
d9bbfccb973557b857d8f0c1066859511aa64a47
PHP
wikimedia/wikimedia-fundraising-crm-vendor
/coderkungfu/php-queue/src/PHPQueue/Backend/Base.php
UTF-8
1,571
2.90625
3
[ "MIT" ]
permissive
<?php namespace PHPQueue\Backend; abstract class Base { public $last_job; public $last_job_id; protected $open_items = array(); protected $connection; public function __construct(){} abstract public function connect(); public function beforeAdd($data=null){} public function afterAdd(){...
true
5fcbe19ea6b73936980847d89ef571719856c59e
PHP
kissthink/onionwall
/api/curl.class.php
UTF-8
10,358
2.671875
3
[ "WTFPL" ]
permissive
<?php /** * CURL 模似HTTP请求工具, * 作者:袁维 * 参考:郑GG的BLOG * 支持以下功能: * 1:支持ssl连接和proxy代理连接 * 2: 对cookie的自动支持 * 3: 简单的GET/POST常规操作 * 4: 支持单个文件上传或同字段的多文件上传,支持相对路径或绝对路径. * 5: 支持返回发送请求前和请求后所有的服务器信息和服务器Header信息 * 6: 自动支持lighttpd服务器 * 7: 支持自动设置 REFERER 引用页 * 8: 自动支持服务器301跳转或重写问题(谢谢郑GG) * 9: 其它可选项,如自定义端口,超时时间,USERAGENT,Gzip压缩等. * 10:...
true
9c052d0410cab0e3d45c161c856db6bcf4ba4be4
PHP
jalbam/misc_test_zone
/interview_test_php_checkout/src/Cart/BasicLine.php
UTF-8
2,426
3.234375
3
[]
no_license
<?php namespace Checkout\Cart; use Checkout\Line; use Checkout\Item; use Checkout\Item\DiscountsPerQuantity; use \Exception; class BasicLine implements Line { /** @var int */ public $_quantity; /** @var Item */ public $_item; /** * BasicLine constructor. * * @param Item $item * @pa...
true
849a503da214e58a74ac79c5a28c0b417beaeeb2
PHP
archtechx/money
/src/helpers.php
UTF-8
962
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); use ArchTech\Money\Currency; use ArchTech\Money\CurrencyManager; use ArchTech\Money\Money; if (! function_exists('money')) { /** Create a Money instance. */ function money(int $amount, Currency|string $currency = null): Money { return new Money($amount, $currency ??...
true
2bf45c193452b4ccb1743ab2be06ee4a4d9511b1
PHP
JavierVeron/bootflix
/login.php
UTF-8
327
3.46875
3
[]
no_license
<?php $curso = "Desarrollo Web"; $CURSO = "Desarrollo Web"; $a = 5; $b = $a * 5; echo "<p align='center'>Hola, este es el Curso de: <b>" .$curso ."</b></p>"; echo "<p align='center'>El resultado de la variable 'b' es: " .$b ."</b></p>"; if ($b > 10) { echo "Si, es válido!"; } else { echo "No, no es válido!"; ...
true
b294681b5a35025c4d0cf07865034f6c54ad75b5
PHP
cgatherer/brtsy
/web/modules/contrib/feeds/src/Event/ExpireEvent.php
UTF-8
697
2.828125
3
[ "GPL-2.0-only", "MIT" ]
permissive
<?php namespace Drupal\feeds\Event; use Drupal\feeds\FeedInterface; /** * Fired to begin expiration. */ class ExpireEvent extends EventBase { /** * The item id being expired. * * @var int */ protected $itemId; /** * Constructs an EventBase object. * * @param \Drupal\feeds\FeedInterface...
true
5c75bef5630443c521afe89b213ebf90970c0d46
PHP
chuck-cp/bjyltfapi
/wap/models/OrderPlayViewArea.php
UTF-8
1,179
2.53125
3
[]
no_license
<?php namespace wap\models; use Yii; /** * This is the model class for table "{{%order_play_view_area}}". * * @property integer $order_id * @property string $area_name * @property string $throw_number * @property integer $throw_rate */ class OrderPlayViewArea extends \yii\db\ActiveRecord { /** * @inh...
true
0154e6151921ac2653c465b037409ae310bf0025
PHP
drusepth/geeknook
/includes/snippets/happening_right_now.php
UTF-8
1,623
2.75
3
[]
no_license
<?php $mysql = mysql_connect($mysql_location, $mysql_user, $mysql_password) or die('Could not connect to mySQL: ' . mysql_error()); mysql_select_db($mysql_prefix . $mysql_database, $mysql); ?> <ul class="people_list"> <?php if (!isset($whats_happening_right_now_feed_limit)) { die("<strong>Invalid ...
true
6f0fbd355451f5db8cb325ad34287bf0b06f6f50
PHP
DmytroShumeyko/my-procrastination
/controllers/CabinetController.php
UTF-8
4,003
2.65625
3
[]
no_license
<?php /** * Контроллер CabinetController * Кабинет пользователя */ class CabinetController { /** * Action для страницы "Кабинет пользователя" */ public function actionIndex() { // Получаем идентификатор пользователя из сессии $userId = User::checkLogged(); $dates = T...
true
d39016082607e91dca4819818995eaad191c121c
PHP
roramirez/Chileatiende-2.0
/app/Console/Commands/SimilarityML.php
UTF-8
2,019
2.859375
3
[]
no_license
<?php namespace App\Console\Commands; use App\Page; use App\SessionVisit; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class SimilarityML extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'ml:similarity';...
true
5c565c58672615a5187c86a63f995fcaec8f94cd
PHP
rmendoza83/UserEntriesTwitter
/app/Http/Controllers/UserController.php
UTF-8
590
2.875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\User; use Classes\APIResponseResult; use Exception; class UserController extends Controller { /** * Get one user * * @return APIResponseResult */ public function get($id) { try { $user = User::find($id); if (!$user) { r...
true
610d9f35e6a0f239b94304c2655ea60d9623b163
PHP
kirenpadayachee/UrlWebAppProject
/index.php
UTF-8
7,971
3.0625
3
[]
no_license
<?php /* API Demo This script provides a RESTful API interface for a web application Input: $_GET['format'] = [ json | html | xml ] $_GET['method'] = [] Output: A formatted HTTP response Author: Mark Roland Edited : Kiren Padayachee History: 11/13/2012 - Created */ // --- Step 1: Initialize variabl...
true
041bae8a455b27c5bb827998db9b88c2f83c4e9d
PHP
zohac/Zohac-CMS
/src/Service/FlashBagService.php
UTF-8
2,016
3.0625
3
[ "MIT" ]
permissive
<?php namespace App\Service; use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; class FlashBagService { const FLASH_SUCCESS = 'success'; const FLASH_INFO = 'info'; const FLASH_ERROR = 'error'; /** * @var FlashBagInterface */ private $flashBag; /** * @var Tr...
true
7feb2c4dc35ed412ce0a8cb302ccbc3a6d148dce
PHP
alexisribault/todo-angularjs
/app/BookTransformer.php
UTF-8
378
2.53125
3
[ "MIT" ]
permissive
<?php use League\Fractal\TransformerAbstract; class BookTransformer extends TransformerAbstract { public function transform(Book $book) { return [ 'id' => (int) $book->id, 'title' => $book->title, 'published' => (boolean) $book->published, 'date_pub...
true
0177f961e0076c50305499712c3830dd195ed860
PHP
monzee/bloom
/src/Bloom/Seed.php
UTF-8
2,469
2.734375
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Codeia\Bloom; use Codeia\Di\AutoResolve; use Codeia\Di\EmptyContainer; use Codeia\Mvc\EntryPoint; use Codeia\Typical\Responder; use Psr\Container\ContainerInterface; /* * This file is a part of the Bloom project. * See the LICENSE file at the project root for the terms of use. */ /** * Runner fa...
true
a4b25aa2a5bf4333124d93f84dc435e547bff9e2
PHP
eiwuert/Myrepo
/vendorapi_www_root/ecash-services/olp_lib/code/DB/Models/IReferenceable.1.php
UTF-8
427
2.59375
3
[]
no_license
<?php /** Marks a class as being able to have reference models attached to it. * * @author Ryan Murphy <ryan.murphy@sellingsource.com> */ interface DB_Models_IReferenceable_1 { /** Attaches reference tables to this model and returns the new referenced model. * * @param DB_Models_ModelFactory_1 $factory * @re...
true
ce7b1b580d2e70d8830c2844dda4818ab11a341e
PHP
2632324841/Auth
/Auth/ClassNotes.php
UTF-8
7,357
2.796875
3
[ "Apache-2.0" ]
permissive
<?php namespace Auth; use Auth\Tags; class ClassNotes{ protected $Classes; protected $Methods; protected $Tags; public function __construct() { $this->Tags = new Tags(); } public function readClasses($file){ $this->Classes = $file->getClasses(); return $this; ...
true
e89e8c1df59ac7901f39477c761a65f2424ab26e
PHP
pipan/totosomja
/application/helpers/store_helper.php
UTF-8
186
2.671875
3
[ "BSD-3-Clause", "ISC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if (!function_exists("store_to_string")){ function store_to_string($store){ if ($store == 0){ return "nie je na sklade"; } else{ return "na sklade"; } } }
true
068e9dfb19dc69a134ccf645dea2f175b473e7b6
PHP
khantminnaing/is113
/session12/extra_resources/q5/process_login.php
UTF-8
707
2.640625
3
[]
no_license
<?php require_once 'common.php'; $errors = []; // Get the data login.php // Create the DAO object to facilitate connection to the database. // Check if the username exists if ($user) { // If username exists // get the hashed password from the database // ...
true
1c2ca02a1f5c24b937b3cbe43d854b0d07233e36
PHP
AlbertoLR/ProyectoIU_Grupo2
/Models/EXTERNALPARTICULAR_Model.php
UTF-8
3,019
2.859375
3
[]
no_license
<?php require_once(__DIR__."/../core/PDOConnection.php"); class EXTERNALPARTICULAR_Model { private $db; public function __construct() { $this->db = PDOConnection::getInstance(); } public function fetch_all(){//seleccionamos todos los particulares $sql = $this->db->prepare("SELECT * ...
true
202997283c5d8e74bb3ffb74016253d677d0bab8
PHP
samuelsit/PHP_Pool_2019
/Rush00/shop/ft_cart.php
UTF-8
2,583
2.71875
3
[]
no_license
<?php function creationPanier(){ if (!isset($_SESSION['panier'])){ $_SESSION['panier']=array(); $_SESSION['panier']['idProduit'] = array(); $_SESSION['panier']['nameProduit'] = array(); $_SESSION['panier']['qteProduit'] = array(); $_SESSION['panier']['prixProduit'] = array(); ...
true
27a92d0be495a9644973e16acc62ff16037baa73
PHP
man780/crm-strategy
/migrations/m170602_140452_add_link_column_to_broadcasting_internet_table.php
UTF-8
478
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles adding link to table `broadcasting_internet`. */ class m170602_140452_add_link_column_to_broadcasting_internet_table extends Migration { /** * @inheritdoc */ public function up() { $this->addColumn('{{%broadcasting_internet}}', 'link', $this->s...
true
940d451228a2c5ddf812cdec2870763384e99720
PHP
month-time/datamaker
/sqlparse.php
UTF-8
12,648
2.640625
3
[ "MIT" ]
permissive
<?php class CreateSqlParser { const RAND_INT = 'rand_int'; const RAND_FLOAT = 'rand_float'; const INCR_INT = 'incr_int'; const INCR_DAY = 'incr_day'; const INCR_DAY_GROUPLY = 'incr_day_grouply'; const RAND_TIMESTAMP = 'rand_timestamp'; const RAND_TIMESTAMP_MYSQL = 'rand_timestamp_mysql'; ...
true
58686495dde34e33f9a3f628aaba5b9fd8de4f82
PHP
MarinaKr13/VacationSystemPHPProject
/login-script.php
UTF-8
741
2.8125
3
[]
no_license
<?php require('database.php'); // If form submitted, insert values into the database. if (isset($_POST['email'])){ $password = $_POST['password']; $email = $_POST['email']; //Checking is user existing in the database or not $query = "SELECT * FROM `Users` WHERE Email='$email'AND Password='$password'"; $result = mysql...
true
1c0e4cc2f5fa096b5e4df44ec173a4705e527e58
PHP
bgmir607605/bpt-ais
/basic/models/Monitoring.php
UTF-8
1,031
2.640625
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "monitoring". * * @property int $id * @property string|null $date * @property string|null $name * * @property MonitoringMark[] $monitoringMarks */ class Monitoring extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ ...
true
b435446afebef4723a63def213435607552798e5
PHP
cavemanlu/yiiru
/validators/CInlineValidator.php
UTF-8
3,396
2.921875
3
[]
no_license
<?php /** * Файл класса CInlineValidator. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright 2008-2013 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * Валидатор CInlineValidator представляет валидатор, определенный как метод валидируемого объ...
true
9967ce5d5582768e3dfb0667276a48dfa51f4d65
PHP
oversoul/orm
/index.php
UTF-8
645
2.671875
3
[]
no_license
<?php set_exception_handler(function($e) { die($e->getMessage()); }); require 'Mapper.php'; require 'Db.php'; require 'Model.php'; // this is a testing file. class Posts extends Model{ protected $table = 'posts'; protected $properties = array('id', 'title', 'slug', 'content', 'users_id'); protected $belongsTo = [...
true
9f674c080bf1a6eaea21190c488ee276097493f9
PHP
php-lsys/format
/src/classes/LSYS/FormatData/DataHandler.php
UTF-8
414
2.96875
3
[]
no_license
<?php namespace LSYS\FormatData; /** * 格式化数据处理对象接口 */ abstract class DataHandler{ /** * 显示语言 * @var string */ protected $_language; public function __construct($language){ $this->_language=$language; } /** * 格式化方法 * @param string $config * @param mixed $data */ abstract public...
true
c73bcb20eedd219c115eef91023d2043e4810dc6
PHP
wajdijurry/elevatus
/app/core/AbstractMode.php
UTF-8
907
3.21875
3
[]
no_license
<?php /** * User: Wajdi Jurry * Date: 22/09/2021 * Time: ١٢:٠٩ ص */ namespace elevatus\app\core; use elevatus\app\exceptions\DuplicateInputsException; /** * Class AbstractMode * @package elevatus\app\core */ abstract class AbstractMode { /** @var string */ protected $str1; /** @var string */ ...
true
5c9360d1bf9ce83552776741ce073a26907403df
PHP
ag-php/laravel-rebing-graphql-test
/Domain/User/UserService.php
UTF-8
437
2.65625
3
[]
no_license
<?php namespace Domain\User; class UserService { protected $repo; public function __construct(UserRepository $repo) { $this->repo = $repo; } public function login(array $data = []) { try { return $this->repo->get(1); } catch (\Exception $e) { r...
true
f1ea1c1474de6aca11afdc02d351b9e4f14fec26
PHP
bnvStorm/jalousie
/send.php
UTF-8
1,414
2.515625
3
[]
no_license
<?php // var_dump($_POST); if(isset($_POST['submit'])){ $to = "vostok_zhalyuzi@mail.ru"; // Здесь нужно написать e-mail, куда будут приходить письма $from = "mail@vostok-zhalyuzi.kz"; // this is the sender's Email address $_POST['message']@vostok-zhalyuzikz$$N // $name = $_POST['name']; $subject = "...
true
8e5de0656d778805a6b0dc0ef91e19eeac5bdcc5
PHP
abinadi/NewlywedGame
/app/Http/Controllers/ReconcileController.php
UTF-8
2,033
2.515625
3
[]
no_license
<?php namespace Newlywedgame\Http\Controllers; use Newlywedgame\Http\Requests; use Newlywedgame\Http\Controllers\Controller; use Newlywedgame\Question; use Newlywedgame\Result; use Newlywedgame\User; class ReconcileController extends Controller { protected $total; public function __construct() { //$this->middl...
true
23b994b8bfb70896a975be83f101171ceda1f36b
PHP
Ting111/MyGraduationDesign
/verifyImg.php
UTF-8
1,038
2.546875
3
[]
no_license
<?php session_start(); $image = imagecreatetruecolor(100, 30); $bgcolor = imagecolorallocate($image, 255, 255, 255); imagefill($image, 0, 0, $bgcolor); $verifyImg = ""; for ($i=0; $i < 4; $i++) { $font = 6; $color = imagecolorallocate($image, rand(0, 120), rand(0, 120), rand(0, 120)); $dict = "1234567890qw...
true
8b111f9afa9ae5c4c1a06408ff03b8fe0f850264
PHP
abielmagudev/gga.phpvanilla
/app/Request.php
UTF-8
1,493
2.796875
3
[]
no_license
<?php class Request { private $controller, $method, $params; private $routes; public function __construct($url) { require ROOT.'classified/routes.php'; $this->routes = $routes; $url = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL); $url = explode('/', $url); $url = array_filter($url); ...
true
8d57cd560add167be67c676978310a572547369d
PHP
kiddifycom/symfonyversion
/public/Symfony/src/Kiddify/Bundle/WebsiteBundle/Entity/Tag.php
UTF-8
3,513
2.515625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace Kiddify\Bundle\WebsiteBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Tag * * @ORM\Table(name="tag") * @ORM\Entity */ class Tag { /** * @var integer * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") ...
true
be4a82a3341b9c02981137e39d9c5c57535815d8
PHP
JorgeGuillen/Gol
/php/EliminarTorneo.php
UTF-8
554
2.6875
3
[ "MIT" ]
permissive
<?php $host_db = "localhost"; $user_db = "root"; $pass_db = ""; $db_name = "cancha"; $tbl_name = "torneo1"; $conexion = new mysqli($host_db, $user_db, $pass_db, $db_name); if ($conexion->connect_error) { die("La conexion falló: " . $conexion->connect_error); } else{ $query = "DELETE FROM torneo1 where Nombre_Torn...
true
3feda944d6c32f5174d5e9ea868166e463d5df16
PHP
dns2012/indoworker
/backend/models/Facility.php
UTF-8
1,143
2.78125
3
[]
no_license
<?php namespace backend\models; use Yii; /** * This is the model class for table "facility". * * @property int $facility_id * @property string $title * @property string $content * @property resource $photo1 * @property resource $photo2 * @property resource $photo3 * @property resource $photo4 * @property r...
true
431e735e8e6637b8c4529eea9489332af10861f1
PHP
Wofik29/yii2-swoole
/db/mysql/PoolPDO.php
UTF-8
8,584
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace deepziyu\yii\swoole\db\mysql; use PDO; use Yii; use PDOException; use deepziyu\yii\swoole\pool\MysqlPool; use yii\helpers\ArrayHelper; class PoolPDO extends PDO { /** * attributes`s key for MysqlPool */ const POOL_CLASS = 'class'; const POOL_TIMEOUT = 'timeout'; const POOL...
true
6922e48d5b237201a917bb52f50e500b00dc4b02
PHP
florent11/p4_blog
/controller/controleurAdmin.php
UTF-8
4,045
2.71875
3
[]
no_license
<?php require_once 'model/billet.php'; require_once 'model/admin.php'; require_once 'core/viewClass.php'; class controleurAdmin { private $signCom; public function __construct() { $this->administration = new Admin(); $this->billet = new Billet(); } // Gestion de la connexion à l'espace d'administration ...
true
6294a34137ccd41a7441ba01cd366cf5c1fd14c9
PHP
Hopopgit/Webteam
/Validation/connection.php
UTF-8
1,993
2.796875
3
[]
no_license
<?php // Check for empty fields if(empty($_POST['first_name']) || empty($_POST['last_name']) || empty($_POST['login_name']) || empty($_POST['message']) || empty($_POST['encrypt_password']) || empty($_POST['email_id']) || empty($_POST['phone']) || empty($_POST['user_role']) ||...
true
20e8c728ba272e10b2f54b170cadd743da69f29e
PHP
bachphuc/laravel-html-elements
/src/Components/Select.php
UTF-8
1,563
2.78125
3
[ "MIT" ]
permissive
<?php namespace bachphuc\LaravelHTMLElements\Components; /** * type : select * options: * - model: Model class * - data: array key => value */ class Select extends BaseElement { protected $viewPath = 'select'; public function setOptionsAttribute($options){ if(isset($options['model']) && !empty($...
true
a261d070498bacbf1794ee1b30caac4ec02108cc
PHP
skaulana/tidbits
/k5/admin.php
UTF-8
21,190
2.5625
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php ##### ADMIN.PHP ##### Powers the kaulana.com weblog, revision five. ##### This page serves as a dashboard for administrative access to the site. require_once('k5.php'); #################################################### ##### Script Header #################################################### define('PHPMYA...
true
3c9211c46a9df9b6033518aa4f3f77f44da78f3d
PHP
rifkyalamsyah/PHP-OOP
/C4/15.php
UTF-8
1,056
3.796875
4
[]
no_license
<?php // Visibility class Product { // Private /* private string $name; private int $price; */ // Agar bisa di akses // oleh function ProductDummy protected string $name; protected int $price; // Public public function __construct(string $name, int $p...
true
d9c928c8f30989092878cdca1a75e1a44004f27a
PHP
diegonalvarez/SOLID-Bookstore
/App/Services/AdminBookService.php
UTF-8
678
2.796875
3
[]
no_license
<?php namespace App\Services; use App\Interfaces\BookInterface; use App\Interfaces\AdminInterface; class AdminBookService { public function __construct(BookInterface $repo_book, AdminInterface $repo_admin) { $this->repo_book = $repo_book; $this->repo_admin = $repo_admin; } public func...
true
bb6337271d2c5cc8eb56b82342788a07ae366088
PHP
iamevans/php_basic
/book1/1-15/final-01.php
UTF-8
782
3.3125
3
[]
no_license
<?php // php.ini 의 수정없이, 화면에 에러발생시 출력할 수있습니다. error_reporting(E_ALL); ini_set("display_errors", 1); // 기본클래스 a를 생성합니다. class a { final public function copyright (){ // 본 매서드 함수는 대체되지 않습니다. echo "copyright all Right JinyPHP"; } } // 기본 클래스 a를 상속...
true
ec6763ca6cb5ecf4620944b14ae86b47d9c155d3
PHP
breannasmith1/cas222
/aceinthehole/contact/index.php
UTF-8
1,060
2.6875
3
[]
no_license
<?php try { $pdo = new PDO('mysql:host=localhost;dbname=breannas_aceinthehole', 'breannas_breannas', 'Bagheer@1'); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $pdo->exec('SET NAMES "utf8"'); } catch (PDOException $e) { $error = 'Unable to connect to the database server.'; include '../includ...
true
d57dd4ef91215c3245e1fac3f3dc772de4988bd0
PHP
neburs/Import-Video-Test
/Domain/Core/TagCollection.php
UTF-8
2,024
3.5
4
[]
no_license
<?php /** * A Collection of Tags. This class Implements The Iterator Pattern. * @see http://php.net/manual/es/class.iterator.php */ namespace Domain\Core; class TagCollection implements \Iterator { /** @var array */ private $collection = []; /** @var int */ private $position = 0; public funct...
true
56d827a310ed052c429574946c77184d74d3834a
PHP
OrgItdocs/aliyun-sms-sdk
/Lib/SmsServer.php
UTF-8
7,227
2.625
3
[]
no_license
<?php namespace Aliyun\Lib; use Aliyun\Core\Config; use Aliyun\Core\Profile\DefaultProfile; use Aliyun\Core\DefaultAcsClient; use Aliyun\Api\Sms\Request\V20170525\SendSmsRequest; use Aliyun\Api\Sms\Request\V20170525\SendBatchSmsRequest; use Aliyun\Api\Sms\Request\V20170525\QuerySendDetailsRequest; // 加载区域结点配置 Config:...
true
55eca919758d91e38368045683e6647c9e6f0724
PHP
sohailaammarocs/lfc
/vendor/cartalyst/permissions/tests/PermissionTest.php
UTF-8
3,258
2.59375
3
[]
no_license
<?php /** * Part of the Permissions package. * * NOTICE OF LICENSE * * Licensed under the Cartalyst PSL License. * * This source file is subject to the Cartalyst PSL License that is * bundled with this package in the LICENSE file. * * @package Permissions * @version 1.0.1 * @author Cartalyst LLC ...
true
a9e5756c9de5699e6238b42dd31bc9a72df7b287
PHP
D-Suzuki/phalcon-game-api
/apps/models/traits/BeanParts/BonusLotteryId.php
UTF-8
531
2.90625
3
[]
no_license
<?php namespace Traits\BeanParts; Trait BonusLotteryId { /** * おまけ抽選ID * @var int */ protected $bonus_lottery_id = null; /** * おまけ抽選IDセット * @param int $bonus_lottery_id */ public function setBonusLotteryId(int $bonus_lottery_id) { $this->bonus_lottery_id = $...
true
09ae20d3aab8d8ade1175fc89e2cae1decd2192a
PHP
dubems/HouseListing
/app/Http/Requests/AddPhotoRequest.php
UTF-8
672
2.59375
3
[ "MIT" ]
permissive
<?php namespace projectflyer\Http\Requests; use projectflyer\Flyer; use projectflyer\Http\Requests\Request; class AddPhotoRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Flyer...
true
9ea75bce16470c54fc12f27c149895c00ce4509c
PHP
codetestmg/laragym
/app/Services/Service/ServiceCollection.php
UTF-8
1,858
2.78125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Dave * Date: 8/21/2018 * Time: 10:47 PM */ namespace App\Services\Service; use App\Models\Service; /** * Class ServiceCollection * @package App\Services\Service */ class ServiceCollection { /** * @var mixed */ public $meta = []; /** * @var...
true
5595e5fc6c2f8e23a4d1e4a78303853db5dc601e
PHP
anon5r/php-my-library-zf1
/My/Service/Api.php
UTF-8
18,136
2.71875
3
[]
no_license
<?php require_once 'My/Logger.php'; require_once 'My/Utility.php'; require_once 'Zend/Http/Client.php'; /** * My Service API * * ATTENTION: * This class required any external library. * The required external libraries are * "XML_Unserializer" provided by PEAR Library, * and "Zend_Http_Client" provided by Ze...
true
fd360608d72ab390fca2276459da10cb064a0fcd
PHP
ajisukmanagra/Guest-Book-Digital
/database/migrations/2020_11_07_040332_create_tamus_table.php
UTF-8
922
2.609375
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTamusTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tamus', function ...
true
872678521e46edfb7ee6ab38de367ff815545987
PHP
jerclarke/middlememory-twentyfourteen-child-theme
/functions.php
UTF-8
17,400
2.765625
3
[]
no_license
<?php /** * Functions.php for Middle Memory child theme based on Twenty Fourteen */ /** * SARAH: Set this up as child theme of twentyfourteen */ add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style...
true
b4a9c8bbcbae4bf4e8ae4c3799b3b42c07993c9b
PHP
dtm04/personal-website
/test.php
UTF-8
331
2.59375
3
[]
no_license
<?php require __DIR__ . '/vendor/autoload.php'; $randomBeer = \billythekid\PunkApi::create("v2") -> getRandomBeer(); /* echo $randomBeer[0]->id; echo $randomBeer[0]->name; */ $image = $randomBeer[0]->image_url; echo $image; ?> <!DOCTYPE html> <html lang="en"> <head> </head> <body> <img src="<?php echo $image; ?>"> </bo...
true
0f79cf2693bfa85c9c356923328dce24aa3a9642
PHP
selfgod/zdmisapi.izaodao.com
/App/HttpController/Sales/Manage/KpiRank.php
UTF-8
2,017
2.5625
3
[]
no_license
<?php namespace App\HttpController\Sales\Manage; use App\Domain\Sales\Manage\KpiRankDomain; use Base\PassportApi; class KpiRank extends PassportApi { protected function getRules() { $rules = parent::getRules(); return array_merge($rules, [ 'getListNum' => [ 'busines...
true
aa4df1c8faebc78124fbe0a32973c582083e7413
PHP
Shlomo-Tech-Tav/MindTouchImporter
/includes/class.import-word-html.php
UTF-8
16,362
2.78125
3
[]
no_license
<?php class ImportWordHtml extends ImportHtml { protected $list_classes = array( 'MsoListNumber', 'MsoListNumberCxSpFirst', 'MsoListNumberCxSpMiddle', 'MsoListNumberCxSpLast', 'MsoListNumber2', 'MsoListNumber3CxSpFirst', 'MsoListNumber3CxSpMiddle', 'MsoListNumber3CxSpLast', 'MsoListNumber3', 'MsoLi...
true
7c9f82d815a4d69bb7454984256742eb8c03c1d8
PHP
philipwhiuk/webcms
/block/main/item/new.php
UTF-8
1,501
2.609375
3
[]
no_license
<?php class Block_Main_Item_New extends Page_Renderable { function __construct() { $modules = array(); $moduleObjs = Module::getAllLoaded(); foreach ($moduleObjs as $module) { $modules[$module->name] = $module->name; } $this->form = new Form(); $this->form->id = 'b...
true
036c4d10eabc0c988817a8a4c262b85ca825202e
PHP
superPato/library
/classes/Library/LibraryRoutes.php
UTF-8
6,250
2.609375
3
[]
no_license
<?php namespace Library; use Framework\Authentication; use Framework\DatabaseTable; use Library\Controllers\Book; use Library\Controllers\Author; use Library\Controllers\Login; use Library\Controllers\Register; use Library\Controllers\Tag; class LibraryRoutes implements \Framework\Routes { private $booksTable; ...
true
b5e26bbe79ad4711854f96c7afba38b65a861a75
PHP
PHP-SG/sr-3
/src/ComplexException.php
UTF-8
366
2.96875
3
[ "MIT" ]
permissive
<?php namespace Psg\Sr3; class ComplexException extends \Exception implements ComplexExceptionInterface{ public $details = []; public function __construct($details, $message='', $code = 0, \Exception $previous = null){ $this->details = $details; parent::__construct($message, $code, $previous); } public functi...
true
89d93c07e747fd5f998d28b03664e40c90b07a69
PHP
mrimann/RemoteScriptVerifier
/src/Mrimann/RemoteScriptVerifier/CheckResult.php
UTF-8
761
3.109375
3
[ "MIT" ]
permissive
<?php namespace Mrimann\RemoteScriptVerifier; /** * Instance of a check result */ class CheckResult { /** * Some constants for the status */ const STATUS_PASS = 'pass'; const STATUS_FAIL = 'fail'; const STATUS_CRITICAL = 'critical'; /** * The status * * @var string */ protected $status; /** ...
true
d64761734377315aa54510ca5a93d71f23811697
PHP
andrewdallow/SOLID-Principles
/LiskovSubstitutionPrinciple/Example/index.php
UTF-8
1,110
3.421875
3
[]
no_license
<?php namespace Liskov; require_once 'Rectangle.php'; require_once 'Square.php'; class LspTest { private function getRectangle(): Rectangle { return new Square(); } public function main(): void { // Function assumes an object of type Rectangle but gets Square with // diff...
true
7af466614946148e6b2c18546c40ca8856e456a8
PHP
Stolz/php-stubs
/res/php/hw/functions/hw-new-document.php
UTF-8
279
2.5625
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Create new document * * @phpstub * * @param string $object_record * @param string $document_data * @param int $document_size * * @return int Returns the new Hyperwave document. */ function hw_New_Document($object_record, $document_data, $document_size) { }
true
bbc21ec251303f67cb0d201b8c289e24c6a9eba2
PHP
neboj/McDonalds
/src/Drink/Decorator/Lemon.php
UTF-8
458
2.90625
3
[]
no_license
<?php declare(strict_types=1); namespace McDonalds\Drink\Decorator; /** * Class Lemon * @package McDonalds\Drink\Decorator */ class Lemon extends Drink { /** * Lemon constructor. * @param \McDonalds\Drink\Entity\DrinkInterface $drink */ public function __construct(\McDonalds\Drink\Entity\Dr...
true
f5f6fc7517388d7f592940a040f9bf707455856d
PHP
aybarsalvarci/laravel-api
/app/Factory/Collection/CollectionManager.php
UTF-8
1,314
3.4375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Factory\Collection; abstract class CollectionManager { /** * It is a method for adding or subtraction the double elements of two given arrays. * * @param array $first * @param array $last * @param string $operator * @return array */ ...
true
555b34564c5000b21c29fbbf4f8d51c82d555c73
PHP
caniskitiku/p1
/RSPGame.php
UTF-8
3,870
3
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>RockScissorsPaperGame</title> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> ...
true
7f60ebde0f3581eb993746fa922561d5cc5fc263
PHP
ouyanglingyun/think-repositories
/src/command/Model.php
UTF-8
2,629
2.5625
3
[]
no_license
<?php declare (strict_types = 1); namespace lingyun\repositories\command; use think\console\command\Make; use think\console\Input; use think\console\input\Option; use think\console\Output; class Model extends Make { protected $type = "Model"; protected function configure() { parent::configure(); ...
true
78821384e99535d3af7e04136ee400c14a127208
PHP
adimishrax7x/Content-Management-System-CMS-PHP
/admin/adminincludes/add_user.php
UTF-8
2,442
2.703125
3
[]
no_license
<?php if(isset($_POST['add_user'])){ $user_role= $_POST['user_role']; $user_name = $_POST['user_name']; $user_email=$_POST['user_email']; $user_password= $_POST['user_password']; $user_firstname= $_POST['user_firstname']; $user_lastname= $_POST['user_lastname']; $user_image= $_F...
true
8cfe3b632f2d136715cfa41ae1600ab8f6e57dd2
PHP
Zulfigaroglu/GittiGidiyor-BaverageVendingMachine
/test.php
UTF-8
717
2.953125
3
[]
no_license
<?php require "autoloader.php"; use Test\BaseTest; use Test\CabinetTest; use Test\DoorTest; use Test\ShelfTest; $tests = [ CabinetTest::class, ShelfTest::class, DoorTest::class, ]; $testCount = 0; $passedCount = 0; $failedCount = 0; foreach ($tests as $test){ /** * @var BaseTest $testInstanc...
true
3da9132e2e29ee79eb5cb42bb3350644de28f2f3
PHP
AlmazKo/Brill
/Brill/Core/Underworld.php
UTF-8
3,049
2.796875
3
[ "MIT" ]
permissive
<?php /* * Поиск модуля, экшена и * * @author almaz */ require_once CORE_PATH . 'Daemons/Daemon.php'; class Underworld { public static function countRunningDaemons() { return 0; } /** * Вызвать демона * @param string $daemon * @return Daemon */ public function summon() ...
true
b9b65c4995f0df109e5efeaa6db74fc09ae92af9
PHP
DEMarquez/Programacion_2015-2016
/Tema2/practica28.php
UTF-8
434
3.859375
4
[]
no_license
<html> <head> <title>Practica 28</title> </head> <body> <h2>comprobamos cuantos numeros hay</h2> <p> <?php $num=17848600;//8 cifras $cifras=7;//num/10 --> (int)$num/10 $contador=0; while($num > 0){ $num=(int)($num/10);//1784860,0 $num=(int)$num;//1784860 $contador++; } if($cifras != $con...
true
68cf9e6e036923d0f84fa2fa0fe118f70339385c
PHP
strata-mvc/strata
/src/Model/CustomPostType/Registrar/TaxonomyRegistrar.php
UTF-8
4,149
2.53125
3
[ "MIT" ]
permissive
<?php namespace Strata\Model\CustomPostType\Registrar; use Strata\Model\CustomPostType\LabelParser; use Strata\Model\CustomPostType\Registrar\Registrar; use Strata\Model\Taxonomy\Taxonomy; use Strata\Strata; use Strata\Utility\Hash; /** * Registers a taxonomy based on a Models' configuration. */ class TaxonomyReg...
true
2edb04ce5d32a8739d11ef870d8b9f2e229ce41a
PHP
kool-man/Particulier-Coach
/vendor/ibrows/newsletter-bundle/Model/Block/BlockInterface.php
UTF-8
1,901
2.578125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace Ibrows\Bundle\NewsletterBundle\Model\Block; use Ibrows\Bundle\NewsletterBundle\Model\Newsletter\NewsletterInterface; use Ibrows\Bundle\NewsletterBundle\Renderer\RenderableInterface; interface BlockInterface extends RenderableInterface { public function getId(); public function getPosition();...
true
839766900f2250e85005d15b529c19b3941245c5
PHP
andreosoft/yuta.base_back
/src/modules/crm/models/PlanFloor.php
UTF-8
1,727
2.625
3
[]
no_license
<?php namespace modules\crm\models; class PlanFloor extends \modules\activity\models\Model { public $_user; public $fields = [ 'id' => null, 'name' => null, 'image' => null, 'user_id' => null, 'createdon' => null, 'info' => null, 'coords' => null, ...
true
15b6ab514b1e0d73930bba76a384d9076597255d
PHP
hadymaher311/ADB_PROJECT
/relational/PostsSeeder.php
UTF-8
1,183
2.90625
3
[]
no_license
<?php class PostsSeeder { protected $_db; protected $_faker; public function __construct() { $this->_db = DB::getInstance(); $this->_faker = Faker\Factory::create(); } public function seed($pdo, $seeds = 1) { $records = ""; // $user_id = $this->_db->getLas...
true
b52a9ebcfdadddbb80f7cba99074c8369fe56a33
PHP
Tagarela76/voc
/vwm/extensions/reports/classes/RprojectCoat.class.php
UTF-8
8,850
2.734375
3
[]
no_license
<?php class RprojectCoat extends ReportCreator implements iReportCreator { private $frequency; private $rule; private $monthYear; private $data; function RprojectCoat($db, $reportRequest = null) { $this->db = $db; if (!is_null($reportRequest)) { $this->categoryType = $reportRequest->getCategoryType(); ...
true