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
465b1b8e1ca5d79d40c3e593008f64dea501f003
PHP
tonyydl/KantingWeb
/tmp/str/kanting_store_show.php
UTF-8
1,269
2.65625
3
[]
no_license
<html> <head> <title>單純測試網頁</title> </head> <body> <?php $link = pg_connect("host=localhost dbname=kantinggo user=kantinggo password=XJ9#25M2"); if (!$link) { die('Could not connect: '); } $sel1="select * from kanting_store_info ;"; $sel2=pg_query($sel1); while($sel3=pg_fetch_row($sel2)) { if($sel3[0]!=0){ echo...
true
aad1bbaae5bc659c140786dc6904bc679a2b3e76
PHP
mammatus95/wp-wetterturnier
/user/widgets/tournaments.php
UTF-8
9,568
2.578125
3
[]
no_license
<?php // ------------------------------------------------------------------ // - NAME: widgets/tournaments.php // - AUTHOR: Reto Stauffer // - DATE: 2014-07-15 // ------------------------------------------------------------------ // - DESCRIPTION: Shows datepicker on frontend with dates where // ...
true
bbb3b14fdd456747c0e7f4e0b6f537781e9cb267
PHP
MayteMenderico/Coding_Academy_exercises
/pool_php_d07/ex_01/Character.php
UTF-8
848
3.65625
4
[]
no_license
<?php class Character { protected const CLASSE = "Character"; protected $name = ""; protected $life = 0; protected $agility = 0; protected $strength = 0; protected $wit = 0; public function Character(string $name) { $this->name = $name; $this->life = 50; $this->agil...
true
32ef426d14bfa80b9995109ce3de2b11f02f5073
PHP
edyerena086/reclutati
/app/Rules/Front/Candidate/CurrentJobHistory.php
UTF-8
1,819
2.640625
3
[ "MIT" ]
permissive
<?php namespace ReclutaTI\Rules\Front\Candidate; use Auth; use ReclutaTI\CandidateJobHistory; use Illuminate\Contracts\Validation\Rule; class CurrentJobHistory implements Rule { private $id; /** * Create a new rule instance. * * @return void */ public function __construct($id) { ...
true
497fa46c23c17e2cf69eb540ca4ab0e866c08c04
PHP
antsattack/vitrinepro
/src/Models/Entity/Currency.php
UTF-8
1,039
2.71875
3
[]
no_license
<?php namespace App\Models\Entity; /** * Currency * * @Table(name="currency") * @Entity */ class Currency { /** * @var int * * @Column(name="id", type="integer", nullable=false) * @Id * @GeneratedValue(strategy="IDENTITY") */ public $id; /** * @var string|null ...
true
0b187bd2ec55af25add333959101a77574858df7
PHP
nmalva/CAMEXAM
/code_vP/html/exp_excel_backup/candidate_exportexcel_list_r&ue.php
UTF-8
5,687
2.703125
3
[]
no_license
<?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
true
5cd533e3e4b8dcfddf4d7c31ad91c64d98fa09f6
PHP
cs22120/project
/group02Upload/server/install.php
UTF-8
2,471
2.6875
3
[]
no_license
<?php /** * This is the entry point for the installation wizard for the Walking Tour * Displayer. * * @file */ # valid entry point define( 'ENTRYPOINT', true ); require ( 'includes/templates.php' ); /* # check if config file has already been created if ( file_exists( 'config.php' ) ) { # disal...
true
3c5b3a34326b2c7affbc8541d21d9a20c495a536
PHP
samleybrize/php-cryptopp
/tests/filter/symmetric-transformation-filter-with-user-class.phpt
UTF-8
2,351
3.203125
3
[ "PHP-3.01", "MIT" ]
permissive
--TEST-- Symmetric transformation filter with user class --FILE-- <?php class SymmetricTransformationUser implements Cryptopp\SymmetricTransformationInterface { private $key; private $iv; public function getName() { return "user"; } public function getBlockSize() { return ...
true
9a56aeb748f34472276482be8693cdd489d9989f
PHP
chenglei12345/algo
/php/06_linkedlist/testLinkedList.php
UTF-8
12,466
3.578125
4
[ "Apache-2.0" ]
permissive
<?php namespace Algo_06; /** * 定义链表节点 */ class SingleNode{ public $data; public $next; public function __construct($data = null){ // 定义节点数据 $this->data = $data; // 定义节点下一个指针 $this->next = null; } } /** * 定义单链表 */ class SingleLinkedList{ // 头节点 public $head; // 长度 private $length;...
true
513f0495c92b148f2e1846718ca94b628b98c487
PHP
hillerlin/loan
/common/behaviros/TrusteePay.php
UTF-8
1,789
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace common\behaviros; use Yii; /** * Description of TrusteePay * * @author Administrator * @datetime 2017-5-22 14:37...
true
e57eef89050e0e61ef3d01f6e57d509d7186f591
PHP
EonConsulting/laravel-lti
/src/Classes/Domains.php
UTF-8
2,789
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jharing10 * Date: 2017/02/15 * Time: 12:10 PM */ namespace EONConsulting\LaravelLTI\Classes; use EONConsulting\AppStore\Models\AppCategory; use EONConsulting\LaravelLTI\Models\LTIDomain; class Domains { static public function listDomains() { $domains_obj = ...
true
60058a0c3c736dd107783c983bd4c22761a5b158
PHP
AlexanderWhi/tplshop2
/modules/board/LibBoard.class.php
UTF-8
718
2.609375
3
[]
no_license
<? class LibBoard{ /** * @return LibBoard */ static function getInstance(){ return new self; } function getBoard($opt=array()){ $condition="b.status=1 AND date_to>='".date('Y-m-d')."'"; if(!empty($opt['category'])){ $condition.=" AND b.category={$opt['category']}"; } $order=" ORDER BY ti...
true
0b89a8ff8b7d240aeafc8f1dbeab6e32eeb7c36f
PHP
nmcwilli/inspirational-note-demo
/includes/display-quote.php
UTF-8
637
3.265625
3
[]
no_license
<?php // Query for a random inspirational note to display on the page function inspirational_note_content ( $content ) { // Set global vars global $wpdb; // Generate random number between 1 to 5 $randNum = rand(1,5); // There are currently only 5 quotes // Set table Name $tableName = $wpdb->prefix.'inspirati...
true
724d484fe46f802fb72c525f898eb3e2fec54ef9
PHP
krukas/phpstanM2
/src/Type/FloatType.php
UTF-8
1,321
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace PHPStan\Type; use PHPStan\TrinaryLogic; class FloatType implements Type { /** * @return string|null */ public function getClass() { return null; } /** * @return string[] */ public function getReferencedClasses(): array { return []; } public function ...
true
0db426bf6842a316f196fdfd163c3baecb209654
PHP
svalench/my_mvc_ex
/1models/init.php
UTF-8
2,883
2.96875
3
[]
no_license
<?php include_once $_SERVER["DOCUMENT_ROOT"].'/core/connector.php'; class Model { public $column =[]; private $errorExec; private $table; private $D; public function __construct($table = '') { $this->errorExec = false; $this->table = $table; } // Выполняет SQL-запрос и возвращает количество затро...
true
d7c97d08a55e30c45a5538d1df93a84e42e8265d
PHP
huguifeng/000
/tests/TemperatureTest.php
UTF-8
533
2.515625
3
[ "Apache-2.0" ]
permissive
<?php use \Mockery; use PHPUnit\Framework\TestCase; use Src\Temperature; class TemperatureTest extends TestCase { public function tearDown() { Mockery::close(); } public function testGetsAverageTemperatureFromThreeServiceReadings() { $service = Mockery::mock('service'); $ser...
true
3df45489568542b1c99314dda8e2bc90aaf0d9b5
PHP
Setono/HttpClientBundle
/src/HttpClient/Request/Request.php
UTF-8
1,781
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Setono\HttpClientBundle\HttpClient\Request; use Symfony\Contracts\HttpClient\ResponseInterface; final class Request { private string $method; private string $url; private array $options; private ?ResponseInterface $response = null; public function __c...
true
f9961f3989ad43a2b51b278f2e7dbd78be22634b
PHP
mongui/RSSReader
/models/configuration.php
UTF-8
1,892
2.875
3
[ "Apache-2.0" ]
permissive
<?php if (!defined('MVCious')) exit('No direct script access allowed'); /** * Configuration Model. * * @package RSSReader * @subpackage Models * @author Gontzal Goikoetxea * @link https://github.com/mongui/RSSReader * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 */ class Configura...
true
7b4029b4692a88eb85811935eefa8678e1a8168e
PHP
weierophinney/zf-web
/public/issues/secure/attachment/10204/Zend_Log_Adapter_Db-Patch.phps
UTF-8
1,106
2.796875
3
[]
no_license
<?php class Zend_Log_Adapter_Db implements Zend_Log_Adapter_Interface { /* ... */ /** * Writes an array of key/value pairs to the database, where the keys are the * database field names and values are what to put in those fields. * * @param array $fields * @return bool ...
true
6ac0deba1ff0269cf1bf89def973e6f32d56ebc7
PHP
jonathancd/Laravel-multilanguage-module
/multi-lang/app/Http/Controllers/ItemController.php
UTF-8
2,062
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; use App\Module; use App\Translation; use Validator; class ItemController extends Controller { public function create($id){ $module = Module::find($id); if($module){ return view('items.create', ['module' => $module])...
true
450d0b1d663d139695f94c6c1721d6f12d078c1f
PHP
eddo81/create-nova-theme
/src/templates/theme/copy/inc/Core/Breadcrumb.php
UTF-8
1,690
2.859375
3
[]
no_license
<?php namespace App\Core; use function esc_html; use function esc_url; use function get_the_title; use function get_option; use function get_page_link; use function home_url; use function is_front_page; /** * Class Breadcrumb. * * @package <%= packageName %> * @author "eddo81 <eduardo_jonnerstig@live.com>" * @l...
true
17ceb58912ee0d0794c09365746987123f42f166
PHP
hattrick-french-dtn/dtn-interface
/bug/core/tokens_api.php
UTF-8
5,423
2.515625
3
[]
no_license
<?php # Mantis - a php based bugtracking system # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org # Copyright (C) 2002 - 2004 Mantis Team - mantisbt-dev@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details...
true
c28c36dfe9fa65b3f38b69e21c1684c476356c76
PHP
catgento/module-product-feed
/Export/Context.php
UTF-8
5,787
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Magenest\ProductFeed\Export; use Magenest\ProductFeed\Export\Step\StepFactory; use Magenest\ProductFeed\Helper\Io; use Magenest\ProductFeed\Model\Config; use Magento\Framework\Serialize\SerializerInterface; class Context { /** * @var int */ protected $productExportStep = 0; /** ...
true
a095fc71ce9141feb7a01c9eeee94e95a0cd7343
PHP
toghraee/AutoNET
/av_room_info.php
UTF-8
6,706
2.5625
3
[]
no_license
<?php echo "<html>"; echo "<head>"; echo "<title>AutoNet\\ AV Room Information</title>"; echo "</head>"; echo "<body bgcolor=#009999 lang=EN-US style='tab-interval:.5in'>"; echo "<P fontsize=15 align=center>"; echo " AutoNet\\ FTR Information </p>"; echo "<br>"; echo "<p align=center><font size=48 color=NAVY>AV Room I...
true
e6e9e6e35aea1f4c5111e625078a94fc9418aefc
PHP
kimdoseok/hrs_sample
/PatientsModel.php
UTF-8
237
2.515625
3
[]
no_license
<?php class PatientsModel extends CommonModel { function __construct() { parent::__construct(); $this->table_name = "patients"; $this->field_names = array("patient_name"); $this->key_names = array("patient_id"); } }
true
8355d87552943ba87a07fb7baf08e00b031b0e6a
PHP
codevidershpk/mts1617
/G10/ushtrimi-3/1/testDb.php
UTF-8
796
2.578125
3
[]
no_license
<?php /** * */ require '../db.php'; class TestDb { private $db; public function __construct() { $db = new DB('localhost','mts_usht3','mts','UD2uH4aPaFZpSfAc'); $this->db=$db; } public function testConnection(){ $respons = $this->db->connect(); if($respons->success){ return '<span style=...
true
cfa6e67c3b7c2388077ebab67f7e07c7e2821b3f
PHP
bkvirendra/My-Great-App
/index.php
UTF-8
5,176
2.53125
3
[]
no_license
<?php session_start(); if (isset($_SESSION['id'])) { header("location: home.php"); } require 'src/facebook.php'; require 'db/functions.php'; $facebook = new Facebook(array( 'appId' => ' ', // Add your APP ID here 'secret' => ' ', // Add your App secret here )); // See if there is a user from a cookie $user...
true
113996fb4d87662eb0584f50635f9d8d4a5ca0c2
PHP
Yacorami/angularBack
/app/Models/Invoice.php
UTF-8
900
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * @property integer $id * @property integer $instrument_id * @property integer $user_id * @property float $amount * @property Instrument $instrument * @property User $user */ class Invoice extends Model { /** * The table associat...
true
b9900696129a56b089c709669c40768f5487e467
PHP
taniyoshiki/kadai2
/practice2.php
UTF-8
1,148
3.90625
4
[]
no_license
<?php echo 'hello php!'; echo "\n"; $name = "itou"; if ($name == "tani") { echo "私はtaniです"; }else{ echo "あなたの名前ではありません。"; } echo "\n"; $total = 0; for ($i = 1; $i < 10001; $i++) { $total += $i; } echo $total; echo "\n"; $fruits = array("apple", "orange", "lemon","strawberry","pineapple",); echo count($fruits...
true
5a2b3a6aa23944eeb2b5ec9d34f321f7db5bb337
PHP
xiayiyongphper/pintuan
/cms/backend/models/StoreCommission.php
UTF-8
1,532
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "store_type". * * @property string $id 店铺类型ID * @property string $name 店铺类型名称 * @property int $commission_type 佣金类型 1佣金系数 2现金 * @property int $commission_val 佣金数值 * @property string $create_at 创建时间 * @property string $update_at ...
true
52ff17b353b28d78d63533c4a5aafd27eb952f7a
PHP
forummaks/forum_maks
/forum/db/caches.php
UTF-8
3,288
2.578125
3
[]
no_license
<?php if (!defined('FT_ROOT')) die(basename(__FILE__)); class CACHES { var $cfg = array(); // конфиг var $obj = array(); // кеш-объекты var $ref = array(); // ссылки на $obj (имя_кеша => кеш_объект) function CACHES ($cfg) { $this->cfg = $cfg['cache']; $this->obj['__stub'] = new cache_comm...
true
80c01c4f8cf99c93a5b64c82650815dda0b7ab05
PHP
gongweichao/php-study
/decorator.php
UTF-8
2,137
3.4375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: gwc * Date: 2018/9/5 * Time: 14:39 */ /** * Class html * 抽象一个html类 */ abstract class html { abstract public function makestyle(); abstract public function maketigs(); abstract public function output(); } class tig extends html { public $tigs; pub...
true
c553b05a163d2701bcc0018b04464cc6447b3eef
PHP
JonathanCHEMLA/ma-formation
/POO/06-surcharge-abstraction-finalisation-interface-trait/trait.php
UTF-8
801
3.4375
3
[]
no_license
<?php // ATTENTION, les traits ne fonctionnent que depuis PHP 5.4 trait TPanier { public $nbProduit = 1; public function affichageProduits(){ return 'Affichage des produits'; } } //-------- trait TMembre { public $nbProduit = 1; public function affichageMembre(){ return 'Affichage des membres'; } } //--...
true
4028b906932d2b5416557c2c5e8a0d4444e84e83
PHP
pschocke/google-maps-links
/src/GMapsLocation.php
UTF-8
1,459
3.109375
3
[ "MIT" ]
permissive
<?php namespace pschocke\GoogleMapsLinks; class GMapsLocation { private $baseUrl = "https://www.google.com/maps/search/?api=1"; private $location; private $lat; private $long; public $placeId; public function __construct($placeId = null) { $this->placeId = $placeId; } /*...
true
01a7e525e7718ed9fd15580934189b120d414576
PHP
anggilb/codeeval
/02 - moderate/187_consecutive_primes.php
UTF-8
352
3.5625
4
[]
no_license
<?php class consecutivePrimes { private $_val = array(0,0,1,0,2,0,2,0,4,0,96,0,1024,0,2880,0,81024,0,770144); public function getValue($input) { return $this->_val[$input]; } } $class = new consecutivePrimes(); foreach (explode(PHP_EOL, trim(file_get_contents($argv[1]))) as $line) { echo $class-...
true
6b7b5f0bced36ef773df640689068130dd95af90
PHP
EmilyFitzlaff/CursoHCode
/Exercícios/Exercícios PHP (lista 03)/ex04.php
UTF-8
975
2.734375
3
[]
no_license
<form> <label for="valor">Informe o valor do produto: </label><br> <input type="text" name="valor" id="valor" placeholder="Digite aqui" required> <br><br> <label for="codigo">Informe o código de origem: </label><br> <input type="number" name="codigo" id="codigo" placeholder="Digite aqui" required> <br><br> <inpu...
true
76772ce2f0065eae551faf82add74d2e2a135f66
PHP
makameister/framework.dev
/src/Framework/Renderer/RendererInterface.php
UTF-8
532
2.765625
3
[]
no_license
<?php namespace Framework\Renderer; interface RendererInterface { /** * @param string $namespace * @param string $path */ public function addViewPath(string $namespace, string $path): void; /** * @param string $viewName * @param array<string, mixed> $params * @return string ...
true
de8003a11a529d36d230d5af76cebb0eec138426
PHP
jetimob/notafacil-sdk-php-laravel
/src/Entity/City.php
UTF-8
858
2.796875
3
[ "MIT" ]
permissive
<?php namespace Jetimob\NotaFacil\Entity; use Jetimob\Http\Traits\Serializable; class City { use Serializable; protected int $id; protected string $nome; protected string $codigo_ibge; protected ?string $ddd; protected State $estado; /** * @return int */ public function ge...
true
af42fb28c47fffe4a28c5a3ef0d88d3876c814c8
PHP
devens2010/CapstoneTextingDead
/submitScore.php
UTF-8
1,859
2.875
3
[]
no_license
<?php if (!session_id()) { session_start(); } if (isset($_POST['submitScore'])) { require 'dbConnect.php'; if (isset($_POST['uName']) && $_POST['uName'] != "") { $userName = $_POST['uName']; } else if (isset($_POST['uName']) && $_POST['uName'] == "") { $userName = "Guest"; ...
true
b1f4d0dd336922f8e11203bab333bc072d58a300
PHP
brookjy/storage
/model/service.food.php
UTF-8
6,037
2.5625
3
[ "MIT" ]
permissive
<?php if(!defined('In_System')) exit("Access Denied"); class Food_Service{ private $serviceType; private $startDate; private $endDate; private $startTime; private $endTime; private $isBooked; private $token; private $ppl; public function __construct() { $this->serviceType = is...
true
55436e7fb320b5bf7214ae353915e746f5699091
PHP
jorgecasar/slim-boilerplate
/postDeployComposer.php
UTF-8
4,469
2.671875
3
[]
no_license
<?php $basePath = "./"; //Relative project root path $tmpDir = "tmp/"; //Composer HOME for current project $composerPHARFile = "composer.phar"; $composerInstallFile = "composerinstall.php"; $composerJsonFile = "composer.json"; $composerLockFile = "composer.lock"; $basePath = rtrim(realp...
true
d56be8f43e1a5dee47a950aacff24269212b31e7
PHP
MacFJA/validator
/tests/Annotation/GreaterThanTest.php
UTF-8
3,832
2.671875
3
[]
no_license
<?php namespace MacFJA\Tests\Validator\Annotation; use MacFJA\Validator\Annotation\GreaterThan; class GreaterThanTest extends \PHPUnit_Framework_TestCase { /** * @param $propertyValue * @param $constraintType * @param $constraintValue * @param $expected * * @dataProvider dataProvi...
true
a7b737a51988589be2e70b22f7eb1e7e2f65a357
PHP
chen64449748/mycore2.0
/Core/Router/RouteFilter.php
UTF-8
1,655
2.8125
3
[]
no_license
<?php class RouteFilter { // 过滤方法 private $closure = array(); private static $filter; // 存放ioc private $container; // 单例 private function __construct() { } public static function init() { if (!self::$filter) { self::$filter = new self(); } return self::$filter; } public function s...
true
3467cb62e1de84ca5b694fb378faf7499c48fbdc
PHP
ouracademy/repuestop
/app/Domain/Entities/Company.php
UTF-8
1,277
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Domain\Entities; use Doctrine\ORM\Mapping as ORM; use App\Domain\Entities\Party; /** * @ORM\Entity * @ORM\Table(name="companies") * @ORM\HasLifecycleCallbacks() */ class Company extends Party{ /** * @ORM\Column(name="current_name" ,type="string") * */ protected $nam...
true
262fdf69325db948c244406fa768bf1d12cd52f9
PHP
moraesmax/jankenpon
/php/Class/Player.php
UTF-8
1,187
3.0625
3
[]
no_license
<?php define( 'FULL_HEALTH', 100 ); define( 'FULL_SPECIAL', 100 ); define( 'HEALTH_DECREASE', 25 ); define( 'HEALTH_INCREASE', 25 ); define( 'SPECIAL_INCREASE', 35 ); class Player { public $name; public $icon; public $healthPoints; public $specialPoints; public $lastMovePlayed; public function _...
true
9aeb6316f01b2e13ffddc1dea1019658014a0b63
PHP
TejoPrihono/latihanakhir
/database/seeds/ArticlesSeeder.php
UTF-8
1,425
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class ArticlesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $articles = [ [ "title" => "1 Suka suka", "content" => "lorem ipsum dolor cament" ],...
true
d219ac4b736a39390797da27e04c10c2f393b47e
PHP
h3len/Project
/livsns/api/program/program_update.php
UTF-8
3,296
2.546875
3
[]
no_license
<?php /*************************************************************************** * LivSNS 0.1 * (C)2004-2010 HOGE Software. * * $Id: program_update.php 20671 2013-04-19 03:44:15Z lijiaying $ ***************************************************************************/ define('ROOT_DIR', '../../'); define('CUR_...
true
4c5892e7a8baa6b62321e0ccef4b864ca8282ff1
PHP
KhanhTran0112/php_3layer
/models/database.php
UTF-8
2,038
2.796875
3
[]
no_license
<?php /** * */ require_once 'comment.php'; class Database { function __construct() { } public function execute($sql) { $connect = new mysqli('localhost', 'root', '', 'db_comment'); mysqli_set_charset($connect, 'utf8'); $result = $connect->query($sql); $connect->close(); return $r...
true
b9b87feba19a93445ebddd1ea9074dfd0b0481ab
PHP
shanhubei/bootstrap-to-wordpress-theme
/bootstrapwp/sidebar.php
UTF-8
1,384
2.59375
3
[ "MIT" ]
permissive
<!-- Sidebar --> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('First_sidebar') ) : ?> <h4>分类目录</h4> <ul> <?php wp_list_categories('depth=1&title_li=&orderby=id&show_count=0&hide_empty=1&child_of=0'); ?> </ul> <?php endif; ?> ...
true
2bd2bb1273d25ffabc6c2722eddbd046ab5ca44a
PHP
Zeltarion/Kursi
/models/tables/Users.php
UTF-8
416
2.546875
3
[]
no_license
<?php class Users extends TableGateway { public function __construct() { parent::__construct('users'); } public function id_users() { $login = $_SESSION['login']; $Sql = 'SELECT id_user FROM users WHERE login = \''.$login.'\''; $rez = $this->db->query($Sql); ...
true
1f624492ed61a0535d9e1c61662fb26b89a07ff1
PHP
wp-plugins/hypercontact
/functions.php
UTF-8
5,897
3
3
[]
no_license
<?php /** * Get users based on usernames or group. * @param array. Acceptet fields are: * gravatarsize - int - the size of the gravatar * single - bool - is single user * username - string - a single user or multiple users in comma seperated list * fields - string - a string that contains a field to sow....
true
57ef8127c3023adb4c084fa9b1a30a76fe03553d
PHP
Alexsa2412/bleau
/app/Services/Usuario/UsuarioService.php
UTF-8
374
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Services\Usuario; use App\Repositories\Usuario\UsuarioRepository; class UsuarioService { private $usuarioRepository; public function __construct(UsuarioRepository $usuarioRepository) { $this->usuarioRepository = $usuarioRepository; } public function obterCodigoDeVe...
true
d2534880296e2bca89f2cc1305c73939bdacd7f9
PHP
marcosquixada/sgpi
/cadastros/origem/cadastrar.php
UTF-8
1,615
2.703125
3
[]
no_license
<?php include($_SERVER['DOCUMENT_ROOT']."/sgpi/header.php"); if ( !empty($_POST)) { // keep track validation errors $descError = null; // keep track post values $desc = $_POST['descricao']; // validate input $valid = true; if (e...
true
67bb72240b92a7a4b90dc86d82231c6723eb3605
PHP
lancedx2/BenBot
/lib/commands/say/say.class.php
UTF-8
765
3.015625
3
[]
no_license
<?PHP require_once 'lib/base.class.php'; require_once 'lib/commandInterface.php'; class say extends base implements icommand { protected $response; function __construct() { } function handleCommand($user, $channel, $params) { $sentence = ''; if (strpos($params[0], "#") !== false) { ...
true
a66c3791e8d3d7447c7ce0ed32d0889ce09b8a38
PHP
vbrh-immalle/LaravelCliTry
/app/Console/Commands/MyCoolProgressBar.php
UTF-8
1,398
3.125
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; class MyCoolProgressBar extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'mycool:progressbar'; /** * The console command description. * ...
true
6ce62d40c27a1016ae3e0491c8fd049dc852c0cc
PHP
code16/responder
/src/JsonResponder.php
UTF-8
10,326
2.640625
3
[ "MIT" ]
permissive
<?php namespace Code16\Responder; use Code16\Responder\Exceptions\ResponderException; use Code16\Responder\Interfaces\HasMessageBag; use Exception; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Responsable; use Illuminate\Http\JsonResponse; use Illuminate\Http\Resources\Json\JsonResourc...
true
b289875b527bee25c78c4fb56eca43a449def75e
PHP
anoop-pathak/git-demo
/app/Console/Commands/ChangeJobsWorkflow.php
UTF-8
4,143
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Carbon\Carbon; use App\Models\Company; use App\Models\User; use App\Models\Workflow; use App\Models\Job; use App\Models\WorkflowStage; use App\Models\JobWorkflowHistory; use Illuminate\Support\Facades\DB; class ChangeJobsWorkflow extends Comman...
true
cce68cfab75dbe8891970c1897dcf8ff2ea9f7f2
PHP
rahulyhg/OpenDCIM_GSPE
/classes/Container.class.php
UTF-8
14,905
2.875
3
[]
no_license
<?php /* VIO Intelligence DCIM This is the main class library for the VIO Intelligence DCIM application, which is a PHP/Web based data center infrastructure management system. This application was originally written by PT VIO Intelligence */ class Container { var $ContainerID; var $Name; var $ParentID; var $D...
true
c4d6118cb1ff011b3e292ff5d6d81972fc4f1a71
PHP
benjaminthedev/TBS-Website
/vendor/lukerodham/trustpilot-api/src/TrustPilot.php
UTF-8
621
2.640625
3
[]
no_license
<?php namespace LukeRodham\TrustPilot; use LukeRodham\TrustPilot\Sections\Reviews; class TrustPilot { private $client; /** * TrustPilot constructor. * * @param string $apiKey * @param string $businessUnitId * @param string $email * @param string $password */ public fun...
true
d60d038327c0e69cb47a01024ff675fcb8d2386c
PHP
hi-noikiy/ryx
/apps/Oa/Model/OaWorkplanModel.class.php
UTF-8
2,206
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: liubingtao * Date: 2018/2/2 * Time: 14:16 */ namespace Oa\Model; use Common\Model\PublicModel; class OaWorkplanModel extends PublicModel { protected $_auto = [ ['status', 11, self::MODEL_INSERT, 'int'], ['add_time', 'date', self::MODEL_INSERT, 'funct...
true
b387ee2d21a2f4c1cac4b889c2df104908dafecc
PHP
AxMdv/rk2
/index.php
UTF-8
993
3.40625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset = "utf-8"> </head> <body> <h1> Variant 5 </h1> <!DOCTYPE html> <html> <head> <meta charset = "utf-8"> </head> <body> <h1< Variant 5 </h1> <h2> Zadanie 1 </h2> <form action = ""> <select multiple name = "year[]" size = "3"> <option value = "year"> </o...
true
9886cc504d3717e7f16c73643d0adee8c38dc7d4
PHP
AaronKhah92/rmg
/app/Order.php
UTF-8
616
2.625
3
[]
no_license
<?php namespace App; use Carbon\Carbon; use App\Article; use Illuminate\Database\Eloquent\Model; class Order extends Model { /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = [ 'date_start', 'date_end', ]; public function a...
true
bd50e29b2fe74c44cb3dbfc4ed9cae098a3c41aa
PHP
sabbirsabat/lukas-ecommerce-website-php-oop
/Classes/Customer.php
UTF-8
21,120
2.96875
3
[]
no_license
<?php $filepath = realpath(dirname(__FILE__)); include_once ($filepath.'/../lib/Database.php'); include_once ($filepath.'/../helpers/Format.php'); ?> <?php class Customer{ private $db; private $fm; public function __construct(){ $this->db = new Database(); $this->fm = new ...
true
480dbbf58f8c1eb1498b4ce5fac3bd2ea5ed2851
PHP
inpho/pubs_OLD
/parse/includes/old/parseVariants.php
UTF-8
2,892
3.453125
3
[]
no_license
<?php function createVariants($firstname, $lastname) { $returnArray = array(); $returnFirstname = array(); $firstname = " Andrew Delano Mutu"; // $lastname = "Abbott"; $firstname = trim($firstname); $lastname = trim($lastname); // Count how many first name $f...
true
33d14525801a2b60f11a94468d73753b2169def5
PHP
packagist/bitbucket-api
/lib/Bitbucket/API/Teams/Permissions.php
UTF-8
1,296
2.9375
3
[ "MIT" ]
permissive
<?php namespace Bitbucket\API\Teams; use Bitbucket\API\Api; use Psr\Http\Message\ResponseInterface; class Permissions extends Api { /** * Get the highest permissions for every member of the team * * @param string $team The team's name or uuid. * @return ResponseInterface */ public fu...
true
23035970f2493ef370ce4ae49582e746b8515564
PHP
Comp4711Asn2Group17/Assignment-2-PHP
/application/controllers/Play.php
UTF-8
6,294
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Play * * @author a7823 */ class Play extends Application { //put your code here //playing pag...
true
c6a843f203d40c9d82707d752de9f210fd41636c
PHP
1630444/TAW-2019
/Practica_6/views/modules/habitacion_create.php
UTF-8
3,323
2.6875
3
[]
no_license
<!-- /////////////// MODULO DE CREAR HABITACIONES ///////////////// --> <!-- Recuadro --> <div class="col-xs-12"> <div class="box-content"> <h4 class="box-title" style="margin-left: auto; margin-right: auto; font-size:25px; text-align: center;">Registrar Habitaciones</h4> <hr> <!--/// Todo ...
true
132f3ba53dd7a3d43b98efa577167510c8e69618
PHP
IvayloIV/PHP-Web-Basics
/PHP-Web-Basics-May-2019/Exercise-Interfaces_and_Abstraction/13.Wild_Farm/Mouse.php
UTF-8
394
3.15625
3
[ "MIT" ]
permissive
<?php class Mouse extends Mammal { public function makeSound() { return 'SQUEEEAAAK!'; } /** * @param Food $foot * @throws Exception */ public function eat(Food $foot) { if ($foot->getFoodType() !== 'Vegetable') { throw new Exception("Mouses are not ...
true
80a4a0394e7235a427d49078acfb9204c0aa9319
PHP
pear/PHP_CodeSniffer
/tests/Core/Reports/Mock/Gitblame.php
UTF-8
5,480
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Gitblame report mock class. * * PHP version 5 * * @category PHP * @package PHP_CodeSniffer * @author Ben Selby <benmatselby@gmail.com> * @copyright 2009 SQLI <www.sqli.com> * @copyright 2006-2011 Squiz Pty Ltd (ABN 77 084 670 600) * @license http://matrix.squiz.net/developer/tools/php_cs/l...
true
a14ed586cebd55af1d3b8657041e112c38595752
PHP
adrianacerdeira-zz/RecursosPHP
/Aula_40_Classes_e_Objetos/Model/Carro.php
UTF-8
3,200
3.65625
4
[]
no_license
<?php /** * Created by PhpStorm. * User: AdrianaL * Date: 30/05/2020 * Time: 12:30 */ class Carro { //poderão ser acessadas fora da Classe public $anoDeFabricacao; public $modelo; public $cor; public $marca; //poderão ser acessadas só pela própria Classe private $nomeDoDono; //po...
true
2e918997fc39508916b04abad7ec3fb5a6649d81
PHP
wannesvrijs/testremote_new-master
/Service/Container.php
UTF-8
3,590
2.828125
3
[]
no_license
<?php class Container { private $configuration; private $pdo; private $cityLoader; private $taakLoader; private $messageService; private $userService; private $opmaakService; private $uploadEid; private $uploadImage; private $saveService; private $detailEiffeltoren...
true
d069444dad9fd2959fb5293c0126eb05ca6cd22e
PHP
pavarnos/threema-msgapi-sdk-php
/tests/Threema/Console/Symfony/EncryptDecryptTest.php
UTF-8
2,067
2.703125
3
[ "MIT" ]
permissive
<?php /** * @file * @author Lightly Salted Software Ltd * Date: 11/08/18 */ declare(strict_types=1); namespace Threema\Console\Symfony; use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Tester\CommandTester; use Threema\MsgApi\ConnectionFactory; use Threema\MsgApi\Helpers\Constants; use Threema\MsgAp...
true
44ea74a766b268616013fda9520c3efdee029ead
PHP
espositojoaquin/Parcial2ProgramacionIII
/parcial/src/Middlewares/MidUser.php
UTF-8
3,582
2.609375
3
[]
no_license
<?php namespace App\Middleware; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Server\RequestHandlerInterface as RequestHandler; use Slim\Psr7\Response; use App\Models\User; use App\Utils\Funciones; use App\Utils\Archivos; use stdClass; use Imagick; class UserBefore { /*...
true
4e28fa6abcd9580cea2841d3c1d29509a006e1bb
PHP
charruaafull/muebleria
/protected/models/CrudMaderas.php
UTF-8
3,976
2.625
3
[]
no_license
<?php class CrudMaderas { public static function getCodigo($cod) { $sql = "Select count(*) tot From maderas Where Cod_Mad = $cod"; $res = sistema::getFila($sql); $tot = $res['tot']; return $tot; } public static function getMaderas() { $sql = "Select * From ...
true
6842e9adf8bb9bf84726345a15167dce1c7676c5
PHP
Fabv19/web-assessment
/index.php
UTF-8
5,348
2.8125
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> </head> <body> <header> <h1>Web Assessment</h1> </header> <input type="text" id="myInput" onkeyup="myFunction()" placeholder="Filtered Search..." title="Type in a name"> <button onclick="updateTable()">Update</button> <button o...
true
a03de77a75201c17f612cd38336a399fa6ec99f9
PHP
susom/redcap-em-lamp-study-portal
/src/Patient.php
UTF-8
7,791
2.671875
3
[ "MIT" ]
permissive
<?php namespace Stanford\LampStudyPortal; use Sabre\VObject\Cli; use Stanford\LampStudyPortal\Task; use \GuzzleHttp\Client; /** * Class Patient * @package Stanford\LampStudyPortal */ class Patient { /** * const variables */ const email = 'email'; const mobileNumber = 'mobile_number'; con...
true
9877761efa78e7ae1c5a0bb304c295789f8fa92a
PHP
adamf92/af-booking-api
/app/Calendar.php
UTF-8
4,338
3.296875
3
[]
no_license
<?php namespace App; class Calendar { /** * Month Calendar * * Generate calendar array for every room in hotel * JSON Schema: * "0": * { year: int, $month: int}, * "1..(28-31)": { * "roomNumber(int)": { * "number": int, * "reservation": ...
true
0d6093929a392b8f56dd87f650f481c4a1d6ec72
PHP
andy0025681/cms_php
/app/model/Login.php
UTF-8
1,600
2.796875
3
[]
no_license
<?php namespace model; class Login { private $staffAccountList; function __construct() { $this->staffAccountList = new StaffAccountList(); } function recordLoginStatus($acc, $pw) { $aging = 3600 * 24; // cookie 的時效 $data = $this->staffAccountList->getStaffDataByAcc($ac...
true
500152cd1ef8bfd1c041241f723ad7eab2c8e375
PHP
IvanReview/MagazinLaravelVue
/app/Http/Requests/CreateCategoryRequest.php
UTF-8
1,475
2.6875
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CreateCategoryRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** *...
true
d50b2c6af77c3fdd1bc8b0df291e45e47f9bebdd
PHP
izri/Ecoles
/ESILV/DevWeb/Livrables_ESILV/livrables_mini-TP_TD5/groupeE/TD5_YanZHANG.php
UTF-8
4,000
3.5
4
[]
no_license
<?php /*EXERCICE 2*/ class Vehicule{ var $marque; var $couleur; var $km; // nombre de km parcourus var $qCarburant; // quantité de carburant restante var $conso; // consommation du véhicule L/100km var $mvt; //Booléen qui sert à savoir si la voiture est en mouvement ou non function __construct(){ $num...
true
c6e33b5e48303b61c0a616bb2eeb03926c58f21f
PHP
VictorKaryaka/Teleporter-PHP-
/src/application/Father.class.php
UTF-8
126
2.703125
3
[]
no_license
<?php class Father extends Adults { public function __construct($name = '') { $this->setName($name); } }
true
1be655021b2aff3cbb3efc4e28efb933f521bd1e
PHP
KoskeyShadrack/ckcFMIS
/x0-treasury/src/csyber.class.php
UTF-8
3,993
2.875
3
[]
no_license
<?php /* * Root Csearch Functions */ if(!DEFINED("CSYBER"))exit("csyber backdoor!"); class CSYBER { /* * Carries the Facebook object after authentification so that authentification is not done from here */ protected $fb; /* * the user data as returned by $fb->api(/$user); */ protected $user; /* * userid ex...
true
99d6f0e8f75f67dec99fab9f4d46d325315febb4
PHP
damroques/damTests
/toto7.php
UTF-8
202
3.171875
3
[]
no_license
<?php $arr = array(12, -3, 45, 65, 1, 77.7, 4); $target = 5; $res = null; foreach($arr as $value){ if($res == null || abs($res - $target) > abs($value - $target)){ $res = $value; } } echo $res; ?>
true
73e60070e9e59e70d09b9ef7ce046c332ec1176c
PHP
hasantarek2002/SPL2
/TestCode/timer/dateSumSub.php
UTF-8
2,112
3.3125
3
[]
no_license
<?php echo time().'<br>'; $var = "2010-01-21 09:00:00"; echo strtotime($var).'<br>'; $var1 = "2010-1-21 9:00:0"; echo strtotime($var1).'<br>'; echo date('Y-m-d H:i:s').'<br>'; $a=strtotime("2010-01-21 09:10:00"); $b=strtotime("2010-1-21 9:0:00"); if($a>$b){ echo "first date is bigger than second Date".'<br>'; }e...
true
ab7b16c418842d8428b9256259457ba5e6fc0e56
PHP
H-Gh/christmas
/app/Library/Shapes/Tree.php
UTF-8
1,403
3.5
4
[]
no_license
<?php namespace App\Library\Shapes; /** * The tree * PHP version >= 7.0 * * @category Shapes * @author Hamed Ghasempour <hamedghasempour@gmail.com> */ class Tree extends Shape { /** * Generate the rows characters * * @return void */ private function generateRowsCharacters() { ...
true
810a15e2155852d8924d19dbdc5383d37eac3c18
PHP
cybord/tutoriales_kumbiaphp
/app/controllers/modelos_2_controller.php
UTF-8
2,029
2.875
3
[]
no_license
<?php class Modelos2Controller extends AppController { public function index() { } public function find(){ /** * el metodo find devuelve siempre un array de objetos active record * @example: * * array( * 0 => $modelo_registro_0, ...
true
80f5315060bf4a266225013067f632e043789238
PHP
EverRest/test-lamp
/www/src/Interfaces/IDB.php
UTF-8
184
2.71875
3
[ "Unlicense" ]
permissive
<?php namespace Site\Interfaces; /** * Interface IDB * @package Site\Interfaces */ interface IDB { /** * @return mixed */ public static function getInstance(); }
true
9b83addc3c5480a8eb939d334fb5094bced55dc9
PHP
kotin25/test_Adv.Cake
/test.php
UTF-8
680
2.9375
3
[]
no_license
<?php require_once 'revert.php'; class test extends revert { public function test() { $test_str = "hello"; $this -> str = $test_str; $arr_rev_step = str_split($test_str, 1); $arr_rev = array_reverse($arr_rev_step); $kat = true; for ($i = 0; $i < coun...
true
ac7140297297b206c7085b70c882dbb971787bcd
PHP
zyrif/mini-project-using-xml
/profile.php
UTF-8
1,100
2.65625
3
[]
no_license
<?php session_start(); if($_SESSION['id'] != ""){ $id = $_SESSION['id']; } else header("location: login.php"); if(file_exists('users/' . $id . '.xml')){ $xml = new SimpleXMLElement('users/' . $id . '.xml', 0, true); $id = $xml->id; $name = $xml->name; $email = $xml->email; $usertype = $xml->usertype; if($...
true
3fc78250041a92baed9dbd5bf818cf8c0f90f826
PHP
xiubou/ajax
/app/admin/controller/LoginController.class.php
UTF-8
5,057
2.5625
3
[]
no_license
<?php //后台管理员登录 class LoginController extends Controller{ protected $title = "传智商城 - 后台管理系统"; //网页标题 //显示登录页面 public function indexAction(){ require ACTION_VIEW; } public function myindexAction(){ $title="LWW&CYC后台管理系统"; require ACTION_VIEW; } //验证登录表单(限制登录失败次数) public function loginExecAction(){ // $thi...
true
8f6e9d968fee8438880e09dccff67e529f72cd4a
PHP
DRB372/laravel-Practice
/app/Http/Controllers/carsController.php
UTF-8
802
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\cars; class carsController extends Controller { public function index() { return cars::all(); } public function store (Request $request){ $cars =new cars; $cars->Name = $request->get ('Name'); $c...
true
a197df9f20c7e495ded97c3d45a7d469a833cbf1
PHP
croucour/epi-cloud-webapp
/Homestead/epi-cloud/database/migrations/2016_11_27_190031_roles.php
UTF-8
944
2.515625
3
[ "MIT" ]
permissive
<?php use App\Models\Role; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Roles extends Migration { /** * Run the migrations. * * @return void */ public function up() { $admin = Role::where('n...
true
e6938b0ce4af714428037b992caecf0034aa7f06
PHP
wonderwong/dt-king
/widgets/twitter.php
UTF-8
6,454
2.671875
3
[]
no_license
<?php class DT_Twitter_Widget extends WP_Widget { public $dt_defaults = array( 'title' => '', 'username' => '', 'number' => 6, 'link' => '', 'autoslide' => 0, ); function __construct() { $widget_ops = array( 'description' => __('Displays your tweets', LANGUAGE...
true
dce0470c676a496b2e3e29337e8d122fbbd6ad6e
PHP
Dre90/Web2
/Labs/lab2/solutions/task1.php
UTF-8
522
3.484375
3
[]
no_license
<?php /* PROGRAMMING FOR WEB II LAB 2 / TASK 1 ANSWER */ echo "Twinkle, Twinkle little star. <br/>"; //Note that html tags can be included along with the text to be echoed. $twinkle="Twinkle"; $star="star"; //This will print out exactly the same as the first echo statement. echo "$twinkle, $twinkle little $star.<...
true
190241c252d9edf957535cb697f576f8e93c45ee
PHP
tyekrgk/project_base
/admin.yyav.com/Backend/Model/AdPositionModel.class.php
UTF-8
725
2.65625
3
[]
no_license
<?php namespace Backend\Model; use Think\Model; class AdPositionModel extends Model { protected $trueTableName = 'ad_position'; public $_validate = array( array('title','require','标题不能为空'), ); //获取广告位标题 public function getPositionTitleById($id) { $allPosition = $this->fin...
true
9af1819968473f0901dac57b6da8f143ceee682b
PHP
just2b/news2
/Classes/Domain/Repository/AbstractCategoryRepository.php
UTF-8
2,642
2.609375
3
[]
no_license
<?php /*************************************************************** * Copyright notice * * (c) 2010 Georg Ringer <typo3@ringerge.org> * All rights reserved * * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute it and/or modify * it under the terms of the GNU G...
true
a4a4af662f6865e8ff19f7dc3b7453551167f4a2
PHP
JacobLutin/PHP_backup
/social_network/php/models/database.php
UTF-8
329
2.9375
3
[]
no_license
<?php class Database { public function init() { try { $connection = new PDO("mysql:host=$this->host;dbname=$this->db_name", $this->user, $this->pass); $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { echo $e->getMessage(); } return $connection; ...
true
16156820f7872eba219427df7f256d05ae705af3
PHP
DSckhar/emcac
/app/Models/Documentos.php
UTF-8
465
2.578125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Documentos extends Model { protected $fillable = [ 'titulo', 'ano', 'arquivo' ]; public static function store($documentos){ $documento = new Documentos; $documento->titulo = $documentos['t...
true
9229a97e4b4b4d228cec9b49773dccdda5e2245f
PHP
acidstout/socket_class
/class.socket.php
UTF-8
1,574
3.484375
3
[]
no_license
<?php /** * * Generic socket interface class to create a socket connection to a server. * * @author nrekow * */ class socket { private $socket = null; private $error = null; private $protocol = 'tls://'; private $hostname = ''; private $port = null; private $timeout = 120; // seconds private $errno = nu...
true
b49afee567467a4025f206ece936074cd24325ab
PHP
Taildh/Dtn
/Office/Controller/Department/Read.php
UTF-8
1,379
2.515625
3
[]
no_license
<?php namespace Dtn\Office\Controller\Department; use Dtn\Office\Model\DepartmentFactory; use Magento\Framework\App\Action\Action; use Magento\Framework\View\Result\PageFactory; use Magento\Framework\App\Action\Context; class Read extends Action { /** * @var PageFactory */ protected $pageFactory; ...
true