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
f54c082534d4798d93684f16fc853110e1e79f3c
PHP
ImperialGardenRepos/Demo
/local/php_interface/classes/CFavorite.class.php
UTF-8
1,011
2.84375
3
[]
no_license
<? namespace ig; class CFavorite { private static $instance; private function __construct() { if(!is_array($_SESSION["SK_FAVORITE"])) { $_SESSION["SK_FAVORITE"] = array(); } } public static function getInstance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return s...
true
61248c7391dc1fb4bfd78de101f64466ded66ce4
PHP
EasyLinux/Edicod
/components/FrontPage/FrontPageDb.php
UTF-8
16,905
2.71875
3
[]
no_license
<?php /** * Gestion de la base pour la page d'accueil. * Ce composant fait partie du Framework de l'application. Il affiche la page d'accueil. * * @package Edicod * @subpackage Framework * @version 1.2 * @author Serge NOEL * @todo Documenter le code * @todo Permettre la gestion des utilis...
true
6e1969bb450e3c2461a93270dfa760ca0b07e653
PHP
fransicko/WebFP
/store/templateContent.php
UTF-8
829
3.09375
3
[]
no_license
<!-- Start by making html table --> <table id="items"> <?php $server = "localhost"; $user = "mvillafu"; $pass = "CQGQOMAS"; $db = "f17_mvillafu"; $conn = new mysqli($server, $user, $pass, $db); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sel = "SELECT im...
true
fe5cd84ec225167fcd1770262900bd6816180d69
PHP
svanlippevelde/ephec-test
/test.php
UTF-8
468
2.609375
3
[]
no_license
<?php try { $bdd = new PDO('mysql:host=127.0.0.1;dbname=profephec_hauteeco;charset=utf8', 'profephec_hauteeco', 'iaAPOdDff0sk'); } catch (Exception $e) { die('Erreur : ' . $e->getMessage()); } $reponse = $bdd->query('SELECT * from professeur'); while ($ligne = $reponse->fetch()){ echo...
true
f787f868e5c7bee0fd5dff06294ee8e33be2222a
PHP
formula5041/DropbeatBackend
/registerInsert.php
UTF-8
2,059
2.6875
3
[]
no_license
<?php include('./Connection.php'); $account = htmlspecialchars($_POST["account"]); // 判斷帳號是否重複 $sqlSearch = "SELECT account FROM MEMBER where account = ?"; $statementSearch = $pdo ->prepare($sqlSearch); $statementSearch -> bindValue(1, $account); $statementSearch->execute(); $datas = ...
true
1d472e8c13e74290b2f5666f0b559838c6ca5a5c
PHP
42DidierRobin/phpPool
/d06/ex03/Vertex.class.php
UTF-8
2,240
3.234375
3
[]
no_license
<?php require_once('Color.class.php'); Class Vertex { public static $verbose = false; private $_x; private $_y; private $_z; private $_w = 1.00; private $_color; public function __construct($kwargs) { $this->_x = $kwargs['x...
true
2a828a350ef5d60fe6ac2824adbfcc25dec09117
PHP
matt1007k/project-derco
/app/Http/Controllers/VisionController.php
UTF-8
1,320
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Vision; class VisionController extends Controller { public function create(){ return view('vision.create'); } public function store(Request $request){ $vision = new \App\Vision(); $vision->nombre = $reques...
true
4727ad7b5c78447b01f8179ba5482f168e8b1a90
PHP
mjunaid720/offersstore
/app/Repositories/Flyer/Flyeraccess.php
UTF-8
2,018
2.609375
3
[ "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 Offersaccess * * @author Muhammad Junaid Aslam */ namespace App\Repositories\Flyer; use App\BaseAcce...
true
cb9cc4c713c8f03611e193c587d8f087471586c2
PHP
helpfulrobot/fb3rasp-moviepages
/code/Formfields/MovieAutoComplete.php
UTF-8
2,694
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: rainerspittel * Date: 24/07/15 * Time: 9:19 PM */ /** * Class MovieAutoComplete * * This class implements an Autocomplete field which is used to collect suggestions from the open movie database * api. This form field includes the @see MovieAutoComplete.js javascript fi...
true
1a2177063147389034e748bc71706cde8c645c25
PHP
jorgemachado23/proyectosucab
/Desarrollo/aulaVirtual/lib/form/PersonaForm.class.php
UTF-8
3,456
2.75
3
[]
no_license
<?php /** * Persona form. * * @package aulaVirtual * @subpackage form * @author Your name here * @version SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $ */ class PersonaForm extends BasePersonaForm { public function configure() { /* * Validaciones: * S...
true
67c9ee0f058d17d56c7ebe3053fb1daafb76c3d5
PHP
heinzcodeur/myBoncoin
/testo.php
UTF-8
724
3.484375
3
[]
no_license
<?php function closest(array $numbers){ if(empty($numbers)){ return 0; } $closest=null; foreach ($numbers as $number) { // if (is_null($closest)) { print_r($closest); if ($closest==0) { //die('ici'); $closest = $number; } if($close...
true
f914cd7ff5910d0f3b958c6e3e0ac31f7ce624db
PHP
phpffcms/ffcms
/Apps/ActiveRecord/FeedbackPost.php
UTF-8
1,528
2.671875
3
[ "MIT" ]
permissive
<?php namespace Apps\ActiveRecord; use Ffcms\Core\Arch\ActiveModel; use Ffcms\Core\Traits\SearchableTrait; use Illuminate\Support\Collection; /** * Class FeedbackPost. Active model for feedback requests posts. * @package Apps\ActiveRecord * @property int $id * @property string $name * @property string $email *...
true
44ff710e13045550cd9c8868141d0414a883a20f
PHP
aidenko/chubik-phpdevtest
/src/Api.php
UTF-8
1,150
2.859375
3
[ "MIT" ]
permissive
<?php namespace Aidenko\ChubikPhpdevtest; /** * Class Api * * @package Aidenko\ChubikPhpdevtest * * @method Query authors() * @method Query books() * @method Query limit() * */ class Api { /** * @var \Aidenko\ChubikPhpdevtest\Query|null */ protected $__query = null; /** * Api con...
true
31743f187f6d436f8b52534bd718be2927689c2e
PHP
morgan98/COM409
/app/Http/Controllers/ShopController.php
UTF-8
1,215
2.734375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Product; use Illuminate\Http\Request; class ShopController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $products = Product::inRandomOrder()->take(...
true
9a3f0bab61ad69a2f46801e228d4934536a7b05f
PHP
miguellugoml/CursoPHP
/ejemplo_try.php
UTF-8
825
3.34375
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento sin título</title> </head> <body> <?php function inverse($x...
true
13dfa3bcf1c965c9c392d4c9e84b7b919cc9c6e6
PHP
Awsme/TM-RU
/marathon14/server/include/db.php
UTF-8
931
3.078125
3
[]
no_license
<?php class DBConnection { public static $connection; private function __construct(){} private function __wakeup(){} private function __clone(){} public static function get_connection(){ if(self::$connection === null){ self::$connection = new PDO("mysql:host=" . DB_HOST . ";dbname=" . DB_NAME, DB_USER, DB_P...
true
55895be724af9b9eb5da9ce9b518a5ff54362fb3
PHP
jzxyouok/hdcms-1
/app/Repositories/CreditRepository.php
UTF-8
951
2.609375
3
[]
no_license
<?php /** .------------------------------------------------------------------- * | Author: 向军 <www.aoxiangjun.com> * | WeChat: houdunren2018 * | Date: 2018-12-08 * | Copyright (c) 2012-2019, www.houdunren.com. All Rights Reserved. * '-------------------------------------------------------------------*/ ...
true
f5a0a69ade6726c91883ec0d8bdb1a9e6b3b0287
PHP
EthernetUser/magazin
/admin/php/addgoods-script.php
UTF-8
1,468
2.5625
3
[]
no_license
<?php session_start(); require('../../php/connection.php'); require('../../php/adminfuncs.php'); CheckAvailability(); $name = trim($_POST['name']); $img = $_FILES['img']; $desc = trim($_POST['description']); $price = trim($_POST['price']); $name_en = trim($_POST['name_en']); $desc_en = trim($_POST['description_en...
true
3cfb355876b667b8beed3231abd3eee51b8df55c
PHP
ejohann/cms
/admin/post_comments.php
UTF-8
6,442
2.640625
3
[ "MIT" ]
permissive
<?php include "includes/admin_header.php"; ?> <div id="wrapper"> <?php if(!isset($_SESSION['user_role'])){header("Location: ../index.php"); exit;}?> <?php // set a user is admin variable $is_admin = null; if(is_admin(get_username())) { $is_admin = true; } ?> <!-- Navigation --> <?php include "...
true
66eb26c9041afbcd7a3f27cf7e6828b01e15afd2
PHP
LuisAranaM/theBroCode
/app/Models/Rol.php
UTF-8
1,445
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by Reliese Model. * Date: Sun, 30 Sep 2018 22:12:14 +0000. */ namespace App\Models; use DB; use Reliese\Database\Eloquent\Model as Eloquent; /** * Class Role * * @property int $ID_ROL * @property string $NOMBRE * @property \Carbon\Carbon $FECHA_REGISTRO * @property \Carbon\Carbon $FECHA...
true
2f1f58d1eda44ce0738e6774f12a23eea61f4b38
PHP
quangbt2005/vhost-kis
/RealESMS/vcb/20110422/my_helper.php
UTF-8
4,133
2.671875
3
[]
no_license
<?php include ("adodb-time.inc.php"); define ('EXT','.php'); define ('LOG','.log'); define ('APPPATH', $_SERVER['DOCUMENT_ROOT']. 'logs'); define ('BASEPATH', $_SERVER['DOCUMENT_ROOT']. 'logs'); /** * Error Handler * * This function lets us invoke the exception class and * display errors using the standar...
true
aa0ac58d3985c6e8e1678084d732cf085e166cc7
PHP
Gorbataras/IT-Connect
/models/siteSetting.php
UTF-8
2,406
3.328125
3
[]
no_license
<?php /* Performs database operations for editable site setting * * File: htmlContent.php * @author Rajpreet Dhaliwal * Date Created: 5/28/2020 */ /** Performs database operations for editable site setting * @author Rajpreet Dhaliwal * Date Created: 5/28/2020 */ class siteSetting{ // db connection pr...
true
a2f134ac2a4f202038c645dd5b33302348ac4987
PHP
estertoja/Faculdade
/Engenharia de Software/M_S_jogo_da_memoria/logar.php
UTF-8
1,710
2.796875
3
[ "MIT" ]
permissive
<?php session_start(); //Inicia uma sessão include('conexao.php'); //Traz a conexão com o Banco de Dados if(empty($_POST['usuario'])) { //Se o usuario não for preenchido então volta para a tela de login $_SESSION['vazio_usu']=true; header('Location: /login.php'); exit(); } if(empty($_PO...
true
8dbface0190cbc4dc9166ed9e148373e1043fc9b
PHP
cmolinab/coding-test-ranking-php-1
/src/Domain/Picture.php
UTF-8
214
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Domain; final class Picture { public function __construct( private int $id, private String $url, private String $quality, ) { } }
true
b90ed4ff734c8026d2b0365a321aa8afef61f7b2
PHP
bentynzofia/projektPhp
/projektWordsly/user/addLesson.php
UTF-8
2,894
2.71875
3
[]
no_license
<?php @include_once("../func/connection.php"); if(isset($_POST["but7"])){ echo<<<fo <div class="formOpt"> <form method="post" action="lessonsT.php" class="leftPanel"> <h3>Add lesson: </h3> <input placeholder="how many words?" class="button" type="number" name="amount"/> <input class="button" type="submit" name...
true
86f23d6b0596e635d17cd63a2e60c8df1e288b36
PHP
Super117/boilerplate
/api/src/Listener/JWTSubscriber.php
UTF-8
1,492
2.65625
3
[]
no_license
<?php namespace App\Listener; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Lexik\Bundle\JWTAuthenticationBundle\Events; use Lexik\Bundle\JWTAuthenticationBundle\Event\{JWTCreatedEvent, JWTFailureEventInterface}; class JWTSubscriber implements ...
true
c30fbb5f40791bcae5dd9ecddfc0212ff686093f
PHP
fatihyilmazz/test-project
/src/app/Repositories/CategoryRepository.php
UTF-8
368
2.65625
3
[]
no_license
<?php namespace App\Repositories; use App\Models\Category; class CategoryRepository extends BaseRepository { /** * @var Category */ protected $category; /** * @param Category $category */ public function __construct(Category $category) { parent::__construct($category)...
true
cb01a2e4dc9ef80cff0e51695799875a004b8dd7
PHP
anhhungggg/product-php
/app/Models/Book.php
UTF-8
430
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; class Book extends Product { use HasFactory; public function __construct(array $attributes = []) { parent::__construct($attributes); $this->mergeFillable(['weight']); } protected $weight; pro...
true
ebb175d9616abc8562c94f432178b076a8105ae8
PHP
hodoor6/laraveltripavev
/app/Http/Controllers/PostController.php
UTF-8
4,942
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; class PostController extends Controller { private $posts; public function __construct() { $this->posts = [ 1 => [ 'title' => 'Тайтл страницы 1', 'auth...
true
8a323989bc3f7d92cbc7d4f70956071e15700312
PHP
sergiors/mapping
/src/Configuration/Metadata/ClassMetadataFactory.php
UTF-8
1,228
2.546875
3
[ "MIT" ]
permissive
<?php namespace Sergiors\Mapping\Configuration\Metadata; use Doctrine\Common\Cache\Cache; use Sergiors\Mapping\Configuration\Metadata\Driver\MappingDriverInterface; /** * @author Sérgio Rafael Siqueira <sergio@inbep.com.br> */ class ClassMetadataFactory implements ClassMetadataFactoryInterface { /** * @va...
true
441d530e2f62e59e7535250cf91e24faddaf8e8f
PHP
I0T/EPGT
/Server/tags/release-130710.8679/lib/model/mondongo/ShortMoviePackageRepository.php
UTF-8
608
2.625
3
[]
no_license
<?php /** * Repository of ShortMoviePackage document. */ class ShortMoviePackageRepository extends \BaseShortMoviePackageRepository { /** * 模糊查询NAME * @param string $short_movie_package_name * @return Short_movie_package * @author tianzhongsheng-ex@huan.tv */ public function likeShortMoviePackageName(...
true
641bcbe8482474c5dcf8e8d1b7c8a5b903a167ed
PHP
d1w2f3x4/jframe
/Vendor/JframeCore/Paramters.php
UTF-8
2,023
2.890625
3
[]
no_license
<?php /** * author: jeremy * DateTime: 2017/3/29 14:58 * Description:请求参数处理类 */ namespace JframeCore; class Paramters { private static $jParam; /** * 设置请求参数 * @throws \Exception */ public static function init(){ $post=$_POST?:[]; self::$jParam=$post; $pathinfo=$...
true
5fa3ed0febd0beb9fa4847510ac57783a5cc65cf
PHP
ryantampone/BrockportOfficeHours
/course_add_process.php
UTF-8
3,510
2.765625
3
[]
no_license
<?php session_start(); require('db_cn.inc'); connect_and_select_db(DB_SERVER, DB_UN, DB_PWD,DB_NAME); // Course variables $course_name = $_POST['coursename']; $course_name_esc = mysql_real_escape_string($course_name); $dept_code = $_POST['deptcode']; $course_num = $_POST['coursenum']; $course_section...
true
4aea5c7177601b54c9ab8ca853434e37f26e5983
PHP
noebezerra/survey-slim
/app/Controllers/Auth/AuthController.php
UTF-8
2,471
2.765625
3
[]
no_license
<?php namespace App\Controllers\Auth; use App\Models\User; use App\Models\PollQuestions; use App\Models\PollAnswers; use App\Controllers\Controller; use Respect\Validation\Validator as v; /** * */ class AuthController extends Controller { // poll public function getPoll($request, $response) { ...
true
fbca5ea07c1b03b30d97e9f69779f334f183f3b7
PHP
rlybbert/flexfields
/includes/Traits/Getter.php
UTF-8
420
2.953125
3
[]
no_license
<?php namespace FlexFields\Traits; /** * Trait Getter * * @package FlexFields\Traits */ trait Getter { /** * Getter function. * * @param string $property * * @return mixed */ public function __get( $property ) { $value = null; $method = "_get_{$property}"; if ( method_exists( $this, $method ...
true
a3e89e5e1a56124d30a05bf2aad59a695788f345
PHP
silverstripe/silverstripe-assets
/src/FilenameParsing/NaturalFileIDHelper.php
UTF-8
3,043
2.875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace SilverStripe\Assets\FilenameParsing; use SilverStripe\Core\Injector\Injectable; /** * Parsed Natural path URLs. Natural path is the same hashless path that appears in the CMS. * * Natural paths are used by the public adapter from SilverStripe 4.4 * * e.g.: `Uploads/sam__ResizedImageWzYwLDgwXQ.jp...
true
96c61fe83e651fe85035f1bbdd2cc47a654a1709
PHP
Rous92/myHotels
/tests/Core/Domain/Model/Hotel/Mother/HotelAddressMother.php
UTF-8
405
2.546875
3
[]
no_license
<?php namespace MyHotels\Tests\Core\Domain\Model\Hotel\Mother; use MyHotels\Core\Domain\Model\Hotel\HotelAddress; use MyHotels\Tests\Shared\Domain\Address; class HotelAddressMother { public static function create(string $address): HotelAddress { return new HotelAddress($address); } public st...
true
3566af3958bee013a26d3023a7600f013c8c5b06
PHP
rosantoz/zendcon2013
/module/Conference/src/Conference/Model/SessionTable.php
UTF-8
4,234
2.671875
3
[]
no_license
<?php namespace Conference\Model; use Zend\Db\TableGateway\TableGateway; use Zend\Db\Sql\Sql; use Zend\Db\Sql\Expression; class SessionTable { protected $tableGateway; protected $sql; public function __construct(TableGateway $tableGateway, Sql $sql) { $this->tableGateway = $tableGateway; ...
true
f1a6822a42e0203bb26ef58306ca0578444878e7
PHP
Jitlee/CKY
/Apps/M/Common/function.php
UTF-8
6,384
2.734375
3
[]
no_license
<?php //// 发送http请求 //function ajax($url, $data = null, $method = 'GET') { // $postdata = http_build_query($data); // $options = array( // 'http' => array( // 'method' => $method,//or GET // 'header' => 'Content-type:application/x-www-form-urlencoded', // 'content' => $postdata, // 'timeout' => 30 // 超...
true
c0fcb9bf11ab4c203adad22784315e16b9e4656f
PHP
roccorefice/laravel_blog_playgound
/database/seeds/ArticleSeeder.php
UTF-8
471
2.734375
3
[]
no_license
<?php use App\Post; use Illuminate\Database\Seeder; use Faker\Generator as Faker; class ArticleSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run(Faker $faker) { for ($i=0; $i < 100; $i++) { $newPost = new Post(); ...
true
ce5f0af8aace36b533ccc49bd4d768919e14ff2a
PHP
kuchuku/englisplay
/englishplay/web/negocio/control.php
UTF-8
1,229
2.5625
3
[]
no_license
<?php include ('../../conexionDB.php'); include ('../datos/usuario.php'); $codigoEst = $_POST["codigo"]; $consulta = consultarUsuario(); //el mysql_fetch_array (9 devuelve los registros de la tabla usuarios) while($filas=mysqli_fetch_array($consulta)){ $usuario=$filas['codigoUsuario']; $pass=$filas['c...
true
2c2c60234536606ba60c9d1168084575bae9fd0f
PHP
alifahfathonah/Sisfo_Keuangan_PPTIK_Web
/application/models/kategori_model.php
UTF-8
763
2.515625
3
[ "MIT" ]
permissive
<?php class Kategori_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function getAllKtr(){ return $this->db->get('kategori')->result(); } public function getKtr($kode){ return $this->db->where('kode_kategori', $kode)->get('kat...
true
676b02bd3791adc304154f190a4215a6b3fe3ac1
PHP
atty31/subscription
/Plugin/OrderAfterSave.php
UTF-8
3,729
2.59375
3
[]
no_license
<?php namespace Atty31\Subscription\Plugin; use DateTime; use Magento\Sales\Api\OrderRepositoryInterface; use Magento\Sales\Api\Data\OrderInterface; use Magento\Framework\ObjectManagerInterface; use Magento\Catalog\Model\Product; class OrderAfterSave { protected $objectManager; protected $orderRepositoryInter...
true
c3b13cd0bfcc4c3fc678e71deef4a3858e6db3e6
PHP
levohuutri/HCMGIS_DETAI_TENDUONG
/SOURCE/modules/cms/models/PointCloudStep.php
UTF-8
1,191
2.578125
3
[]
no_license
<?php namespace app\modules\cms\models; use Yii; /** * This is the model class for table "point_cloud_step". * * @property int $id * @property int $point_cloud_id * @property int $step * @property string $log * @property string $time * @property string $note */ class PointCloudStep extends \yii\db\ActiveRec...
true
da09798c8193fcb6dabbfbabc8a982dfd59cc0dd
PHP
giovannimanzoni/qFW
/src/mvc/view/pages/elements/IContent.php
UTF-8
1,087
2.671875
3
[]
no_license
<?php /** * qFW - quick Framework, an PHP 7.2 Framework for speedup website development * * @mantainer Giovanni Manzoni (https://giovannimanzoni.com) * @license GNU GENERAL PUBLIC LICENSE Version 3 * */ declare(strict_types=1); namespace qFW\mvc\view\pages\elements; use qFW\mvc\controller\lang\ILang; use qFW\...
true
8783a44f1e8b476dfd6de6cdcbdde9556d1a48e4
PHP
foxit07/shop
/app/Models/Admin/Fileable.php
UTF-8
1,252
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Models\Admin; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; trait Fileable { /** * @return \Illuminate\Database\Eloquent\Relations\MorphMany */ public function files() { return $this->morphMany(File::class, 'fileable'); } /** *...
true
168548d1d5c9adfe21e193f7a2744aa7202ed179
PHP
DAlekseenko/Yii2-project
/app/api/controllersAdmin/CategoriesController.php
UTF-8
2,412
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace api\controllersAdmin; use api\components\web\AdminApiController; use yii; use yii\web\HttpException; use api\models\admin\search\CategoriesSearch; use api\models\admin\AdminCategories as Categories; class CategoriesController extends AdminApiController { /** * Lists Categories m...
true
4802ea001dc1c21e040df25e3c8fce6ffcc08619
PHP
Frank-Kalmbach/bloom_pta
/index.php
UTF-8
3,536
3.09375
3
[]
no_license
<?php require 'vendor/autoload.php'; //setting local timezone for log date_default_timezone_set('America/Kentucky/Louisville'); ////creating an 'alias' for Logger so can reduce repeat use //use Monolog\Logger; //use Monolog\Handler\StreamHandler; ////creating a new object variable for logging with following methods: ...
true
a3e718a2e93fa74ec290e72ad727e2a501bf3677
PHP
php-amqp/php-amqp
/stubs/AMQPConnection.php
UTF-8
12,866
2.734375
3
[ "PHP-3.01" ]
permissive
<?php /** * stub class representing AMQPConnection from pecl-amqp */ class AMQPConnection { private string $login; private string $password; private string $host; private string $vhost; private int $port; private float $readTimeout; private float $writeTimeout; private float $c...
true
a4eebad7695e650a9dbc241018b3261d855fbbf0
PHP
chadl/StriideGeoBundle
/Factory/PostalCodeFactory.php
UTF-8
978
2.765625
3
[]
no_license
<?php namespace Striide\GeoBundle\Factory; use Striide\GeoBundle\Entity\PostalCode; /** * Striide\GeoBundle\Factory\PostalCodeFactory */ class PostalCodeFactory { private function __construct() { } public static function createInstance() { return new PostalCodeFactory(); } public function createF...
true
995d2da570162ebac801914cd28b7f9b2c70d890
PHP
pix-art/addemar
/src/Addemar/Model/SendItem.php
UTF-8
2,032
2.53125
3
[]
no_license
<?php namespace Addemar\Model; class SendItem { private $to; private $ciid; private $content = null; private $min = '0'; private $insertContact = false; private $updateContact = false; private $noDoubles = false; private $noDoublesDays = ''; private $removeUnsubscribe = false; ...
true
19def0c755cfcc1e0b5b34d9375ebe5c83cd28d0
PHP
szbirdie/small_web
/app/Admin/Extensions/LockWeightChange.php
UTF-8
2,584
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: admin * Date: 2018/11/6 * Time: 14:36 */ namespace App\Admin\Extensions; use Encore\Admin\Admin; class LockWeightChange { protected $id; protected $resource; /** * 构造函数 * @param int $id * @param string $resource */ ...
true
13eed22861d80c3a97acb15384e225cbfe36048a
PHP
agarwa13/bloggercasts.com
/app/Observers/LessonObserver.php
UTF-8
805
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use App\Lesson; use Vimeo\Vimeo; /** * Created by PhpStorm. * User: Nikhil * Date: 11/6/2016 * Time: 3:19 PM */ class LessonObserver { /** * Listen to the Lesson Saved event. * Update the Title and Description on Vimeo when the Lesson is updated * * @param...
true
f6d718475a1eefa0ff49a17b9f1f1316a8baf75d
PHP
djgguyon/share-price
/src/Djgg/ToolsBundle/Entity/AbstractGMap.php
UTF-8
2,693
2.5625
3
[ "MIT" ]
permissive
<?php namespace Djgg\ToolsBundle\Entity; use Doctrine\DBAL\Types\IntegerType; use Doctrine\DBAL\Types\FloatType; use Doctrine\ORM\Mapping as ORM; /** * Djgg\ToolsBundle\Entity\AbstractGMap * @ORM\MappedSuperclass */ abstract class AbstractGMap { /** * @var string * @ORM\Column(name="address", type="string",...
true
3884a0d64cae5e11e455185436c9752657a1248f
PHP
Elton9527/gaobocms
/application/model/NewsModel.php
UTF-8
875
2.65625
3
[]
no_license
<?php /** * Author:wanggaobo * Date:2018/3/21 9:48 **/ class NewsModel { private $_table = 'news'; public function insert($data){ $sql = "INSERT INTO $this->_table(`title`, `content`, `author`,`from`, `dateline`) VALUES('{$data['title']}', '{$data['content']}', '{$data['author']}', '{$data['from']}'...
true
669bb0ca95b284bfb1fefa9f0f98c78ce7664c15
PHP
shaunxcode/phmop
/src/StandardClass.php
UTF-8
750
2.921875
3
[]
no_license
<?php namespace phmop; class StandardClass { public $slots = array(); public $meta; public function __call($slot, $args) { return Registry::dispatchMethod($this, $slot, $args); } public function &__get($slot) { return Registry::getSlot($this, $slot); } public function __se...
true
0cf496c520d80df901604962b572b0c4964ec5c4
PHP
zhangchunsheng/helloworld
/php/skills/classes/Abstract.php
UTF-8
1,020
3.234375
3
[]
no_license
<?php trait Query { public function query() { } } class Luomor_Abstract { use Query; protected $_module = null; public function __construct() { $this -> _api = "http://www.luomor.com/"; } public function __call($method, $arguments) { var_dump($method); var_export($arguments); $class = get_called_cl...
true
50fd5f1e5301bf97346ac18264630cd439d749fe
PHP
rickyreplying/dss-saw-laptop
/index.php
UTF-8
2,783
2.5625
3
[ "MIT" ]
permissive
<?php require_once 'session.php'; include_once 'header.php'; $result = mysqli_query($conn, "SELECT * FROM alternatif WHERE id_pengguna = $id"); ?> <!DOCTYPE html> <html> <!-- Jericho C Siahaya Saturday, 10 April 2021 --> <head> <title>Home</title> </head> <body> <table> <...
true
94b76fef971b2429fb7c315efc9b68d772b63718
PHP
j511002/permission
/src/Role.php
UTF-8
6,226
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: coffeekizoku * Date: 2017/11/28 * Time: 14:46 */ namespace SimpleShop\Permission; use App\Exceptions\LoginException; use App\Exceptions\ServiceErrorException; use Illuminate\Database\Eloquent\Model; use SimpleShop\Permission\Contracts\RoleRepository; use SimpleShop\Permi...
true
c0312742967c5680f80a2b7c05ed499d6db59ee9
PHP
centerRyo/php-tdd
/tests/DinnerShopTest.php
UTF-8
1,248
2.75
3
[]
no_license
<?php namespace Tests; use Tests\TestCase; use App\DinnerShop; class DinnerShopTest extends TestCase { /** @test */ public function 挨拶したらいらっしゃいませ、こんばんはと返す() { $dinner_shop = new DinnerShop(); $this->assertEquals('いらっしゃいませ、こんばんは', $dinner_shop->greet()); } /** @test */ public ...
true
e57afc206cf7dbd6981549233b0f7e1b054f6fb7
PHP
mpoupineau/vienais
/src/Manager/Product/PrizeManager.php
UTF-8
1,587
2.734375
3
[]
no_license
<?php namespace App\Manager\Product; use App\Entity\Prize; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; use Symfony\Component\HttpFoundation\File\Exception\FileException; use Symfony\Component\HttpFoundation\File\UploadedFile; /** * Created by ...
true
2df89cf3ffb81753682dfa146283d77060fd4180
PHP
phperlong/test_php
/myframework/src/core/app.php
UTF-8
4,539
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: feilong * Date: 2019/10/20 * Time: 3:00 */ class App { //自身的实例 public static $instance; //访问的模块 public $urlModelus = ""; //绑定的数组 public static $bindArr = []; //控制器数组 public static $classArr = []; private function __construct() { ...
true
a110f8d9ba39d826d67144e727c4637d5117f679
PHP
regina-hong/BlessedRegina
/INC/Verb.php
UTF-8
84,829
2.5625
3
[]
no_license
<?php function DetermineVerbPGN($verb, $strong, $verb_actual, $pre_org) { global $ppp; global $sss; $output_verb = ''; $verb_type = ''; $verb_tense = ''; $verb_root = ''; $verb_pre = ''; $verb_pre_1 = ''; $verb_suf = ''; $verb_pgn = ''; $firstletter = ''; $secondletter = ''; $thirdletter = ''; //find ...
true
335e263fb473a094a8d15d17ff0f7e91d0e84ccb
PHP
alexey-ringo/workflow-system
/app/Http/Controllers/GroupController.php
UTF-8
4,712
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Group; use Illuminate\Http\Request; use App\Http\Requests\GroupRequest; use App\Http\Resources\Group\GroupResource; use App\Http\Resources\Group\GroupRelationResource; use App\Http\Resources\Group\GroupCollection; use Gate; class GroupController extends Controller...
true
7a86b786ce0e7825cb5e4fa1472f6cc2d0800a17
PHP
jildertmiedema/laravel-system-monitor
/src/SystemMonitor/Manager.php
UTF-8
1,198
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace JildertMiedema\SystemMonitor; use Illuminate\Contracts\Container\Container; use JildertMiedema\SystemMonitor\Measurements\Measurement; final class Manager { /** * @var Measurement[] */ private $types = []; /** * @var Container */ private ...
true
02e132acda2027ac260f8419641b9cf86451b97e
PHP
thunderer/BattleNetApi
/lib/Entity/WorldOfWarcraft/Data/GuildReward.php
UTF-8
1,255
3.015625
3
[ "MIT" ]
permissive
<?php namespace Thunder\BlizzardApi\Entity\WorldOfWarcraft\Data; use Thunder\BlizzardApi\Entity\WorldOfWarcraft\Achievement; use Thunder\BlizzardApi\Entity\WorldOfWarcraft\Item; class GuildReward { private $minimumGuildLevel; private $minimumGuildReputationLevel; private $races = array(); private ...
true
ffb1ccfc01b6c1ae1fbde5e409f86762470ca93b
PHP
koma136/mytarget-sdk-php
/src/Domain/V1/Remarketing/Remarketing.php
UTF-8
1,145
2.84375
3
[ "Apache-2.0" ]
permissive
<?php namespace Koma136\MyTarget\Domain\V1\Remarketing; use Koma136\MyTarget\Mapper\Annotation\Field; class Remarketing { /** * @var string * @Field(type="string") */ private $name; /** * @var RemarketingItem[] * @Field(type="array<Koma136\MyTarget\Domain\V1\Remarketing\Remarket...
true
9db6147fde8974903d48c2ee1f4210a03d38e46a
PHP
padams73/2020year13webdesign
/Hayden Riches/portadown/weights.php
UTF-8
4,444
2.609375
3
[]
no_license
<?php // page for viewing cattle weights for a selected herds // connects to the database include("dbconnect.php"); // makes sure a logged in user is accessing the page session_start(); if (!isset($_SESSION['admin'])) { header("Location: login.php"); } if (!isset($_GET['year_name'])) { header("Location: stock.ph...
true
a937a7c1b3eb54860ad4356baf9b8677021cdd3a
PHP
rsharpe23/wp-example
/inc/customizer.php
UTF-8
19,386
2.6875
3
[]
no_license
<?php final class RSh_Sanitize_Helper { public static function sanitize_number( $number ) { return absint( $number ); } public static function sanitize_text( $text ) { return sanitize_text_field( $text ); } public static function sanitize_html( $content ) { return wp_kses_post( $content ); } ...
true
e98cba256a7aa85ab55dc6f1deebb838cdea6c20
PHP
TheMalkolonie/Project
/Website/FINAL/product.php
UTF-8
4,856
2.671875
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['login2'])){ include 'NaviNoScroll.php'; } Else{ include 'NaviNoScrollKlant.php'; } function renderForm($id, $Naam, $Product_Afbeelding, $Product_Beschrijving, $Prijs, $Catagorie, $code, $error) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w...
true
eab99d6e73401e676d0c2b20fc6ce5b536438e43
PHP
Drift-PHP-copy/console-bridge
/OutputPrinter.php
UTF-8
1,753
2.921875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Drift Server * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Marc Morera <yuhu@mmoreram.com> */ declare(strict_types=1); namespace...
true
969cc5bdfd424a510380d24925878a5ec5b8dd04
PHP
Phenix3/symshop
/src/DataFixtures/AppFixtures.php
UTF-8
3,432
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\DataFixtures; use App\Entity\Colissimo; use App\Entity\Country; use App\Entity\RangeValue; use App\Entity\State; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Persistence\ObjectManager; use Faker\Factory; class AppFixtures ext...
true
6c53773056cd82df9ad6665617c2f404d5f13867
PHP
melvi20/CONTADOR-de-VISITAS-en-HTML-o-en-PHP-usando-base-de-datos-MYSQL
/index.php
UTF-8
578
2.796875
3
[ "MIT" ]
permissive
<?php require_once("conexion.php"); $insert = "UPDATE contador SET visitas=visitas+1 WHERE id='1' "; $update = $connect->query($insert); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <h2>las visitas en php son: <?php $consulta = mysql_query("SEL...
true
50aa764194e6dcdc6585616abcc7cacfa5fa6d3b
PHP
adamhartmann/UNICEF_VACCINE_MONITOR
/event/scripts/twitter/oAuth/examples/auth.php
UTF-8
3,448
2.65625
3
[ "Apache-2.0" ]
permissive
<?php /** * Demonstration of the various OAuth flows. You would typically do this * when an unknown user is first using your application. Instead of storing * the token and secret in the session you would probably store them in a * secure database with their logon details for your website. * * When the user next...
true
03dbe23f4f17e39190f99a7a721bdc44cf1aa62d
PHP
tahq69/competition-manager
/app/CategoryGroup.php
UTF-8
1,805
2.5625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; /** * Class CategoryGroup * @package App */ class CategoryGroup extends Model { use HasCompetitionTrait, HasAuditTrait; /** * The tabl...
true
d89f8e62a00320c92c3c9dd64d8215b71df8f45a
PHP
futurer1/oop-PHP
/functions.php
UTF-8
1,057
3.578125
4
[]
no_license
<html> <head> <title>Использование знака &</title> </head> <body><?php $var=0; $var1=0; function test_func(&$name_var, $name_var1){ //аргумент функции со знаком & и без знака & //Использование & создает ссылку на переменную ...
true
df3ed34e134ce5bba0f0ab93f727193a74136bf7
PHP
mellamopablo-personal-tests/ez-customers
/src/model/User.php
UTF-8
667
3.015625
3
[]
no_license
<?php namespace Model; use Illuminate\Database\Eloquent\Model as EloquentModel; use Valitron\Validator; /** * Class User * * Representa un usuario en la base de datos. * * @package Model */ class User extends EloquentModel { /** * @return Validator El objeto que comprueba si los datos del usuario * son v...
true
b6a2fd3fdab054fb28d4e3772653297e43ea266a
PHP
nextcloud/jsxc.nextcloud
/lib/Settings/Personal.php
UTF-8
3,181
2.625
3
[ "MIT" ]
permissive
<?php namespace OCA\OJSXC\Settings; use OCA\OJSXC\AppInfo\Application; use OCA\OJSXC\Config; use OCP\AppFramework\Http\TemplateResponse; use OCP\Settings\ISettings; use OCP\IConfig; class Personal implements ISettings { /** @var IConfig */ private $config; public function __construct(IConfig $config) { $this-...
true
0868d01302b116c5a02ffc1d63cace198b102525
PHP
galina-dimitrova/PHP-Web-Development-Basics
/9.DefiningClasses/06.BookShop.php
UTF-8
2,234
4.0625
4
[]
no_license
<?php class Book{ private $title; private $author; private $price; /** * Book constructor. * @param $title * @param $author * @param $price */ public function __construct($author, $title, $price) { $this->setTitle($title); $this->setAuthor($author); ...
true
beafdc291ce8d30ee325bdcacf387bbd0090ff04
PHP
programmador/api-oauth-poc
/api-user/src/Builder/Token/FoundTokenBuilder.php
UTF-8
1,725
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Builder\Token; use App\Model\Token; use SymfonyBundles\RedisBundle\Redis\ClientInterface as Redis; class FoundTokenBuilder implements Builder { private $tokenId; private $uid; private $accessToken; private $macKey; private $scope; private $expiresIn; private $redis; ...
true
bd5082d618ed840331991782f088c6cfb888d615
PHP
otherlibrary/imusify-Social-Network-for-Musicians
/application/third_party/jQueryTmpl/Element/TypeBlock.php
UTF-8
276
2.546875
3
[ "Apache-2.0" ]
permissive
<?php abstract class jQueryTmpl_Element_TypeBlock extends jQueryTmpl_Element_Base { protected $_parser; public function __construct(jQueryTmpl_Parser $parser) { $this->_parser = $parser; } abstract public function parseTokens(array $tokens); }
true
53d86e84b1465184c5f61d6c8db98637e126c8f0
PHP
npatil0821/nostalgic_gamer
/nostalgic_gamer/employee_area/search_prod_results.php
UTF-8
4,448
2.96875
3
[]
no_license
<?php //includes file with db connection require_once '../db_connect.php'; //gets session info session_start(); if ((isset($_SESSION['emp_login']) && $_SESSION['emp_login']) === false) { $_SESSION['emp_nli'] = true; header('Location: emp_login.php'); exit(); } ...
true
23755098c1be21d38e105e3dadc5cb4bd991b012
PHP
arkoghoshdastidar/php_for_server_side_scripting
/10_foreach_loop.php
UTF-8
97
2.5625
3
[]
no_license
<?php $name=array("ARKO","GHOSH","DASTIDAR"); foreach($name as $myName){ echo"$myName "; } ?>
true
82286af3c3a60924da069b3b41548c64438ff58a
PHP
samejack/blog-content
/IoC-DI/Horse.php
UTF-8
141
3.046875
3
[ "Apache-2.0" ]
permissive
<?php /** * Class Horse */ class Horse implements Interface_Animal { public function sound() { echo 'Golo~Gole~'; } }
true
013dd64c04d674789570b031113217392a2c8c01
PHP
pugwash24/dnd-api
/database/migrations/2017_06_01_000408_create_races_table.php
UTF-8
1,222
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRacesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('races', function ...
true
e663eea077620b11b9b30201c9f0774cc45253cf
PHP
ReservedDeveloper/retrofit-php
/src/Adapter/Http/Response.php
UTF-8
883
2.96875
3
[ "MIT" ]
permissive
<?php /* * Copyright (c) 2015 Nate Brunette. * Distributed under the MIT License (http://opensource.org/licenses/MIT) */ namespace Tebru\Retrofit\Adapter\Http; /** * Class Response * * Common interface to get the response body * * @author Nate Brunette <n@tebru.net> */ class Response { /** * The res...
true
100cef1e36c9c707fc8bcfc1e633b2dfa8d39bf3
PHP
Ocramius/ProxyManager
/tests/language-feature-scripts/lazy-loading-ghost-multiple-inheritance-private-access.phpt
UTF-8
782
2.890625
3
[ "MIT" ]
permissive
--TEST-- Verifies that private API of proxies is guaranteed to access private properties in any case --FILE-- <?php require_once __DIR__ . '/init.php'; class Foo { private $multiplier = 3; public function multiply($value) { return $this->multiplier * $value; } } class Bar extends Foo { p...
true
e259396a6034588ff2ac0bad67d86aec09a200ca
PHP
KHlushchenko/articles_l5
/src/Traits/DateTrait.php
UTF-8
5,816
3.21875
3
[]
no_license
<?php namespace Vis\Articles\Traits; use \Carbon\Carbon; trait DateTrait { /** Object field that will be parsed by Carbon * @var */ private $carbonField; /** Carbon parsed date * @var */ private $carbonDate; /** Carbon parser * @param string $field * @return Carbon ...
true
644a1fa6c5428fba0e8e5e51de9c17071da882ee
PHP
admininfon/think-jwt
/src/Claims/NotBefore.php
UTF-8
672
2.578125
3
[ "MIT" ]
permissive
<?php /* * This file is part of kkm_mbc. * * (c) Kang Shutian <kst157521@163.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Kangst\JWTAuth\Claims; use Kangst\JWTAuth\Exceptions\TokenInvalidException; class NotBe...
true
3ea3cc7e2c82bd38b24666e9dbde6a52e58dee84
PHP
Pink-Crab/Perique-Form
/src/Component/Field/Label_Component.php
UTF-8
1,444
2.578125
3
[ "MIT" ]
permissive
<?php declare( strict_types=1 ); /** * Component for rendering a label. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE D...
true
1300fb12b4cb28a575f4c53aad4ef198fb20c93e
PHP
bwaidelich/Wwwision.SessionlessFlashMessage
/Classes/Aspect/JsonSerializableMessageAspect.php
UTF-8
952
2.671875
3
[ "MIT" ]
permissive
<?php namespace Wwwision\SessionlessFlashMessage\Aspect; use Neos\Error\Messages\Message; use Neos\Flow\Annotations as Flow; use Neos\Flow\AOP\JoinPointInterface; /** * Introduce the \JsonSerializable interface to all \Neos\Error\Messages\Message implementations * so that they can be serialized to JSON more easily ...
true
7be7dc55c0224c8254c8b23e111e9345125452b2
PHP
narkane/awkward-styles
/vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Common/Manager/ListRef/Base.php
UTF-8
2,242
2.5625
3
[ "LGPL-3.0-only", "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
<?php /** * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0 * @copyright Metaways Infosystems GmbH, 2014 * @copyright Aimeos (aimeos.org), 2015-2018 * @package MShop * @subpackage Common */ namespace Aimeos\MShop\Common\Manager\ListRef; /** * Abstract class for managers working with referenced list...
true
b8f9c1cfc80797aad6db43ab28df4427f308a134
PHP
adrianpl20/oop
/app/lib/router.php
WINDOWS-1250
2,592
2.9375
3
[]
no_license
<?php class Router { private static $instance; private $uri; public function __construct($uri = NULL) { if(!empty($uri)) { $pos = strpos($uri, '?'); if($pos !== FALSE) { $uri = substr($uri, 0, $pos); } ...
true
f033a573ce1b40e510e6c7062ed2d00f73a95b83
PHP
Enakoneschniy/php-work
/06/index.php
UTF-8
1,349
2.84375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Lesson 06 - form</title> </head> <body> <style> textarea{ resize: none; } </style> <form action="" method="post"> Имя <br><input type="text" name="name" value="<?=$_REQUEST['name']?>"><br> ...
true
eb6591639e1bc5ffbbe8d4a5342fe0d70b00b562
PHP
konosumi/techbook-02-php-sample
/sample/ch11/01-array-merge.php
UTF-8
895
3.953125
4
[]
no_license
<?php /** * 配列の結合(数値配列) */ $array1 = [1, 2]; $array2 = [3, 4, 5]; // プラスでの配列結合は、左側が優先されます // 結果: [[0]=> 1 [1]=> 2 [2]=> 5] var_dump($array1 + $array2); // array_mergeでは、数値配列は末尾に要素として追加されます // 結果: [[0]=> 1 [1]=> 2 [2]=> 3 [3]=> 4 [4]=> 5] var_dump(array_merge($array1, $array2)); /** * 配列の結合(連想配列) */ $array3 = ['f...
true
ec5f411ff4b3db842240845968a38e82790d9378
PHP
LukaS0lncev/avito-tech-safedeal-backend-trainee
/src/Classes/DB/DbPDO.php
UTF-8
1,105
2.921875
3
[]
no_license
<?php namespace DB; class DbPDO extends \PDO { public function __construct() { $dsn = sprintf( 'mysql:dbname=%s;port=%s;host=%s', _DB_NAME_, _DB_PORT_, _DB_SERVER_); parent::__construct($dsn, _DB_USER_, _DB_PASSWD_); } public function getAllTableValues($table_name) { $s...
true
45080f084fb57e15961859f3b5d18f0297a33ab9
PHP
fedorovanton/yii2-crm-online-hackathon
/common/helpers/MyHelper.php
UTF-8
377
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: antonfedorov * Date: 15/09/2019 * Time: 20:24 */ namespace common\helpers; class MyHelper { /** * Удаляет все пробелы из строки * * @param $string * @return mixed */ public static function allTrim($string) { return preg_replac...
true
66b2eaad845f7fc0d084956a8189d04ba25a15ad
PHP
TopazStudio/TransparentWebApplication
/app/Model/Blog.php
UTF-8
1,974
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Model; use App\Util\CRUD\CRUDable; use Illuminate\Database\Eloquent\Model; use Sleimanx2\Plastic\Searchable; class Blog extends Model implements CRUDable { use Searchable; //CRUD protected $fillable = [ 'url', 'heading', 'content', 'userId', 'topic...
true
d93b18bef9072088203c74cc57388564cd7f91fe
PHP
uniconstructor/historical-db
/HistoricalDbCommand.php
UTF-8
13,538
2.796875
3
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php /** * HistoricalDbCommand * * PHP version 5.2+ * MySQL version 5+ * * @author Paul Lowndes <github@gtcode.com> * @author GTCode * @link http://www.GTCode.com/ * @package historical-db * @version 0.01b * @category ext* * * Instead of CDbCommand::execute(), use the named...
true
34487bb8f7b5b8f5b81927b1d201ffe0acc47473
PHP
AhmedAmshir/git-stared-repo
/public_html/git-stared-repo/app/Http/Controllers/GitController.php
UTF-8
784
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Clients\GitClient; use Illuminate\Http\Request; use App\Handlers\RequestHandler; use App\Handlers\ResponseHandler; class GitController extends Controller { protected $_request; protected $_response; public function __construct(Request $request, RequestHandle...
true