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
09a2babcb668dbc57e7876b987cd00b8407c9410
PHP
tleilax/studip-core-api-plugin-sample
/routes/Calculator.php
UTF-8
678
2.984375
3
[]
no_license
<?php namespace RESTAPI\Routes; /** * Sample calculator app. * * @author Jan-Hendrik Willms <tleilax+studip@gmail.com> * @license GPL2 or any later version */ class Calculator extends \RESTAPI\RouteMap { /** * Initialization */ public static function before() { // Set up } /...
true
0f59710990c41bb318685a58f509ef93f4db378d
PHP
cullman1/phpsqlbook
/code/c05/removing-and-replacing-characters.php
UTF-8
549
3.296875
3
[]
no_license
<?php $text = ' Home sweet home '; ?> <h2>Remove space from the left of the string</h2> <p><?php echo ltrim($text);?></p> <h2>Remove string home and space from the right</h2> <p><?php echo rtrim($text, 'home ');?></p> <h2>Remove spaces from both ends</h2> <p><?php echo trim($text);?></p> <h2>Replace the letters 'me' w...
true
0592161d48150d7e9791b0c2de7bef15790510af
PHP
Givindu/Online-Salon-System
/Payment & Cart Management/stock.php
UTF-8
1,971
2.78125
3
[]
no_license
<?php $servername="localhost"; $username="root"; $password=""; $dbname="onlinesalon"; $conn = new mysqli($servername, $username, $password,$dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } if(isset($_POST['sub'])){ if(!empty($_POST['id']) && !empty($_POST['pnam...
true
7f5013e770bec5564529acccea8c7334d9ec367f
PHP
geekgirljoy/PHP
/Loose Code/Scan.php
UTF-8
3,069
3.046875
3
[]
no_license
<?php // This script is used to scan/photograph images for photogrammetry // It uses ffmpeg to get the image from a webcam // It uses SAPI on Windows, Say on Mac, eSpeak on Linux to announce the scanning process and facilitate hands free operation $number_of_images = 100; // How many images we want to take, change thi...
true
4035985bb59dc116e1a83d980e2372b47a271173
PHP
Alienpruts/phptherightway
/php_net_OOP/1_the_basics/ex_3_creating_instances.php
UTF-8
133
2.59375
3
[]
no_license
<?php $instance = new SimpleClass(); //kan ook via variabele opgeroepen worden $classname = "Foo"; $instance = new $classname();
true
3958c1f3c446c7b6a2a45ca2bbb80aaed551d81e
PHP
apcloic/YetiForceCRM
/app/Dav/CardDavBackendPdo.php
UTF-8
1,433
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Dav; use Sabre\CardDAV; /** * PDO CardDAV backend. * * This CardDAV backend uses PDO to store addressbooks * * @copyright Copyright (C) fruux GmbH (https://fruux.com/) * @author Evert Pot (http://evertpot.com/) * @license http://sabre.io/license/ Modified BSD License */ class CardDav...
true
8c5c89d7fb84879846b23dc0b981ff3158ec28a8
PHP
tic984/cms
/library/WeDo/Defs/Type.php
UTF-8
1,989
2.65625
3
[]
no_license
<?php class WeDo_Defs_Type extends WeDo_Descriptors_Descriptor { const DESCRIPTOR_PATH = 'etc/typedefs.xml'; const FIELD_MODEL_DB_BASE = 1; const FIELD_MODEL_DB_EXTENDED = 2; const DISPLAY_TYPE_LIST = 1; public function __construct() { parent::fromFile(APP_PATH.self::DESCRIPTOR_PATH);...
true
9f9a36cb62659720dfea1e4a837e21019e5a3b58
PHP
wenbinye/PhalconX
/src/Helper/FileHelper.php
UTF-8
5,007
2.984375
3
[ "MIT" ]
permissive
<?php namespace PhalconX\Helper; use PhalconX\Exception\IOException; class FileHelper { /** * Finds file */ public static function find($dir, array $options = null) { $options = array_merge([ 'excludeHiddenFiles' => true, ], $options); $it = new \RecursiveIter...
true
30fb47deef794ed0981bc8b949520d3286cfc634
PHP
AzonMedia/guzaba2
/src/Guzaba2/Base/Traits/StaticStore.php
UTF-8
3,962
2.875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Guzaba2\Base\Traits; use Guzaba2\Coroutine\Coroutine; use Guzaba2\Kernel\Kernel; /** * Trait StaticStore * Because in Coroutine context static class properties should be avoided this trait provides set of static methods corresponding to the dynamic overloading methods for ...
true
94f78b8c40cfd59314f64cfebf3d5ab34083d011
PHP
devisephp/cms
/src/Http/Requests/Pages/CopyPage.php
UTF-8
2,923
2.515625
3
[ "MIT" ]
permissive
<?php namespace Devise\Http\Requests\Pages; use Devise\Http\Rules\ViewExists; use Devise\Http\Requests\ApiRequest; use Devise\Sites\SiteDetector; use Illuminate\Support\Facades\DB; use Illuminate\Validation\Rule; class CopyPage extends ApiRequest { private $SiteDetector; /** * StorePage constructor. ...
true
48db10e58d10dbd0242becf81a86d1bcd75f29aa
PHP
jamesoncarrwalker/dicks_inn_front_end
/framework/factory/FrontControllerFactory.php
UTF-8
2,168
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jamesskywalker * Date: 12/10/2019 * Time: 14:02 */ namespace factory; use abstractClass\AbstractFrontController; use enum\RequestTypeEnum; use frontController\ApiFrontController; use frontController\WebFrontController; use interfaces\ConfigInterface; use interfaces\FilePar...
true
208d449c824661f3c911f423ac4906ed2943f949
PHP
larablocks/pigeon
/src/Pigeon/MessageLayout.php
UTF-8
2,566
3.046875
3
[ "MIT" ]
permissive
<?php namespace Larablocks\Pigeon; /** * Class MessageLayout * @package Pigeon * * This class handles layout management for the Pigeon package. * This holds variables for view files that be used for building email templates. * * */ class MessageLayout { /** * Constant representing a variable that wil...
true
b408ffeaea939738826dedfa5744fe2f0c7f0485
PHP
MaratBR/BoberEdu
/app/Policies/LessonPolicy.php
UTF-8
1,284
2.59375
3
[]
no_license
<?php namespace App\Policies; use App\Models\Lesson; use App\Services\Abs\IEnrollmentService; use App\Services\Abs\IUserCoursesService; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class LessonPolicy { use HandlesAuthorization; private $enrollments; public function __construct(...
true
dffa4d1b6eacb5ee50848a18bc89094fd58048dd
PHP
ArsenOOO7/Diary
/application/site/models/admin/Teachers.php
UTF-8
1,417
2.671875
3
[]
no_license
<?php class Teachers extends Model{ static function getTeachers(){ return R::getAll("SELECT * FROM `teachers`"); } static function add($teacher_id, $subjects){ $subjects = strval(json_encode(explode(",", $subjects))); R::exec('INSERT INTO `teachers`(`id`, `subjects`) VALUES(:...
true
261764da4322a5f4b97491d9119ee5207300dc71
PHP
joni-jones/yii2-2checkout
/TwoCheckoutAdapter.php
UTF-8
1,029
2.625
3
[ "MIT" ]
permissive
<?php namespace yii\twocheckout; abstract class TwoCheckoutAdapter { /** * Must be overridden in children classes */ protected $instanceClassName = null; /** * Magic call method * * @access public * @param $name * @param $arguments * @return mixed * @throws Tw...
true
08b1b4be5fb48769b35f4c757764d1c00365bccc
PHP
perecedero/SimpleCurl
/src/Caller.php
UTF-8
8,536
2.734375
3
[]
no_license
<?php /** * Caller * * ---- * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @package Perecedero * @subpackage SimpleCurl * @license MIT License * @author Ivan Lansky (@perecedero) */ namespace Perecedero\SimpleCurl; use \Perecedero\SimpleCurl\R...
true
4808ebad59578da51e1a012cd1bdc1e33e55d40d
PHP
ridi/php-binlog-collector
/src/Binlog/Collector/Utils/BinlogUtils.php
UTF-8
2,109
2.96875
3
[ "MIT" ]
permissive
<?php namespace Binlog\Collector\Utils; use Binlog\Collector\Exception\MsgException; class BinlogUtils { /** * ex: mariadb-bin.000015 -> mariadb-bin.000016 * mariadb-bin.999999 -> mariadb-bin.000000 * * @param string $binlog_file_name * * @return string */ public static...
true
0cf0a0ead4aaefd5dd454616005a905d4d3d7a26
PHP
mkanilsson/minecraft
/includes/auth.php
UTF-8
549
2.859375
3
[]
no_license
<?php if (session_status() == PHP_SESSION_NONE) { session_start(); } require_once "./includes/database.php"; class Auth { static function isLoggedIn() { return isset($_SESSION["user_id"]); } static function userId() { return $_SESSION["user_id"]; } static function use...
true
ce9b04d0f589a1fd812be4df332ad535ae5821f7
PHP
kulager/transportation
/app/Http/Forms/Web/V1/DriverWebForm.php
UTF-8
853
2.59375
3
[]
no_license
<?php namespace App\Http\Forms\Web\V1; use App\Core\Interfaces\WithForm; use App\Http\Forms\Web\FormUtil; class DriverWebForm implements WithForm { public static function inputGroups($value = null): array { $array = FormUtil::input('id', 1, null, 'number', $value ? true : false, ...
true
56107b64cd9039a0f7f7109477c43e285489bab5
PHP
tankztz/CS2102-Stuff-Sharing
/application/controllers/management.php
UTF-8
2,943
2.671875
3
[ "MIT" ]
permissive
<?php class management extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('users_model'); $this->load->helper('url_helper'); } public function create() { $this->load->helper('form'); $this->load->library('form_v...
true
b847a07d39c3839903fa138d4412ea4d04f1e92e
PHP
sbarrat/bootstrapFormGenerator
/tests/BootstrapForm/FormTest.php
UTF-8
1,454
2.65625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: ruben * Date: 26/4/15 * Time: 13:53 */ namespace BootstrapForm; class FormTest extends \PHPUnit_Framework_TestCase { /** * @var Form */ public $form; /** * @var array */ public $formTypes = array(); public function setUp() { ...
true
da1c886fa28172d668d6b26c269151295e09112d
PHP
TwilioDevEd/call-forwarding-php
/db/seeds/CSenatorsSeeder.php
UTF-8
833
2.53125
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php use App\QueryBuilder as DB; use Phinx\Seed\AbstractSeed; class CSenatorsSeeder extends AbstractSeed { public function run() { $senators_json = file_get_contents(__DIR__ . "/../../config/senators.json"); $senators = array_map(function($senator) { $state = self::getStateByName(...
true
de7e44ce86c73e825e55570ffc5786fb9b7430b0
PHP
githubguster/codeigniter_bootstrap
/app/Libraries/Plugins/Interfaces/Bootstrap/NavbarIcon.php
UTF-8
1,439
3.046875
3
[ "MIT" ]
permissive
<?php /** * @author guster */ namespace App\Libraries\Plugins\Interfaces\Bootstrap; class NavbarIcon { private $isImage; private $image; private $imageName; private $css; private $isDivider; private $subMenu; /** * @param bool $isImage * @param string $image * @param stri...
true
c81875d876bce5b69aee90b085cdbf5a4a0685ed
PHP
jnicols11/LeadUserAPI
/app/Services/Data/UserDAO.php
UTF-8
5,695
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Services\Data; use App\Models\UserModel; use App\Services\Utility\LeadLogger; use Illuminate\Support\Facades\DB; class UserDAO { public static function getUserByID($id) { // get user from database by ID $user = DB::table('user')->where('ID', $id)->first(); $user =...
true
3106e6a66de72e45df785467c80e6a7fbe9559e7
PHP
daids/qcloud-api
/src/Module/CosApi.php
UTF-8
3,858
2.625
3
[ "MIT" ]
permissive
<?php namespace Daids\QcloudApi\Module; use Illuminate\Contracts\Config\Repository; use GuzzleHttp\Client; class CosApi { private $appId; private $secretId; private $secretKey; private $server = 'http://web.file.myqcloud.com/files/v1/'; private $httpClient; public function __construct(Reposit...
true
d28a39f2d52fc7b6b3c27aef40c19e365e4fe1ac
PHP
albertomenamontejos/infodpTienda
/libreria/ORM/actualiza_existencias.php
UTF-8
1,157
2.625
3
[]
no_license
<?php include_once 'Conexion.php'; $objeto = new Conexion(); $conexion = $objeto->Conectar(); // Recepción de los datos enviados mediante POST desde el JS $idProducto = (isset($_POST['idProducto'])) ? $_POST['idProducto'] : ''; $arrayCantidades = json_decode($_POST['datos']); $cant_array = count($arrayCantidades)...
true
de35d1937923e7fc150b86138ed74dce1f302a22
PHP
veleno-do/app_template
/src/framework/core/storage/providers/SessionServiceProvider.php
UTF-8
2,050
2.828125
3
[ "MIT" ]
permissive
<?php /** * Centrally manage and provide sessions. * This file cannot be edited. * * * セッション機能を一元管理し提供します。 * このファイルは編集不可です。 */ namespace MyMVC\Core\Storage\Providers; use \MyMVC\Core\Providers\ApplicationServiceProviderInterface as ProviderInterface; // => /framework/core/providers/ApplicationServiceProv...
true
d9921d63f87ec3ec385e65281f08330c8cdf3655
PHP
Isabellebengrine/CRUDphpExercice
/controller/add_script.php
UTF-8
7,342
3.046875
3
[]
no_license
<?php // déclaration regex $regTitle = '/^[A-Za-z ]+$/';//sert à title et label aussi $regYear = '/^([19]*[20]*)+[0-9]{2}$/'; $regGenre = '/^[A-Za-z, \/]+$/';//autorise aussi / et , $regPrice = '/^[0-9]{1,4}[,.]{0,1}[0-9]{0,2}$/';//nb decimal (ou pas) avec . ou , // déclaration tableau d'erreur...
true
5d094011970276fa6b493ce951059b7c114a65aa
PHP
AbbyGz/SwKit
/src/Loader/SwKits.php
UTF-8
1,153
2.671875
3
[]
no_license
<?php namespace Loader; use pocketmine\Player; use pocketmine\Server; use pocketmine\utils\Config; use pocketmine\event\Listener; use pocketmine\plugin\PluginBase; use pocketmine\utils\TextFormat; use pocketmine\command\Command; use pocketmine\command\CommandSender; class SwKits extends PluginBase implements Listene...
true
779972f6425a42780561869cd23ddae63f16ca09
PHP
coelho2210/cs313-Projects
/web/week07/login.php
UTF-8
2,173
3.078125
3
[]
no_license
<?php session_start(); $success = $_GET['success']; // check if I have user and password if (isset($_POST['user']) && isset($_POST['pass'])) { //store the user and password $username = htmlspecialchars($_POST['user']); $password = htmlspecialchars($_POST['pass']); //catch the database require_on...
true
bec8282b4060de0e115f40b877261e294630c5d0
PHP
Naveedali1234/workingpartner
/app/Http/Controllers/ShareValueController.php
UTF-8
2,743
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\ShareValue; use Illuminate\Http\Request; class ShareValueController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $share_values = ShareValue::all();...
true
5deb4269ad25abb8f3c67a1a3475e88d60bd70fb
PHP
HasanKulbuzhev/tool_shop_laravel
/database/migrations/2021_04_10_231352_create_orders_table.php
UTF-8
1,672
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateOrdersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('orders', functio...
true
780b424f1e7aa76b652cf0ab0bd10705bd8f6321
PHP
Chemaclass/stock-ticker
/src/StockTicker/Domain/Crawler/Site/FinanceYahoo/JsonExtractor/StreamStore/News.php
UTF-8
2,741
2.859375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Chemaclass\StockTicker\Domain\Crawler\Site\FinanceYahoo\JsonExtractor\StreamStore; use Chemaclass\StockTicker\Domain\Crawler\Site\FinanceYahoo\JsonExtractorInterface; use Chemaclass\StockTicker\Domain\Crawler\Site\Shared\NewsNormalizerInterface; use DateTimeImmutable; final ...
true
2673eb1dc66e78c312453582280664989e7c5a59
PHP
wb3ar/admin-panel
/src/classes/FormErrors.php
UTF-8
5,360
3.25
3
[]
no_license
<?php /** * Класс для хранения ошибок отправленной формы. */ class FormErrors { /** * Ошибка в переменной: имя пользователя. * * @var string */ private $errorFirstName; /** * Ошибка в переменной: фамилия пользователя. * * @var string */ private $errorLastName; /** * Ошибка в пе...
true
183d17327e63d0793bc16e7d1a74615df13e7325
PHP
IvayloIV/PHP-Web-Basics
/PHP-Web-Basics-May-2019/Lab-Functions_Objects_and_Classes/04.Road_Radar.php
UTF-8
663
3.0625
3
[ "MIT" ]
permissive
<?php $speed = intval(readline()); $area = readline(); function getLimit($area) { $limit = 0; switch ($area) { case 'motorway': $limit = 130; break; case 'interstate': $limit = 90; break; case 'city': $limit = 50; ...
true
e3306f1313733e2197296a95f25545ad03f6728d
PHP
denvkr/armmicrocomp
/www/mg-plugins/BlankEntity/index.php
UTF-8
7,218
2.59375
3
[]
no_license
<?php /* Plugin Name: blank-entity Description: Плагин является заготовкой для разработчиков плагинов определяется шорткодом [blank-entity], имеет страницу настроек, создает в БД таблицу для дальнейшей работы, использует собственный файл локали, свой CSS и JS скрипы. Author: Avdeev Mark Version: 1.0 */ new ...
true
389d3b5915f73468c9ff1926a2d006f5d852752b
PHP
martinhej/robocloud
/src/robocloud/Kinesis/RobocloudKinesisClient.php
UTF-8
1,277
2.75
3
[ "Apache-2.0" ]
permissive
<?php namespace robocloud\Kinesis; use Aws\Sdk; use Symfony\Component\DependencyInjection\ContainerInterface; class RobocloudKinesisClient { /** * @var array */ protected $config; /** * @var array */ protected $clients = []; /** * RobocloudKinesisClient constructor. ...
true
a31dc25fe55f8445f75abef95dc9a886822414e1
PHP
cherifGsoul/expressive-auth-example
/src/App/src/Action/AuthAction.php
UTF-8
1,900
2.5625
3
[]
no_license
<?php namespace App\Action; use Interop\Http\ServerMiddleware\DelegateInterface; use Interop\Http\ServerMiddleware\MiddlewareInterface; use Psr\Http\Message\ServerRequestInterface; use Zend\Authentication\AuthenticationService; use Zend\Diactoros\Response\HtmlResponse; use Zend\Diactoros\Response\RedirectResponse; us...
true
a73899a815079fe3f805f1e4aef27441c64edb5b
PHP
sheaxiang/laravel-vue-admin
/src/Requests/StorePermissions.php
UTF-8
761
2.59375
3
[]
no_license
<?php namespace SheaXiang\LaravelAdmin\Requests; class StorePermissions extends ApiRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply ...
true
8371ea1ae93d38f1888b2366efd831e5d43a1ea6
PHP
ianfoose/relaxful-php
/relaxful.php
UTF-8
1,450
3.109375
3
[]
no_license
<?php /** * Relaxful Class * * @version 1.0 */ class Relaxful { /** * Constructor */ public function __construct() { /* */ } /** * Builds a cURL Connection * * @param string $url URL * @param string $method HTTP method * @param array $bodyData HTTP body data * @param array $headers Headers * @return str...
true
13babd45970e5dfe28cf75cdc5369630f5f03424
PHP
hammadalinaqvi/internify
/protected/controllers/ContactController.php
UTF-8
1,183
2.578125
3
[]
no_license
<?php class ContactController extends Controller { public function actionIndex() { $model = new Contact; if(isset($_POST['submit'])) { //echo ' hello'; $first_name = $_POST['f_name']; $last_name = $_POST['l_name']; $email = $_POST['email']; $subject = $_POST['subject']; $m...
true
f440015f6f152e8b2a4c84aa49203f69960fc024
PHP
camiloguettes/SNS.1.2
/app/model/CompetenciaModel.php
UTF-8
3,756
2.71875
3
[]
no_license
<?php class CompetenciaModel { private $db; public function __construct(){ $this->db = new Base(); } public function all() { try{ $this->db->query( "SELECT * FROM competencias AS c INNER join programas_formacion AS p on c.fk_id_programa=p....
true
814ebccd4baf4af496d56f4db05dbcd6e8f09cc7
PHP
PatrolServer/patrol-laravel
/src/Services/Server.php
UTF-8
884
2.96875
3
[ "MIT" ]
permissive
<?php namespace PatrolServer\Patrol\Services; use PatrolServer\Patrol\Facades\Patrol as Sdk; use URL; class Server { public static function current() { $url = URL::to('/'); $servers = Sdk::servers(); $host = parse_url($url, PHP_URL_HOST); $host = preg_replace("/^www\./", "", $hos...
true
9e87a76737ca926d066834e6646d0d49c9079732
PHP
amine-elghazali/gestion_lsi_BACKEND
/app/Http/Controllers/EtudiantController.php
UTF-8
1,365
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Etudiant; use Illuminate\Http\Request; class EtudiantController extends Controller { public function getEtudiants () { $etudiants = Etudiant::all(); return $etudiants; } public function getOneEtd($id){ return $getEtud...
true
b8974a983436f69c8ef8a2a364fbb6aaa8225672
PHP
rtens/domin
/src/delivery/web/adapters/curir/root/ExecuteResource.php
UTF-8
1,963
2.640625
3
[ "MIT" ]
permissive
<?php namespace rtens\domin\delivery\web\adapters\curir\root; use rtens\domin\delivery\web\adapters\curir\CurirBreadCrumbsTrail; use rtens\domin\delivery\web\adapters\curir\CurirParameterReader; use rtens\domin\delivery\web\resources\ExecutionResource; use rtens\domin\delivery\web\WebApplication; use watoki\curir\cook...
true
ec4cd71fcfd8f982c7c197feecdcff01dd49d31d
PHP
henmusta/kepegawaian
/application/models/User_model.php
UTF-8
550
2.515625
3
[ "MIT" ]
permissive
<?php /** * @var user_id [seharusnya diambil dari session] */ class User_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_last_notif() { $this->db->select('last_notification_id AS last'); $query = $this->db->get_where('tb_admin', ['i...
true
0715b9270e16fb645f0a6c7295481692e3d79fd1
PHP
iandownie/base-project
/base_wp_setup/nji-setup/nji-debug.php
UTF-8
4,382
2.734375
3
[]
no_license
<?php // // this file should only be included if NJIMEDIA_DEBUG == TRUE. // add_action( 'wp_enqueue_scripts', 'njimedia_debug_enqueue_style' ); add_action( 'wp_enqueue_scripts', 'njimedia_debug_enqueue_script' ); function njimedia_debug_enqueue_style() { $path = plugins_url('assets/css/debugmagic.css', __FILE__ ); ...
true
e8ef9aa43297dc864552ee811ac3e872439173f3
PHP
robin-zhao/rzSchemaorgPHPConverter
/Robinzhao/SchemaOrg/Thing/Intangible/StructuredValue/GeoCoordinates.php
UTF-8
1,299
2.796875
3
[]
no_license
<?php /** * This is an auto generated file. */ namespace Robinzhao\SchemaOrg\Thing\Intangible\StructuredValue; use Robinzhao\SchemaOrg\Thing\Intangible\StructuredValue; /** * Geo Coordinates * http://schema.org/GeoCoordinates */ class GeoCoordinates extends StructuredValue { /** * The elevation of a l...
true
19725a9f483c043d4e2aa3897b9071090c8e2731
PHP
Suchawadeee/yii-app
/Chemical.php
UTF-8
2,319
2.796875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "chemical". * * @property integer $chemical_ID * @property string $chemical_name * @property string $chemical_formula * @property integer $type_id * @property integer $category_id * * @property Category $category * @property Ty...
true
1b4f61fba86625bfd878c573f8aadfc3d662909e
PHP
Zweer/Sudoku
/Sudoku/Grid.php
UTF-8
7,157
2.890625
3
[]
no_license
<?php require_once(dirname(__FILE__) . '/Cell.php'); require_once(dirname(__FILE__) . '/Region/Row.php'); require_once(dirname(__FILE__) . '/Region/Column.php'); require_once(dirname(__FILE__) . '/Region/Block.php'); require_once(dirname(__FILE__) . '/Settings.php'); require_once(dirname(__FILE__) . '/SolvingTechnique...
true
6c90fa33d3a5c9c3e4d53ba2715fe1334f68b1b8
PHP
Abdujabbar/news-platform
/core/View.php
UTF-8
1,093
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: abdujabbor * Date: 7/10/18 * Time: 3:05 PM */ namespace core; class View { protected $layout = "layouts/base"; public function __construct($layout = "") { if ($layout) { $this->layout = $layout . PHP_EXT; } } public fun...
true
6b44eacc8ff748dd6bef12eb982145aa6feefe8e
PHP
mantx/twitter_track
/app/models/Tweets.php
UTF-8
325
2.65625
3
[]
no_license
<?php class Tweets { public function getTweetsByUser($userid) { $db = Database::getInstance(); //get all twitter users from database $sql = "select t.id, t.tweet_id_str, t.text from tweet t join twitter_user tu on t.twitter_user_id=tu.id where tu.userid='{$userid}'"; return $db->query($sql); } } ...
true
4f70404e30de0195043d1275f43114863a648b66
PHP
peckadesign/ElasticsearchQuery
/src/ElasticQuery/Query/MustCollection.php
UTF-8
682
2.703125
3
[]
no_license
<?php declare(strict_types = 1); namespace Pd\ElasticSearchModule\Model\ElasticQuery\Query; class MustCollection implements \Pd\ElasticSearchModule\Model\ElasticQuery\ICollection { /** * @var \Pd\ElasticSearchModule\Model\ElasticQuery\Query\ILeafQuery[] */ private $collection; public function __construct( ...
true
cfbc624d50ce50ea13981d20a4197ee69319330a
PHP
Emjy1990/Portfolio
/LCDV/src/Entity/PaymentMode.php
UTF-8
1,820
2.5625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity(repositoryClass="App\Repository\PaymentModeRepository") */ class PaymentMode { /** ...
true
4a398c956cee59fc0be6dc92f27cb9579f39eea7
PHP
jhdielman/atommvc
/atom/app/core/abstractions/Model.php
UTF-8
3,013
2.65625
3
[]
no_license
<?php namespace Atom; abstract class Model implements \JsonSerializable { const JsonDateFormat = "j/n/Y"; public $fields = []; public $rules = []; protected $validator = null; public function __construct($data = null) { $this->validator = new Validator($this->rules); ...
true
c1f1c02b3c6d838ad88ba498b62ed47fee43304b
PHP
soldiers1989/Moncher
/application/models/admin/QuestionnaireModel.php
UTF-8
6,906
2.59375
3
[]
no_license
<?php require_once(dirname(dirname(dirname(dirname(__FILE__)))).'/system/core/Model.php'); class QuestionnaireModel extends CI_Model { /** *********************************************************** *方法::QuestionnaireModel::__construct * ---------------------------------------------------------- * 描述::数据库基础类初始...
true
595e03befa2def7dfb8c182884769cb93d8877c0
PHP
12aleksandr12/yii-test2
/models/TestForm.php
UTF-8
390
2.546875
3
[]
no_license
<?php namespace app\models; use Yii; use yii\base\Model; use yii\db\ActiveRecord; /** * ContactForm is the model behind the contact form. */ class TestForm extends ActiveRecord { public static function tableName(){ return 'users'; } public function rules(){ return [ [ ['name','ema...
true
1f0458e3a982f97175edbc0fdae51a5f0a26cd38
PHP
mattowc/Code-LT
/wp-content/plugins/wiziapp/includes/blocks/image_resizing.php
UTF-8
6,853
2.6875
3
[]
no_license
<?php /** * Make sure every image size we need is available from wordpress * * @todo sync this with the same code part in the global services * * @todo Add file rotating like in the log files, only the conditions here * should be: older then 30 days, wasn't accessed for 7 days, if the folder is bigger than 10 mb ...
true
5e3d5c27ed5e63661d48c3553aca3739add2eb12
PHP
solangeDev/zupietru
/app/Repositories/Admin/PermissionRoleRepository.php
UTF-8
712
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Admin; use App\Models\Admin\PermissionRole; use InfyOm\Generator\Common\BaseRepository; /** * Class PermissionRoleRepository * @package App\Repositories\Admin * @version August 1, 2018, 6:10 pm UTC * * @method PermissionRole findWithoutFail($id, $columns = ['*']) * @method Perm...
true
547ca8ef654f2a958383122c095220a7c1b4e2c3
PHP
joco1204/bonart
/app/model/taquilla.php
UTF-8
4,879
2.671875
3
[]
no_license
<?php class Taquilla{ function __construct(){ $this->business = new Business(); } public function consultar(){ $conn = $this->business->conn; $db = $this->business->db; //Valida conexión a base de datos if($conn){ $arrayTabla = array(); $query = "SELECT a.id, b.tipo_identificacion, a.identificacio...
true
d71199d6874aa00c11b362ae8a79bc745b781d39
PHP
fallart/php-io
/src/Input/src/AbstractTypedCollection.php
UTF-8
1,250
3.046875
3
[]
no_license
<?php /** * @copyright Copyright (c) 2020 Jobplanner Ltd. (jobplanner.io) */ declare(strict_types=1); namespace Input; use Iterator; abstract class AbstractTypedCollection implements Iterator { private array $data = []; /** * PropertiesCollection constructor. * * @param array $data */...
true
c8f5e9c6874c4a89ad02c1a2a60442886ae021ea
PHP
ramasofficial/card-game-task-kilo
/app/Domain/Card/Validator/CardValidator.php
UTF-8
438
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Domain\Card\Validator; use App\Domain\Card\Repository\CardRepository; class CardValidator { public function isUnique(CardRepository $repository, string $type, string $value, string $field): bool { return !($repository->isUnique($type, $value, $field) > 0)...
true
accc951719f81945dd671e6e8c20e24b292612f3
PHP
ABob/y-dl-on-a-server
/deleteFile.php
UTF-8
994
2.796875
3
[]
no_license
<?php require "utils.php"; if($_SERVER['REQUEST_METHOD'] == "POST"){ $json = processRequest(); $file = $json->file; $error = ""; if (!isFileValidToRemove($file)){ $error = "It's not allowed to remove files other than the previous downloaded!"; } else { $error = removeFile($file); ...
true
394c21c71641c527b5c7f1d7720af8973d54e9a2
PHP
edouardkombo/gig-test
/Entity/ItemType.php
UTF-8
1,603
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Entity; use Doctrine\ORM\Mapping AS ORM; use \App\Lib\Helper as Helper; /** * @ORM\Entity * @ORM\Table(name="item_type") **/ class ItemType { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue */ protected $id; /** * N...
true
0ea3aafc16bc6307d01299acda455ec679ffbb58
PHP
motionpicture/sskts-portal
/lib/logger.php
UTF-8
2,956
2.734375
3
[]
no_license
<?php /** * @author Atsushi Okui <okui@motionpicture.jp> * @link https://m-p.backlog.jp/view/SSKTS-124 */ namespace Sasaki\Cinemasunshine; use Monolog\Logger as BaseLogger; use Monolog\Handler\ChromePHPHandler; use MicrosoftAzure\Storage\Common\ServicesBuilder; require 'Monolog/Handler/AzureStorageHandler.php'; u...
true
acfc4e534e1fff76157348e8a2f29cb7bc189776
PHP
edutilos6666/Php7Tutorial
/Superglobals.php
UTF-8
1,917
3.03125
3
[]
no_license
<html> <head> <body> <?php /* * $GLOBALS * $_SERVER * $_REQUEST * $_POST * $_GET * $_FILES * $_ENV * $_COOKIES * $_SESSION */ $name = "foo"; $age = 10 ; $wage = 100.0 ; $nl = "<br/>"; function print_props() { $name = $GLOBALS["name"]; $age = $GLOBALS["age"]; $wage = $GLOBALS["wage"]; $nl = $GLOBAL...
true
13f01ac25710d8426005d6fa44c01be58d64202d
PHP
szeber/yapep_base
/src/Debug/Item/Storage.php
UTF-8
2,256
2.75
3
[]
no_license
<?php declare(strict_types=1); namespace YapepBase\Debug\Item; use YapepBase\Exception\InvalidArgumentException; use YapepBase\Helper\DateHelper; /** * Item which represents a storage usage. */ class Storage extends ItemAbstract { use THasExecutionTime; /** Set storage method. */ const METHOD_SET = 's...
true
e52291ef3264361f61578cf25d8f6dc8ae3a9005
PHP
Tumppe/Eletorix
/eletorix/changepwd.php
UTF-8
2,514
2.609375
3
[]
no_license
<?php require_once("db-init.php"); if (!isset($_SESSION)) session_start(); if (isset($_SESSION['userId'])) { //if (isset($_POST['submitSN'])) { $uusi_sn = $_POST['uusi_sn']; $uusi_sn_uudelleen = $_POST['uusi_sn_uudelleen']; $nykyinen_sn = $_POST['nykyinen_sn']; //echo "userId: " ...
true
1a607baaad587fc04ddc85d642940d320c7915b0
PHP
axel584/samopiniuloj
/db/vortoj.inc.php
UTF-8
11,364
2.515625
3
[]
no_license
<?php /* * trovas vorton laux tago kaj cxirkauxias la radikon per <rad>-markoj * EN : tago, monato, jaro * EL : vorto */ function troviVorton($tago, $monato, $jaro) { $query = "select vorto from sam_vortoj where tago='".$tago."' and monato='".$monato."' and jaro='".$jaro."'"; mysql_select_db("sam"); //...
true
4916bf835029f1d586dda4ce529df97aebcce2a5
PHP
justinvoss/senatepages2003.com
/pictures/resize.php
UTF-8
661
2.796875
3
[]
no_license
<?php $MAX_WIDTH = 500; $original_img = ImageCreateFromJPEG("images/img_" . $id); if(!$original_img) die("no image!"); $old_width = ImageSx($original_img); $old_height = ImageSy($original_img); if($old_width > $MAX_WIDTH) { $scale = $MAX_WIDTH / $old_width; $new_width = $MAX_WIDTH; $new_height = $scale * ...
true
af7d2cd48390b76b420c4646d049810c908d45ee
PHP
gcool-info/thoughtforchange
/social.php
UTF-8
2,441
2.703125
3
[ "CC0-1.0" ]
permissive
<html> <head> <?php /* Script to set the article's meta information for facebook. */ /* GET the article ID from the url */ $articleID = $_GET["article"]; if($articleID !== "") { $url = 'http://spreadsheets.google.com/feeds/list/1tvA65txvR4oN_MC4MMxtVekjJyGAzCZ5gVuAxDpS6Q0/od6/public/value...
true
dc031b6b39b7486403b99e3cfda39af6cef7f397
PHP
dinukamihiran/SLPA
/php/Add_New_User.php
UTF-8
9,149
2.546875
3
[]
no_license
<?PHP session_start(); if (!(isset($_SESSION['login']) && $_SESSION['login'] != '')) { header ("Location: ../index.php"); } <<<<<<< HEAD else if( $_SESSION['status'] == "User") { header ("Location: main.php?pageID=0"); } ======= >>>>>>> 196240c3772e4e56f44b2fcb59e1d0ff11f1660b include "server.php"; ?> <?php...
true
af849c8bc876ea9cefe421172cfeece43274aab6
PHP
hackbeex/wechat
/src/OfficialAccount/Event.php
UTF-8
2,456
2.796875
3
[]
no_license
<?php /** * Author: Hackbee */ namespace LightWechat\OfficialAccount; use LightWechat\Utils\XML; trait Event { protected $events = []; // 注册的事件 /** * 订阅消息事件 * @param $event_type * @param $callback */ public function registerMsgEvent($event_type, $callback) { $this...
true
01ee767f3081536f0ebf2d2d37c6b09e64f1a082
PHP
ryo33/Octagora1
/require/Session.php
UTF-8
1,354
2.703125
3
[]
no_license
<?php class Session{ function __construct(){ session_start(); $this->is_login = false; $this->user_id = false; } function get($name, $default=false){ if(isset($_SESSION[$name])){ return $_SESSION[$name]; } return $default; } function se...
true
cd2729234835080eba721c5aaea424c2279457f6
PHP
i421/i421-carMiniProgbackend
/app/Jobs/Backend/Permission/UpdatePermissionsJob.php
UTF-8
2,128
2.53125
3
[]
no_license
<?php namespace App\Jobs\Backend\Permission; use Illuminate\Bus\Queueable; use Illuminate\Foundation\Bus\Dispatchable; use App\Tables as TablesModels; use stdClass; class UpdatePermissionsJob { use Dispatchable, Queueable; /** * 角色ID * * @var integer */ private $role_id; /** ...
true
7dd6c82426bba271717db6ecac7ada79973b0a14
PHP
d0xa/Utep-Edge-Website
/login/verify_registration.php
UTF-8
1,679
2.625
3
[]
no_license
<?php session_start(); $host ="ilinkserver.cs.utep.edu"; $db = 'f19_team9'; $DBusername = 'raguilarsa'; $DBpassword = '*utep2020!'; #$table ='user' $conn = new mysqli($host,$DBusername,$DBpassword,$db); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } #echo "Conne...
true
f1599f15e8bbf8011dd8e29ca8e08014a60bb0ac
PHP
AngeloDeLeon/emanager
/server.php
UTF-8
5,362
2.984375
3
[]
no_license
<?php session_start(); // variable declaration $firstname = ""; $middlename = ""; $lastname = ""; $birthday = ""; $email = ""; $username = ""; $errors = array(); $_SESSION['success'] = ""; // connect to database $connection = mysqli_connect('localhost', 'root', '', 'emanager'); /...
true
3850795f9879484b0f070a874eaa280e46867052
PHP
fantao963/BNF-parser
/Parser/BNFParser.php
UTF-8
8,588
2.859375
3
[]
no_license
<?php /** * DONE TODO: support in BNF syntax "||" -- for any order "once-occurrences" * DONE TODO: make support of {2} -- repeating count REFACTOR * DONE TODO: support comments and empty lines in BNF * DONE TODO: support multiline BNF rules * DONE TODO: shadow ::= ("inset" <space>+)? && (<length> (<space>+ <...
true
ce6643048b9133e4bb6b93e4af6c40fb38bb2614
PHP
alexescalante1/SISTEMA_INVENTARIO
/admin/controladores/usuarios.controlador.php
UTF-8
9,871
2.59375
3
[]
no_license
<?php class ControladorUsuarios{ /*============================================= MOSTRAR TOTAL USUARIOS =============================================*/ static public function ctrMostrarTotalUsuarios($orden){ $tabla = "usuarios"; $respuesta = ModeloUsuarios::mdlMostrarTotalUsuarios($tabla, $orden); retur...
true
102da57aaa833beea8ab5bc5d85353428f3372a4
PHP
xfontes42/lbaw1723
/app/User.php
UTF-8
1,710
2.609375
3
[]
no_license
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Facades\DB; class User extends Authenticatable { use Notifiable; protected $primaryKey = 'username'; // or null public function getName(){ $customer = DB::table('...
true
06788d4bef9ac5ee2807d49588a39c3ebf4bf541
PHP
alserom/viber-php
/src/Event/Type/ConversationStarted.php
UTF-8
1,591
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Alserom\Viber\Event\Type; use Alserom\Viber\Entity\User; use Alserom\Viber\Event\AbstractEvent; use Symfony\Component\OptionsResolver\OptionsResolver; /** * Class ConversationStarted * @package Alserom\Viber\Event\Type * @author Alexander Romanov <contact@alserom.com> */...
true
86fc17dd08dd1485a365b1e264b624ed5dea9f79
PHP
YNCBearz/design-pattern
/app/SOLID/ISP/CoffeeMachine/Contracts/AutomaticCoffeeMachineInterface.php
UTF-8
186
2.640625
3
[]
no_license
<?php namespace App\SOLID\ISP\CoffeeMachine\Contracts; interface AutomaticCoffeeMachineInterface { public function grind($coffeeBeans); public function brew($coffeePowder); }
true
2c0e7691dc4dd99a355f887c57d0e109242189f0
PHP
GrzegorzW/quiz
/src/AppBundle/Service/MailManager.php
UTF-8
1,413
2.765625
3
[]
no_license
<?php namespace AppBundle\Service; class MailManager implements MailManagerInterface { protected $mailer; protected $twig; protected $fromMail; protected $mailName; public function __construct(\Swift_Mailer $mailer, \Twig_Environment $twig, $fromMail, $mailName) { $this->mailer = $mai...
true
120a45dee4b6c409af700631c6fe0bf7b2a19a6b
PHP
RafProjGit/HealthyLife
/Codice/Paziente.php
UTF-8
1,365
2.859375
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <head> <title>Paziente</title> <link rel="ICON" href="favicon.ico" type="image/ico"> <meta name="author" content="Cataletti, D'Auria, Nunziata,Rotolo"> <meta name="description" content="Pagina PHP per il controllo del paziente"> <meta http-equiv="Content-type" content=...
true
148f4800707d8138224589b566998715c96f05d8
PHP
woody712/wechart-client
/src/WeChart/Corp/Message/Video.php
UTF-8
478
2.75
3
[]
no_license
<?php namespace WeChart\Corp\Message; class Video extends Media { protected $_type = 'video'; public function setVideo($mediaId, $title = null, $description = null) { $this->setMediaId($this->_type, $mediaId); if ($title !== null) { $this->_data[$this->_type]['title'] = $title...
true
71580e69720b927edc736e3d0a9c96f6cb589cae
PHP
mayconbordin/siga-i
/sigai/app/Services/Abstracts/CrudService.php
UTF-8
1,620
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Services\Abstracts; use App\Repositories\Test\BaseRepositoryContract; use App\Services\Contracts\CrudServiceContract; abstract class CrudService extends BaseService implements CrudServiceContract { /** * @var BaseRepositoryContract */ protected $repository; protected $with ...
true
407112bd4ccc642603e96edecdf4f8fe82c57c20
PHP
VIVEK-432/Stereo_Connect-PHP
/artist.php
UTF-8
2,978
2.65625
3
[]
no_license
<?php include("includes/includedFiles.php"); if (isset($_GET['id'])) { $artistId= $_GET['id']; } else { header("Location: index.php"); } $artist = new Artist($con, $artistId); ?> <div class="entityInfo borderBottom"> <div class="artistInfo"> <div class="leftSection"> <img src...
true
a8f6ac79aee88c83c3e195aa1d6a8b92dd60214f
PHP
NickKalar/database_project
/invoice.php
UTF-8
1,994
2.5625
3
[]
no_license
<?php require 'helpers.php'; require 'style/header.php'; require 'style/footer.php'; session_start(); if(!isActive()) {header("Location: login.php");} $form = "<form method ='POST'> <div style='text-align: center; '><br><br>"; $result = $db->query("describe nkalar.Invoice"); if( isset($_POST["Cost"]) && isset($_POS...
true
9a8bd666460b7d017a20ead0aaff7590ef364d4d
PHP
devboard/lib-github
/spec/PullRequest/PullRequestNumberSpec.php
UTF-8
885
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace spec\DevboardLib\GitHub\PullRequest; use DevboardLib\GitHub\PullRequest\PullRequestNumber; use PhpSpec\ObjectBehavior; class PullRequestNumberSpec extends ObjectBehavior { public function let() { $this->beConstructedWith($value = 1); } public functio...
true
1a01be319c7345f0ee0b06b4450fbaebd1481bde
PHP
notgandalf1/belezenje_prisotnosti
/student_update.php
UTF-8
1,000
2.796875
3
[]
no_license
<?php include_once "seja.php"; include_once "db.php"; $id = $_POST['id']; //id studenta $ime = $_POST['ime']; $priimek = $_POST['priimek']; $studentska_stevilka = $_POST['studentska_stevilka']; try { //preverim ali so podatki polni if(!empty($ime) && !empty($priimek) && !empty($studentska_stevilka)) { ...
true
b61be0ec1a8695687a57c3061cbb36eaf3a4f383
PHP
Ehab97/php-forum
/classes/Topic.php
UTF-8
4,161
2.890625
3
[]
no_license
<?php /** * summary */ class Topic { //init db variable private $db; public function __construct() { $this->db = new Database(); } //get all topics public function getAllTopics() { $this->db->query("SELECT topics.*,users.username,users.avatar,categories.name FROM `topics` INNER JOIN `us...
true
4ef9f33f00e774c4e93cd3ec747039e3c591d6f6
PHP
giacomoalbe/web-php-xampp
/6_associativi/index.php
UTF-8
1,919
3.546875
4
[]
no_license
<?php // Array posizionale $array = [ 1, 2, 3, 4, 5, 6 ]; $utente_associativo = [ "nome" => "Giacomo", "cognome" => "Alberini", "ruolo" => "developer", "eta" => "27", "os" => "Linux", ]; $chiavi_utente = array_keys($utente_associativo); // Aggiungere un elemento ad un array $array[] = 7; // Aggiungere u...
true
a87ff5c1174f441ac1add5120835ae20145c19fb
PHP
FnK-Lap/Social_club
/Lucas/models/table.class.php
UTF-8
3,875
2.921875
3
[]
no_license
<?php // Abstract permet de ne pas pouvoir instancier la class Table abstract class Table { // protected comme le private mais les class fille peuvent y acceder protected $primary_key; protected $table_name; protected $fields; public function __construct() { if (!empty($this->table_name)) { $this->detectFi...
true
ead5ab15cddc22f343e72665a4b84b1f7bbcb31c
PHP
vvolis/Autocaller
/voip-calling-master-6b357bd015ce136c081e872b66ddfc881d60b5ea/app/Libraries/VoipCrawler.php
UTF-8
1,007
2.796875
3
[]
no_license
<?php namespace App\Libraries; use Goutte\Client; class VoipCrawler { public static function getCreditsData(): array { $crawlerUrl = env('VOIP_URL'); $client = new Client(); $crawler = $client->request('GET', $crawlerUrl); $form = $crawler->selectButton('Login')->form(); $form['lusername'] = env('VOI...
true
6c9c9834c75c2720bbfcfacc746d7d3ad8c83ab3
PHP
DmytroSuranov/wezom
/app/Http/Controllers/FrontController.php
UTF-8
1,009
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class FrontController extends Controller { public function getAboutPage(){ return view('about'); } public function getSendMessage(Request $request){ $body_msg = "Пользователь : ".$request->fio."\r\n"; $body_msg .= "Телефон : ".$re...
true
18dab7c381de9af338457549b9190d94b3160209
PHP
sandeepv548/carinventorysystem
/helpers/Helper.php
UTF-8
4,708
2.671875
3
[]
no_license
<?php function p($data) { echo "<pre>"; print_r($data); die; } function getValue($value) { return trim($_REQUEST[$value]); } function response($status, $msg, $data = FALSE) { $responseData['status'] = $status; $responseData['message'] = $msg; if ($data != FALSE) { $responseData['d...
true
111f5d51c32e742f78e3da3dd89c38a917e76986
PHP
Digital4design/insurancePortal
/app/Services/UserService.php
UTF-8
4,659
2.625
3
[]
no_license
<?php namespace App\Services; class UserService { public function handleUserLogin() { $API_URL = env('API_URL'); $this->updateUserActivityTime(); $this->updateUserLastSeen(); // $this->callAPI($API_URL); } private function updateUserLastSeen() { $now = now()...
true
f963b1443a6b4ecbd1c212783425fc313beee909
PHP
GrafiteInc/Builder
/src/Packages/Logs/app/Services/LogService.php
UTF-8
4,977
2.578125
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php namespace {{App\}}Services; use Exception; use Illuminate\Pagination\LengthAwarePaginator; class LogService { protected $date; protected $page; protected $path; protected $level; public $levels = [ 'emergency', 'alert', 'critical', 'error', 'warni...
true
b73b1e6370f999fd4de4396a39a27a0693250712
PHP
mima3/MultilanguageTokyoMetro
/src/Controller/Json/GetTranslationLogController.php
SHIFT_JIS
2,062
2.5625
3
[ "MIT" ]
permissive
<?php namespace Controller\Json; /** * |󃍃OĎ擾 */ class GetTranslationLogController extends \Controller\ControllerBase { public function route() { $model = $this->models['TranslationLogModel']; $limit = 20; if ($this->app->request->params('rows')) { $limit = $this->app->re...
true
6b8c6477b2f26c0add90a8dd917b1be9a4fe3273
PHP
hugostech/sys_console
/app/Label.php
UTF-8
455
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Label extends Model { protected $table = 'labels'; protected $fillable = array( 'price','description','type' ); public function setDescriptionAttribute($value){ if (is_array($value)){ $this->attributes['de...
true