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
dca0f7a72fcdccaef237648e864faafed610a064
PHP
dennau/Jam
/Jam/Db/Select.php
UTF-8
10,819
2.734375
3
[]
no_license
<?php namespace Jam\Db; use Jam\Db\QueryParts\Where; use Jam\Db\QueryParts\Join; use Jam\Db\QueryParts\Group; use Jam\Db\QueryParts\Having; use Jam\Db\QueryParts\Order; use Jam\Db\QueryParts\Limit; /** * Class Select * @package Jam\Db * @method $this is($field, $value = null) * @method $this notIs($field, $value...
true
ff66d05e5c599c2b762b3399022c24e44ece6bc1
PHP
brucewu16899/SingleSignOn
/app/ViewHelpers/StatusLabel.php
UTF-8
1,146
2.8125
3
[]
no_license
<?php namespace App\ViewHelpers; use App\ServiceStatus; class StatusLabel { public static function forStatus(ServiceStatus $status) { $label = self::getLabel($status->group); return self::labelFor($label, $status->status); } protected static function getLabel($group) { swit...
true
3c174eb1fd3afc5948c344c74d0c553a432d0416
PHP
holubv/fsedit_backend
/src/FSEdit/StatusExceptionMiddleware.php
UTF-8
1,188
2.71875
3
[]
no_license
<?php namespace FSEdit; use FSEdit\Exception\BadRequestException; use FSEdit\Exception\StatusException; use Slim\App; use Slim\Http\Request; use Slim\Http\Response; class StatusExceptionMiddleware { /** * @var bool $debug */ private $debug; /** * StatusExceptionMiddleware constructor. ...
true
5b2797ec0ceba84a0a59b850b3e30975d865d760
PHP
nikhvj7/Velocity
/display/problems/problems_single.php
UTF-8
9,083
2.515625
3
[]
no_license
<?php require '../../query/conn.php'; if ((isset($_GET['car_id'])) && (isset($_GET['gqg_no'])) && (isset($_GET['company']))) { $car_id = $_GET['car_id']; $gqg_no = $_GET['gqg_no']; $comp_id = $_GET['company']; // echo $comp_id; //Add this code for Dynamic // $sql_cars = "SELECT DISTINCT(a.ca...
true
226e19cf7f690544960a480dc57bc50e3840a344
PHP
renmuell/SiteAudit
/admin/tableAndRun/class-site-audit-table.php
UTF-8
4,370
2.640625
3
[]
no_license
<?php if( ! class_exists( 'WP_List_Table' ) ) { require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); } class Site_Audit_Table extends WP_List_Table { function __construct() { global $status, $page; parent::__construct(array( 'singular' => 'Site Audit', ...
true
edecd65f674175a81e1a6d202b721d4a8760777d
PHP
kitlabs-cn/KitCryptBundle
/Service/OpensslService.php
UTF-8
5,000
2.78125
3
[ "MIT" ]
permissive
<?php namespace Kit\CryptBundle\Service; class OpensslService { private $clients; /** * * @param array $clients */ public function __construct($clients) { $this->clients = $clients; } /** * * @param string $string * @param...
true
5335516c17ee4bb8ee832eae0682b5e0eadb8844
PHP
uzairlive/hcp-engagement-portal
/app/Helpers/FileManager.php
UTF-8
1,530
2.734375
3
[ "MIT" ]
permissive
<?php use Carbon\Carbon; use Illuminate\Support\Facades\File; function uploadFile(object $file, string $uploadPath, string $oldFile = null) { // $files it can be array incase of multi files, and it can be object in case of single file $fileNameToStore = ""; $file_path = public_path($oldFile); if($fi...
true
f7ec01be67833e7b26504addbfd6b1f28fc235d8
PHP
lord2800/dynamo
/tests/ProxyTest.php
UTF-8
868
2.90625
3
[ "MIT" ]
permissive
<?php namespace Dynamo\Tests; use Dynamo\Proxy; class A { public $value = 5; public $passed; public function __construct($v) { $this->passed = $v; } public function getStr() { return 'test'; } public static function notVisible() { } } class ProxyA extends Proxy { public function __construct($v) { parent::__con...
true
a906da256f74e32a62bb4dfbf99843683a4cfb13
PHP
TamNguyenCG/PHP-Exercise
/Array-DeleteValue/index.php
UTF-8
1,564
3.21875
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Delete Value in Array</title> <style> ...
true
388bb0bf0d07145bf0eec5aabe1e707f1915aa72
PHP
oikenfight/web-md-editor
/laravel/app/Entities/Contracts/FolderInterface.php
UTF-8
2,062
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Entities\Contracts; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; /** * FolderInterface interface * * @package App\Entities\Contracts * @property int $id * @property int $user_id * @property int $rack_id *...
true
0a30bf5fb37d13d05e426122811f5fd6d23cfefa
PHP
karbassi/PHP-Metacritic
/demo.php
UTF-8
667
2.515625
3
[]
no_license
<?php require_once 'metacritic.php'; // Retrieve the score for Rock Band for XBOX 360 $metacritic = new Metacritic(array('title' => 'Rock Band')); ?> <h1>Demo File</h1> <h2>Grabbing score #1</h2> <h3>Title:</h3> <p><?php echo $metacritic->title; ?></p> <h3>Score:</h3> <p><?php echo $metacriti...
true
847aa972f151c193ea10546038f4ac2ac3c8b716
PHP
wangkaikai12345/edu
/app/Http/Controllers/Web/CalculateController.php
UTF-8
3,023
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\Web; use App\Enums\CouponStatus; use App\Enums\ProductType; use App\Http\Controllers\Controller; use App\Models\Classroom; use App\Models\Coupon; use App\Models\Plan; use App\Models\Recharging; use App\Rules\CustomEnumRule; use Illuminate\Http\Request; class CalculateController e...
true
ef738b621f2a4c4d07ba834418611aa50bf8ec0b
PHP
anilkobakoglu/php-oop
/sihirli metodlar/function__clone.php
UTF-8
147
2.90625
3
[]
no_license
<?php class deneme{ public function __clone(){ echo"bu clone methotudur."; } }//class end $class=new deneme(); $b=clone $class; ?>
true
909f8b741cb0d5210776ce7e5b4958197c7c242f
PHP
au-research/ANDS-ResearchData-Registry
/applications/registry/services/method_handlers/registry_object_handlers/subjects.php
UTF-8
1,548
2.625
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); require_once(SERVICES_MODULE_PATH . 'method_handlers/registry_object_handlers/_ro_handler.php'); /** * Subjects handler * @author Minh Duc Nguyen <minh.nguyen@ands.org.au> * @return array list of subjects from SOLR index */ class Subjects e...
true
cb6885580c2e1623ae3af08a217a656d3069eccc
PHP
umitcanb/CardsGame
/tests/AutomaticPlayerTest.php
UTF-8
2,117
3.125
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use App\AutomaticPlayer; use App\Card; final class AutomaticPlayerTest extends TestCase { public function test_player_plays_random(){ $cardsArray = [new Card(["red","♥"], "A"), new Card(["red","♦"], "1"), new Card(["black","♠"], "10")]; $player = ne...
true
2335955122d3f0decbd14347ac4581d01e87d729
PHP
AlexandrTs/test-symfony-api
/src/Request/MathDivideRequest.php
UTF-8
1,666
2.734375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Request; use App\Resolver\RequestObjectResolver; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Context\ExecutionContextInterface; /** * Класс для валидации запроса апи на деление одного числа на другое * * @package App\Request ...
true
23f509c7f72f87620026dc16d740dc165718a32d
PHP
mkoplitz/Crew-Chief
/2/php/insert/insert-new-client.php
UTF-8
853
2.984375
3
[]
no_license
<?php session_start(); $servername = "localhost"; $username = "apache"; $password = "apache"; $dbname = '05-Company_' . $_SESSION['Company_ID']; $name = $_GET['name']; $address1 = $_GET['addr1']; $address2 = $_GET['addr2']; $city = $_GET['city']; $state = $_GET['state']; $zip = $_GET['zip']; $p...
true
41d5dee7863341a09594231eea587db426b813c1
PHP
warkol66/egytca_phpmvc53
/WEB-INF/lib/pear/propel_1.3/propel/engine/builder/sql/DDLBuilder.php
UTF-8
5,570
2.578125
3
[]
no_license
<?php /* * $Id: DDLBuilder.php 1025 2008-04-09 10:08:49Z hans $ * * 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 DISCLAIME...
true
eef8f1cfb7134f722d4855da6bb9676863ac2308
PHP
doctrine/dbal
/tests/Functional/Platform/DefaultExpressionTest.php
UTF-8
2,465
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Doctrine\DBAL\Tests\Functional\Platform; use Doctrine\DBAL\Platforms\AbstractMySQLPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\OraclePlatform; use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Tests\FunctionalTestCase; use Doctrine\DBAL\...
true
bfa6e9b55fa948696d6814ab6016b783c02e1141
PHP
gachakra/php-enum
/examples/BasicMethods/Continent.php
UTF-8
2,933
3.125
3
[ "MIT" ]
permissive
<?php /** * Created by IntelliJ IDEA. * User: gachakra * Date: 2019-06-22 * Time: 23:54 */ declare(strict_types=1); namespace Gachakra\PhpEnum\Examples\BasicMethods; require_once __DIR__ . "/../../vendor/autoload.php"; use Gachakra\PhpEnum\Enum; /** * Class Continent * * @method static static AFRICA() * @...
true
9d2770d653329a33772c9f35a3f28909a1077faf
PHP
sanket-neosoft/Crud-oops-Assignment
/classes/add.class.php
UTF-8
1,252
2.859375
3
[]
no_license
<?php include("common.class.php"); class Add extends Connection { public function __construct($username, $email, $name, $age, $city, $image, $image_tmp) { // input fields $this->username = $username; $this->email = $email; $this->name = $name; $this->age = $age; ...
true
b624623d75c8f8c9acc74cf87172e37df3217bd6
PHP
opstalent/elastica-bundle
/Model/ScorableInterface.php
UTF-8
295
2.625
3
[]
no_license
<?php namespace Opstalent\ElasticaBundle\Model; /** * @author Patryk Grudniewski <patgrudniewski@gmail.com> * @package Opstalent\ElasticaBundle */ interface ScorableInterface { /** * @param float $score * @return ScorableInterface */ public function setScore(float $score) : ScorableInterface...
true
f650acaa75eae08c93f5a812ae24282c77a1903c
PHP
yinming93/xyt
/wxdevelop/dev_snlh/index.php
UTF-8
20,898
2.703125
3
[]
no_license
<?php /* * 1.一次工作可以使用页面调试工具完成:如第三方服务器配置,自定义菜单等 * 2.修改自定义菜单不用删除,直接创建即可 * * * author: WangKai * date: 2015.07.20 * mail:wangkaisd@163.com */ //加载公共函数 //include "func.php"; //声明一个常量定义一个token的值 define("TOKEN", "dev_snlh1013"); //通过WhChat类,创建一个对象 $wechatObj = new WeChat(); //如果没有通过GET收到echost...
true
8d59b6fcd07fe1fc534cd95254f7a42691e98938
PHP
joomag-trainings/social-network-Araks1
/Class/Model/UploadModel.php
UTF-8
934
2.890625
3
[]
no_license
<?php include('DatabaseModel.php'); class UploadModel extends DatabaseModel { public function insert($userId, $imageName) { $connection = new PDO($this->dsn, $this->username, $this->password); $statement = $connection->prepare('INSERT INTO photos (user_id, image_name,general) VALUES (:userId, ...
true
aee676035bc3d7892b976674ef2b2ab9a4f90963
PHP
diodoe/omnipay-satispay
/src/Message/TransactionReferenceRequest.php
UTF-8
824
2.546875
3
[ "MIT" ]
permissive
<?php namespace Omnipay\Satispay\Message; use Omnipay\Common\Message\AbstractRequest; /** * Satispay Complete/Capture/Void/Refund Request * * This is the request that will be called for any transaction which submits a transactionReference. */ class TransactionReferenceRequest extends AbstractRequest { public ...
true
0a2892368577116a2802dbb21da2b8362aea51b0
PHP
Mukesh2103/Car-Rental
/Car_Rental/Car Rental/connection.php
UTF-8
413
2.546875
3
[]
no_license
<?php $dbType="mysql"; $dbHost="localhost"; $dbUser="root"; $dbPassword=""; $dbName="car_rental"; try{ $db=new PDO("$dbType:host=$dbHost;dbname=$dbName;charset=utf8",$dbUser,$dbPassword); $db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); }CATCH(PDOException $e) { echo"Some error:$e";...
true
c7576e11bac6cde81edc91addbf0b62977d84750
PHP
B-Translator/old_btr_server
/modules/custom/btrCore/lib/fn/cron/import_project.php
UTF-8
2,586
2.53125
3
[]
no_license
<?php /** * @file * Function: cron_import_project() */ namespace BTranslator; use \btr; /** * The callback function called from cron_queue 'import_project'. */ function cron_import_project($params) { // Make sure that imports do not run in parallel, // so that the server is not overloaded. if (!lock_acqui...
true
8b10f940c722e9ee49946c62841d1e20eb44cce0
PHP
kousthubraja/mystuff
/MyPrograms/Visual Studio 2005/Projects/KeyLogger/References/sample project/uploaded_files.php
UTF-8
1,522
3.046875
3
[]
no_license
<?php /* load the file containg the list of uploaded files in to an array */ $file_arrays = @unserialize(@file_get_contents('uploaded_files/allowed_files')); /* check the data was loaded successfully - if not, create an empty array */ if (!is_array($file_arrays)) { $file_arrays = array('f...
true
c037c6602f6693bae24ad929157df4057f84ea2f
PHP
N0rbis/finalYearProject
/home.php
UTF-8
1,202
2.90625
3
[ "CC-BY-2.5", "CC-BY-4.0" ]
permissive
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="styles.css"> <?php include_once('connection.php'); ?> </head> <body> <p>test</p> <?php $sql= "SELECT * FROM VehicleModelYear"; //Testing purposes for now, fetching everything in VehicleModelYear table. $stmt = $pdo->prepare($sql); ...
true
17fccb6aef3c327ca249ce1a16d59994d7c61eb7
PHP
aliosmansahan/currency-api
/src/Command/FetchExchangeInfoCommand.php
UTF-8
2,556
2.515625
3
[]
no_license
<?php namespace App\Command; use App\Provider\Adapter\ProviderInterface; use App\Provider\ExchangeAdapter; use App\Service\ExchangeService; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Sy...
true
4e8da75ca4b74e9b734971d2404407cb13b443b0
PHP
Lhyo/Parcial3
/database/seeds/usuariosSeeder.php
UTF-8
792
2.671875
3
[]
no_license
<?php /** * Agregamos un usuario nuevo a la base de datos. */ class usuariosSeeder extends Seeder { public function run(){ /* Usuarios::create(array( 'nombre' => 'leo', 'email' => 'leo@gmail.com', 'password' => Hash::make('1234') // Hash::make() nos va ge...
true
98023a971c060e264dd918f58b4b8fc139eec174
PHP
inohodec/OOP-patterns
/Strategy/features.php
UTF-8
1,640
3.015625
3
[]
no_license
<?php /********************************************************************************************** Код для Flying и Shooting **********************************************************************************************/ //------------ интерфейс для полетов --------------------// interface Flying { public func...
true
3e2c4f178d33aabcb3c69bbfc8d611119cb8e3ea
PHP
mapsty/laravel4.2-171023
/laravel4.2/cats/app/controllers/PostController.php
UTF-8
585
2.53125
3
[ "MIT" ]
permissive
<?php class PostController extends BaseController { public function index() { var_dump($_POST); echo $_POST["username"]; #$argument1 = $argv[1]; #Use:php exec.php "port2=8099/tcp" $argument1 = $_POST["username"]; $argument2 = $_POST["password"]; ...
true
aceebdd2ade077e5c60bf920d31084794779962f
PHP
primebeef/techLand
/ALL/PARSE/parseback.php
UTF-8
1,450
3.03125
3
[]
no_license
<?php include_once "../Library/Tech30Lib.php"; printDoctype();?> <html> <head> <title></title> </head> <body> <?php function EXPL($text,$parsr){ $text = strtoupper($text); $text = trim($text); $text = remPUNCT($text); $new = explode($parsr,$text); return $new; } function remPU...
true
120afeb03ed8fea62eeca6974ec81407451573d3
PHP
electric-eloquence/fepper-drupal
/backend/drupal/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Scale.php
UTF-8
3,460
2.6875
3
[ "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "MIT" ]
permissive
<?php namespace Drupal\system\Plugin\ImageToolkit\Operation\gd; /** * Defines GD2 Scale operation. * * @ImageToolkitOperation( * id = "gd_scale", * toolkit = "gd", * operation = "scale", * label = @Translation("Scale"), * description = @Translation("Scales an image while maintaining aspect ratio. Th...
true
c9e78544d3cd53500228b4e5333eae44c801a0e6
PHP
fhp/unicorn
/src/Unicorn/UI/HTML/Attributes/Media.php
UTF-8
333
2.84375
3
[]
no_license
<?php namespace Unicorn\UI\HTML\Attributes; trait Media { use AttributeTrait; public function media(): string { return $this->property("media"); } public function hasMedia(): bool { return $this->hasProperty("media"); } public function setMedia(string $value): void { $this->setProperty("media", $...
true
b36f42a883d1796616bd67f8fa7a6a3717ed3b39
PHP
vojtabiberle/MediaStorage
/Images/Image.php
UTF-8
16,153
2.90625
3
[ "MIT" ]
permissive
<?php namespace vojtabiberle\MediaStorage\Images; use vojtabiberle\MediaStorage\Exceptions\Exception; use vojtabiberle\MediaStorage\Exceptions\FileNotFoundException; use vojtabiberle\MediaStorage\Exceptions\InvalidArgumentException; use vojtabiberle\MediaStorage\Exceptions\RuntimeException; use vojtabiberle\MediaStor...
true
4d6512a3661e192daa7eed80a59bb409244ee7ad
PHP
cryptobuks1/crypterion
/app/Models/NotificationSetting.php
UTF-8
432
2.59375
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class NotificationSetting extends Model { /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. * * @var array */ protected $casts ...
true
f6f90f7657b9f2a4098b20e1ada9f53858c74335
PHP
saarge92/service_diploma
/app/Traits/HomeTrait.php
UTF-8
1,581
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Traits; use App\Slider; use App\About; use App\Service; use App\Cart; use App\Team; use Illuminate\Support\Facades\Session; use App\Http\Requests\ContactRequest; use App\ContactRequestTable; /** * Трейт для работы с данными на главной странице (frontend) * * Содержит методы, возвращающие необх...
true
9a32521d6986060c9d61a7f987299b74f3c37819
PHP
kahlan/kahlan
/spec/Suite/Reporter/Terminal.spec.php
UTF-8
2,453
2.734375
3
[ "MIT" ]
permissive
<?php namespace Kahlan\Spec\Suite\Reporter\Coverage; use Kahlan\Reporter\Terminal; describe("Terminal", function () { beforeEach(function () { $this->terminal = new Terminal([]); }); describe("->kahlan()", function () { it("returns the kahlan ascii logo", function () { $kahl...
true
616eec16fc2bd6a622c2995b2caa4da8706750aa
PHP
GYung/redis
/src/pagec.php
UTF-8
2,629
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: root * Date: 17-12-16 * Time: 下午5:56 */ define("ONE_WEEK",7*86400); define("VOTE_SCORE",86400/200); define("ARTICLE_PER_PAGE",10); index(); function index(){ $redis=new redis(); $redis->connect('127.0.0.1'); $article_id= post_vote($redis,12,"今日头条","www.baidu...
true
3a82763848fe91ae7b680d9edd407b755caf42a7
PHP
vukojevicc/Kalendar
/tabele/susret.php
UTF-8
736
2.75
3
[]
no_license
<?php require_once __DIR__ . '/../includes/config.php'; require_once __DIR__ . '/../includes/Database.php'; class Susret { public $id; public $opis_susreta; public $datum_susreta; public static function unesiSusret($opis_susreta, $datum_susreta) { $db = Database::getInstance(); $db->...
true
d6a0baf7bf017bb3c6c2a0dacfcbd428ae9e74c7
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/framework/GraphQlSchemaStitching/GraphQlReader/Reader/InputObjectType.php
UTF-8
2,732
2.53125
3
[ "OSL-3.0", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0", "MIT" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Framework\GraphQlSchemaStitching\GraphQlReader\Reader; use Magento\Framework\GraphQlSchemaStitching\GraphQlReader\TypeMetaReaderInterface; use Magento\Framework\GraphQlSch...
true
6e338e22dd0c69667531fed1d551547bde59ce1e
PHP
siefca/pageprotectionplus
/ProtectPage.php
UTF-8
3,766
2.90625
3
[]
no_license
<?php /** * ProtectPage allows to do the following operations: * - show articles' sections that contain <protect> tags * - edit articles' sections that contain <protect> tags * - save articles' sections that contain <protect> tags * - check whether user has access to the specific objects * * PHP...
true
59993bb64f375599e8abb368d8424195018d5006
PHP
kaibano/CAZADA
/php/class/clase.php
UTF-8
1,301
3.25
3
[]
no_license
<?php class clase { private $id_clase; private $id_centro; private $turno; private $alumnos; private $profesores; private $id_tutor; /** * clase constructor. * @param $id_clase * @param $turno * @param $alumnos * @param $profesores * @param $id_tutor */ ...
true
bd1575690a810e18b474b2685fa86e0177c0ad2e
PHP
addisonhall/generatepress-child
/inc/wp-show-posts.php
UTF-8
3,058
2.78125
3
[]
no_license
<?php /** * Modify WP Show Posts output. * * Must be included in functions.php * * @package GenerateChild */ if ( ! defined( 'ABSPATH' ) ) exit; /** * Remove permalinks from WP Show Posts output * @link https://wpshowposts.com/support/topic/selectively-disable-title-link/ */ // add_filter( 'wpsp_disable_imag...
true
596c1869bc67c02e2e2105bd55833c2bc7cf72c1
PHP
Anthony-Buisson/PhpMIW
/tp-clean_anthony/pdo/userPdo.php
UTF-8
1,516
2.984375
3
[]
no_license
<?php require_once 'GenericPdo.php'; class userPdo extends GenericPdo { function create(user $user): bool { $req = $this->bdd->prepare('INSERT INTO user (name, email) VALUES (:name, :email);'); $req->bindValue('name', $user->getName(), PDO::PARAM_...
true
83cb5301a11a473181de129edce458ffa9508153
PHP
sliker/CakePHP-Counter-Plugin
/Model/Behavior/CountUpBehavior.php
UTF-8
3,486
2.65625
3
[ "MIT" ]
permissive
<?php /* * Count Plugin for CakePHP * * PHP version 5 * * @copyright Copyright 2010, Cake. (http://trpgtools-onweb.sourceforge.jp/) * @category Behavoir * @package Count Plugin * @version 0.1 * @author Cake <cake_67@users.sourceforge.jp> * @license http://www.opensource.org/licenses/mit-license.php The ...
true
f2f8b139f273373764b845754ae1ad72738b692b
PHP
woke221/hello_laravel
/routes/console.php
UTF-8
1,126
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Foundation\Inspiring; /* |-------------------------------------------------------------------------- | Console Routes |-------------------------------------------------------------------------- | | This file is where you may define all of your Closure based console | commands. Each Closure is bou...
true
1392bb2b9f43dbdfaca84587447ae32bf962feaa
PHP
magicianlee007/music-house
/app/controllers/LanguageController.php
UTF-8
2,575
2.6875
3
[ "MIT" ]
permissive
<?php class LanguageController extends \BaseController { /** * Display a listing of the resource. * GET /pages * * @return Response */ public function index() { $languages = Language::paginate(30); return View::make('admin.languages', array('languages' => $languages)); } public function indexPubli...
true
f1b1e265786e3e2aaecbacf5f3c98ad8970d92f7
PHP
DavorKom/VacationApp
/app/Policies/UserPolicy.php
UTF-8
851
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Policies; use App\Models\User; use App\Models\Role; use Illuminate\Auth\Access\HandlesAuthorization; class UserPolicy { use HandlesAuthorization; /** * Determine whether the user can view the model. * * @param \App\Models\User $user * @param \App\Models\User $mode...
true
cffb0f83ea67c29c4b100033cf51daf895fb8ae8
PHP
SpenserJ/PHPMSN
/example.php
UTF-8
960
2.796875
3
[]
no_license
<?php require_once 'msn/msn.php'; $msn = new MSN(); $msn->output = true; $msn->functions['messageReceived'] = messageReceived; $msn->signIn('username', 'password', 'display_name'); function messageReceived($messages, $convo) { if (strpos($messages[3], 'TypingUser') !== false) { // They are typing ...
true
eddb4361cdd3792606b8858939cbb663d25bb6ae
PHP
Arkitecht/cayan
/src/Arkitecht/Cayan/Response/BalanceInquiryResponse.php
UTF-8
841
2.5625
3
[]
no_license
<?php namespace Arkitecht\Cayan\Response; class BalanceInquiryResponse { /** * @var GiftLoyaltyResponse4 $BalanceInquiryResult */ protected $BalanceInquiryResult = null; /** * @param GiftLoyaltyResponse4 $BalanceInquiryResult */ public function __construct($BalanceInquiryResult =...
true
32de0406d4e7a101223012dd883d80096d6ded2f
PHP
EdwardMartinezH/Soporte_Equipos
/control/SolucionController.php
UTF-8
4,940
2.828125
3
[]
no_license
<?php /* -------Creado por------- \(°u° )/ Anarchy \( °u°)/ ------------------------ */ // Has encontrado la frase #1024 ¡Felicidades! Ahora tu proyecto funcionará a la primera \\ require_once realpath("..").'\dao\factory\FactoryDao.php'; require_once realpath("...
true
28c7d0ded4e11a8f4fea1905d04aed59d3ed230a
PHP
Siteation/magento2-easymenu
/src/Block/Html/Topmenu.php
UTF-8
4,903
2.5625
3
[ "MIT" ]
permissive
<?php /** * @package AF\EasyMenu * @author Agata Firlejczyk * @copyright Copyright (c) 2017 Agata Firlejczyk * @license See LICENSE for license details. */ namespace AF\EasyMenu\Block\Html; use AF\EasyMenu\Model\Item; use AF\EasyMenu\Model\Tree; use Magento\Catalog\Model\Category; use Magento\Cms\Model\Page; use...
true
b596283e4520bc454b8b39f621bfb366a04c211e
PHP
TimotheOCR/projet4
/controllers/ControllerUtilisateur.php
UTF-8
2,280
2.734375
3
[]
no_license
<?php namespace Controllers; use Views\View; use Models\UtilisateurManager; require_once ('views/View.php'); class ControllerUtilisateur { private $_view; private $_articleManager; private $_utilisateurManager; public function __construct(...
true
e16a6fa495ff618ffb6802cd27a8d9346321a9a3
PHP
ibuildingsnl/qa-tools
/src/Core/IO/Cli/Validator/TextualAnswerValidator.php
UTF-8
501
2.71875
3
[ "MIT" ]
permissive
<?php namespace Ibuildings\QaTools\Core\IO\Cli\Validator; use Ibuildings\QaTools\Core\Assert\Assertion; use Ibuildings\QaTools\Core\Exception\InvalidAnswerGivenException; final class TextualAnswerValidator { public static function validate($answer) { Assertion::nullOrString($answer); if ($an...
true
ee3457c7450f8b401c6c3d16a64842ca74be9276
PHP
acgalia/coffeeculture
/appp/app/controllers/paypal.php
UTF-8
1,848
2.578125
3
[]
no_license
<?php session_start(); //Database Info require_once 'connect.php'; require_once "../../vendor/autoload.php"; use PayPal\Rest\ApiContext; use PayPal\Auth\OAuthTokenCredential; use PayPal\Api\Payer; use PayPal\Api\Item; use PayPal\Api\ItemList; use PayPal\Api\Details; use PayPal\Api\Amount; use PayPal\Api\Transaction; ...
true
e0421593d147456bd66cffd8d4b3d190ac158c52
PHP
Sajib32/php_blog
/public/home.php
UTF-8
2,781
2.671875
3
[]
no_license
<?php session_start(); include_once 'H:\xampp\htdocs\final_attempt_blog\classes\class.user.php'; $user = new User(); if(!isset($_SESSION['uid']) && !isset($_COOKIE['remember'])) { header("Location:login.php"); } if(isset($_SESSION['uid'])) { $uid = $_SESSION['uid']; ...
true
d3a8432c7bc1f3f7cfbde4d640e4348085ac1501
PHP
Christian0102/patterns
/factory.php
UTF-8
954
2.859375
3
[]
no_license
<?php /*Factory method Design Patterns*/ abstract class ApptEncoder { abstract function encode(); } class BloggsApptEncoder extends ApptEncoder { public function encode(){ return "Appointment data encode in BloggsCall format \n"; } } class MeggaApptEncoder extends ApptEncoder { public function encode(){ r...
true
affb478a1b8a466f4e2ef55dff61865d25e58594
PHP
korstiaan/KorsRatioThumbnailBundle
/Filter/Thumbnail.php
UTF-8
545
2.578125
3
[]
no_license
<?php namespace Kors\Bundle\RatioThumbnailBundle\Filter; use Imagine\Image\ImageInterface; use Imagine\Filter\FilterInterface; class Thumbnail implements FilterInterface { /** * @var RatioThumbnailBoxInterface */ private $box; /** * @param RatioThumbnailBox $box */ public function __construct(BoxInterf...
true
862a069fb9c587a026914611d67f1e31c08c3ed0
PHP
XoticRealmsOwnerandDev/CrateSystem
/src/Commands/key.php
UTF-8
13,253
2.65625
3
[]
no_license
<?php namespace Commands; use pocketmine\Server; use pocketmine\Player; use pocketmine\command\CommandSender; use pocketmine\command\ConsoleCommandSender; use pocketmine\command\PluginCommand; use pocketmine\item\Item; use pocketmine\inventory\Inventory; use pocketmine\item\enchantment\Enchantment;...
true
5590825546db0a950920ad60085e9b3e6735c93d
PHP
rahulyhg/moneyzaurus-api
/web/app/src/Module/Config.php
UTF-8
1,113
2.5625
3
[]
no_license
<?php namespace Api\Module; use SlimApi\Kernel\Config as KernelConfig; /** * Class Config * * @package Api\Kernel */ class Config extends KernelConfig { const DATABASE = 'database'; const DATABASE_ENTITIES = 'databaseEntities'; const DATABASE_CONNECTION = 'databaseConnection'; ...
true
886384a66ede3d52546686d56ea12760ad67be3e
PHP
TheRealStart/yii2-jsend-response
/jsend/Response.php
UTF-8
2,648
2.59375
3
[]
no_license
<?php namespace TRS\RestResponse\jsend; class Response { private $response; public function __construct($parameters = array(), $statusCode = 200) { $this->init(); if (!empty($parameters) && is_array($parameters)) $this->response->setParameters($parameters); $this->re...
true
0d99c09868c4c7ac7544dc3b507bf9362d591d01
PHP
trantuyet/c2.php.PrimeNumN
/index.php
UTF-8
1,091
3.671875
4
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Prime Num</title> </head> <body> <h1 style=...
true
44fe6d767a1e47e2bcc73bcf6eaf8abae031f761
PHP
GuillaumeBande/ExoSymfony
/src/Controller/ArticleController.php
UTF-8
2,205
2.875
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class ArticleController extends AbstractController { private $articles = [ 1 => [ "title" => "La va...
true
7383ecf966673366cce6be0af12c00430693842f
PHP
Akkaraphol1/WebProPHP
/SumOfNumber.php
UTF-8
4,442
3.546875
4
[]
no_license
<!DOCTYPE HTML> <html> <body> <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <center><h1> HW2 : Sum of number </h1></center> <center><h2> Num 1: <input type="text" name="num1"> </h2></center> <br> <center><h2> <input type="radio" name="operator" value="+"> + : ...
true
53d6d83d6c4ab0b7957aaa569ec4c37d1b1d2a3f
PHP
ronyfrias05/Programacion2019_RonyF
/modulo_2/10_registro_de_datos/lista_cartas.php
UTF-8
749
2.625
3
[]
no_license
<?php session_start(); // Verificar si el usuario esta logeado if (! isset($_SESSION['id_user'])) { header("Location: login.php"); exit; } // Incluir la conexion require_once 'conexion.php'; $sql = "SELECT c.id, c.name, c.link, c.price, u.name AS created_by FROM cartas c INNER JOIN users u ON (u.id = c.crea...
true
e0a5bffefb5d4077adbadd3702530fc8ca2fd729
PHP
manopiu/TesteMVC
/model/PedidoModel.php
MacCentralEurope
6,385
2.640625
3
[]
no_license
<?php //include '../config/includes/Conexao.php'; require_once '../objetos/ProdutoDTO.php'; require_once '../objetos/PedidoDTO.php'; require_once '../objetos/ClienteDTO.php'; class PedidoModel{ //buscar taxa de entrega public function buscarTaxaVigente(){ echo "buscarTaxa"; $sql = "SELECT * ...
true
0461e1ff81714a48c02550029107a791fc499797
PHP
kylephillips/loopsylist
/app/Loopsy/Entities/DollType/DollType.php
UTF-8
272
2.515625
3
[]
no_license
<?php namespace Loopsy\Entities\DollType; class DollType extends \Eloquent { protected $table = 'dolltypes'; protected $fillable = array( 'title', 'slug', 'description' ); public function dolls() { return $this->belongsToMany('Doll', 'dolls_dolltypes'); } }
true
1cd204263e2739be7fd22ae25c20b00baea2580b
PHP
phpstan/phpstan-src
/e2e/phpstan-phpunit-190/test.php
UTF-8
413
2.703125
3
[ "MIT" ]
permissive
<?php // lint >= 8.1 namespace PhpstanPhpUnit190; class FoobarTest { public function testBaz(): int { $matcher = new self(); $this->acceptCallback(static function (string $test) use ($matcher): string { match ($matcher->testBaz()) { 1 => 1, 2 => 2, default => new \LogicException() }; retur...
true
df18fa12484eb2f4ed4bc6110488f09e78305c62
PHP
AdamJDuggan/brad-php
/shorthands.php
UTF-8
660
3.8125
4
[]
no_license
<?php //Ternary $loggedIn = false; echo($loggedIn) ? "Logged in" : "Not logged in"; //Logged in echo "<br/>"; $isRegistered = ($loggedIn == true); echo($isRegistered) ? true : false; //1 php prints 1 if true $age = 20; $score = 15; echo "Yout score is: ". ($score > 10 ? ($age > 10 ? "Average" : "Exc...
true
b06b09df5667a7122e8d224ffbe62141cea29daa
PHP
auralifiar/PWPB
/looping/perulangan.php
UTF-8
909
4.28125
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Looping</title> </head> <body> <!-- 1. FOR --> <?php for ($i = 0; $i <= 10; $i++) { echo ...
true
92de93b4de9d31fc352539de41675f0d68b7909b
PHP
pleonasm/bsg
/src/ColorsTrait.php
UTF-8
1,176
3.25
3
[]
no_license
<?php namespace Pleo\BSG; use UnexpectedValueException; trait ColorsTrait { private $colors = [ Colors::YELLOW, Colors::GREEN, Colors::PURPLE, Colors::RED, Colors::BLUE, Colors::BROWN ]; public function getColorsFromBitMap($bitmap) { $colorsInBi...
true
7cd0eee93e9a8534970a3a10e9034eeddecc5c50
PHP
anzerr/LiteAdmin
/entity/class.DB.php
UTF-8
915
2.984375
3
[]
no_license
<?php namespace Jinx\Entity; class DB { protected static $_pdo; protected static $_table; public function __construct($pdo, $table = "") { self::$_pdo = $pdo; self::$_table = $table; } public function query($sql) { return $this->_pdo->query($sql); } public function exec($sql) { return $this-...
true
2495ee086f07be25c2f21c77d794e9b9a632d033
PHP
laraform/laraform-laravel
/src/Contracts/Authorization/Permission.php
UTF-8
514
2.859375
3
[ "MIT" ]
permissive
<?php namespace Laraform\Contracts\Authorization; use Laraform\Contracts\User\User; interface Permission { /** * Return new Permission instance * * @param string $role * @param callable $callback */ public function __construct($role, callable $callback = null); /** * Determ...
true
eea36cfd4a91e8e3a467bb63c5ff90188aad154f
PHP
johnrobox/angular-crud
/add.php
UTF-8
1,144
2.890625
3
[]
no_license
<?php include 'connection.php'; $data = json_decode( file_get_contents('php://input') ); if (!isset($data->firstname) || empty($data->firstname)) { $response = array( 'valid' => false, 'message' => 'Firstname is required.' ); } else if (!isset($data->lastname) || empty($data->lastname)) { ...
true
44deaefc4f47e0402657a3e8d20c8f7e68ddcb1e
PHP
jaimeirazabal1/facturacion
/ajax/nueva_empresa.php
UTF-8
1,092
2.859375
3
[]
no_license
<?php include('is_logged.php');//Archivo verifica que el usario que intenta acceder a la URL esta logueado /*Inicia validacion del lado del servidor*/ if (empty($_POST['nombre'])) { $errors[] = "Nombre vacío"; } else if (!empty($_POST['nombre'])){ /* Connect To Database*/ require_once ("../config/db....
true
c936042009e9e5474524e327523863fa3c9ff2af
PHP
brm-barreraj/appVendedores
/server/class/class.Usuario.inc.php
UTF-8
6,442
2.734375
3
[ "MIT" ]
permissive
<?php class Usuario{ private $limite=10; /*metodos para los usuarios*/ function getLimit(){ return $this->limite; } function getCountUsuarios(){ DB_DataObject::debugLevel(0); $obj = DB_DataObject::Factory('VenUsuario'); $ret = $obj->count(); //printVar($ret); return $ret; } ...
true
1b29d11b635876cd9f09c8e964be9f50e431d723
PHP
kevbry/pa-habitat
/app/tests/R4-Tests/R4S18-Tests/VolunteerInterestAddTest.php
UTF-8
2,857
2.671875
3
[]
no_license
<?php class VolunteerInterestAddTest extends TestCase { protected $mockedVolunteerInterestRepo; protected $mockedVolunteerInterestController; protected $volunteerInteretsInput; protected $invalidDataException; public function setUp() { parent::setUp(); //TODO - Popula...
true
f31ee70f8099fe39ad66e4727c57327c0038a2ad
PHP
katsiaryina/gringotts
/config/Database.php
UTF-8
574
3.21875
3
[ "MIT" ]
permissive
<?php class Database { private $host = 'localhost'; private $username = 'fakeuser'; private $password = 'fakepassword'; private $dbname = 'fakedb'; private $conn; public function connect() { $this->conn = new mysqli( $this->host, $this->username, $this->passwor...
true
2cc44128ab3257245b2cfa05717ec83c969a9956
PHP
ravi-dwivedi/php-operation
/php1.php
UTF-8
610
2.578125
3
[]
no_license
<?php if(isset($_COOKIE['user'])) { echo $_COOKIE['user']; } else { echo "cookie not created"; } /* if(isset($_COOKIE['id'])) { echo $_COOKIE['id']; } else { echo "cookie not created"; } session_start(); echo "<br><br><br>"; if(isset($_SESSION['cnt'])) { echo $_SESSION['cnt'...
true
08d1571a6b1e12e5c45f5669a83e5d19d8633f95
PHP
Bencute/tt-books
/system/application/WebUser.php
UTF-8
8,663
3
3
[]
no_license
<?php namespace system\application; use Exception; use Sys; use frontend\model\User; /** * Class WebUser * Класс представляет собой сущность пользователя который взаимодействует с приложением * * @package frontend\model */ class WebUser implements WebUserInterface { /** * Время хранения хранилища дан...
true
9a668f597bd907a930db12e112b08ecc7948b346
PHP
p1ratrulezzz/php-telegram-bot-core
/src/Entities/ProximityAlertTriggered.php
UTF-8
945
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * This file is part of the TelegramBot package. * * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Longman\TelegramBot\Entities; /** * Class Proximi...
true
ac6e0ebb8b5d25a83272452af7dd6446e5a77d7b
PHP
KamalW13/job
/updateProduct.php
UTF-8
2,103
2.6875
3
[]
no_license
<?php include 'functions.php'; $id = $_GET['id']; $data = fetchData("SELECT * FROM product WHERE id = $id")[0]; $categories = fetchData("SELECT * FROM categories"); if (isset($_POST['submit'])) { $gambarLama = $data['image']; if (updateProduct($_POST, $gambarLama) >= 1) { echo " ...
true
189c4dc2a06fa97d05c9a8ac5813daa8e5e99587
PHP
bigmoletos/TP_SOFTEAM
/PHP/TP/tp2_php_session/listearticle.php
UTF-8
2,366
3.359375
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php echo'<ul...
true
fdb0abca3187be6103acbd41df5c606b376442e9
PHP
techart/io
/src/IO/Stream/SeekInterface.php
UTF-8
1,214
3.15625
3
[]
no_license
<?php namespace Techart\IO\Stream; /** * Интерфейс позиционирования в потоке * * <p>Интерфейс должен быть реализован классами потоков, допускающих позиционирование, * например, файловыми потоками.</p> * <p>Интерфейс определяет набор констант, задающих тип смещения:</p> * SEEK_SET * абсолютное позицинировние; ...
true
b751338ad26c6d15bfd4e2c62d24da8edc096944
PHP
khrlimam/installer
/src/extract/Extractor.php
UTF-8
207
2.546875
3
[]
no_license
<?php namespace KhairulImam\Installer\Extract; /** * Extractor class responsible for extracts compressed file */ interface Extractor { public function extract($file); public function getExtractProgram(); }
true
27d707eeb06799449e226ddb06e8c7f65c391193
PHP
beaver64/biarritz-202006-php-poec-checkpoint1
/public/book.php
UTF-8
2,377
2.546875
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/book.css"> <title>Checkpoint PHP 1</title> <?php $deb...
true
412be590a3eb74e43fadb2a172a8860f42772335
PHP
joohongpark/2017_IoT_project
/WebApp/graph_data.php
UTF-8
994
2.609375
3
[]
no_license
<?php date_default_timezone_set('Asia/Seoul'); $db = new SQLite3('dbdb.db',SQLITE3_OPEN_READWRITE); if (!$_GET["id"]) { die("return"); } if (!$_GET["day"]) { $now_time = date('ymd', time()); } else { $now_time = $_GET["day"]; } $id = $_GET["id"]; $pow_arr = array(); $pow_result_arr = array(); $pow_result_sum_arr =...
true
71c334d7b7c8dae2bcc5b7497d4d961e2304f45a
PHP
VJ-KAZUMiX/chivalry-server-browser
/Browser.php
UTF-8
9,997
2.546875
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: KAZUMiX * Date: 13/04/21 * Time: 17:54 * To change this template use File | Settings | File Templates. */ require_once 'config.php'; require_once 'GameServerManager.php'; require_once 'MySmarty.php'; class Browser { /** * @var GameServerManager */ ...
true
7c33cb541cc4aaf3a04eef507b057db9b958f25b
PHP
sobwoofer/icrm
/app/Services/Crawlers/MatroluxCrawler.php
UTF-8
3,973
2.71875
3
[]
no_license
<?php namespace App\Services\Crawlers; use App\Events\ProductCrawled; use Symfony\Component\DomCrawler\Crawler; /** * Class MatroluxCrawler * @package App\Services\Crawlers */ class MatroluxCrawler extends CrawlerAbstract { /** * @param string $categoryUrl * @param bool $firstPage * @return ar...
true
2462d990110b9b15c3acb581029eff93546b50c1
PHP
yannickfogang/ntauhLabs
/src/User/Domain/UserCase/Auth/Register/RegisterResponse.php
UTF-8
558
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace NtauhLabs\User\Domain\UserCase\Auth\Register; use NtauhLabs\SharedService\Response; use NtauhLabs\User\Domain\Entity\User; final class RegisterResponse extends Response { private ?User $user; /** * RegisterResponse constructor. */ public function __c...
true
b50ef8ca9d8479ce95729bf98f046c829f6cf97d
PHP
maneymarkus/SV-Tora
/sv-tora/app/Http/Controllers/DocumentController.php
UTF-8
3,459
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Helper\GeneralHelper; use App\Helper\NotificationTypes; use App\Mail\GenericMail; use App\Models\Document; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Storage; use SebastianBergmann\LinesOfCode\LinesOfCode; class Docume...
true
a11996e3e094b772c108ec4475404b7a03f9b93c
PHP
zmudzinski/rabbitmq_rpc
/src/Consumer.php
UTF-8
3,517
2.828125
3
[ "MIT" ]
permissive
<?php namespace Tzm\Rpc; use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; abstract class Consumer { /** * @var string */ private $queueName; private $result; /** * Consumer constructor. * @param string $queueName * @param $handleClass ...
true
65e274ca1637b993ffb71df77d14ce0b7ee96c1e
PHP
c-ifeorah/ftrader
/user-profile-update.php
UTF-8
3,625
2.796875
3
[ "MIT" ]
permissive
<!-- Description: Script for updating user's profile Author: Michael Ifeorah --> <?php include_once('signon/session.php'); include_once("signon/pdo-connect.php"); $i_uID = $_SESSION["user_id"]; // This is the id of the user // Retrieving the variables sent by submitting the user form $firstname = s...
true
11f84edc702816b02dd7f5ef818f7ee68fbf4193
PHP
mikljohansson/syndicate
/core/model/workflow/activity/save.class.inc
UTF-8
417
2.5625
3
[ "GPL-1.0-or-later", "MIT" ]
permissive
<?php require_once 'core/model/workflow/WorkflowActivity.class.inc'; /** * Calls the save method on the subject */ class synd_workflow_save extends AbstractWorkflowActivity { protected $_option = null; function __toString() { return SyndLib::translate('Save to database'); } function process(Workflow $workfl...
true
18d49efdc0bb14ba74427eeac085ddc3b01d8cbe
PHP
layla/cody
/src/Layla/Cody/Compilers/Php/Laravel/Migration/Change.php
UTF-8
1,720
2.8125
3
[]
no_license
<?php namespace Layla\Cody\Compilers\Php\Laravel\Migration; use Exception; class Change { protected $method; protected $arguments = array(); public function __construct($action, $name, $configuration) { $this->name = $name; $this->configuration = $configuration; $this->$action(); } public function cr...
true
67e04699762a7aba72c53ff737283343b0f819e5
PHP
larseijman/fmp-api-sdk
/src/InstitutionalFunds/CusipMapper.php
UTF-8
1,120
2.828125
3
[ "MIT" ]
permissive
<?php namespace Leijman\FmpApiSdk\InstitutionalFunds; use Leijman\FmpApiSdk\Contracts\Fmp; use Leijman\FmpApiSdk\Exceptions\InvalidData; use Leijman\FmpApiSdk\Requests\BaseRequest; class CusipMapper extends BaseRequest { const ENDPOINT = 'cusip/{cusip}'; /** * @var string */ private $cusip; ...
true
8d6641ace8978831b05f822d9d2787ce8a6da38b
PHP
JasperLichte/CMS-for-personal-websites
/server/projects/ProjectsHelper.php
UTF-8
5,438
2.890625
3
[ "MIT" ]
permissive
<?php namespace projects; use base\config\Config; use database\Connection; use database\QueryHelper; use templates\HtmlHelper; class ProjectsHelper { const GITHUB_ENDPOINT = 'https://api.lichte.info/repos/github/'; /** * @return array */ private static function getGithubProjects() { ...
true