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
3d5265ec3e286c96428e84a255abfeb7dca86aee
PHP
tanzeyl/expense-manager-website
/templates/signup_script.php
UTF-8
1,365
2.515625
3
[ "MIT" ]
permissive
<?php session_start(); require '../includes/common.php'; $n = 1; $name = mysqli_real_escape_string($con, $_POST['name']); $email = mysqli_real_escape_string($con, $_POST['email']); $regrex_email = "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i"; $_SESSION['email'] = $email; if (!preg_match($re...
true
fe2941254d18b5e047e76ca22a534c18c272d464
PHP
LilyDubas/Nimbl
/Model/update_user_info.php
UTF-8
1,220
3.0625
3
[]
no_license
<?php // Update a user's info in the database function update_user_info($userID, $password, $user_name, $setSQL, $bindParams){ require_once 'params.php'; // Connect to the database $db = connectDb(); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); try { // Prepare the statement with paramete...
true
baf609703adadeffe79d5535582f563e3d747889
PHP
xxxMaIn/Web-design-project
/manage_attendance_verify.php
UTF-8
4,850
2.625
3
[]
no_license
<?php include '../settings/connect.php'; if(session_id() == '') { session_start(); } // START SESSIONS foreach($_POST as $key => $value) { $data[$key] = filter($value); } $continue_add = 0; // Verify if(isset($_POST) && array_key_exists('idsearch',$_POST)){ $id = $data['idquerry']; $eventID = ...
true
ad9e9ddcb3af3d306578249f4f843ec7bf53958b
PHP
niden/cardoe
/tests/_data/fixtures/Traits/LoggerTrait.php
UTF-8
2,138
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of the Phalcon Framework. * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ namespace Phalcon\Test\Fixtures\Traits; use DateTime; use Phalcon\Logger; use Phalcon\Logger\Ada...
true
c4823449a8d7ee14a23d9a6bb150c9d1e02eede2
PHP
azuya/mmi-api
/classes/kohana/mmi/api.php
UTF-8
24,695
2.75
3
[ "ISC", "BSD-2-Clause" ]
permissive
<?php defined('SYSPATH') or die('No direct script access.'); /** * Make API calls to 3rd-party services. * This class is an attempt to generalize Abraham Williams Twitter OAuth class. * * @package MMI API * @author Me Make It * @copyright (c) 2010 Me Make It * @copyright (c) 2009 Abraham Williams * @license ...
true
7c6a92ac6c7665d95c080487e8d46f8a6c205062
PHP
menatwork/syncCto
/src/Contao/API.php
UTF-8
690
2.625
3
[]
no_license
<?php /** * Contao Open Source CMS * * @copyright MEN AT WORK 2014 * @package syncCto * @license GNU/LGPL * @filesource */ namespace MenAtWork\SyncCto\Contao; /** * Class API * * Bridge between SyncCto and Contao. * * @package SyncCto\Contao */ class API { /** * Convert a byte value into...
true
5406da310b408a3857f4ab095a4cf627b79507e1
PHP
imay-dev/sandbox-test
/app/Accounting/PaymentCore.php
UTF-8
3,970
2.71875
3
[]
no_license
<?php namespace App\Accounting; use App\Entities\Invoice; use App\Entities\Service; use App\Entities\Transaction; use App\Entities\User; use App\Packages\Payment\Facades\Payment; use App\Packages\Payment\Invoice as PaymentInvoice; /** * Class PaymentCore * @package App\Accounting */ abstract class PaymentCore { ...
true
a01cfd27e581c9adb7012231ea3dbfd3950fd364
PHP
QueenieCplusplus/Backend_Script2
/Response.php
UTF-8
895
2.875
3
[]
no_license
<?php // below functions shall encapsulated in Class. $response = array(); //Response function setResponse($key, $value) { $this->response[$key] = $value; } //Success Response function successResponse($response_code = null) { //Set Success Status $this->response['return_code'] = 1; $thi...
true
4e98bd2f3fb87923d9fc86dad2885e2115c6023e
PHP
BuildLike/MPMLand
/src/mpm/Tools/Land/LandInfo.php
UTF-8
810
2.765625
3
[]
no_license
<?php namespace mpm\Tools\Land; class LandInfo{ /** @var array*/ private $c; public function __construct(int $num, Player $get){ $this->c = LandAPI::getAll(); $this->InfoPrint($num, $get); return true; } public function InfoPrint(int $num, Player $pl){ $inf = $this->c['Land'] [$num]; $p...
true
666c9473d8eeb28d82cbaa908bfbecaf057c2d4b
PHP
cjwest/stanford_subsites
/plugins/views_plugin_argument_default_subsite.inc
UTF-8
1,775
2.625
3
[]
no_license
<?php /** * @file * Contains the subsite argument default plugin. */ /** * Default argument plugin to provide a subsite as an option. */ class views_plugin_argument_default_subsite extends views_plugin_argument_default { function option_definition() { $options = parent::option_definition(); // $options[...
true
eefaddc6b5d69eec3509da9117de38c2d77accec
PHP
mishazapl/Create_Forum
/mvc/Controller/Profile/Authorization/Profile.php
UTF-8
2,154
2.640625
3
[]
no_license
<?php namespace liw\mvc\Controller\Profile\Authorization; use liw\mvc\Model\Profile\ProfileUser; class Profile { private $login; private $Age; private $linkPhoto; public function getDataUser($autologin) { $getData = new ProfileUser(); $getData->connectBD(); $result = $get...
true
d88a55831173006ba6ce5bd3b03936a272562538
PHP
kortigor/framework
/core/orm/SluggableTrait.php
UTF-8
739
2.828125
3
[]
no_license
<?php declare(strict_types=1); namespace core\orm; trait SluggableTrait { /** * Get sluggable config. * * @return array * @see \core\orm\SluggableGenerator for available config options. */ abstract public function sluggable(): array; /** * Get generated slug. * ...
true
c4f791d458ce8d0e95e4865d26be85d321de042d
PHP
salmannotkhan/Pied_Piper
/includes/admin/managestaff.php
UTF-8
3,351
2.75
3
[]
no_license
<?php if(isset($_POST["submit"])){ switch ($_POST["submit"]) { case 'Add User': $query = "SELECT * FROM USER_DETAILS WHERE UNAME = {$_POST["username"]}"; if($conn->query($query)){ echo '<script>alert("User already exist")</script>'; ...
true
3e4815813bc054d745caa4e8ea8260899c9f543d
PHP
Stepanya/hms
/dashboard/Reports/appointmentreport.php
UTF-8
3,136
2.515625
3
[]
no_license
<?php session_start(); include "../inc/connect.php"; function format_date($date) { return date_format(date_create($date),"M d, Y @ h:i A"); } $user = $_SESSION['name']; $rows = $_POST['rows']; $patient = (isset($_POST['patient']) ? $_POST['patient'] : ""); $date = (isset($_POST['date']) ? $_POST['date'] : ""); $time...
true
c32d31decb67bc87e85b8087c4738905a7c88be6
PHP
RealMutatedBread/Assignment2---Individual-website
/WSS/M4/error_3.php
UTF-8
264
3.015625
3
[]
no_license
<?php function customError($errno, $errstr) { echo "<b>Error:</b> [$errno] $errstr<br />"; echo "Terminating script"; die(); } set_error_handler("customError",E_USER_WARNING); $myvar=2; if ($myvar>1) { trigger_error("Value must be 1 or less", E_USER_WARNING); } ?>
true
6b14a2bbf06af464627abbc3321ebd4058d5c239
PHP
mengtour/wowaimai
/upload/Tudou/Lib/Action/Wap/NearAction.class.php
UTF-8
17,223
2.609375
3
[]
no_license
<?php class NearAction extends CommonAction{ public function index(){ $lat = cookie('lat_ok'); $lng = cookie('lng_ok'); if (empty($lat) || empty($lng)) { $lat = cookie('lat'); $lng = cookie('lng'); } if (!empty($this->uid)) { if (...
true
23103b1bac5efd4f093eaa1ce4c4beeacc8eb21e
PHP
josephsamuels/list-tests
/src/Acme/TwoOne.php
UTF-8
411
3.046875
3
[]
no_license
<?php namespace Acme; class TwoOne extends LinkedList { public function deDuplicate() { $temp = new TwoOne(); $current = $this->root; while($current != null) { if($temp->indexOf($current->getValue()) < 0) { $temp->add($current->getValue()); } ...
true
1c90df37cf386c4290831ff1aea408a9bb50438a
PHP
nitishdola/tradyco
/app/Helpers/Helper.php
UTF-8
893
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Helpers; use App\Models\Master\Category; use App\Models\Master\SubCategory; class Helper { public static function allCategories($status = 1, $list = false, $order_by = 'name') { $category = Category::select('name', 'id', 'category_image_path')->orderBy($order_by); if($list...
true
8b3fc97d6a54a8852d0e0dd3f652f53433a76b34
PHP
dragonjsonserver/dragonjsonserver
/src/DragonJsonServer/Event/Servicemap.php
UTF-8
1,038
2.515625
3
[]
no_license
<?php /** * @link http://dragonjsonserver.de/ * @copyright Copyright (c) 2012-2014 DragonProjects (http://dragonprojects.de/) * @license http://license.dragonprojects.de/dragonjsonserver.txt New BSD License * @author Christoph Herrmann <developer@dragonprojects.de> * @package DragonJsonServer */ namespace Dragon...
true
f0086a3abbd67229d1b3a1a449d7840ff8eb2863
PHP
atifraeeszafar/carpool
/app/Http/Controllers/Api/V1/Auth/Password/PasswordResetController.php
UTF-8
5,148
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api\V1\Auth\Password; use App\Http\Controllers\ApiController; use App\Http\Requests\Auth\Password\ForgotPasswordRequest; use App\Http\Requests\Auth\Password\ResetPasswordRequest; use App\Http\Requests\Auth\Password\ValidateResetTokenRequest; use App\Jobs\Notifications\Auth\Passwor...
true
eff643830763d3ea2b8a950c6102274ea76045dc
PHP
edysegura/code-samples
/php/aplicacoes/chatsimples/paginas/funcoes.php
UTF-8
848
3.109375
3
[]
no_license
<?php /* PHP Document Autor: Edy Segura - edy@segura.pro.br Descrição: Arquivo de funções para o chat simples */ //endereço do arquivo $sFile = "txt/batepapo.txt"; //adiciona um linha ao arquivo de bate-pago function fnAddMsg($sNick, $sMsg) { global $sFile; $rHandle = fopen($sFile, "a"); fwrite($rHand...
true
b6cc2f3df58fbddcdc99d5490a83735f05cdfd41
PHP
vlaurier/solid
/src/Patterns/State/demo.php
UTF-8
502
2.546875
3
[]
no_license
<?php use Solid\Patterns\State\CircusRing; use Solid\Patterns\State\States\LightsOn; require "../../../vendor/autoload.php"; header('Content-Type: text/html; charset=utf-8'); $circusRing = new CircusRing(new LightsOn()); echo $circusRing; $circusRing->switchingLightOff(); echo $circusRing; $circusRing->sweepCircu...
true
049497cc68bb48d1bbeb3a24eb07a4aa6cfa36da
PHP
alex77520/icheyyBackendLaravel
/app/BaseModel.php
UTF-8
582
2.609375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class BaseModel extends Model { /** * 封装只查询目标关联的部分字段 * scope重用查询方法前缀 * @param $query * @param $relation 关联模型 * @param array $columns 相关字段 * @return mixed */ public function scopeWithCertain($query, $relation, Arra...
true
78849c25b46c330328281637bef9be69e1962d9f
PHP
Molajo/Query
/Source/Data/Adapter/Postgresql.php
UTF-8
1,202
2.703125
3
[ "MIT" ]
permissive
<?php /** * Postgresql Query Adapter * * @package Molajo * @copyright 2014-2015 Amy Stephen. All rights reserved. * @license http://www.opensource.org/licenses/mit-license.html MIT License */ namespace Molajo\Data\Adapter; use CommonApi\Query\ConnectionInterface; use CommonApi\Query\DatabaseInterface; /*...
true
07bd9022dcbac849564d3e32d812b442e0d350ee
PHP
Peter-Chang/50d50v
/20141014/convert.php
UTF-8
3,962
2.890625
3
[ "CC0-1.0" ]
permissive
<?php class Converter { public function getLines() { $fp = fopen(__DIR__ . '/20100601S1E1.csv', 'r'); $columns = fgetcsv($fp); $lines = array(); while ($values = fgetcsv($fp)) { $lines[] = $values; } fclose($fp); $fp = fopen(__DIR__ . '/20101...
true
691ed1c117f252378a74cd449b1dbe96dc7a0be5
PHP
paula-davidel/programming_basics
/class_constants.php
UTF-8
462
3.921875
4
[]
no_license
<?php class Clock { public const DAY_IN_SECONDS = 60 * 60 * 24; public function today() { return time(); } public function tommorow() { return time() + self::DAY_IN_SECONDS; } } echo Clock::DAY_IN_SECONDS; echo "<br/>"; // show the next day $clock = ...
true
e6a7f31312fa62b100a2876ae54db28683b4e252
PHP
Brzoskwinka/Strona-Internetowa
/src/Entity/Wishlist.php
UTF-8
1,082
2.515625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\WishlistRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=WishlistRepository::class) */ class Wishlist { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Man...
true
187d0e5b832500f23f010d72d4fd5a03425c32d9
PHP
wuhaiyans/zuji_order
/app/Order/Modules/Inc/OrderGivebackStatus.php
UTF-8
9,742
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: wuhaiyan * Date: 2018/4/27 * Time: 11:26 */ namespace App\Order\Modules\Inc; class OrderGivebackStatus{ //-+------------------------------------------------------------------------ // | 还机单状态定义 //-+-----------------------------------------------------------------------...
true
40fe69b8b710a92bd089640da3b4093da533c60c
PHP
tangwenjie09/autotrader
/addvehicle.php
UTF-8
20,255
2.515625
3
[]
no_license
<?php include('lib/common.php'); // written by GTusername4 if (!isset($_SESSION['username'])) { header('Location: login.php'); exit(); } if($_SERVER['REQUEST_METHOD']=='POST' && isset($_POST['findcustomer_submission'])) { $customer_id = mysqli_real_escape_string($db, $_POST['customer_id']); $query = "SEL...
true
08d2e2aafa77419d3df3a19467cd594b15c9f5a7
PHP
ArnaudHocevar/Unsupported
/themes/sideofchili/chili-functions.php
UTF-8
3,125
2.734375
3
[]
no_license
<?php //Prints total number of Images in Zenphoto function printTotalImages() { $photosArray = query_single_row("SELECT count(*) FROM ".prefix('images')); $photosNumber = array_shift($photosArray); echo ($photosNumber); } //Printer the total number of comments in Zenphoto function printTotalComments(){ $commentsAr...
true
0d8b9cabfbb4b23cc02fa4272c24144946f2d0b1
PHP
mosladil/alfred-blabot
/script.php
UTF-8
1,559
3.15625
3
[ "BSD-4-Clause-UC" ]
permissive
<?php /** * Czech Lorem Ipsum from Blabot.net * * Does not implement all available API features. * For full documentation see Blabot.net * * @author Miroslav Osladil <xxlmira@gmail.com> * @link http://www.blabot.net */ class Blabot { private $host = 'http://api.blabot.net/'; private $url = '?format=json&...
true
5836fe98dc35a715337ce92772f5d9479d9c1e83
PHP
inunosinsi/soycms
/cms/soyshop/webapp/src/logic/user/ExImportLogic.class.php
UTF-8
5,387
2.609375
3
[]
no_license
<?php SOY2::import("logic.csv.ExImportLogicBase"); class ExImportLogic extends ExImportLogicBase{ private $func; private $customFields = array(); private $customSearchFields = array(); //作業用 private $userAttributeDAO; private $customSearchFieldDBLogic; /** * CSV,TSVに変換 */ function export($...
true
75c72b623e2d737bc4e82b6375af97d6fe7d5ae0
PHP
ivanstoynov/eab
/protected/library/moduls/Ebl/FormComponents/Standart/class.EblRadioButtonList.php
UTF-8
692
2.625
3
[]
no_license
<?php include_once dirname(__FILE__) . '/class.EblChekableList.php'; include_once dirname(__FILE__) . '/class.EblRadioButtonComponent.php'; /** * @sience 1.0.1 * Class describe html list of radio buttons * * @author Ivan Stoyanov <iv44@yahoo.com> * @pakage Ebl * @subpakage HtmlComponents/Standard */...
true
5c6296a8f00f9d8fc235c6178e03afeef49a3ad9
PHP
JanMikes/Caloriary
/src/Infrastructure/Calories/ReadModel/CachedQueryHasCaloriesWithinDailyLimit.php
UTF-8
1,673
2.71875
3
[]
no_license
<?php declare(strict_types=1); namespace Caloriary\Infrastructure\Calories\ReadModel; use Caloriary\Calories\CaloricRecord; use Caloriary\Calories\ReadModel\HasCaloriesWithinDailyLimit; use Doctrine\DBAL\Connection; final class CachedQueryHasCaloriesWithinDailyLimit implements HasCaloriesWithinDailyLimit { /** ...
true
9d881fd6178c3efa8fcf0c3d9aa888745852bced
PHP
madeincima/maps-noi-bz-it
/helpers/rooms-list.php
UTF-8
999
3.078125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> svg { max-width: 150px; height: auto; } .single-cat { border: 1px solid black; margin-bottom: 30px; } </style> </head> <body> <?php include('../config/categories_array.php'); if(isset($categories_array) && is_...
true
6752ef6ed0820751580febabd744f60de050bfdf
PHP
Kampijo/CSC309
/tut06/guessGameAjax/guess.php
UTF-8
735
2.59375
3
[]
no_license
<?php session_save_path('sess'); session_start(); header('Content-Type: application/json'); $guess = $_REQUEST['guess']; $reply=array(); $answer=array(); if(is_numeric($guess) and $guess >=1 and $guess <=10){ if($guess > $_SESSION['target']){ $answer['guess']=$guess; $answer['comparison']='>'; $_SES...
true
4b11a4e847cc9496d516d83848bd37e1cca589f1
PHP
DorotejaSS/e_diary
/app/controllers/StudentController.php
UTF-8
3,083
2.671875
3
[]
no_license
<?php class StudentController { public function __construct($request) { $this->request = $request; } public function showAll() { $base_model = new BaseModel(); $base_model->showAll('students'); $view = new View(); $view->data = $base_model->showAll('st...
true
6bc266f2a46ba88f36d5a87c1b70642d71c0720d
PHP
RubiyaAS/orisys
/swap.php
UTF-8
96
3.015625
3
[]
no_license
<?php $a=20; $b=10; $temp=$a; $a=$b; $b=$temp; echo "swap a is:$a <br>"; echo "swap b is:$b"; ?>
true
dba9db6b5c988afbbc738561df5ccec6ec9c0566
PHP
XanderDwyl/bjsaccountingsystem
/app/models/user.php
UTF-8
1,213
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\Reminders\RemindableInterface; class User extends Eloquent implements UserInterface, RemindableInterface { use UserTrait, RemindableTrait; /** * The database table used by t...
true
1dcd46b0f83c93b70360c9ed303a38adf4db3000
PHP
weblate/flow-development-collection
/Neos.Flow/Tests/Unit/Persistence/Generic/QueryResultTest.php
UTF-8
8,855
2.671875
3
[ "MIT" ]
permissive
<?php namespace Neos\Flow\Tests\Unit\Persistence\Generic; /* * This file is part of the Neos.Flow package. * * (c) Contributors of the Neos Project - www.neos.io * * This package is Open Source Software. For the full copyright and license * information, please view the LICENSE file which was distributed with thi...
true
3c7c96bed9933f1ebb72877f35171bf017610205
PHP
evgenygavriluk/smartek
/laravel/app/Http/Controllers/User.php
UTF-8
1,869
2.734375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Controllers; class User extends Biblioglobus { function __construct() { parent::__construct('user'); //echo "Class is ready ($this->tableName)"; } public function addNewUser($email, $passwd, $firstname, $lastname) { if($th...
true
24076d34fe2d00006d1db935fe4720213a0e068a
PHP
decanus/Ganked
/GankedFrontend/src/Readers/UserReader.php
UTF-8
787
2.828125
3
[]
no_license
<?php /** * Copyright (c) Ganked 2015 * All rights reserved. */ namespace Ganked\Frontend\Readers { use Ganked\Library\Gateways\GankedApiGateway; use Ganked\Library\ValueObjects\Username; class UserReader { /** * @var GankedApiGateway */ private $gateway; ...
true
b2d27a05732fa9aa43329b6daf6d0f898325410f
PHP
reroyaltrading/tss-web-master-royal
/mailling/send_mail.php
UTF-8
2,205
2.75
3
[ "Unlicense" ]
permissive
<?php //print_r($_POST); $Nome = 'Marco'; //$_POST["first_name"]; // Pega o valor do campo Nome $Fone = '13997574127'; //isset($_POST["phone"]) ? $_POST["phone"] : ""; // Pega o valor do campo Telefone $Email = 'marckdx@outlook.com';//$_POST["email"]; // Pega o valor do campo Email $Mensagem = 'Olá';//isset($_P...
true
72add4a4eaccaba6e49aeedac3f1d88a42a67cbe
PHP
dinhthuyha/ha
/library/vanillacontroller.class.php
UTF-8
2,149
2.734375
3
[]
no_license
<?php class VanillaController { protected $_controller; protected $_action; protected $_template; protected $body; protected $curUser; protected $headerPath; protected $footerPath; public $doNotRenderHeader; public $render; function __construct($controller, $action) { ...
true
9953f397833dace3e08a6f06b9a7627c8246b096
PHP
alizhumayer/PHP-projects
/Portfolio website/contact.php
UTF-8
995
2.640625
3
[]
no_license
<?php require("./shared/inc/db.inc.php"); require("./shared/inc/functions.inc.php"); // echo "<pre>"; // print_r($_POST); // echo "</pre>"; $isFormSubmitted = ( !empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['subject']) && !empty($_POST['message']) ); if ($isFormSubmitted) { $stmt...
true
d0b4334115e43abb24230ccf0f087d71f8ef937b
PHP
makalaite/hobbies.dev
/database/migrations/2017_04_28_083015_create_pl_persons_table.php
UTF-8
744
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePlPersonsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pl_persons', function(Blueprint $table) { $table->integer('count', true);...
true
b21b44f22fbe7d49e20b7f1bb6ef5477de2b39b5
PHP
tamarasaurus/advanced-testing-workshop
/src/DomainShop/Repository/Pricing/PricingRepository.php
UTF-8
522
2.640625
3
[ "MIT" ]
permissive
<?php namespace DomainShop\Repository\Pricing; use Common\Persistence\Database; use DomainShop\Entity\Pricing; class PricingRepository implements PricingRepositoryInterface { /** * @param string $domainNameExtension */ public function getPricing(string $domainNameExtension) { return Databas...
true
70de2f125b11d30b69ff9beda5900a109a1a8326
PHP
vbpupil/product-library
/src/Price/SinglePrice.php
UTF-8
9,742
3.140625
3
[]
no_license
<?php namespace vbpupil\ProductLibrary\Price; use vbpupil\ProductLibrary\Exception\InvalidProductSetupException; use vbpupil\ProductLibrary\Price\Traits\PriceTrait; use vbpupil\ProductLibrary\Traits\ClassTrait; /** * Class SinglePrice * @package vbpupil\Price */ class SinglePrice implements PriceInterface { ...
true
905fa0f8d277bc76431eab98da5967a67e23e70e
PHP
constantin-b/iDocument
/includes/functions.php
UTF-8
10,926
2.75
3
[]
no_license
<?php /** * Utility function, returns plugin default settings */ function idocs_plugin_settings_defaults(){ $defaults = array( 'menu_date' => true, // post type is public or not 'breadcrumbs' => true, // post type is public or not ); return $defaults; } /** * Get plugin settings */ function idocs_set...
true
678a9031fdc059dc64d36621e9f5295c3c447b85
PHP
phirecms/phire-cache
/src/Event/Cache.php
UTF-8
4,281
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Phire Cache Module * * @link https://github.com/phirecms/phire-cache * @author Nick Sagona, III <dev@nolainteractive.com> * @copyright Copyright (c) 2009-2016 NOLA Interactive, LLC. (http://www.nolainteractive.com) * @license http://www.phirecms.org/license New BSD License */ /** ...
true
f7de0791214fb000a4e56b7e78f04636e99245bf
PHP
Maenhalah1/Gallery-System
/admin/classes/paginate.php
UTF-8
1,050
3.1875
3
[]
no_license
<?php class paginate{ public $current_page; public $items_per_page; public $items_total_count; public function __construct($page=1,$items_page=4,$items_count=0){ $this->current_page = (int)$page; $this->items_per_page = (int)$items_page; $this->items_total_count ...
true
f943feefb03ed8e37c542074f44835e5f2fa60af
PHP
AekoArray/PHP_ShakirovaGulnaz_11-806
/2/index.php
UTF-8
700
3.234375
3
[]
no_license
<?php if(isset($_POST["button"])){ $str = $_POST['text']; } else{ include "form.html"; return; } function generator($str){ $count = 0; for ($i = 0; $i < strlen($str); $i++){ if($str[$i] == "h"){ yield"4"; $count++; } elseif ($str[$i] == "e" ){ yiel...
true
fb217721dbb06c51b960b658326b715add2f3576
PHP
Ardyan172/akunt-api
/database/migrations/2021_06_15_114919_create_transactions_table.php
UTF-8
1,168
2.6875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; // class ini dibuat di Command Line menggunakan perintah // php artisan make:model transaction -m class CreateTransactionsTable extends Migration { /** * Run the migrations. ...
true
d81510eb8bb26355321e6b88f060031ad8f83b2c
PHP
pdffiller/qless-php
/src/Workers/ResourceLimitedWorkerTrait.php
UTF-8
3,081
2.90625
3
[ "MIT" ]
permissive
<?php namespace Qless\Workers; use Psr\Log\LoggerInterface; trait ResourceLimitedWorkerTrait { abstract protected function isShuttingDown(): bool; abstract protected function getLogger(): LoggerInterface; abstract public function shutdown(): void; /** * @var int */ protected $maxim...
true
e137fe4cf48c73997691c95cbb448fcd64e700f2
PHP
pckg/framework
/src/Pckg/Framework/Router/Console/ListRoutes.php
UTF-8
2,505
2.671875
3
[]
no_license
<?php namespace Pckg\Framework\Router\Console; use Pckg\Framework\Console\Command; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Helper\TableCell; use Symfony\Component\Console\Helper\TableSeparator; use Symfony\Component\Console\Input\InputOption; class ListRoutes extends Command { p...
true
c202bc51fadc0d24d6f5a0f638b1eee2fbae0d04
PHP
RamonMata24/MVC-PDO-MYSQL-TAW-UPV
/Controllers/controller.php
UTF-8
6,986
2.96875
3
[]
no_license
<?php class MvcController { //llamar a la plantilla public function pagina(){ //include se utiliza para invocar el archivo que contiene el codigo HTML! include('Views/template.php'); } // INTERACCION CON EL USUARIO public function enlacesPaginasController(){ // trabajar con los enlaces de las ...
true
f9236ef20930281739545a45b98dddceb9930660
PHP
pigochu/docker-phpmyadmin-autoconfig
/script/vendor/amphp/byte-stream/lib/ResourceOutputStream.php
UTF-8
9,200
2.890625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Amp\ByteStream; use Amp\Deferred; use Amp\Failure; use Amp\Loop; use Amp\Promise; use Amp\Success; /** * Output stream abstraction for PHP's stream resources. */ final class ResourceOutputStream implements OutputStream { const MAX_CONSECUTIVE_EMPTY_WRITES = 3; const LARGE_CHUNK_SIZE = 128 *...
true
aff4ebc70a14e1af741990591c689d97848cde09
PHP
IVIR3zaM/GraphicEditor
/src/Shapes/ShapeList.php
UTF-8
875
2.9375
3
[ "MIT" ]
permissive
<?php namespace IVIR3aM\GraphicEditor\Shapes; use IVIR3aM\GraphicEditor\ObjectListIteratorTrait; use IVIR3aM\GraphicEditor\ShapeAbstract; class ShapeList implements ShapeListInterface { use ObjectListIteratorTrait; public function addShape(ShapeAbstract $shape) { return $this->addObject($shape); ...
true
cd523a813018e7cd884672598e6dda5155d5891a
PHP
JustineFrs/Exercices_formationE2N
/Exercices_PHP/PHP_P7/exo7/exo7.php
UTF-8
1,120
2.890625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>EXERCICE PHP Partie 7</title> </head> <body> <h1>Exo #7 Partie 7</h1> <p>Au formulaire de l'exercice 5, ajouter un champ d'envoi de fichier. Afficher en plus de ce qui est demandé à l'exercice 6, le nom et l'extension du fichier. </p> <...
true
e35587bf73da051440b6dbb3ccb291e6fd5699e4
PHP
BackEndTea/FourChanApi
/src/Util/BoardFactory.php
UTF-8
857
3.171875
3
[ "MIT" ]
permissive
<?php namespace FourChan\Util; use FourChan\Api\Board; /** * Class BoardFactory * @package FourChan\Util * @internal */ class BoardFactory { /** @var array|Board[] */ private $boardsList; /** * BoardFactory constructor. * @param array $boards array of board info as retrieved from API ...
true
142163fe10c8db56fefa702ed8e99e1cb06dacf1
PHP
LucasBurg/renekton
/application/libraries/template/Template.php
UTF-8
1,861
2.796875
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); defined('FCPATH') OR exit('No FCPATH defined'); class Template { private const TEMPLATE = 'templates/primary/layout'; private const STYLE = 'assets/css/'; private const JS = 'assets/js/'; private const PATH = 'assets/'; priv...
true
906d1e6b18e77884bef959dd814589558ba79fde
PHP
zhaofa2014/mysql
/php/cms/xyhcms/xyhcms02/App/Common/Lib/Category.class.php
UTF-8
5,651
2.984375
3
[]
no_license
<?php namespace Common\Lib; class Category { //清除包含对应字段的分类 static Public function clearCate($cate, $status = 'status', $value = 1) { $arr = array(); foreach ($cate as $v) { if ($v[$status] != $value) { $arr[] = $v; } } return $arr; } //栏目显示只针对XYHCMS(清除单页模型(model_id=2)和外链(type!=0)) static Publ...
true
b9bcf37e91aa725a5d93616f8fb0e3b8da0622ea
PHP
Vadim0004/shopNew
/shop/entities/Shop/Characteristic.php
UTF-8
2,012
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace shop\entities\Shop; use yii\db\ActiveRecord; use yii\helpers\Json; /** * This is the model class for table "shop_characteristics". * * @property int $id * @property string $name * @property string $type * @property int $required * @property string $default * @property array $variants * @prop...
true
3d5b6b5a4f76552da6d273fa3a4335b778123a93
PHP
retroDUD-dev/retroMVC
/core/db/DbModel.php
UTF-8
3,786
2.875
3
[]
no_license
<?php namespace app\core\db; use \PDO; use app\core\Application; use app\core\Model; abstract class DbModel extends Model { abstract public static function tableName(): string; abstract public function attributes(): array; abstract public function primaryKey(): string; public function save(): void ...
true
35178b6b8c5ca8002b751af428fe66af6b59b70e
PHP
Bercovein/LabIV
/Model/Card.php
UTF-8
352
2.96875
3
[]
no_license
<?php namespace Model; class Card{ private $number; private $amount; public function getNumber(){ return $this->number; } public function setNumber($number){ $this->number=$number; } public function getAmount(){ return $this->amount; } public function setAmount($amount){ $this...
true
3a6e5ab20d07ce766d688b739b4b26d146f5cabd
PHP
rahulyhg/atoz
/protected/models/PatientSecondopinion.php
UTF-8
5,037
2.640625
3
[]
no_license
<?php /** * This is the model class for table "az_patient_secondopinion". * * The followings are the available columns in table 'az_patient_secondopinion': * @property integer $opinion_id * @property integer $user_id * @property integer $doctor_id * @property string $fullname * @property string $mobile * @pro...
true
a9856f9c0c6e58994299678e215a775c9a99179c
PHP
HappyKennyD/newrep
/application/classes/Controller/Api/Core.php
UTF-8
2,640
2.53125
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); class Controller_Api_Core extends Controller{ protected $language = 'kz'; protected $data = array(); protected $api; protected $post = array(); protected $limit; protected $offset; protected $entryType; protected $entry...
true
1be0eb268b62c6beb5a002f4ffbd3cfa3152b1a6
PHP
MiraiDenpa/MiraiDenpa
/Base/Model/UserNoticeModel.php
UTF-8
2,345
2.703125
3
[]
no_license
<?php class UserNoticeModel extends Mongoo{ protected $collectionName = 'notice'; protected $connection = 'mongo-user'; public function noticeAll($type, $content, $whos){ // 分开已有的和新加的 $where = array( '_id.user' => ['$in' => $whos], '_id.type' => $type, ); $exist = iterator_to_array($this->...
true
f8f75fd09d4d074a8c2ec320a9dddcfc7f913cdd
PHP
kinglsr/whatsapptextanalysis
/app/Http/Controllers/BydateController.php
UTF-8
7,730
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\RedirectResponse; use Illuminate\Support\Facades\Storage; use App\Pathfile; use App\Http\Controllers\HomeController;; use App\Date; use App\UserInput; use \Datetime; class BydateController extends Controller { /** * Create a ...
true
8546fa15f8bacbe1074420d102199e05529bd172
PHP
PedroRago10/midrub
/application/base/admin/components/collection/notifications/inc/notifications_init.php
UTF-8
3,453
2.578125
3
[]
no_license
<?php /** * Notifications Init Inc * * PHP Version 7.3 * * This files contains the functions which * are runned when the pages loads * * @category Social * @package Midrub * @author Scrisoft <asksyn@gmail.com> * @license https://github.com/scrisoft/midrub_cms Midrub’s License * @link https://www.mid...
true
a8b8cd670e7f7ced10c8031c630cc6ddf90d5944
PHP
sharkodlak/fluentDb
/tests/PostgreSqlTest.php
UTF-8
7,913
2.6875
3
[ "MIT" ]
permissive
<?php namespace Sharkodlak\FluentDb; class PostgreSqlTest extends \PHPUnit_Framework_TestCase { private static $films = [ 1 => [ 'film_id' => 1, 'title' => 'Academy Dinosaur', 'description' => 'A Epic Drama of a Feminist And a Mad Scientist who must Battle a Teacher in The Canadian Rockies', 'release_y...
true
fb31c8e08dc06d6deaeec477549fdcfbe90a546d
PHP
marciovicente/semcomp_app
/modelo/bd/SalaAtividadesBD.php
UTF-8
5,473
2.53125
3
[]
no_license
<?php include_once("conexao.php"); include_once 'modelo/negocio/SalaAtividades.php'; class SalaAtividadesBD{ public function getOne($idatividades){ $mysql = new conexao; $sql = $mysql->sql_query("select * from sala_atividades where atividades_idatividades = $idatividades"); $sala_atividade...
true
cad2aa44699e2fb86c2b8a7f5d673da0f1d03aae
PHP
DonMul/UltimateWarfare
/src/Entity/WorldCountry.php
UTF-8
2,906
2.9375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace FrankProjects\UltimateWarfare\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; /** * WorldCountry */ class WorldCountry { /** * @var int */ private $id; /** * @var int */ private $x; ...
true
4323f8e4f151712b4e715e72206a72d55f794c0c
PHP
Edward01S2/mtat
/app/ajax.php
UTF-8
353
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; class Ajax { public function __construct() { add_action('wp_ajax_get_modal', [$this, 'myMethod']); add_action('wp_ajax_nopriv_get_modal', [$this, 'myMethod']); } public function myMethod() { $popup_type = "POPUP"; echo 'AJAX response here'; ...
true
307e04346a2f8ff5a3ccc748b276b49576f33b7e
PHP
Bohdan186/php-courses
/merak(php_shop)/app/code/functions.php
UTF-8
7,368
2.84375
3
[]
no_license
<?php /** * The file describes the main functions of the project. * * @package functions */ session_start(); /** * The function prepares the page for display. * Connects templates and transfers data from the array to them $data. * * @param array $data - An array with data for transfer to the created template....
true
68dea311230921ac15d257becfe31d765201a074
PHP
elinoretenorio/php-headless-crud-for-shopping-cart-db
/src/ProductReview/ProductReviewService.php
UTF-8
1,404
2.890625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ShoppingCart\ProductReview; class ProductReviewService implements IProductReviewService { private IProductReviewRepository $repository; public function __construct(IProductReviewRepository $repository) { $this->repository = $repository; } public ...
true
0ccdeaa28e7d68a3e8b62bf7e540c091bb0cbc3f
PHP
tarari/scratch
/application/controllers/IndexController.php
UTF-8
3,797
2.984375
3
[]
no_license
<?php /* * This class extends the controller and it controls * the main view */ class IndexController extends Controller { protected $model; protected $view; protected $template; function __construct($module) { parent::__construct($module); } /* * re_session: co...
true
fa5b16c4e74cbbd19dbd56d21be5db25ea9d7c30
PHP
padosoft/laravel-log-keeper
/src/Commands/LogKeeper.php
UTF-8
1,062
2.609375
3
[]
no_license
<?php namespace MathiasGrimm\LaravelLogKeeper\Commands; use Exception; use Illuminate\Console\Command; use Illuminate\Log\Logger; use MathiasGrimm\LaravelLogKeeper\Factories\LogKeeperServiceFactory; class LogKeeper extends Command { /** * The console command name. * * @var string */ prote...
true
dbda30f5dec8afa0e09a5b66fd076c245435cb9c
PHP
agdd1709/ATOL
/bbm.php
UTF-8
2,530
2.8125
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>Daftar Harga BBM</title> <style> td { text-align: right; } .tengah ...
true
c468fb4ce99a0b90e1c866ded01b526e532757b9
PHP
tbreuss/notes-api
/modules/v1/models/Tag.php
UTF-8
5,859
2.515625
3
[ "MIT" ]
permissive
<?php namespace app\modules\v1\models; use yii\data\ActiveDataProvider; use yii\db\ActiveRecord; use yii\db\Exception; use yii\db\Expression; use yii\db\Query; use yii\web\ServerErrorHttpException; /** * Class Tag * @package app\modules\v1\models * @property int id * @property string name * @property int freque...
true
fd9dbf6b49264dc2af56cc11e3ade56d467825cf
PHP
akbharti17/yii2
/advanced/frontend/models/Csvfile.php
UTF-8
654
2.5625
3
[]
no_license
<?php namespace frontend\models; use yii\base\Model; class Csvfile extends Model { public $file; public function rules() { return [ // [ // ['file'], // 'types' => 'csv', 'maxSize' => 5242880, 'allowEmpty' => true, 'wrongType' => 'Only csv allowed.', 't...
true
8d01c7ed8a7b2a3b4ecb5fe8447c9db7175c4c4a
PHP
avido/myparcel-php-api
/src/Endpoints/TrackTrace.php
UTF-8
813
2.59375
3
[ "MIT" ]
permissive
<?php namespace Mvdnbrk\MyParcel\Endpoints; use Mvdnbrk\MyParcel\Resources\Shipment; use Mvdnbrk\MyParcel\Resources\TrackTrace as TrackTraceResource; class TrackTrace extends BaseEndpoint { /** * Get detailed track and trace information for a shipment. * * @param \Mvdnbrk\MyParcel\Resources\Shipm...
true
99ba06c46eef7d3b8be0babcafaed3cb99f5d5a4
PHP
WordBenchNagoya/wordfes2014
/classes/class-extend-comment.php
UTF-8
1,664
2.5625
3
[]
no_license
<?php /** * ===================================================== * @package Grow Creater * @subpackage コメント一覧 カスタマイズ * @author Grow Group * @license GPLv2 or later * @link http://grow-group.jp * @copyright 2014 Grow Group * ===================================================== */ class Ext...
true
1f6cf551e667c82992587f4f38cb89b97d3217ae
PHP
fadliselaz/phpdasar
/pertemuan15/latihan15/register.php
UTF-8
1,986
2.8125
3
[]
no_license
<?php require 'functions.php'; if (isset ($_POST["register"])) { $password = $_POST["password"]; $password2 = $_POST["password2"]; // var_dump($password); die; if ($password == $password2) { if (register($_POST) > 0) { echo "<script>alert('registrasi berhasil');</script>"; header("Location:http...
true
fd613a5486d19c5b9c6ade729dd8012bfeaa8ac2
PHP
jccamargo15/projeto-web2
/src/acao_contas.php
UTF-8
966
2.65625
3
[]
no_license
<!-- Projeto GitHub: https://github.com/jccamargo15/projeto-web2 --> <?php require_once('../class/class.Contas.php'); require_once('../class/class.ContasDAO.php'); if( $_GET['acao']=='excluir'){ $contas = new Contas(); $contas->setId($_GET['id']); $contasDAO = new ContasDAO(); $contasDAO->excluir($conta...
true
4223318993ba3fc18aa0157c5906c7562ce40a39
PHP
matecat/simple-s3
/src/Commands/Handlers/Transfer.php
UTF-8
1,803
2.78125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Simple S3 package. * * (c) Mauro Cassani<https://github.com/mauretto78> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace Matecat\SimpleS3\Commands\Handlers; use Matecat\SimpleS3\C...
true
fd7f2b50ae6ab9fda3b454b73f3a745c0d9cdb3e
PHP
ivastly/php-stratum
/test/MySql/Singleton1Test.php
UTF-8
1,674
2.703125
3
[ "MIT" ]
permissive
<?php //---------------------------------------------------------------------------------------------------------------------- namespace SetBased\Stratum\Test\MySql; /** * Test cases for stored routines with designation type singleton1. */ class Singleton1Test extends DataLayerTestCase { //------------------------...
true
552f6fb83bd9cfbce1b8cc77cbd6577dc15b1d6f
PHP
Luminus-JB/workspace
/cours_php/namespace/namespace_cours_2.php
UTF-8
512
3.296875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Lumi * Date: 18/04/2017 * Time: 14:48 */ //Si l'on veut déclarer plsr namespace dans un seul fichier il vaut mieux utiliser les accolades {} namespace A { function maPremiereFonction() { echo "A"; } } namespace B { function maPremiereFonction() ...
true
2bd0f4898a3054208ac0face116a1c7f290c3bd0
PHP
efotopoulou/hotelbackpackers
/Guate/hotel/Dominio/class_pais.php
UTF-8
895
2.734375
3
[]
no_license
<?php require_once ($_SERVER['DOCUMENT_ROOT'] . '/hotel/Datos/Dpais.php'); require_once ($_SERVER['DOCUMENT_ROOT'] . '/hotel/Dominio/class_eventos.php'); class pais{ private $pais; function __construct(){ } function get_paises(){ $datos = new Dpais(); $rs = $datos->get_paises(); ...
true
b0b50ba1cb46eda5cbeb1edbd491e75bc5f84f1c
PHP
shopavel/customers
/src/Shopavel/Customers/Transactions/RegistrationTransaction.php
UTF-8
426
2.59375
3
[ "MIT" ]
permissive
<?php namespace Shopavel\Customers\Transaction; use Shopavel\Transactions\Transaction; use Shopavel\Customers\CustomerInterface; /** * Customer registration transactions. * * @author Laurence Roberts <lsjroberts@gmail.com> */ class RegistrationTransaction extends Transaction { public function register(Custo...
true
9f1708a20784712b9be018c33286b239404a689b
PHP
jrkell/dig33
/api/stockist_signup.php
UTF-8
1,000
2.609375
3
[]
no_license
<?php include 'queries.php'; if(isset($_POST)) { // if the form has been submitted // get inputs $name = $_POST['name']; $email = $_POST['email']; $address = $_POST['address']; $pw = $_POST['pw']; $pw2 = $_POST['pw2']; // check if email is already used if(userExists($email, 'stock...
true
6a2757217dbb012f65dfad0b658305772c9490e2
PHP
wdalmut/kata-dive
/tests/VotingManagerTest.php
UTF-8
1,974
2.5625
3
[]
no_license
<?php namespace Kazan; use Prophecy\Argument; class VotingManagerTest extends \PHPUnit_Framework_TestCase { public function testRequireVoting() { $strategy = $this->prophesize("Kazan\\VotingStrategy"); $strategy->votes(Argument::Any(), Argument::Any())->willReturn(61.80); $dive = new ...
true
e0258b55b3fa819479815a711f0cdead0c2ebc25
PHP
stevenharradine/php-dark-launch
/src/Implementations/DatabaseConnectionLoader.php
UTF-8
1,406
2.671875
3
[ "MIT" ]
permissive
<?php namespace Telus\Digital\Libraries\DarkLaunch\Implementations; use Telus\Digital\Libraries\DarkLaunch\Interfaces\DatabaseConnectionLoaderInterface; use Illuminate\Database\Capsule\Manager as Capsule; use Illuminate\Database\Eloquent\Model as EloquentModel; use Illuminate\Database\Schema\Blueprint as Blueprint; ...
true
05be0dc253ad6b5229f57eded030e121824acaad
PHP
chenhuazhan/nodejs
/express-app/public/article/PHP/filesystem/example/thumb.php
UTF-8
1,059
2.59375
3
[]
no_license
<?php //图片缩放完整实例(包含等比例) function thumb($src_file,$dst_w,$dst_h){ $srcarr=getimagesize($src_file); //变量函数 switch($srcarr[2]){ case 1: $imagecreatefrom="imagecreatefromgif"; $imageout="imagegif"; break; case 2: $imagecreatefrom="imagecreatefromjpeg"; $imageout="imagejpeg"; break; case 3: ...
true
1f4ffaf5c9fed2bdbe153392eb9f369fd2e8797f
PHP
PhilCherg/PHPProject
/root/app/models/Student.php
UTF-8
576
3.078125
3
[]
no_license
<?php class Student { public $id; public $username; public $firstName; public $middleName; public $lastName; public $classId; public $grades = []; function __construct($params) { $id = $params['id']; $username = $params['userna...
true
ffed8495c9bb81f9c9ed1cf1d0ab95a9102649af
PHP
damov87/1712
/2019-01-14/3.php
UTF-8
81
2.8125
3
[]
no_license
<?php $name = 'Дмитрий'; $age = 31; echo "Меня зовут: {$name}";
true
b8e18578a3f3649b1642a300b24d2586abf88b2d
PHP
SBU-BMI/PathDB
/quip/web/modules/contrib/jwt/src/Authentication/Event/JwtAuthValidEvent.php
UTF-8
1,019
2.640625
3
[ "GPL-2.0-only", "BSD-3-Clause" ]
permissive
<?php namespace Drupal\jwt\Authentication\Event; use Drupal\user\Entity\User; use Drupal\user\UserInterface; use Drupal\jwt\JsonWebToken\JsonWebTokenInterface; /** * Class JwtAuthValidEvent. */ class JwtAuthValidEvent extends JwtAuthBaseEvent { /** * Variable holding the user authenticated by the token in the...
true
dda3df92b84487cd46acdd28ad133c051314c40b
PHP
inetstudio/products
/src/Models/ProductableModel.php
UTF-8
2,378
2.734375
3
[]
no_license
<?php namespace InetStudio\Products\Models; use Illuminate\Database\Eloquent\Model; /** * InetStudio\Products\Models\ProductableModel. * * @property \Carbon\Carbon|null $created_at * @property int $product_model_id * @property int $productable_id * @property string $productable_type * @property \Carbon\Carbon...
true
300a69ec7c2068762aaf594c2dd895660eaee095
PHP
monishnarwani/checklist-app
/packages/Utility/GlobalFunctions/src/helpers/helper.php
UTF-8
1,494
2.515625
3
[]
no_license
<?php use App\Services\ApiResponse; Use Illuminate\Support\Facades\App; /* li -- Log Info */ if (!function_exists('li')) { function li($var) { $environment = App::environment(); if ($environment == 'local') { \Log::info(print_r($var, true)); } } } if (!function_exist...
true
e6ce0cd69cf6f8f163daddfd28db9fd1b2dcf675
PHP
JolitaGrazyte/webdev_examen
/app/Period.php
UTF-8
847
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class Period extends Model { protected $table = 'periods'; protected $dates = ['start', 'end']; protected $primaryKey = "id"; public function images(){ return $this->hasMany('App\Image'); } public fu...
true