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
bafb6b5114940de85450c362aee6809b78b61a89
PHP
DJTobi24/fillip.poll
/loeschen.php
UTF-8
1,864
2.96875
3
[]
no_license
<?php include 'config/config.inc.php'; $pdo = pdo_connect_mysql(); $msg = ''; // Schaut ob es die Umfrage ID gibt. if (isset($_GET['id'])) { // Sucht die Zeile raus die gelöscht werden soll. $stmt = $pdo->prepare('SELECT * FROM polls WHERE id = ?'); $stmt->execute([$_GET['id']]); $poll = $stmt->fetch(P...
true
a4e22ce32966566cc335d9c9513391f8aa78310f
PHP
879yu/portfolio
/ECサイト/register.php
UTF-8
3,848
2.953125
3
[]
no_license
<?php $host = 'localhost'; // データベースのホスト名又はIPアドレス $user = 'codecamp29225'; // MySQLのユーザ名 $passwd = 'GHPOIPML'; // MySQLのパスワード $dbname = 'codecamp29225'; // データベース名 $err_msg = array(); // エラーメッセージ $user_list = array(); // 商品一覧 $date = date('Y-m-d H:i:s'); // 日時 // コネクション取得 if ($lin...
true
2d52293c4315edee96222b9111b81db0a99d58dc
PHP
mvo-van/piscine_php
/day02/ex02/loupe.php
UTF-8
1,156
2.640625
3
[]
no_license
#!/usr/bin/php <?PHP while($text=fgets(STDIN)) $fichier .= $text; //echo $fichier; $i=0; $tab = array(); $tab_base = array(); $j=0; $t = array(); $t_base = array(); $title = array(); $title_base = array(); preg_match_all ("#<a.*>.*</a>#s",$fichier,$tab_base,PREG_PATTERN_ORDER); preg_match_all ("#<a.*>.*</...
true
db076af65505b4299124e432dc484cefeff5b3ef
PHP
arimacdev/php-sigfox-client
/src/Model/GroupCallbackHTTP.php
UTF-8
4,850
2.84375
3
[ "MIT" ]
permissive
<?php namespace Arimac\Sigfox\Model; use Arimac\Sigfox\Model; use Arimac\Sigfox\Serializer\PrimitiveSerializer; /** * Callback of HTTP type */ class GroupCallbackHTTP extends Model { /** * The URL called when this message has been processed * * @var string */ protected ?string $url = nul...
true
3af6bea1cffd9d3f3120eeeb58fe7dddb3afa288
PHP
senthilnadhanr/php_learning
/odbc_prepare.php
UTF-8
666
3
3
[]
no_license
<HTML> <HEAD> <TITLE>odbc_prepare</TITLE> </HEAD> <BODY> <? // connect to database $Connection = odbc_connect("store", "guest", "guest"); // prepare query $Query = "INSERT INTO catalog (ID, Name, Price) "; $Query .= "VALUES(?, ?, ?) "; $Result = odbc_prepare($Connection, $Query); // insert ...
true
ebb95fdae7043623db50d97fc526bb6cf6bd13b5
PHP
o3world/relations-audit
/src/Controller/StructureRelationsController.php
UTF-8
1,228
2.515625
3
[]
no_license
<?php namespace Drupal\relations_audit\Controller; use Drupal\Core\Cache\CacheableJsonResponse; use Drupal\Core\Controller\ControllerBase; use Drupal\relations_audit\Commands\StructureRelations; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; /** * Class S...
true
35915192d331b9cd24398a9357163d2d1314846c
PHP
expectation-php/expect
/src/matcher/ToBeAnInstanceOf.php
UTF-8
2,410
3.234375
3
[ "MIT" ]
permissive
<?php /** * This file is part of expect package. * * (c) Noritaka Horio <holy.shared.design@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace expect\matcher; use expect\FailedMessage; /** * Verify whether a particular insta...
true
6af770c8d77e1c65b56b2af0c165391b91fdb42c
PHP
suongnguyen1993/luanvantotnghiep
/luanvantn/nangcao/application/modules/admin/controllers/Exam.php
UTF-8
8,446
2.578125
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Exam extends CI_Controller { public function __construct() { parent::__construct(); } public function index($page = 1) { //check login if($this->check_login() == false) { redirect('admin/login'); } $data['title'] = 'Manag...
true
b963d0e4975d52e8ccdafeaab85123d842c00a20
PHP
Peter-Oe/gambio
/GXModules/Mollie/Mollie/Components/Debug/DebugService.php
UTF-8
1,912
2.640625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Mollie\Gambio\Debug; use Mollie\BusinessLogic\OrderReference\Model\OrderReference; use Mollie\Gambio\Services\Business\ConfigurationService; use Mollie\Infrastructure\Configuration\Configuration; use Mollie\Infrastructure\ORM\Exceptions\RepositoryNotRegisteredException; use Mollie\Infrastructure\ORM\...
true
5421aa537470e526d299ae3f1c42c835ca18c255
PHP
alexk984/amocrm-php
/src/Models/Link.php
UTF-8
2,816
2.765625
3
[ "MIT" ]
permissive
<?php namespace AmoCRM\Models; /** * Class Link * * Класс модель для работы со Связями * * @package AmoCRM\Models * @author alexk984 <alexk984@gmail.com> * @link https://github.com/dotzero/amocrm-php * * For the full copyright and license information, please view the LICENSE * file that was distributed with...
true
277f1886dc903045ff0f1c475824eb9e7051a4e7
PHP
sarathalign/test
/test.php
UTF-8
471
2.625
3
[]
no_license
<?php $amount=2; $from_Currency='USD' $to_Currency='INR'; $amount = urlencode($amount); $from_Currency = urlencode($from_Currency); $to_Currency = urlencode($to_Currency); $get = file_get_contents("https://www.google.com/finance/converter?a=$amount&from=$from_Currency&to=$to_Currency"); $get = explode("<span c...
true
ae54cf2fce1536b505bab060ac2af0fccb382090
PHP
tinoa75/PHP
/Vjezba4/zadatak4.php
UTF-8
1,890
2.640625
3
[]
no_license
<?php function slucajniBroj() { $a = rand(1,100); return $a; } ?> <html> <head> <script src="https://www.chartjs.org/dist/2.8.0/Chart.min.js"></script> </head> <body> <canvas id="canvas" style="max-width:600px"></canvas> <script> var config = { type: 'line', data: { ...
true
a5fbecd3bf431af2f9485d3d7c8b766f13f19ee9
PHP
hangelo/timepunches
/index.php
UTF-8
19,630
2.71875
3
[]
no_license
<?php error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ); ini_set( 'display_errors', 1 ); // Get the user parameter. If it is omitted, we show all users to be selected $param_user_id = isset($_GET['uid']) ? $_GET['uid'] : NULL; $output = isset($_GET['opt']) ? $_GET['opt'] : 'ALL'; $OUTPUT_USERS = 'users'; $OUTPUT_...
true
5bc93abc83ac9e046c30c2d2c34e1e8de4709450
PHP
wp-twinfield/twinfield
/src/Hierarchies/LoadResponse.php
UTF-8
931
2.96875
3
[]
no_license
<?php /** * Load Response * * @since 1.0.0 * * @package Pronamic/WP/Twinfield */ namespace Pronamic\WP\Twinfield\Hierarchies; /** * Load Response * * @since 1.0.0 * @package Pronamic/WP/Twinfield * @author Remco Tolsma <info@remcotolsma.nl> */ class LoadResponse { /** * Hierarchy. ...
true
a45ddc8fa9cfe01f986425a0372c1d5299a82137
PHP
streamuj/PuMuKIT2
/src/Pumukit/SchemaBundle/Services/SortedMultimediaObjectsService.php
UTF-8
1,210
2.65625
3
[]
no_license
<?php namespace Pumukit\SchemaBundle\Services; use Doctrine\ODM\MongoDB\DocumentManager; use Pumukit\SchemaBundle\Document\Series; /** * Service to get the multimedia objects of a series sorted. */ class SortedMultimediaObjectsService { private $dm; private $repo; public function __construct(DocumentM...
true
9d7dffabb6d1f844ad5e2e4569e7f804409b66a4
PHP
zezhouliu/puzzles-catalog-laravel
/app/database/migrations/2014_02_03_153335_create_courses_table.php
UTF-8
1,336
2.8125
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCoursesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('courses', function($table) { // f...
true
e4c7fdea28f6a3895d60c1db490ff779a6457fbe
PHP
PascalKleindienst/FormListGenerator
/src/Generators/FormGenerator.php
UTF-8
3,501
2.90625
3
[ "MIT" ]
permissive
<?php namespace PascalKleindienst\FormListGenerator\Generators; use PascalKleindienst\FormListGenerator\Fields\FieldFactory; use PascalKleindienst\FormListGenerator\Fields\AbstractField; /** * Form Generator class * @package \PascalKleindienst\FormListGenerator\Generators */ class FormGenerator extends AbstractGen...
true
5763d7b295cc5f15b63e281976bcaf22375966a3
PHP
art-x/test
/tests/TruncateTest.php
UTF-8
995
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: reno.dejong * Date: 10-2-2016 * Time: 20:26 */ require_once(__DIR__.'/../src/DwdUtils.php'); use test\DwdUtils; class TruncateTest extends PHPUnit_Framework_TestCase { Public function testExcerptLengthNotLagerThan28(){ } Public function ad...
true
024507ec91f7017b9a0277c5f43b35c718e4083e
PHP
iabdullahshahid/mark
/app/libraries/classes/Alert.php
UTF-8
961
3.109375
3
[ "MIT" ]
permissive
<?php namespace App\Libraries\Classes; class Alert { private $message = []; /** * Alert success message * * @param string $message */ public function success($message) { $this->message['success'][] = $message; } /** * Alert info message * * @param...
true
42b16c4cdb0b1ed1b86bd87114840d1e8fc27c2c
PHP
luis-rp/materialking.com
/application/models/admin/inventory_model.php
UTF-8
4,544
2.546875
3
[]
no_license
<?php class Inventory_model extends Model { function Inventory_model() { parent::Model (); } function getconfigurations() { $query = $this->db->get ('settings' ); $result = $query->result (); return $result [0]; } function getItems($company) { $items = $this->db->get('item')->result...
true
fce6a786bb4bab35f367226483e882949b2e4397
PHP
mizudiwood/PHPTraining
/20170509/task2.php
UTF-8
110
3
3
[]
no_license
<?php $x = "Hello world!"; echo $x; echo "<br>"; echo str_replace("world", "kitty", $x ); ?>
true
6ff2a099d51a0a66e8d8907e861a3f71200411d9
PHP
Vocalogenesis/kurs-377-isu
/models/Lesson.php
UTF-8
1,136
2.65625
3
[]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "lesson". * * @property int $id * @property int $LessonNum * @property string $StartDate * @property string $EndDate * * @property Bron[] $brons */ class Lesson extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ ...
true
f82d71ce53c1dcbf0801d39e3a5d7321eb3901dd
PHP
ivankruelone/azfenix
/system/application/models/current_user.php
UTF-8
1,904
2.890625
3
[]
no_license
<?php class Current_User { private static $user; private function __construct() {} public static function user() { if(!isset(self::$user)) { $CI =& get_instance(); $CI->load->library('session'); if (!$user_id = $CI->session->userdata('user_id')) { return FALSE; } if (!$u = Doctrine::getTa...
true
0aeebef78a843fe4d38349938fb95d9a4904e82d
PHP
jgprolluxer/prosales
/app/View/Helper/NavigationHelper.php
UTF-8
6,180
2.640625
3
[]
no_license
<?php /** * NavigationHelper * * * * @author Rene Weber * @website http://www.webrene.com * @modified by Rene Weber, 23.04.2012 * @version 1.0 * @cakephp 1.3 * * * * * Purpose * --------- * Create Links for jumping back in trail and add Information for NavigationComponent to adjust its trail * * * Wh...
true
316f717a5c93977c8e2eea4d88af4a52076a8235
PHP
loophp/nanobench
/src/BenchmarkInterface.php
UTF-8
545
2.53125
3
[ "MIT" ]
permissive
<?php /** * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ declare(strict_types=1); namespace loophp\nanobench; use loophp\nanobench\Time\StopwatchInterface; use loophp\nanobench\Time\TimeInterface; interface BenchmarkInterface { ...
true
eb66c386ad7893cda79ec43518b9c66bc02cdc96
PHP
ainstainer-mefi/ain
/src/AppBundle/Services/BaseGoogleUserService.php
UTF-8
1,099
2.609375
3
[]
no_license
<?php namespace AppBundle\Services; use KofeinStyle\Helper\Dumper; use Symfony\Component\DependencyInjection\ContainerInterface; use AppBundle\Entity\GoogleConfig; class BaseGoogleUserService { /** * @var ContainerInterface */ protected $container; /** * @var GoogleConfig|null */ ...
true
1631e2007325e4f37c6ed27da7bd1bc252dc720e
PHP
lamansky/api
/src/JsonView.php
UTF-8
850
2.859375
3
[ "MIT" ]
permissive
<?php namespace Lamansky\Api; /** * This class would be a good candidate for generic typing if/when PHP implements that feature. * @see https://wiki.php.net/rfc/generics */ abstract class JsonView /*<Entity>*/ { abstract public function render (/*Entity */$entity) : array; public function renderMultiple (i...
true
de0b2f1a84120d9f3f30981b053151893b5b77fe
PHP
Seegurke13/osp
/src/Entity/Protocol.php
UTF-8
4,121
2.546875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Criteria; use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping\JoinColumn; use Doctrine\ORM\Mapping\JoinTable; /** * @ORM\Entity(repositoryClass="App\Reposito...
true
30f98818ffb05cf5fb15108847d555474c73fe40
PHP
WPPlugins/bookmarkpress
/class-BookmarkSetup.php
UTF-8
1,475
2.625
3
[]
no_license
<?php class BookmarkSetup { public function __construct() { if ( is_admin() ) { add_action('admin_notices', array($this, 'bookmark_setup_check')); } } function bookmark_setup_check() { $url = site_url() . "/wp-admin/options-general.php?page=bookmarkpress"; $string = ""; ...
true
dd706ec2cb55cec1e33dcb7ca2ff66b3fff25118
PHP
toshiro10/SIA2_PROJECT
/src/Template/Books/index.ctp
UTF-8
3,295
2.515625
3
[]
no_license
<?php /** * @var \App\View\AppView $this * @var \App\Model\Entity\Book[]|\Cake\Collection\CollectionInterface $books */ ?> <nav class="large-3 medium-4 columns" id="actions-sidebar"> <ul class="side-nav"> <li class="heading"><?= __('Actions') ?></li> <li><?= $this->Html->link(__('New Book'), ['action' => 'add']) ?></li...
true
b5abfe4a7a71f29540610967bad77571134130f8
PHP
xxhsjp/store
/smletter/app/lib/LogMessage.class.php
UTF-8
3,325
3.0625
3
[]
no_license
<?php class LogMessage { private $__message; private $__param; private $__file; private $__fullname; private $__line; private $__function; private $__args; private $__class; private $__level; public function __construct($message, $level='NOLEVEL', $param=null) { ...
true
5946c06a551b45578c075d39bfab113acd794ea7
PHP
dreamfactorysoftware/df-core
/src/Utility/DataFormatter.php
UTF-8
31,038
3
3
[ "Apache-2.0" ]
permissive
<?php namespace DreamFactory\Core\Utility; use DreamFactory\Core\Enums\DataFormats; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Arr; use Illuminate\Support\MessageBag; /** * Class DataFormatter * * @package DreamFactory\Core\Utility */ class DataFormatter { /** * @param mixed $da...
true
067623fd068d49560a642090232c30d4db32ff60
PHP
OpenConextApps/OpenConextApps-WordPress
/conext-groupauthz-plugin/conext-group-authz/GroupRel/Controller/Development/DevGroupRelationsImp.php
UTF-8
3,072
2.875
3
[]
no_license
<?php /** * development implementation, works with static results */ class DevGroupRelationsImp extends IGroupRelations { public $_numGroups; // define the number of groups to return public $_numMembers; // define the number of members per group to return public $_memberEmail; // defin...
true
46866ad8c600894fa2441dc7efade5731cffd629
PHP
drambourg/comicloan
/src/Entity/Creator.php
UTF-8
4,853
2.609375
3
[]
no_license
<?php namespace App\Entity; use App\Service\APIConnect; use App\Service\Picture; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\HttpClient\HttpClient; class Creator { private $id; private $firstName; private $middleName; private $lastName; ...
true
b33ade4ec50fe22b40c3bf6bdaeb0425d519b917
PHP
johnzenith/activitlogmanager-dev
/controllers/Base/traits/trait-browser-factory.php
UTF-8
2,408
2.78125
3
[]
no_license
<?php namespace ALM\Controllers\Base\Traits; // Prevent direct file access defined('ALM_PLUGIN_FILE') || exit('!!!'); /** * Browser Factory Template for the Plugin Factory Controller * @see \ALM\Controllers\Base\PluginFactory * @since 1.0.0 */ trait BrowserFactory { /** * Get the client device data ...
true
bb336c481e99d3572d4e3651fc6980be7618313d
PHP
integrationvusal/Ssm
/models/cashbox/CashboxModel.model.php
UTF-8
19,334
2.59375
3
[]
no_license
<?php class CashboxModel{ public $id; public $user_id; public $subject_id; public $amount; private $tableName = "vl1_CashboxModel"; protected $db; public function __construct(){ $this->db = (new DB())->start(); } public function createCB($array){ $stmt = $thi...
true
31f6fbf33396899382eaa85c5deb7797f320d864
PHP
Jrius4/kiketropicalfruits
/app/Http/Controllers/InquiryController.php
UTF-8
3,402
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Inquiry; use Illuminate\Http\Request; class InquiryController extends Controller { public function __construct() { $this->middleware('auth')->except('store'); } /** * Display a listing of the resource. * * @return \Illuminate\Http\...
true
67b3c188d8818903f65835f26d7daa960b692edc
PHP
arturassolncevas/batata_app
/app/Services/FileUtils.php
UTF-8
402
2.6875
3
[]
no_license
<?php namespace App\Services; class FileUtils { public static function get_base64_extension($base64) { $extension = explode('/', explode(':', substr($base64, 0, strpos($base64, ';')))[1])[1]; return $extension; } public static function strip_base64_extension($base64) { $base...
true
cde19b368e1f9ba0352d49bdbbcf6f4ea86e6817
PHP
AbisolaMajeed/php_class
/lecture3.php
UTF-8
1,754
4.34375
4
[]
no_license
<?php //STRING FUNCTIONS echo "my name is James Babalola. I'm a product of Babcock University"; echo strtoupper("my name is James Babalola. I'm a product of Babcock University")."<br/>"; echo strtolower("my name is James Babalola. I'm a product of Babcock University")."<br/>"; echo ucwords("my name is J...
true
cda5e0c76ae7bda73f75523b0a9038b3361179f1
PHP
dempseys3/508-project-Dempseys3
/employees-schedules.php
UTF-8
1,089
2.703125
3
[]
no_license
<html> <head> <title>Alpha Athletics</title> </head> </html> <?php require_once ('connection.php'); $stmt = $conn->prepare("SELECT e.employee_id, CONCAT(u.first_name, ' ', u.last_name) AS 'Name', ss.schedule_ID, ss.start_date, ss.end_date FROM employee_schedules e JOIN users u ON e.employee_i...
true
cc143c7c65d971661e74d69e78d71dc91eb4be2d
PHP
SNDevelop/AllInTrapani
/Logic/content.php
UTF-8
227
2.578125
3
[]
no_license
<?php class Content { public function __construct($selectedSection) { $this->_selectedSection = $selectedSection; } function SelectContent() { $method = $this->_selectedSection; $this->$method(); } } ?>
true
563d1d3bc3c16f552bb35633196224575ac7e566
PHP
jpcastro4/porjeto-autopost
/application/models/Instagram_model.php
UTF-8
6,658
2.609375
3
[]
no_license
<?php class Instagram_model extends CI_Model{ public $ig; public function __construct(){ parent::__construct(); $this->load->helper('url'); } public function autenticate($userSessionID=null){ set_time_limit(0); $this->ig = new \InstagramAPI\Instagram(false, false); ...
true
92dedb0e4a29829782e1a4aa865003e440de9b30
PHP
jurispetrovs/php-basics
/excercises/basics/04-loops/02_exc.php
UTF-8
207
4.65625
5
[]
no_license
<?php /* Create an array with integers (up to 10) and print them out using for loop. */ $intArr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; for ($i = 0; $i < 10; $i++) { echo $intArr[$i] . ' '; }
true
b111b4cd1fcf2e43cdb0ad360198952988c3df8c
PHP
jspenc72/ubm
/app/modelcreator/ubm/platforms/ios/www/php/ubms_modelcreationsuite_getActiveModelPositionsforOrgChart.php
UTF-8
3,483
2.796875
3
[]
no_license
<?php require_once('globalGetVariables.php'); require_once('ubms_db_config.php'); require_once('DBConnect_UBMv1.php'); //Provides the variables used for UBMv1 database connection $conn $conn = new mysqli($DBServer, $DBUser, $DBPass, $DBName); // check connection if ($conn->connect_error) { trigger_error('Datab...
true
1b281d49fc5091ec8453bbf2167b16694c795a3e
PHP
adalwin-hofmann/CouponOpering
/app/SOE/Newsletters/NewsletterException.php
UTF-8
242
2.625
3
[ "MIT" ]
permissive
<?php namespace SOE\Newsletters; class NewsletterException extends \Exception { public function __construct($message = '', $code = 400) { parent::__construct(empty($message) ? 'Newsletter Error' : $message, $code); } };
true
03d8bce1ec0f87b8be3f8be7e29b052b655c635a
PHP
hamidgh83/laravel-stock-management
/app/Modules/Stock/Controllers/GetStocksController.php
UTF-8
524
2.65625
3
[]
no_license
<?php namespace App\Modules\Stock\Controllers; use App\Modules\Stock\Resources\StockCollection; use App\Modules\Stock\Services\StockService; class GetStocksController { /** * @var StockService */ private $stockService; public function __construct(StockService $stockService) { $this...
true
07b02745d8b82b781312dc99d92bccafc632764d
PHP
MurrayCode/Cross-site-Scripting-against-PHP-Applications
/XSSApplication/App/phpapps/brim/plugins/tasks/model/Task.php
UTF-8
2,865
3
3
[]
no_license
<?php require_once ('framework/model/Item.php'); /** * A Task item. * * This file is part of the Brim project. * The brim-project is located at the following * location: {@link http://www.brim-project.org/ http://www.brim-project.org/} * * <pre> Enjoy :-) </pre> * * @author Barry Nauta - March 2003 * @packa...
true
d6ceb085406b85044e9f941dfee30a6d2437f366
PHP
pamo18/ramverk1-me
/src/IPValidate/IPValidate.php
UTF-8
1,404
3.390625
3
[]
no_license
<?php namespace Pamo\IPValidate; /** * IP validator */ class IPValidate { /** * @var string $ipV4 type. * @var string $ipV6 type. */ private $ipV4 = FILTER_FLAG_IPV4; private $ipV6 = FILTER_FLAG_IPV6; /** * Valide an IP Address. * * @param string $ipAddress to valida...
true
a15cefa65b4c673b2b1fac29be658248f2594062
PHP
sniper7kills/EamWatch
/app/Http/Controllers/Api/UserController.php
UTF-8
2,655
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Http\Requests\UserUpdateRequest; use App\Http\Resources\UserResource; use App\Models\User; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Spatie\Permission\Models\Role; class UserController extends C...
true
c8f41f54061a21b43af4f179fd7c4f329d5b6077
PHP
PostHog/posthog-php
/lib/SizeLimitedHash.php
UTF-8
900
3.078125
3
[ "MIT" ]
permissive
<?php namespace PostHog; class SizeLimitedHash { /** * @var int */ private $size; /** * @var array */ private $mapping; public function __construct($size) { $this->size = $size; $this->mapping = []; } public function add($key, $element) { ...
true
6131f225e4eb08ca21bc532f3a87f7dd6a1d3c24
PHP
alexdev71/TraviandOnlineGame-PHP-
/application/Models/Admin.php
UTF-8
734
2.546875
3
[]
no_license
<?php Class Admin{ // Empty all oases from monsters function emptyO(){ global $database, $session; if($session->access == 9){ $oases = $database->query("SELECT * FROM odata WHERE conqured = 0"); foreach($oases as $oasis){ $database->query('UPDATE uni...
true
98785d27869b8e48fbad07d06e55aca5411198ce
PHP
Verber/tdd-mvc-app
/app/Autoloader.php
UTF-8
755
3.078125
3
[]
no_license
<?php /** * Provide autoloading function for app classes * * @author Ivan Mosiev <i.k.mosev@gmail.com> */ class Autoloader { /** * simple autoload function * returns true if the class was loaded, otherwise false * * @param string $className * * @return boolean */ public ...
true
1cee4601e4af2e3738fb456dae2719a8c0a5f7dd
PHP
rainduan/IE598_DataOnceAgain
/blue/bitcoinsqladd.php
UTF-8
2,209
2.703125
3
[]
no_license
<?php include_once('./snap/simple_html_dom.php'); function scraping_digg() { // create HTML DOM $html = file_get_html('https://coinmarketcap.com/'); // get news block $list=array('bg-danger','bg-info','bg-warning','bg-success'); $count=0; foreach($html->find('tbody tr') as $article) { ...
true
12ed7f6b4cd551b4eb61481a9cff02e59b9a997c
PHP
2225025616/node-react-
/optionManagement/app/Http/Middleware/ScanQrCode.php
UTF-8
798
2.71875
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; use Route; use App\Models\ScanQrCodeRecord; class ScanQrCode { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure...
true
736418e272155882521d42ca3861f6bb143048cd
PHP
AditiShree22/Clues_Commute
/commute/ResponseAccept.php
UTF-8
797
2.5625
3
[]
no_license
<?php require_once 'include/DB_Functions.php'; $db = new DB_Functions(); $response = array("error" => FALSE); // json response array if (isset($_GET['employee_id']) && isset($_GET['requestee_id'])) { $employee_id= $_GET['employee_id']; $requestee_id = $_GET['requestee_id']; $result = $db->acceptRequ...
true
86e6089dfde765f1368c23a215b3f6ed9c922ffc
PHP
Luvslo/cs2880FinalProject
/genAdventureLogic.php
UTF-8
1,284
3.015625
3
[]
no_license
<?php // get stat/skill value from database and add to d20 roll function skillCheck($skill){ $sVal = getStat($skill); return rand(1,20)+$sVal; } //returns num from database function getStat($stat) { if (!session_start()) { // If the session couldn't start, present an e...
true
e6ab04aff5effc017c9b64eaaee9899977695ee8
PHP
rahmadadeakbar/berita
/belajarphp/tugasperulangan.php
UTF-8
1,095
3.515625
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h1>MENAMPILKAN BIL GENAP 1-20</h1> <?php // perulangan menampilkan genap 1-20 for ($genap = 0; $genap <= 20; $genap...
true
df418500bfa6ad6cc6a56e414b87958995be78ab
PHP
toandvu/mela
/app/Services/Media/Models/Media.php
UTF-8
378
2.703125
3
[]
no_license
<?php namespace App\Services\Media\Models; /** * @Entity @Table(name="products") **/ class Media { /** @Id @Column(type="integer") @GeneratedValue **/ protected $id; /** @Column(type="string") **/ protected $name; /** * Media constructor. * @param $name */ public function __c...
true
73ec0dbdb1543beea9a60c8b4ba6de743d22f3ef
PHP
cixwarebinod/php-playground
/Task-4 Array-functions/array_assoc.php
UTF-8
245
3.34375
3
[]
no_license
<?php //compare both key and value of array and return the difference $a1=['a'=>'mango','b'=>'apple','c'=>'grapes','e'=>'chicken']; $a2=['a'=>'mango','b'=>'apple','h'=>'grapes','d'=>'eggs']; print_r(array_diff_assoc($a1,$a2));//output chicken ?>
true
8058f0e74dc71d0fec5925d1c38ffffd392f06d3
PHP
Gosman-santoso/course
/list-user.php
UTF-8
1,930
2.671875
3
[]
no_license
<?php require "component/auth.php"; require "connect.php"; // mengambil data user $query = "SELECT * FROM user"; $result = mysqli_query($connect, $query); ?> <!DOCTYPE html> <html lang="en"> <head> <?php require "component/head.php" ?> <title>List User</title> <style> table { border-collapse: collap...
true
d250e707f79c986453b1459c0ff02d469a82c6b4
PHP
tolan/uSIreF
/src/Common/Provider.php
UTF-8
10,917
3.0625
3
[ "MIT" ]
permissive
<?php namespace uSIreF\Common; use ReflectionClass; /** * This file defines class for providing instance (include all dependencies) and collect them into one place. * * @author Martin Kovar <mkovar86@gmail.com> */ class Provider { /** * Storage for singleton instances. * * @var array */ ...
true
0e102fe17a26021ce9c6ce0560dfb4a1b564f252
PHP
truefalse/Flexsy2
/_engine/base/singleton.php
UTF-8
1,237
3.1875
3
[]
no_license
<?php /** * Singleton class for all objects * @author Ivan Gontarenko * @version 1.0 */ class Singleton{ /** * Array with all instances * @var array */ static private $_instances = array(); /** * Static public method for return instance of any engine object * @param Variab...
true
870f21ca4b91b4318b32c191bae1a2a8fb7342a5
PHP
NAJU-Sachsen/rex-group-accounts
/lib/group_manager.php
UTF-8
1,416
2.6875
3
[]
no_license
<?php class naju_local_group_manager { public static function createOrUpdate($group_name, $id = null, $logo = null, $link = null) { if (!$group_name) { return false; } // if $id isset it means update, else create if (isset($id) && $id != -1) { $update_qu...
true
1f28b23cfc7a0f1cfb97b5fbd4bf3984e100852d
PHP
Juvenv/pl-omb
/laravel/app/controllers/claimant/ClaimantController.php
UTF-8
2,886
2.65625
3
[]
no_license
<?php // TODO: Necessita Transaction class ClaimantController extends \BaseController { public function store($data) { $validatedData = $this->validator->validate($data); // Dados pessoais $claimant = Claimant::create($validatedData); $this->saveOrUpdatePersonType($claimant, $vali...
true
31c824b3e0d755e4f13582fc9defbee2c6340c0c
PHP
pondokinformatika/blood
/app/Model/Patien.php
UTF-8
445
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Patien extends Model { protected $table = 'patients'; protected $fillable = [ 'id', 'name', 'phone', 'blood_type_id', 'province_id', 'longitude', 'latitude' ]; public function blood_type() { return $this->belongs...
true
efd3b758b60adc8e946d0fd31845e31e59752c06
PHP
joncarlmatthews/EasyE
/EasyE/Resizer.php
UTF-8
10,495
2.984375
3
[]
no_license
<?php /** * EasyE Resizer * * @link https://github.com/joncarlmatthews/EasyE for the canonical source repository * @license GNU General Public License * * File format: UNIX * File encoding: UTF8 * File indentation: Spaces (4). No tabs */ namespace EasyE; require_once 'Exception.php'; require_once 'Ab...
true
c185b799e920208479c6e718a367eb142cffd9ca
PHP
Rahim1684/Cineland
/src/Entity/Film.php
UTF-8
3,475
2.5625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\FilmRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity(repositoryClass=FilmRepository::class) */ class Film {...
true
c41f9ed6ceb67a8311681b308fec7b934a870eeb
PHP
QuentG/Httpstatus
/descartes/Router.php
UTF-8
11,903
3.09375
3
[]
no_license
<?php /** * Cette classe gère l'appel des ressources */ class Router { /** * Generate an url for a page of the app * @param string $controller : Name of controller we want url for * @param string $method : Name of method we want url for * @param array $params : Para...
true
f2b25219c2236d7b20418ee9cecbdd03ad9d79e4
PHP
thammons25/forum
/prepInsert.php
UTF-8
1,554
2.6875
3
[]
no_license
<?php $sqlPrep = $myConn->prepare( "INSERT INTO Users( userName , userPass , userEmail ) VALUES( ? , ? , ? )" ); $sqlPrep->bind_param( "sss" , $newName , $newPass , $newEmail ); $goodName = filter_var( $_POST["userName"] , FILTER_SANITIZE_STRING ); $goodPass = md5( $_POST["userPass"] ); $goodEmail = fil...
true
05a13e2e821c5f65ba1b13c6dc40222c7cb86481
PHP
spiral/framework
/src/Router/tests/Fixtures/TestController.php
UTF-8
1,634
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Spiral\Tests\Router\Fixtures; use Spiral\Core\Exception\ControllerException; use Nyholm\Psr7\Response; class TestController { public function index(): string { return 'hello world'; } public function test(): string { return 'hello world';...
true
2a8978a2d2fe04544b90f7be93959e625d99e90a
PHP
jb-aero/Project2
/COEProject/StudProcessSch.php
UTF-8
2,893
2.875
3
[]
no_license
<?php session_start(); $debug = false; include('../CommonMethods.php'); include('../Appointment.php'); include('../Student.php'); include('../Advisor.php'); $COMMON = new Common($debug); if($_POST["finish"] == 'Cancel'){ // Set status to none $stat = 'n'; } else{ // Get student info from database $studid = $_SESSI...
true
58e6073691e83dc75755a9456e9939dd9e38afe7
PHP
562794175/at_demo
/chartdir_php_linux_64/ChartDirector/phpdemo/xyzoomscroll.php
UTF-8
12,854
2.578125
3
[ "IJG" ]
permissive
<?php require_once("../lib/phpchartdir.php"); # # Initialize the WebChartViewer when the page is first loaded # function initViewer(&$viewer) { # # This example assumes the initial chart is the full chart and we can auto-detect the full data # range in the drawChart code. So we do not need to configure the...
true
71b8c4e3af15df2270568031683c97038f2892f5
PHP
kellyshaprk/Board_PHP-MySQL-Bootstrap-Heroku
/list.php
UTF-8
2,247
2.71875
3
[]
no_license
<?php $b_title = "Viewing Activity"; require('header.php'); try { // connect require('db.php'); // set up query $sql = "SELECT * FROM heroku_d75026005cbf48e.my_nf_viewing ORDER BY ord DESC"; // execute & store the result $cmd = $db->prepare($sql); $cmd->execute(); $my_nf = $cmd->fetc...
true
d5e0470e408bb5e3ff8613937be176f74b33255d
PHP
fsaibene/campitoTP
/ws1/index.php
UTF-8
4,897
2.59375
3
[ "MIT" ]
permissive
<?php require_once('Clases/AccesoDatos.php'); require_once('Clases/personas.php'); require_once('Clases/inmueble.php'); require_once('Clases/local.php'); require_once('Clases/producto.php'); require 'vendor/autoload.php'; $configuration = [ 'settings' => [ 'displayErrorDetails' => true, ], ]; $c = new...
true
2568b0b62284e5c7ab639a34576ae2b1945d3146
PHP
SanteriHetekivi/DatabasesAssignment
/REST/src/lib/MySQL/MySQL.php
UTF-8
6,627
3.09375
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by IntelliJ IDEA. * User: Santeri Hetekivi * Date: 12.3.2016 * Time: 12.22 */ /** * Class MySQL * for managing connections for MySQL server. */ class MySQL extends Root { /** * @var PDO for connecting to database. */ private $conn; /** * Function Conn * for...
true
7cff1e5b8ed9d63b7bd222fa65a6cd3b379c7aa3
PHP
conordata/finance
/database_exec/carnet.php
UTF-8
3,688
3.0625
3
[]
no_license
<?php class Carnet { private $id; private $nom; private $postnom; private $prenom; private $libelle; private $montant; private $id_ben; private $sign_ac; private $sign_au; private $sign_ca; private $type; /** * Carnet constructor. * @param $id * @param $n...
true
2c9f4b9b70739693d8d460e9604a819cfad9e37f
PHP
abstractapi/php-exchange-rates
/src/AbstractExchangeRates/AbstractExchangeRates.php
UTF-8
7,106
2.90625
3
[ "MIT" ]
permissive
<?php namespace Abstractapi\ExchangeRates; use Abstractapi\ExchangeRates\Common\AbstractEndpointBase; use Abstractapi\ExchangeRates\Common\Extension\StringExtension; use Abstractapi\ExchangeRates\DomainObject\ExchangeConvertData; use Abstractapi\ExchangeRates\DomainObject\ExchangeHistoricalData; use Abstractapi\Excha...
true
348e1b33e318b9002eb74c7ad6527cbf9e81163b
PHP
zakirkun/FacebookKit
/src/FacebookResourceUser.php
UTF-8
603
2.640625
3
[ "CC-BY-4.0" ]
permissive
<?php namespace Riedayme\FacebookKit; class FacebookResourceUser { public static function GetUserInfoByToken($token) { $url = "https://graph.facebook.com/me?fields=name,picture&access_token={$token}"; $headers = array(); $headers[] = 'User-Agent: '.FacebookUserAgent::Get('Windows'); $access = FacebookHel...
true
2756c06500627253fe6cc5f3cb3610649934ba69
PHP
vladulesq/UrlCollectionManager
/urlcollection/edit.php
UTF-8
2,113
2.75
3
[]
no_license
<?php require "db_connect.php"; session_start(); if (!isset($_SESSION) || empty($_SESSION['u_id'])){ header("Location: ./login.php"); } if (isset($_POST['logout'])) { session_destroy(); header("Location: ./login.php"); } $url_link = ""; $url_description = ""; $url_category = ""; if (isset($_POST['...
true
a7c3f6b63ea5f5396d6b1153f09e6b4229575c8b
PHP
Tapos-Nath/2minute-pay
/2minutepay/admin/dashgumfree_v2/Theme/data_card_info.php
UTF-8
3,631
2.59375
3
[]
no_license
<?php include("../../../database/connection.php"); $name=$_POST['name']; $id=$_POST['id']; $mb=$_POST['mb']; $price=$_POST['price']; $date=$_POST['date']; ?> <!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/xht...
true
5be56dfd1bdb4403d89d5a4507191f59250b41a7
PHP
lupengwa/Entertainment_Collectibles
/Account Managment/addSpecial.php
UTF-8
3,148
2.6875
3
[]
no_license
<?php session_start(); $time = time(); require "pre.html"; if(!isset($_SESSION['username']) && !isset($_SESSION['usertype'])) { require 'prelogin.html'; echo '<p style="color:red"> Please Login First</p>'; require 'postlogin.html'; } elseif($_SESSION['usertype'] != "Employee") { require 'prelogin.html'; echo '<p...
true
794a8c83b1828adea7ff594ba1b153cf87feb1b5
PHP
julianseymour/php-web-application-framework
/src/input/StringInput.php
UTF-8
3,325
3.015625
3
[]
no_license
<?php namespace JulianSeymour\PHPWebApplicationFramework\input; use JulianSeymour\PHPWebApplicationFramework\core\Debug; use JulianSeymour\PHPWebApplicationFramework\datum\StringDatum; abstract class StringInput extends KeypadInput { use ReadOnlyAttributeTrait; use RequiredAttributeTrait; public function getMaxi...
true
86500348bf08971f80db8068e1b9d3182e447d1c
PHP
dimasik142/new_soc_network
/lib/api/Model/Communication/Dialogs/Dialogs.php
UTF-8
2,472
2.75
3
[]
no_license
<?php /** * User: dimasik142 * User: ivanov.dmytro.ua@gmail.com * Date: 21.01.2018 * Time: 01:03 */ namespace Sql\Communication\Dialogs; use Sql\Communication\Communication; use Sql\Sql; use Sql\Person\Person; class Dialogs extends Communication { /** * @param $id * @return array|bool */ ...
true
8167b2e85b368910e15c816a73ea00bd13333b26
PHP
jasonchen736/LAMP_Based_Ecommerce_Candy_Subscription_Website
/getsnacked/library/dataObject.php
UTF-8
2,634
3.359375
3
[]
no_license
<? class dataObject { // database handler protected $dbh; /** * Constructor - construct database object, initialize message variables * Args: none * Return: none */ public function __construct() { // instantiate database handler $this->dbh = new database; } // function __construct ...
true
0d11e8adcff577134abd00950375a79ad8810d1d
PHP
lenscas/webshop
/application/models/general/Gusers_model.php
UTF-8
3,582
2.734375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php Class Gusers_model extends CI_Model { public function Register($data, $sort){ foreach ($data as $key => $value) { if ($value == "") { $error = "Niet alle velden zijn ingevuld!"; break; } } if (!isset($error) && $data['Password'] != $data['PasswordCheck'] ) { $error = "Wachtwoorden ko...
true
ec01378547d7dae3a4011c2f4d0ded564114076c
PHP
shahinislam/Blog-Laravel-API-Backend
/app/Http/Controllers/BlogController.php
UTF-8
2,317
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Blog; use Illuminate\Http\Request; class BlogController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $blogs = Blog::latest()->get(); ...
true
d83bf0bfef125ea06378e8bb6d4b5392d3bcc7ff
PHP
hackfrag/ffxivlodestoneapi
/FFXIVConnect.class.php
UTF-8
1,697
2.6875
3
[]
no_license
<?php class FFXIVConnect { private $regions = array( 'na'=>'na.beta.finalfantasyxiv.com', 'eu'=>'eu.beta.finalfantasyxiv.com'); private $characterbaseURL = '/lodestone/character/'; private $linkshellbaseURL = '/lodestone/linkshell/'; private $freecompanybaseU...
true
6cafd5916d45ab9da5ca684f926422665c07ad41
PHP
kleitz/BearSchedule
/app/Http/Controllers/Auth/LoginMSController.php
UTF-8
4,098
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Models\User; use App\Providers\RouteServiceProvider; use Illuminate\Foundation\Auth\RedirectsUsers; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facade...
true
2fed901e0838e461d0a5583bae43a53579836c5f
PHP
bavix/laravel-wallet
/tests/Infra/Services/ExchangeUsdToBtcService.php
UTF-8
747
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Bavix\Wallet\Test\Infra\Services; use Bavix\Wallet\Internal\Service\MathServiceInterface; use Bavix\Wallet\Services\ExchangeServiceInterface; final class ExchangeUsdToBtcService implements ExchangeServiceInterface { /** * @var array<string, array<string, float>> ...
true
5e0a8fabea76e952c81b1d3177d9712a3ce443be
PHP
ThomasJones69/gitdemophp
/array.php
UTF-8
205
2.890625
3
[]
no_license
<?php $week = array ("zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"); for($counter=0; $counter < count($week); $counter++){ echo $week[$counter]; echo "<br>"; } ?>
true
deb5096a49f8b7ff71764980228a298fce210def
PHP
emmb14/MVCPHP-projekt
/src/Comments/Comment.php
UTF-8
539
2.796875
3
[ "MIT" ]
permissive
<?php namespace Anax\Comments; /** * Model for Comments. * */ class Comment extends \Anax\MVC\CDatabaseModel { /** * Find all answers that belongs to an answer * */ public function findCommentstoAnswers($answerId, $commentType) { //echo 'trying to fin all comments'; $this->db->select() ->from($t...
true
517a3af72798531e66a6c3641a1a0b571f93ff6d
PHP
ienemien/simplesse-forum
/uploadpic.php
UTF-8
2,699
2.65625
3
[]
no_license
<?php #profilepic.php require('includes/config.php'); require(MYSQL); if($_SERVER['REQUEST_METHOD'] == 'POST') { if(isset($_FILES['file'])) { $e = $_POST['email']; $allowed = array('image/pjpeg', 'image/jpeg', 'image/JPG', 'image/X-PNG', 'image/PNG', 'image/png', 'image/x-png'); ...
true
093a4dbafe14ac04d008da869ffe862b0ab72aa6
PHP
alexvezz87/pianificatore_ricette
/librerie/classi/DAO/IngredienteDAO.php
UTF-8
2,271
3.171875
3
[]
no_license
<?php namespace pianificatore_ricette; /** * Description of IngredienteDAO * * @author Alex */ class IngredienteDAO extends ObjectDAO { //costruttore function __construct() { global $DB_TABLE_INGREDIENTI; parent::__construct($DB_TABLE_INGREDIENTI); } /**...
true
1fa15a69d8b57c566fbaef00e4cf5483b8ff3727
PHP
alamehor/mp
/frontend/models/MeetingTime.php
UTF-8
4,738
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; use yii\db\ActiveRecord; /** * This is the model class for table "meeting_time". * * @property integer $id * @property integer $meeting_id * @property integer $start * @property integer $duration * @property integer $end * @property integer $suggested_by * @property...
true
e70e28174e4e9a9ca3ac89074761d9d4dca0509a
PHP
AlexeyDsov/IngredientsTest
/misc/phpStyleConverter.php
UTF-8
170
2.765625
3
[]
no_license
<?php //work -> onPHP $pattern = '(\n\t+)->'; $change = '->$1'; //work -> onPHP $pattern = '([ \t](?:class|function).+?)[ ]?\{\n(\t*)\t'; $change = '$1\n$2{\n$2\t'; ?>
true
973685d8909d63c82561f6586eeaf3be910770c5
PHP
OptimusCrime/youkok2
/youkok2/src/Rest/Endpoints/BaseRestEndpoint.php
UTF-8
1,943
2.71875
3
[ "MIT" ]
permissive
<?php namespace Youkok\Rest\Endpoints; use Exception; use Slim\Http\Request; use Slim\Http\Response; use Youkok\Biz\Exceptions\InvalidRequestException; use Youkok\Helpers\Configuration\Configuration; class BaseRestEndpoint { protected function outputJson(Response $response, array $object): Response { ...
true
062ef5eb8536ffff986a3602ce12c1878e5f898d
PHP
rvcestmoi/blog_cuisine
/src/blog_cuisine/BackBundle/Controller/AdminArticleController.php
UTF-8
5,982
2.546875
3
[]
no_license
<?php namespace blog_cuisine\BackBundle\Controller; use blog_cuisine\BackBundle\Entity\Article; use DateTime; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; class AdminArticleController extends Controller { public function listerAction() { ...
true
7ceb49cfb306e80c8891b5a37c91be19aad2e4bf
PHP
charisma-beads/charisma-beads
/module/Shop/src/Model/OrderLineModel.php
UTF-8
772
2.625
3
[]
no_license
<?php namespace Shop\Model; use Common\Model\Model; use Common\Model\ModelInterface; /** * Class Line * * @package Shop\Model\Order */ class OrderLineModel implements ModelInterface, OrderLineInterface { use Model, OrderLineTrait; /** * @return int */ public function getOrderLineId() ...
true
3175196b2ceab876fda64dd640d35f40c71a7f2b
PHP
lys-organiza/multi-process
/src/Core/MasterSigUsr1.php
UTF-8
440
2.625
3
[]
no_license
<?php namespace xingwenge\multiprocess\Core; use DI\Annotation\Inject; /** * deal worker quit. when master process get quit, shutdown all worker process graceful. */ class MasterSigUsr1 { /** * @Inject * @var Master */ private $master; public function deal() { # stop worker. ...
true
72b574be1a85031e00f13a8d26dbe4a4f3c3dfcc
PHP
tbfajri/marketplace
/application/libraries/Simple_pelanggan.php
UTF-8
2,266
2.71875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Simple_pelanggan { protected $CI; public function __construct() { $this->CI =& get_instance(); // load data model kategoris $this->CI->load->model('pelanggan_model'); } public function login($email, $password) ...
true