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
16f10ae617bdd75af2403a9521e01c5ec44e53e2
PHP
chanouuan/DaYi
/application/common/DrugType.php
UTF-8
2,754
3.1875
3
[]
no_license
<?php /** * 药品类型 */ namespace app\common; class DrugType { const WESTERN = 1; const NEUTRAL = 2; const CHINESE = 3; const MATERIAL = 4; static $message = [ 1 => '西药', 2 => '中成药', 3 => '草药', 4 => '材料' ]; /** * 换算成库存数量 * @param $drug_type 药品类...
true
1ffdbe9f299ff8f4982626ad98b8933f42da13c9
PHP
gsiteiovn/gci-task-upload
/src/TextFormat.php
UTF-8
1,931
3.3125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Droogle\GciTaskUpload; /** * Defines text formats for the terminal. */ class TextFormat { /** * Array of color codes. */ private $formats = array(); /** * TextFormat constructor. */ public function __construct() { $this->formats = [ 'begin' => "\033", 'red' => "[...
true
2255c02a24bdaf9f1ca83a3f0d4d40b01b1762e9
PHP
joeborysko/hop
/src/hop/src/elements/instances/Data.php
UTF-8
605
3.0625
3
[ "Unlicense" ]
permissive
<?php namespace hop\elements\instances; require_once __DIR__ . "/../HtmlElement.php"; /** * The HTML <code><data></code> Element links a given content with a * machine-readable translation. If the content is time- or date-related, the * <code><time></code> must be used. */ class Data extends HTMLElement { /** ...
true
98994ff49514174cd0cced8389aecdb80f2031b8
PHP
qloog/yaf-library
/src/Log/LoggerAwareTrait.php
UTF-8
305
2.625
3
[ "MIT" ]
permissive
<?php namespace PHPCasts\Yaf\Log; /** * Class LoggerAwareTrait * * @property \Psr\Log\LoggerInterface $logger */ trait LoggerAwareTrait { public function setLogger($logger) { $this->logger = $logger; } public function getLogger() { return $this->logger; } }
true
b633f28a1b7a44ab28c53c6a87cd3e4ea0aaafb6
PHP
mchljams/gcia
/src/Gcia.php
UTF-8
6,759
3.125
3
[]
no_license
<?php namespace Mchljams\Gcia; use Httpful\Request; /** * This class is a PHP wrapper for the Google Civic Information API (Gcia). * * @copyright 2017 Michael James * @license https://opensource.org/licenses/MIT MIT * @link https://github.com/mchljams/spun * @since Class available since Release...
true
d565e7733e843c33967868fa302476e4145c9fbe
PHP
jchooge/webtech-yzb023
/Assign1/feed.php
UTF-8
2,554
2.9375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>MyFacebook Feed</title> </head> <body> <style> body { background: beige } section { background: cyan; color: black; border-radius: 1em; padding: 1em; position: absolute; top: 0%; left: 40%; margin-ri...
true
15e4fbbd77a78cd317f9ecab3744c21c8e1e4918
PHP
komita1981/markmydoc
/Core/Config.php
UTF-8
1,685
2.859375
3
[]
no_license
<?php /** * Created by djuki. * Date: 2/20/13 * Time: 9:33 AM * */ class Config { /** * Get config file and item inside config file * @param $configRequest * * @return mixed */ static public function get($configRequest) { if (empty($configRequest)) { ...
true
509f1ba0920fdb69c103de1491aeb4df11789fdb
PHP
ducthe103/bantayphai.io
/HCSA/home/datprs.edu.vn/public_html/src/addons/Siropu/Chat/Criteria/Device.php
UTF-8
653
2.765625
3
[]
no_license
<?php namespace Siropu\Chat\Criteria; class Device { public static function isMatched($criteria) { if (empty($criteria)) { return true; } $deviceType = self::getDeviceType(); if (!empty($criteria[$deviceType])) { ret...
true
7e2e6aad24c864aa9526ae36324bcf42bd16c91a
PHP
theboxer/markdown-editor
/core/components/markdowneditor/model/markdowneditor/oEmbed/Service/EmbedlyEmbed.php
UTF-8
2,077
2.75
3
[ "MIT" ]
permissive
<?php namespace MarkdownEditor\oEmbed\Service; use MarkdownEditor\oEmbed\Cards; use MarkdownEditor\oEmbed\iOEmbed; use MarkdownEditor\oEmbed\OEmbed; final class EmbedlyEmbed extends OEmbed implements iOEmbed { use Cards; /** * @return string * @throws \Exception */ protected function getSe...
true
813ef6e81e6bf7ae7abf929336673319186bbcbf
PHP
rmai2015/Parking
/Parking/application/models/App_model.php
UTF-8
785
2.53125
3
[]
no_license
<?php class App_Model extends CI_Model { function CheckUser($email, $password) { return $this->db->get_where('users', array('email' => $email, 'password' => sha1($password)))->result(); } function getfrees() { $frees=0; //utworzenie zmiennej z iloscia miejsc wolnych ...
true
b8290d24605a2ca472d768f299331b0dc19a4326
PHP
schakko/bootstrap-zf-example
/library/Exampleapp/Test/Controller/Base.php
UTF-8
817
2.5625
3
[]
no_license
<?php abstract class Exampleapp_Test_Controller_Base extends Bootstrap_Test_Controller_Base { public function setUp() { $this->bootstrap = APPLICATION_ENV . "/Bootstrap.php"; parent::setUp(); } public function tearDown() { parent::tearDown(); } /** * Does a context switch so we can execute the assertio...
true
a9f981fbbfcfa601e60da6170912c8fd95f859f9
PHP
ilyaidea/db-model
/apps/Lib/Validation/Validator/SlugValidator.php
UTF-8
2,331
2.8125
3
[]
no_license
<?php namespace Lib\Validation\Validator; use Phalcon\Validation; use Phalcon\Validation\Validator\Regex; use Phalcon\Validation\ValidatorInterface; /** * check inputted slug * @example * options: 'startWithSlash' => true : /ilyaidea/db-model/tree/master/ER 'startWithSlash' => false : il...
true
0c5d35da858c7611d86c84191d5802ea4db3def1
PHP
johanhanses/oophp
/view/dice1/play.php
UTF-8
1,361
2.859375
3
[]
no_license
<?php namespace PJH\Dice; // $dice = new ComputerHand(); // $dicehand = $dice->rollaDice(); // // $test = new Histogram(); // $test->injectData($dice); // $hej = $test->getAsText(); // var_dump($dice); // var_dump($debugg); // // var_dump($_SESSION); ?><h1>Tärningsspelet 100(1)</h1> <div class="game"> <div clas...
true
b7b4b57650f044acff42f4f9387f2a0b1b36c93c
PHP
contributte/messenger
/src/Logger/BufferLogger.php
UTF-8
754
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Contributte\Messenger\Logger; use Psr\Log\AbstractLogger; use Stringable; class BufferLogger extends AbstractLogger { /** @var array<array{message: string|Stringable, context?: array<mixed>}> */ private array $logs = []; /** * @phpcsSuppress SlevomatCodingStandard.Ty...
true
d188fc14b8213b60aa4b585639d03ce49612a779
PHP
haja1095/projects
/StudentDetails/StudentDetails/delete.php
UTF-8
419
2.5625
3
[]
no_license
<?php session_start(); include_once('connection.php'); if(isset($_GET['id'])){ $sql = "DELETE FROM students WHERE id = '".$_GET['id']."'"; if($conn->query($sql)){ $_SESSION['success'] = 'Student deleted successfully'; } else{ $_SESSION['error'] = 'Something went wrong in deleting student'; } } el...
true
083f61399e12127a9faf14e81ae7cfb620dac8fd
PHP
Jhonatan-Almeida/programacionVisualM
/arreglos/arreglos.php
UTF-8
1,997
3.5625
4
[]
no_license
<?php //El arreglo es un conjunto de datos utilizables como uno sola variable , contenedor de datos //$arreglo = array(elememtos); //$arreglo =[]; // 0 1 2 $zapatillas = array('Nike','Reebok','Jordan'); //echo print print_r var_dump //echo.- no imprimer el detalle del arreglo, s...
true
fab13538a2cd25b0c54a5b25b1ceb53206e6bbf7
PHP
gocodebox/lifterlms-tests
/framework/class-llms-unit-test-files.php
UTF-8
2,341
3.109375
3
[]
no_license
<?php /** * File management * * @since Unknown */ class LLMS_Unit_Test_Files { /** * Copy a file in the tests assets directory to a new directory. * * @since Unknown * * @param string $file Asset filename to be copied. * @param string $dest Path to the directory where the file should be stored...
true
d936ad57238a6aa253e060e89cb725b5cc9f95a4
PHP
fludotlove/Playground
/List/index.php
UTF-8
2,455
2.640625
3
[]
no_license
<?php date_default_timezone_set('Europe/London'); chdir(__DIR__); require 'parsedown.php'; function store_load() { if (file_exists('storage/store.json')) { return file_get_contents('storage/store.json'); } return json_encode(array()); } function output_view($name, $data = array()) { if (fi...
true
999d07fa754696717e1724fedc87c2e917cac3b5
PHP
subins2000/nokedo
/current/search/addlink.php
UTF-8
5,396
2.609375
3
[]
no_license
<link href="//nokedo.com/files/css/style2.css" rel="stylesheet" /> <link href="//nokedo.com/files/css/index.css" rel="stylesheet" /> <form action="<?php SELF ?>" method="POST"> <input type='text' size="10" name='title' placeholder="Site Name"><br> <input type='text' size="10" name='url' placeholder="Site Url"><br><br> ...
true
b01095fd7b316d8200722b66b87c0d72b388e8aa
PHP
Dieciseis/Glasses
/back/insertData.php
UTF-8
3,396
2.796875
3
[]
no_license
<?php //接收前端录入的13项感性评价指标和上传的图片,入库 header("content-Type: text/html; charset=utf-8");//字符编码设置 require_once'faces.php'; require_once 'DBC.php'; function insertFace(){ $face = new faces(); if ($_FILES["file"]["error"] > 0) { echo "错误: " . $_FILES["file"]["error"] . "<br />"; } else { ...
true
83b7795cd98916c754837ec290def78ef3da175e
PHP
php-carteblanche/core
/src/CarteBlanche/Library/StorageEngine/DatabaseAdapter/AbstractDatabaseAdapter.php
UTF-8
1,803
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /** * This file is part of the CarteBlanche PHP framework. * * (c) Pierre Cassat <me@e-piwi.fr> and contributors * * License Apache-2.0 <http://github.com/php-carteblanche/carteblanche/blob/master/LICENSE> * For the full copyright and license information, please view the LICENSE * file that was distributed...
true
07c9d62d5b17729d0151eff7e810193de2712b58
PHP
licnep/radar
/zeygos/app/Controller/SubscriptionController.php
UTF-8
2,724
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use App\Model\PayPal as PayPalModel; use App\Model\User as UserModel; use App\Model\Subscription as SubscriptionModel; /** * Class SubscriptionController * @package App\Controller */ class SubscriptionController extends BaseController { /** * @param $request ...
true
653822332c19f946f34dd603d4e1263de3944be0
PHP
shibam2015/KandePohe
/common/models/base/baseUserTag.php
UTF-8
774
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\base; use Yii; /** * This is the model class for table "user_tag". * * @property integer $id * @property integer $tag_id * @property integer $iUser_Id */ class baseUserTag extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() ...
true
c2ac9d41b2a93f14a77d6002211c276f2fa4e2e0
PHP
mohsulthana/certismedia-api
/app/Controllers/Register.php
UTF-8
1,742
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use App\Models\User_model; use CodeIgniter\RESTful\ResourceController; class Register extends ResourceController { protected $format = 'json'; protected $modelName = 'App\Models\User_model'; public function index() { return $this->setResponseFormat('json')->respond($thi...
true
dfed01d72dfde53ac7e297e7c89b7dbedc7fdec6
PHP
helloword1979/invech
/unknow_backend/.svn/pristine/df/dfed01d72dfde53ac7e297e7c89b7dbedc7fdec6.svn-base
UTF-8
3,797
2.578125
3
[]
no_license
<?php namespace app\pay; abstract class basepay { protected $params; //public function __construct($params) { public function params($params) { $this->params = $params; } /** * 生成订单号 * 可根据自身的业务需求更改 */ public function orderno() { return date("YmdHis").rand(1000...
true
fa6159bff376c5f8f35f7dee3802ce826242b1dd
PHP
capons/clout-back
/application/controllers/Score.php
UTF-8
3,600
2.734375
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); require_once APPPATH."libraries/REST_Controller.php"; /** * This class controls obtaining score information. * * @author Al Zziwa <al@clout.com> * @version 1.3.0 * @copyright Clout * @created 07/10/2015 */ class Score extends REST_Contro...
true
2b799c4ea395781976bbe0e0894cea0644656780
PHP
dawidskowron/cdv_ajax-vs-nodejs-chat
/lib/om/User.class.php
UTF-8
1,172
3.234375
3
[ "MIT" ]
permissive
<?php class User { private $fields; public function __construct($array = null) { $this->fields = array('id_user' => '', 'name' => '', 'image' => '' ); if (is_array($array)) { foreach ($array as $key => $value) { $lowerKey = strtolower($key); if ( arra...
true
1105ff0117a626012b51fd72c985f906f447448e
PHP
soatok/old-barkane-arts.com
/app/Website/Controller/Prototypes/LoggedInUsersOnly.php
UTF-8
665
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace BarkaneArts\Website\Controller\Prototypes; use BarkaneArts\Framework\Controller; use ParagonIE\Cookie\Session; /** * Class LoggedInUsersOnly * * Instead of extending from Controller, extend from this class. * It enforces user authentication. * * @package BarkaneArts\Webs...
true
54f9fa9d713ec27a732c17214d131e1579329e45
PHP
AsaiKen/phpscan
/src/test/resources/interpreter/case57/magic_method.php
UTF-8
154
3.09375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class A { public function __call() { echo "12"; } } class B { public function test() { echo "34"; } } $a = new A (); $a->test (); // 12 ?>
true
2c83c76951a3569affd2429cd03d97208928d3a9
PHP
seshij/assys
/kbgames/classes/rol_classes.inc.php
UTF-8
11,262
2.640625
3
[]
no_license
<?php include_once("lib/html.inc.php"); include_once("components/administrable.inc.php"); include_once("lib/dao.inc.php"); class Rol extends DBElement { var $id; var $name; public function getTableDescriptor() { $td = new TableDescriptor("rol"); $td->addField("id","id", false); $td->addField("name","...
true
2ee6d9bff0b4a562ad3ee14288e490bdfde3f4cc
PHP
GigaSavvy/uptyme
/src/Observer/Observable.php
UTF-8
1,239
3.15625
3
[ "MIT" ]
permissive
<?php namespace Gigasavvy\Uptime\Observer; abstract class Observable { /** * The attached ovservers. * * @var array */ private $observers = []; /** * Get the observers attached to this object. * * @return \Gigasavvy\Uptime\Observer\Observer[] */ public function...
true
313377ab64e3ae6b1dd826f6ce118855c4210de2
PHP
zerospirit79/web-development-interview
/lesson1/Iter.php
UTF-8
1,833
3.625
4
[]
no_license
<?php //(n) = O(1) константа //f(n) = O(log(n)) логарифмический рост //f(n) = O(n) линейный рост //f(n) = O(n*log(n)) квазилинейный рост //f(n) = O(n^m) полиномиальный рост //f(n) = O(2^n) экспоненциальный рост class Chapter { protected $title; protected $content; public function __construct($title, $content) { ...
true
9b471fdede13b8ff4af3d554850d11d652ce8a28
PHP
loveorigami/shop_prototype
/tests/services/CountryGetSaveCountryServiceTests.php
UTF-8
4,693
2.640625
3
[]
no_license
<?php namespace app\tests\services; use PHPUnit\Framework\TestCase; use app\services\CountryGetSaveCountryService; use app\tests\DbManager; use app\tests\sources\fixtures\CountriesFixture; use app\models\CountriesModel; /** * Тестирует класс CountryGetSaveCountryService */ class CountryGetSaveCountryServiceTests e...
true
aa403e4f98bf027bb89732cf4c798fc50cfdb2a5
PHP
nguyenlinh98/linh_server
/YourDoctor/Models/Doctors.php
UTF-8
1,054
2.734375
3
[]
no_license
<?php require_once 'Models/Model.php'; require_once ('Models/Database.php'); // /** // * // */ class Doctors extends Model { protected $table = 'Doctors'; protected $fillCol=['id','name','address','phone','sex','age']; public function addDoctors($name,$id_department,$image,$description,$degree)...
true
c2357b92fcb554369d861398d118e400eb2eb0eb
PHP
Aplear/testCrimea
/controllers/BlogController.php
UTF-8
2,070
2.59375
3
[]
no_license
<?php namespace app\controllers; use app\models\PostComments; use app\models\Posts; use Yii; use app\models\search\PostsSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\web\Response; use yii\widgets\ActiveForm; /** * BlogController actions for Posts model. */ class BlogController extends ...
true
634aee8b455da4b5910d12d458c1fe1017dc8f3e
PHP
Grompokstar/krujeva
/bin/migrate-4.0/tracking/trackers.php
UTF-8
2,274
2.53125
3
[]
no_license
<?php include __DIR__ . '/../../opts.php'; $opts = optsRead(optsApp([ [ 'name' => 'host', 'long' => 'host', 'description' => 'БД хост системы 4.0', 'options' => OPT_ARG_REQUIRED | OPT_REQUIRED ], [ 'name' => 'check', 'long' => 'check', 'description' => 'Проверить загрузку. Откатить транзакцию по окон...
true
5ba62f5d319d711cf07deca959c85a8d2de94a4b
PHP
mskfkd/POSprogram
/kihon26.php
UTF-8
6,147
3.46875
3
[]
no_license
//90 Q.商品マスター登録プログラムを作成したい //下記仕様をみたすプログラムを作成してください。 <?php class Product{ public static $product_list = array ( 1 => array ( "name" => "おいしいかもしれない牛乳", "jancode" => "816208808001" ), 2 => array ( "name" => "じゃがいも", "jancode" => "237784671002" ) ); public static function get...
true
a00d6b5a83a60f45c7385dc29071d66a89fd552a
PHP
franmoreno98/reread-php
/services/connection.php
UTF-8
397
2.59375
3
[]
no_license
<?php //estilo por procedimientos $host = "localhost"; $user = "root"; $pass = ""; $db = "reread"; //crear la conexion $conn = mysqli_connect($host, $user, $pass, $db); //chekear la conexion if(!$conn){ echo "Error: No se pudo conectar al a Mysqli" . PHP_EOL; echo "Error de depuración: " . mysqli_connect_err...
true
93cc17fb0371c4bb1ff2c6ef08be5b502584a153
PHP
mailmuh/WebProg2-crudNative
/edit.php
UTF-8
2,451
3
3
[]
no_license
<?php include_once("config.php"); if(isset($_POST['update'])) { $id = $_POST['id']; $name=$_POST['name']; $usrname=$_POST['username']; $email=$_POST['email']; $pwd = $_POST['password']; if ($name == "") { header("location:tambah.php?nama="); }elseif ($email == "") { ...
true
a8ec73d6e3d6b2b3d8b4eedddb99b534f9fb7b3f
PHP
kgaughan/afk
/fwk/classes/AFK/Plugin.php
UTF-8
4,416
2.671875
3
[]
no_license
<?php /* * AFK - A minimalist PHP web development library. * Copyright (c) Keith Gaughan, 2007. All Rights Reserved. * * For the full copyright and licence terms, please view the LICENCE file * that was distributed with this source code. */ /** * A plugin. * * Plugins are generally stored together in a direct...
true
e1472925b455f1cb294dc0afdbec74fd56de9b72
PHP
catchup-forks/PackageEws365
/src/StructType/EwsMeetingInstanceType.php
UTF-8
12,069
2.578125
3
[ "MIT" ]
permissive
<?php namespace Ews\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for MeetingInstanceType StructType * @package Ews * @subpackage Structs * @author WsdlToPhp <contact@wsdltophp.com> */ class EwsMeetingInstanceType extends AbstractStructBase { /** * The Id * Met...
true
c5941907dfc67d77aeb81476d54aa02e7a1ed05a
PHP
Squanbri/archk
/plugins/squanbri/authentication/components/Companies.php
UTF-8
1,192
2.5625
3
[]
no_license
<?php namespace Squanbri\Authentication\Components; use Cms\Classes\ComponentBase; use Squanbri\Authentication\Classes\Session; use Squanbri\Authentication\Models\Vacancies as VacancyModal; use Squanbri\Authentication\Models\Companies as CompanyModal; class Companies extends ComponentBase { public function compo...
true
ad9da84d4d60493c0d1cbb5a6ada7c405dc6eff4
PHP
ralfmaxxx/phpcs_rules
/src/Standards/SA/Sniffs/Commenting/OneEmptyLineBetweenThrowsAndParamAnnotationsSniff.php
UTF-8
1,985
2.515625
3
[]
no_license
<?php use PHP_CodeSniffer_File as PhpCodeSnifferFile; use PHP_CodeSniffer_Sniff as PhpSnifferInterface; use PhpCs\Rules\PhpDoc\Repository\ParamTagRepository; use PhpCs\Rules\PhpDoc\Repository\ReturnTagRepository; use PhpCs\Rules\PhpDoc\Repository\ThrowTagRepository; use PhpCs\Rules\TagInterface; class SA_Sniffs_Comme...
true
204377d6b682c7bf26b6c72e49178f2eca7fefab
PHP
lastzero/css-optimizer
/src/CssOptimizer/Css/Optimizer.php
UTF-8
6,387
2.96875
3
[ "MIT" ]
permissive
<?php namespace CssOptimizer\Css; use \CssMin; /** * This filter optimizes your CSS by removing duplicates and combining selectors * * Since the parsing is done using simple (and fast) string functions, it requires well * formed CSS without inline comments. Please use a pre-filter like CssMin (minifyCss() is a w...
true
46136d5fa583b9cc7de6f2c805e30eb56ba6e548
PHP
joshuasenining/mem
/hrm/latrix/leave_headsup.php
UTF-8
3,626
2.546875
3
[]
no_license
<?php /* LATRIX - attendance tracking and reporting Copyright (C) 2006,2009 Manticore Software Published under GPL V3, see admin.php for more detail */ require_once("include/defs.inc"); require_once("classes/errorbox.php"); require_once("classes/db_conn.php"); require_once("Mail.php"); require_once("M...
true
1d88988fe96b63aa241bbf1f909ba908f2fec940
PHP
flexiodata/flexio-web-app
/application/api/Vfs.php
UTF-8
9,061
2.546875
3
[ "MIT" ]
permissive
<?php /** * * Copyright (c) 2016, Gold Prairie LLC. All rights reserved. * * Project: Flex.io App * Author: Aaron L. Williams * Created: 2016-12-19 * * @package flexio * @subpackage Api */ declare(strict_types=1); namespace Flexio\Api; class Vfs { public static function list(\Flexio\Api\Request $r...
true
14ce83b7e11f34a2bd4bde749dd315b90b88a330
PHP
taipv1984-developer/vuagomsu
/protected/core/util/LogUtil.php
UTF-8
7,457
2.515625
3
[]
no_license
<?php include(LIBRARY_PATH.'log4php/Logger.php'); class MyLoggerPatternConverterFile extends \LoggerPatternConverterFile { public function convert(\LoggerLoggingEvent $event) { return basename(parent::convert($event)); } } class MyLoggerLayoutPattern extends \LoggerLayoutPattern { public fun...
true
bbaa0c48ae170f5b086a2b970ad42212fe1ee658
PHP
18611695139/ekt
/app/models/department_model.php
UTF-8
11,410
2.9375
3
[]
no_license
<?php /** * 部门类 * */ class Department_model extends CI_Model { function __construct() { parent::__construct(); } /** * 清除缓存 * * @param int $dept_id 部门id * @return bool */ private function _clear_dept_cache($dept_id=0) { $this->cache->delete('tree_info'); $this->cache->delete('all_of_department...
true
c9a3f49ab33dbf71034be72db83013ff27ff5d55
PHP
WebDevCF2019/POO
/PDO/exercice/index.php
UTF-8
927
2.765625
3
[]
no_license
<?php /** * FC */ /* * create session () create unique id PHPSESSID, and create a cookie */ session_start(); /* * dependencies */ require_once "config.php"; // utilisation de la connexion PDO require_once "connectPDO.php"; /* * routing * * $_GET * * détail d'article => idarticle (int) * détail de users ...
true
2575d180d52d7599c0a5c8f697fd19cc707fac25
PHP
Maribel37Garcia/prjPHP
/funcoes_basicas.php
UTF-8
314
3.109375
3
[]
no_license
<?php //verifica se a variável está iniciada $valor = "edson"; isset($valor); // retorna true quando = '',0, '0', false, null, array() // false = outras condições $valor = ''; empty($valor); //verifica se a variável é um número $valor = 0; is_numeric($valor); ?>
true
de111b2b73ffc48a6735afcbf9e67ac0d00e5b33
PHP
Shriz07/Shop
/functions/manage_orders.php
UTF-8
8,809
2.5625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; try { $con = new PDO("mysql:host=$servername;dbname=ITShop", $username, $password); $con -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e) { echo "<script>createCustomAlert('Failed to conn...
true
3f734c41fee1693d81fa4c24d4147b2568cdc11b
PHP
MindTwisted/laravel-blog
/app/Http/Controllers/Site/CommentController.php
UTF-8
676
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers\Site; use App\Http\Controllers\Controller; use App\Http\Requests\StoreCommentRequest; use App\Repositories\CommentRepository; class CommentController extends Controller { /** * Store a newly created resource in storage. * * @param StoreCommentRequest $request ...
true
d71ffd7963d6b6fe2c89d180030f74b5ab7fa583
PHP
stefanius/politiekpoultje
/app/model/verkiezing_model.php
UTF-8
1,150
2.578125
3
[]
no_license
<?php class VerkiezingModel extends CoreModel{ var $table = 'verkiezing'; var $PartijList = array(); //Used for adding parties var $Partijen = array(); //used for other purposes. var $Verkiezingtype; public function load($field, $value) { $return = parent::load($field, $va...
true
0075726e8508572f695280d7079bdb1654a7f41a
PHP
ericrey/u-wallet
/includes/DbGetHistory.php
UTF-8
2,390
2.703125
3
[]
no_license
<?php class DbGetHistory { private $con; function __construct() { require_once dirname(__FILE__) . '/DbConnect.php'; $db = new DbConnect; $this->con = $db->connect(); } public function getUserHistory($UserID) { $stmt = $this->con->prepare("Select paymenthistor...
true
ac7d40c89d19067c1a83257bc2cd7df480fcaed5
PHP
13426151793/auth2.0-php
/lib/ThinkPHP/Library/Vendor/XML_Serializer/tests/Serializer_Scalars_TestCase.php
UTF-8
3,393
2.84375
3
[ "Apache-2.0" ]
permissive
<?php /** * Unit Tests for serializing arrays * * @package XML_Serializer * @subpackage tests * @author Stephan Schmidt <schst@php-tools.net> * @author Chuck Burgess <ashnazg@php.net> */ /** * PHPUnit main() hack * * "Call class::main() if this source file is executed directly." */...
true
c3e73dac257c5cdae108d7f96095f1e7988d145d
PHP
PremierTechDigital/groomer
/src/Groomer/GroomerFactory.php
UTF-8
3,683
3.21875
3
[]
no_license
<?php namespace Drupal\groomer\Groomer; use Drupal\groomer\Service\GroomerManager; /** * Provides a base class for all Groomer Sub-Factories. * * @package Drupal\groomer\Groomer */ abstract class GroomerFactory { /** * Storage used to keep groomers that have already been generated. * * Works wonders ...
true
4ade3f89f85395ba764c52a394a28c889eccb528
PHP
roodyprog/Blog-php
/models/UserModel.php
UTF-8
559
2.734375
3
[]
no_license
<?php require './autoloader.php'; class UserModel extends Model { public function __construct() { //appelle construct class model parent::__construct(); } public function verifyLogin($login) { $sql = 'SELECT * FROM user WHERE login = ?'; //execution de notre requete ...
true
edf1fe47e0579ccb54e6796d138ef18027378ddb
PHP
Moonvee/nwcd-test
/dynamodb/getitem.php
UTF-8
274
2.671875
3
[]
no_license
<?php include 'dynamodb.php'; //链接数据库 $params =[ 'TableName' => $tableName, ]; try { $result = $dynamodb->scan($params); print_r($result['Items']); } catch (DynamoDbException $e) { echo "Unable to add movie:\n"; echo $e->getMessage() . "\n"; }
true
9f5581ef962a015329f189d2d7b2d11b08987148
PHP
cciteam/Oenline
/dossierModele/MySQLNezTypeVinDAO.php
UTF-8
2,251
2.96875
3
[]
no_license
<?php require_once("NezTypeVinDAO.php"); require_once("NezTypeVin.php"); require_once("ConnexionBDD.php"); class MySQLNezTypeVinDAO implements NezTypeVinDAO { private $connexion=NULL; private $nomTable="nezTypeVin"; public function __construct($connexion) { $this->connexion=$connexion; } public function ajout...
true
6f686ed2f9db82de221d7bfa5cdbcb1da613f212
PHP
leepeuker/plex-api
/src/ValueObject/MediaList.php
UTF-8
623
2.90625
3
[]
no_license
<?php declare(strict_types=1); namespace PlexApi\ValueObject; /** * @method Media[] getIterator() : \ArrayIterator * @psalm-suppress ImplementedReturnTypeMismatch */ class MediaList extends AbstractList { public static function create() : self { return new self(); } public static function ...
true
84236eab2c9ebcc3e2cf3052929fbe4191eb948c
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/framework/Webapi/Rest/Response/FieldsFilter.php
UTF-8
7,560
2.75
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "AFL-2.1", "AFL-3.0", "OSL-3.0" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Webapi\Rest\Response; use Magento\Framework\Api\AbstractExtensibleObject; use Magento\Framework\Api\AttributeInterface; use Magento\Framework\Webapi\Rest\Request as RestRequest; /** * ...
true
b2e0af130f96e775be622ee7c841a0fb154a460e
PHP
rooneyvn/My-Framework
/core/view_base.class.php
UTF-8
2,281
2.859375
3
[]
no_license
<?php Class baseView { /* * @Variables array * @access public */ public $data = array(); private static $instance; /** * * @constructor * * @access public * * @return void * */ function __construct() { } public static function ...
true
6296c4a4e6b79e9ceb4e2324cb4fed1bd353cf25
PHP
edifierd/futbolemia
/application/Controller.php
UTF-8
7,397
2.6875
3
[]
no_license
<?php /* * ------------------------------------- * www.dlancedu.com | Jaisiel Delance * framework mvc basico * Controller.php * ------------------------------------- */ abstract class Controller { private $_registry; protected $_view; protected $_acl; protected $_request; public function __construct() {...
true
4dfa7611e25e27e537de767da0957ff2bf739a21
PHP
gslayer0/TUGAS4PHP
/form.php
UTF-8
752
2.71875
3
[]
no_license
<?php session_start(); // echo "Hallo"; // echo empty($_SESSION["username"]); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> --> <title>Form L...
true
2f77c2ca1de3934420e9ed31a1b06bfe2b2aead3
PHP
kennyuzoma/oop-example
/app/Http/Middleware/CheckApiClientSecret.php
UTF-8
900
2.65625
3
[]
no_license
<?php namespace App\Http\Middleware; use Illuminate\Http\Response; use Closure; class CheckApiClientSecret { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $nex...
true
5f8c622d877b641995b61c6e400770b1b1cc0629
PHP
irobust/CI3Demo
/application/views/order/list.php
UTF-8
436
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <table> <thead> <tr> <th>Order No#</th> <th>Duration</th> </tr> </thead> <tbody> <?php foreach ($data as $row): ?> <tr> <td><?php echo $row->orderNumber ?></td> <td><?php echo durat...
true
4cdd0c973302b9cf855e47869b35472fbc992822
PHP
gustavopimentelrinaldi/socialNetwork
/registra_usuario.php
UTF-8
2,439
2.6875
3
[]
no_license
<!DOCTYPE html> <html lang="PT-BR"> <head> <meta charset="UTF-8"> <title>Logar-se</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <link rel="stylesheet" type="text/css" href="semantic/semantic.min.css...
true
c21d03829de6a6b2279e664a01bc8b94ea3d73e4
PHP
andreprojects/sp745543
/module/Application/src/Application/Entity/PlanoAnuncio.php
UTF-8
3,494
2.75
3
[]
no_license
<?php namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; /** * * @ORM\Entity * @ORM\Table(name="plano_anuncio") * @ORM\Entity(repositoryClass="Application\Entity\PlanoAnuncioRepository") * * @property int $id * @property int $id_anuncio ...
true
449c0f2ba5a8f899cd69bdebbd989374129b78e5
PHP
MarcGMEN/BAV_AVS
/AJAX/client_AJAX.php
UTF-8
4,456
2.765625
3
[]
no_license
<?php /**************************************/ /**************************************/ /* CLIENT */ /**************************************/ /**************************************/ /** * retourne la liste des mels des clienrts pour une selection */ function return_listClientByMel($mel = null) { $tabRet = list...
true
0d9e89639977142c5653b22bf6500706f527e436
PHP
yangly3/Online-Book-Store
/insert.php
UTF-8
1,783
2.796875
3
[]
no_license
<!doctype html> <html> <head> <title>Add a Book </title> </head> <body> <?php session_start(); //include('includes/header.html'); include('mysqli_connect.php'); $query= "select * from Book"; $rows = mysqli_query($dbc,$query); echo "<table border='0' >"; echo "</table>"; while($row = mysqli_fetch_array($rows,MY...
true
d6ba4d644890a5e4abd2082cf5cada613e828128
PHP
Roave/BetterReflection
/test/core/ReflectionClassConstant_getValue.phpt
UTF-8
781
2.9375
3
[ "MIT" ]
permissive
--TEST-- Test variations of getting constant values --FILE-- <?php /* Use separate classes to make sure that in-place constant updates don't interfere */ class A { const X = self::Y * 2; const Y = 1; } class B { const X = self::Y * 2; const Y = 1; } class C { const X = self::Y * 2; const Y = 1;...
true
19447d5b11558a667b21804040a9bed36b54726e
PHP
dcwebmaven/ShoppingCartandCheckoutArea
/countdownHome-final.php
UTF-8
2,522
2.828125
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html> <head> <style> body { background-image: url(http://dianaprince.usersource.com/Heart-on-fire-1.jpg); background-color: black; } h1 { color: white; font-style: italic; text-align: center; position: absolute; left: 325px; top: 230px; }...
true
2fe6c20ae8b2ebdc8c65884460e004974cd93ea5
PHP
basselin/php-certification-training
/Questions/0138-2.php
UTF-8
799
3.140625
3
[]
no_license
<?php // Consider the following script: $dom = new DOMDOcument(); $dom->load('0138.xml'); foreach($dom->documentElement->childNodes as $child) { if(($child->nodeType == XML_ELEMENT_NODE) && $child->nodeName == "item") { foreach($child->childNodes as $item) { if(($item->nodeType == XML_ELEMEN...
true
bdc0d2040cf59118383c580e13e06b306db72271
PHP
agifsofyan/php-mvc
/app/models/Product.php
UTF-8
3,731
2.953125
3
[]
no_license
<?php class Product { private $db; public function __construct() { $this->db = new Database(); $this->table = 'products'; $this->order = 'orders'; $this->field = array('id', 'name', 'stock', 'price', 'slug', 'image', 'description', 'created_by'...
true
6851dd118715fac847833d5a3f26e044837cd74b
PHP
Kunstmaan/KunstmaanBundlesCMS
/src/Kunstmaan/AdminBundle/Helper/Security/Acl/Permission/PermissionMap.php
UTF-8
2,268
2.703125
3
[ "MIT" ]
permissive
<?php namespace Kunstmaan\AdminBundle\Helper\Security\Acl\Permission; use Symfony\Component\Security\Acl\Permission\MaskBuilderInterface; use Symfony\Component\Security\Acl\Permission\MaskBuilderRetrievalInterface; /** * PermissionMap which stores all the possible permissions, this is based on the BasicPermissionMa...
true
3604cfc8c2815b01a5da137a76314a0802766e2d
PHP
felipe-mapa/cuppee-nz
/classes/Size.php
UTF-8
3,471
3.171875
3
[]
no_license
<?php $filepath = realpath(dirname(__FILE__)); include_once ($filepath.'/../lib/Database.php'); include_once ($filepath.'/../helpers/Format.php'); ?> <?php class Size { private $db; // Database class property private $fm; // Format class property public function __construct(){ ...
true
5bce088c0c8c296bde1419484ddc708639f8ec5c
PHP
Okennouche/DDD-Symfony
/src/DDD/Application/UseCase/Query/User/Handler/Interfaces/FindByEmailQueryHandlerInterface.php
UTF-8
1,415
2.53125
3
[]
no_license
<?php declare(strict_types=1); /** * * @ Created on 12/01/19 17:28 * @ This file is part of the DDD project. * @ Contact (c) Omar Kennouche <dev.kennouche@gmail.com> * @ Licence For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ nam...
true
724dd1ceea90412a05fbc4f2fade1d1da0886390
PHP
AlvanirJr/simuladorEnade
/app/Curso.php
UTF-8
778
2.609375
3
[ "MIT" ]
permissive
<?php namespace SimuladoENADE; use Illuminate\Database\Eloquent\Model; class Curso extends Model { //Verificar o belongsTo se é necessario public function ciclo(){ return $this->hasOne('SimuladoENADE\Ciclo'); } public function unidadeAcademica(){ return $this->hasOne('SimuladoENADE\Unid...
true
785760371d46859c6058cecb3908890258e1b41c
PHP
ellakcy/member_app
/src/AppBundle/EventListener/AccessLogEventListener.php
UTF-8
1,580
2.640625
3
[]
no_license
<?php namespace AppBundle\EventListener; use Symfony\Bridge\Monolog\Logger; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Twig\Environment; //For formatting thelogs class AccessLogEventListener { /** * @var Logger */ private $logger=null; /** * @var Environment */ p...
true
b00697e1472d56c837121a934383ae6f500b9cc3
PHP
elmills/breezeTagUpdate
/tagupdate-sample.php
UTF-8
1,661
2.53125
3
[ "MIT" ]
permissive
<?php require_once('breeze/breeze.php'); #Enter API KEY $breeze = new Breeze('xxxxxxxxxxxxxxxxxxxxxxxxxxx'); cho "Start Tag Update for " . date("Y/m/d h:i:s a") . "\n"; #Set Filters for Selection--can test selection by looking at URL when filtering #Status Field $filter['456'] = '1-2-4'; #Member, regular attenda...
true
a0b54203884538026e5172139a604568561f09e1
PHP
svpernova09/ConsoleAppsForTheWin
/tests/BasicCommandTest.php
UTF-8
725
2.5625
3
[]
no_license
<?php class BasicCommandTest extends TestCase { public function testOutput() { Artisan::call('basic:cmd', []); $resultAsText = Artisan::output(); $this->assertTrue( strpos( $resultAsText, 'Running the Basic Command' ) !== false ...
true
96288357a5a44948ed889dc0c0eb0e1e71df6f01
PHP
alemarzano/new_flexilog
/application/models/Categoria.php
UTF-8
2,020
2.6875
3
[]
no_license
<?php class Categoria extends CI_Model { private $_tabla = 'Categorias'; public $idCategoria = 0; public $nombre = ''; public $estaVisible = TRUE; // CREATE public function crear(): bool{ $nuevaCategoria = array( 'nombre' => $this->nombre ); return $this-...
true
d95d609d8093271ac36dd25cdaebd18d57805995
PHP
skeemer/php-obfuscator
/Classes/EncoderService.php
UTF-8
1,749
3.234375
3
[]
no_license
<?php /** * System functionality to encode strings */ class PhpObfuscator_EncoderService { private $algos; public $encodeString = true; // if normal strings should be unicode encoded public $stripWhitespaces = true; public $b64 = true; // Base64 passover public function __construct() { $this->algos = hash_...
true
be1cd33dcbfedc6264d843a1f53b6bb8cc2ef363
PHP
as199/Dion-mvc-framwork
/.history/Response_20210612124916.php
UTF-8
424
3.046875
3
[]
no_license
<?php namespace atpro\phpmvc; /** * @Author Assane Dione * Class Response * Permet de gerer la re * @package atpro\phpmvc */ class Response { public function setStatusCode(int $code): void { http_response_code($code); } /** * Permet de rediriger vers un url donne * @param stri...
true
701e1f04ab909629494384a4cc2897687e34871e
PHP
PauloFagundesGfi/bedrock-sage-starter
/web/app/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/scope.php
UTF-8
1,136
2.796875
3
[ "GPL-2.0-only", "MIT" ]
permissive
<?php /** * Relationship scope model. * * Handles the parsing of scope conditions for a particular relationship definition and evaluating them. * * Stub only, until a proper implementation is decided. * * Notes for the future implementation: * - scope_data should be an array of conditions * - we might suppo...
true
63fb55a1bc14ca6b9b4b5d78e2b1ce7553880551
PHP
gdometrics/Simple-Laravel-LMS
/app/Http/Controllers/UserController.php
UTF-8
5,986
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\User; use App\Role; use App\ImageUploader; use Storage; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public fun...
true
ea084bdcd9540aecd18b0e8f7df972fc79a52680
PHP
tony71/scuola
/include/select_anno.php
UTF-8
807
2.59375
3
[]
no_license
<?php function select_anno_scolastico($db, $as='') { $result = ''; try { if (isset($as) && !empty($as)) { $anno = $as; } else { $sql = 'select * from calcola_anno_scolastico()'; $stm = $db->query($sql); $r = $stm->fetch(PDO::FETCH_BOTH); $anno = $r['calcola_anno_scolastico']; } $sql = 'selec...
true
32430677f66235603fe78da65810cb0db9a92a4f
PHP
shaileshjadav/laravel-5-api-boilerplate
/app/Http/Controllers/Users/UserController.php
UTF-8
4,502
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers\Users; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\Users\Repositories\UserRepository; use App\Models\Users\User; use App\Models\Users\Repositories\UserRepositoryInterface; use Illuminate\Hashing\BcryptHasher; class UserController extends Contr...
true
84a871581cb098409ccab83a2033c29e6e3a402f
PHP
kyolee310/open-qa
/open_qa-display_helper.php
UTF-8
3,080
2.921875
3
[]
no_license
<?php ############################# OPEN_QA DISPLAY HELPER FUNCTIONS ################################################## ### THIS IS A STRIPPED-OFF VERSION OF DISPLAY HELPER FUNCTIONS USED BY THE INTERNAL QA SYSTEM AT EUCALYPTUS ### INSTEAD OF USING DATABASE, THE FUNCTIONS BELOW WILL ONLY ACCESS CACHE FILES ### THUS,...
true
51dd21d4336a1fc1391af53fa5ac47ac6d008e42
PHP
AdHoc4PHP/AdHoc
/trunk/sources/libs/DRFOO/Interfaces/IOutput.php
UTF-8
2,045
3
3
[]
no_license
<?php namespace DRFOO\Interfaces; /** * IOutput Interface for DR.FOO-standard Output classes * * An Output must handle only one Format per Resolver and results in only * one MIME-type. */ interface IOutput { /** * Constructor * * Creates the Output object, binds the default output stream f...
true
bc65f1caa20eb97a61c9e3c662eae07ce10031b4
PHP
napoleon101392/acme
/@modules/Transportation/Contracts/LocatorInterface.php
UTF-8
612
2.703125
3
[]
no_license
<?php namespace Modules\Transportation\Contracts; interface LocatorInterface { /** * Undocumented function * * @param [type] $latitude * * @return void */ public function setLatitude($latitude); /** * Undocumented function * * @param [type] $longitude * ...
true
73610bb80c23def191c5d056d8b8598403cf8d48
PHP
matt61/packagerator
/src/Packagerator/Model/Entity/Package.php
UTF-8
1,395
2.734375
3
[]
no_license
<?php namespace Packagerator\Model\Entity; use Packagerator\Model\Entity\Base\Package as BasePackage; /** * Skeleton subclass for representing a row from the 'package' table. * * * * You should add additional methods to this class to meet the * application requirements. This class will only be generated as *...
true
868396083c252539dd2505a9e9ab1a8f08babc37
PHP
pzkpde/schematic
/src/Support/Field/AbstractField.php
UTF-8
3,486
2.78125
3
[]
no_license
<?php namespace Schematic\Support\Field; use Illuminate\Database\Eloquent\Model; abstract class AbstractField { protected $schema = null; protected $entity = null; protected $field = null; protected $title = null; protected $hidden = []; protected $flags = []; protected $rules = []; public function hidden(....
true
b9c2709c3c60d6b5368651bfd4a4bd1d91888a24
PHP
cubiss99/OPP-PHP
/tutorial_OPP/logic.php
UTF-8
580
3.21875
3
[]
no_license
<?php class Logic { private $client; function __construct($client) { $this->client = $client; } function getCalendars() { return getCalendarList($this->client)['items']; } function getEventsForCalendar($calendarId) { return getEventList($this->client, $calendarId)['items']; } function getEventById($...
true
a2ce84b51d823c27b6c2e43110ffd280faa9a454
PHP
gsu-dle/d2l-api-tools
/src/D2L.php
UTF-8
8,498
2.859375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace GAState\Tools\D2L; use GAState\Tools\D2L\{ Exception\D2LException, Model\API\PagedResultSetModel, Model\API\ObjectListPageModel }; use InvalidArgumentException; use ReflectionProperty; /** * @package GAState\Tools\D2L * @access public */ class D2L { /** ...
true
eadfff13e4b919c3afe2e0ef2d722fb99a2421ef
PHP
YapayPagamentos/integracao_gateway
/php/yapay-gw-lib/lib/communication/rest_v3.php
UTF-8
3,710
2.65625
3
[]
no_license
<?php class RestV3 { private $baseUrl; function __construct($baseUrl) { $this->baseUrl = $baseUrl; } public function transactionAuthorize($credential, $transaction){ $curl = $this->curlInit("POST", $this->baseUrl."/api/v3/transacao", $transaction, $credential); $response = curl_exec($curl); ...
true
69a3887ea33c36026a14aa0a87c875da53b2112b
PHP
yestian/elian
/application/member/model/MemberCate.php
UTF-8
1,239
2.78125
3
[ "Apache-2.0" ]
permissive
<?php namespace app\member\model; use think\Model; class MemberCate extends Model{ //无限级分类 public function catetree(){ //取数据 $cateres=$this->order('sort desc')->select(); //排序 return $this->sort($cateres); } //栏目排序方法 //pid上级栏目id //level栏目层级 public function sort($data,$pid=0,$level=0){ static $arr=a...
true
d5b1bffc7f14b28a294c823baf9dc4669425a167
PHP
earth3300/ec01
/p/plugins/wb-theme-menu/plugin.php
UTF-8
5,188
2.671875
3
[]
no_license
<?php /** Plugin Name: WP Bundle Theme Menu Plugin URI: http://wp.cbos.ca/plugins/wp-bundle-theme-menu/ Description: Reworked menus to remove extra classes and provide cleaner HTML. Caches the menu to disk when the menu is updated. Saves to /theme/html/menu/menu.html. This can then be used by the theme as a cached page...
true
47b2a9c41407216b10a2059785be9996f2f9a6cb
PHP
Ocin007/organize-your-links-web
/src/library/OrganizeYourLinks/DataSource/Filesystem/Writer.php
UTF-8
694
3.015625
3
[]
no_license
<?php namespace OrganizeYourLinks\DataSource\Filesystem; use Exception; class Writer implements FileWriterInterface { public function writeFile(string $filePath, string $content): bool { try { if (file_exists($filePath) && !is_writable($filePath)) { return false; ...
true
01d977a14da31101b94744b898c99513dd571f21
PHP
Roave/BetterReflection
/test/unit/Fixture/StringCastMethods.php
UTF-8
1,078
2.71875
3
[ "MIT" ]
permissive
<?php namespace Roave\BetterReflectionTest\Fixture; interface StringCastMethodsInterface { public function prototypeMethod(); } abstract class StringCastMethodsParent { public function overwrittenMethod() { } public function inheritedMethod() { } } abstract class StringCastMethods exten...
true