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
3f641e5d740d4268c63d70af1601cd5ece164c82
PHP
jferrero/insided
/controllers/ThreadController.php
UTF-8
1,675
2.84375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\controllers; use Yii; use yii\filters\AccessControl; use yii\web\Controller; use yii\filters\VerbFilter; use app\models\LoginForm; use app\models\ContactForm; /** * Controller for the Thread Controller */ class ThreadController extends \yii\web\Controller { /** * Default action of the contr...
true
59b2aedef4c3e46778aa964449a39d66a48cb51c
PHP
bagbyte/BagLoginBundle
/Security/BagOAuth2.php
UTF-8
6,206
2.546875
3
[ "MIT" ]
permissive
<?php namespace Bag\LoginBundle\Security; use OAuth2\OAuth2; use OAuth2\IOAuth2GrantUser; use OAuth2\OAuth2ServerException; use OAuth2\Model\IOAuth2Client; use OAuth2\Model\IOAuth2AuthCode; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\DependencyInje...
true
454a89f3718452651d3255fa625542cfed80304b
PHP
amelacokaj/personal_finance_php
/app/Http/Controllers/ReportsController.php
UTF-8
1,618
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\BaseController; class ReportsController extends BaseController { public function index() { return view('/reports'); } public function daily() { $groupAmountsByDate = []; $date...
true
e012a1c80707b0db4a07ebdcce19adbc3e943c61
PHP
rlko/lem_in
/visu.php
UTF-8
1,447
3.21875
3
[]
no_license
#!/usr/bin/php <?php if ($argc <> 1) { echo "Fail. It needs to be read into standard input"; exit(0); } function is_command($str) { if ($str === "##start") return (true); else if ($str === "##end") return (true); return (false); } $stdin = fopen('php://stdin', 'r'); while ($line = fgets($stdin)) { $file[] =...
true
31b5aa9401b53e8cad4c3d0f84efdec1d3aa50a2
PHP
cash2one/cj
/trunk/apps/voa/src/include/server/sql.php
UTF-8
6,187
3.046875
3
[]
no_license
<?php /** * voa_server_sql * 数据库SQL语句执行接口 * Create By Deepseath * $Author$ * $Id$ */ class voa_server_sql extends dao_mysql { /** 本类实例 */ private static $s_instance = NULL; /** 获取实例 */ public static function instance() { if (is_null(self::$s_instance)) { self::$s_instance = new self(); } return se...
true
b42504101569aba6b9d697d728a6d927ea8d168b
PHP
chillia319/web-project
/COMP112_web/lab25/processForm.php
UTF-8
242
2.984375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>simple form</title> </head> <body> <?php echo("<p>Hello $_GET[name]. </p>"); echo("<p>So you think $_GET[fave] is best. Interesting.</p>") ?> </body> </html>
true
1a3e9de5012e72f55f7162ee564777a34e83df60
PHP
isamukhtarov/symfony_project
/src/Ria/Bundle/StatisticBundle/Component/Filters.php
UTF-8
3,144
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace Ria\Bundle\StatisticBundle\Component; use DateTime; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Contracts\Translation\TranslatorInterface; class Filters { protected string $filter; protected ?string $fro...
true
96ee14496d0f0f09e940c07a007c4cd29cb8b352
PHP
iwink/gitlab-webhook-bundle
/src/Scheduler.php
UTF-8
1,323
2.78125
3
[ "MIT" ]
permissive
<?php namespace Iwink\GitLabWebhookBundle; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\HttpKernel\Event\TerminateEvent; use Symfony\Component\HttpKernel\KernelEvents; /** * A scheduler to execute tasks on {@see TerminateEvent}. * * Because GitLab expects a quick response ...
true
bac136cf249bbc20b492e8efff89cad3a0a71268
PHP
conectra/phpexpressive
/tests/Integration/AbstractIntegrationTest.php
UTF-8
780
2.625
3
[ "MIT" ]
permissive
<?php namespace Solis\Expressive\Test\Integration; use PHPUnit\Framework\TestCase; use Solis\Expressive\Test\Fixtures\IntegrationTest\DatabaseBuilder as DB; use Solis\Expressive\Test\Fixtures\IntegrationTest\Pessoa; abstract class AbstractIntegrationTest extends TestCase { protected static $ready = false; ...
true
67d234e6083398cb87df1c72ed691d938d487104
PHP
Crowley2012/GVSU-Projects
/CIS371/final/listSpecial.php
UTF-8
684
3.171875
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $xmlDoc = new DomDocument(); $xmlDoc->load("input1.html"); $root = $xmlDoc->documentElement; $span = $xmlDoc->getElementsByTagName('span'); ?> <html> <head> </head> <body> <h1>Special Words</h1> <h2>All Caps</...
true
5137557b2159d9193460b00ef64f1c41818768b5
PHP
biletnam/resalouvre
/tests/Surikat/BookingBundle/Services/ConfigManagerTest.php
UTF-8
3,951
2.59375
3
[]
no_license
<?php // tests/Surikat/BookingBundle/Services/ConfigManagerTest.php namespace tests\Surikat\BookingBundle\Services; use Surikat\BookingBundle\Services\ConfigManager; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; class ConfigManagerTest extends KernelTestCase { protected $em; /** * {@inheritDoc} ...
true
c66bc0e14f36462a851b083ffde7d9cd85329614
PHP
PayU/mysql-dump-anonymizer
/lib/ValueAnonymizers/Email.php
UTF-8
1,647
2.59375
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace PayU\MysqlDumpAnonymizer\ValueAnonymizers; use PayU\MysqlDumpAnonymizer\Entity\AnonymizedValue; use PayU\MysqlDumpAnonymizer\Entity\Value; use PayU\MysqlDumpAnonymizer\AnonymizationProvider\ValueAnonymizerInterface; use PayU\MysqlDumpAnonymizer\ValueAnonymizers\HashService\H...
true
09316eed67b61ca192175fbc96160927fbbf64c0
PHP
rthakur1312/crud
/registerSuccess.php
UTF-8
1,039
2.65625
3
[]
no_license
<html> <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <?php require"mysqli_connect.php"; if($_SERVER['REQUEST_METHOD'] == 'POST') { $username = $_POST['username']; $password = $_POST['pas...
true
a1d2758664fbef7a0078ceef760608dbaa6e3905
PHP
cyanidebluee/mini_project
/registration.php
UTF-8
6,239
2.671875
3
[]
no_license
<html lang="en"> <head> <meta charset="UTF-8"> <title>Visa Apply</title> <link rel="stylesheet" type="text/css" href="paper.css"/> </head> <body> <?php require_once('Connect.php'); $conn = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); if (isset($_POST['submit'])) { $passport_office = m...
true
e5fdb2ef37d6a7d6ee175ac4cc477f45c2baa467
PHP
Catfeeds/yii
/common/models/base/Admin.php
UTF-8
2,534
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\base; use Yii; /** * This is the model class for table "Admin". * * @property string $id * @property string $username * @property string $password * @property string $auth_key * @property string $mobile * @property integer $department_id * @property integer $role_id * @propert...
true
2f1ebc112210d58ad41f5696157a17de47d6210b
PHP
duanyingkui/stores
/database/migrations/2018_04_04_133542_create_variety_table.php
UTF-8
824
2.59375
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateVarietyTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('variety',functi...
true
888a5650f235c6b0aeaf17644b01d7813a4a0160
PHP
simoncourtenage/awtcw1_201617
/application/models/Postmodel.php
UTF-8
4,325
3.125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Postmodel extends CI_Model { private $posts_table = 'awt_posts'; private $comments_table = 'awt_comments'; function __construct() { parent::__construct(); $this->load->database(); } /** * get posts for a particular page * @para...
true
fdb81bbb7abe432e3e9c20500ba3e738fa7f127f
PHP
20steps/bricks-platform-composer-extras
/src/Handler/ReloadHandler.php
UTF-8
2,016
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace BricksPlatformComposerExtras\Handler; use Composer\IO\IOInterface; use Composer\Script\Event; use BricksPlatformComposerExtras\Processor\ProcessorInterface; /** * Class ReloadHandler * * @package BricksPlatformComposerExtras */ class ReloadHandler extends AbstractHandler { const SERVICE_KEY = ...
true
22a92046a6a63b5739b7b32adc1601d513e614b7
PHP
sigitsuhardiono/travelmarket
/frontend/controllers/SeederController.php
UTF-8
4,764
2.859375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\controllers; use Yii; use Faker; use yii\web\Controller; /** * Seeder controller */ class SeederController extends Controller { /** * Banyak data yang ingin di-generate. * Note: batchInsert() dapat men-generate maksimal ~9000 data sekaligus. * * @var integer */ private $countMob...
true
76aef6120fe78ad870b8e27bb1f07b01d43804a9
PHP
almong/netology
/home_work/php/num_12/model/change.php
UTF-8
314
2.546875
3
[]
no_license
<?php function change($post, $db) { if ($post['type'] == 'varchar'){ $post['type'] = 'varchar(50)'; } $sql = "ALTER TABLE {$post['table']} CHANGE {$post['name']} {$post['newName']} {$post['type']}"; $preSql = $db->prepare($sql); $preSql->execute(); }
true
d30fcfb765244e484d1adc94a6f08b68febbe97c
PHP
ngodaclam/ShopLazy
/modules/Core/Http/Controllers/API/v1/Requests/ApiRequest.php
UTF-8
1,338
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: NgocNH * Date: 9/1/15 * Time: 10:31 AM */ namespace Modules\Core\Http\Controllers\API\v1\Requests; use Dingo\Api\Exception\ResourceException; use Illuminate\Contracts\Validation\Validator; use Illuminate\Foundation\Http\FormRequest; use Symfony\Component\HttpKernel\Except...
true
e2e15311e03861385a1b1c6bc048a50b97bb0d6b
PHP
pear/HTML_Template_IT
/examples/sample_it.php
UTF-8
664
2.859375
3
[ "BSD-3-Clause" ]
permissive
<?php require_once 'HTML/Template/IT.php'; $data = array ( '0' => array('Stig', 'Bakken'), '1' => array('Martin', 'Jansen'), '2' => array('Alexander', 'Merz') ); $tpl = new HTML_Template_IT('./templates'); $tpl->loadTemplatefile('main.tpl.htm', true, true); foreach ($data as $name) { foreach ($name a...
true
a560584b8f1a80e64ab344d5f9d97cf769a76ec1
PHP
ama-team/php-tree-access
/src/Locator.php
UTF-8
1,603
2.671875
3
[ "MIT" ]
permissive
<?php namespace AmaTeam\TreeAccess; use AmaTeam\TreeAccess\API\Exception\IllegalTargetException; use AmaTeam\TreeAccess\API\Exception\MissingNodeException; use AmaTeam\TreeAccess\API\NodeInterface; use AmaTeam\TreeAccess\Locator\Context; use AmaTeam\TreeAccess\Type\Registry; class Locator { /** * @var Regis...
true
07eff583b5caea083ae80d9d21454c8a7a55ef3f
PHP
ProCodeTcc/brecho
/controller/controllerClienteFisico.php
UTF-8
7,503
2.71875
3
[]
no_license
<?php /* Projeto: Brechó Autor: Felipe Monteiro Data: 10/10/2018 Objetivo: controlar as ações da página de cadastro de usuario */ /* Projeto: Brechó Autor: Lucas Eduardo Data: 23/10/2018 Objetivo: validação de usuário, email e cpf ...
true
9038b3164584f0b943aaf54a9fc89a2ca120eb45
PHP
sutridno/tugas-CRUD
/crud/tambah.php
UTF-8
1,259
2.734375
3
[]
no_license
<?php include_once 'koneksi.php'; if (isset($_POST['tambah'])) { $title =$mysqli->real_escape_string($_POST['title']); $content =$mysqli->real_escape_string($_POST['content']); $tanggal =$mysqli->real_escape_string($_POST['tanggal']); $query =$mysqli->query("insert into artikel(id,title,content,tanggal) v...
true
4bd45f08c357066323ed43955d3832907f04b969
PHP
srinath97/nanosensors
/php/patent.php
UTF-8
1,569
2.625
3
[]
no_license
<html> <?php session_start(); require_once('credentials.php'); require_once('display_session.php'); ?> <body> <h3>New patent form:</h3> Enter details of the new patent:<br/><br/> <?php $patent=$title=$id=""; if(isset($_POST['submit'])) { $patent=$_POST['pat']; $title=$_POST['title']; $id=$_POST['id']; ...
true
c2475d0f4a7ca07bcb1cc63ae23343ad966f4a55
PHP
vikiandreawan/APP.PEM.WEB
/Pertemuan 4/operator_relasi.php
UTF-8
209
3.171875
3
[]
no_license
<?php $a=10; $b=5; // Menggunakan Operator Relasi Lebih Besar $c=$a>$b; echo "$a>$b: $c <br>"; echo "<hr>"; // Menggunakan Operator Relasi Kurang Dari $d=$a<$b; echo "$a<$b: $d"; echo "<hr>"; ?>
true
375d67bc0e2c02cd7887a3df957e34cd98263beb
PHP
hungcuongqn86/qc247Api
/modules/Cart/Services/Impl/CartService.php
UTF-8
2,931
2.53125
3
[ "MIT" ]
permissive
<?php namespace Modules\Cart\Services\Impl; use Modules\Common\Entities\Cart; use Modules\Common\Services\Impl\CommonService; use Modules\Cart\Services\Intf\ICartService; use Illuminate\Support\Facades\DB; class CartService extends CommonService implements ICartService { protected function getDefaultModel() ...
true
e67991b2e1d459fbf0a1d6150675ca2f4a28ded7
PHP
Fonsart/nh3-mag-supplang-plugin
/bootstrap.php
UTF-8
3,828
2.53125
3
[]
no_license
<?php /** * This file is where you should put the code that bootstraps your plugin */ /** * --- DEFINE PLUGIN CONSTANTS --- */ // Plugin name define( 'SUPPLANG_NAME', 'supplang' ); // ID for the custom taxonomy define( 'SUPPLANG_LANG_TAX_ID', 'supplang_lang' ); // Prefix that should be used by all plugin classes d...
true
f7db121b220e55accf8039bb7d5f82da154615a1
PHP
rcousens/workflow
/src/Ross/Workflow/Process/Event/Start/StartEvent.php
UTF-8
1,418
2.59375
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: ross * Date: 6/04/15 * Time: 7:16 PM */ namespace Ross\Workflow\Process\Event\Start; use Ross\Workflow\Exception\InvalidLinkException; use Ross\Workflow\Process\Connector\ConnectorInterface; use Ross\Workflow\Process\Event\AbstractEvent; use Ross\Workflow\Process\Ev...
true
520358a6d30eb0d6635ba85db1f9b078aa2f338f
PHP
CyberSEAGame/quals-2015
/web/login/build/login.php
UTF-8
2,544
2.8125
3
[]
no_license
<?php function my_filter_input($mode, $name) { $a = filter_input($mode, $name); if ($a) return $a; else return false; } function h($str) { return htmlspecialchars($str, ENT_QUOTES, "utf-8"); } ini_set("display_errors", 1); ini_set('session.use_only_cookies', 1); ini_set('session.gc_maxlifetime', 60 * ...
true
3fbe9b1d092f29a5f7786915aeb857c8c3c01382
PHP
kdays/akari-framework
/system/util/ArrayUtil.php
UTF-8
4,634
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: admin * Date: 2019/2/17 * Time: 22:31 */ namespace Akari\system\util; class ArrayUtil { /** * 是否是关联数组 * * @param array $arr * @return bool */ public static function isAssoc(array $arr) { if(array_keys($arr) !== rang...
true
99ed48e4404f2c57107a69f801108364145055e8
PHP
Yeison-Quinto/petrolera-modulo
/Entidades/PersonaDto.php
UTF-8
1,859
3.125
3
[]
no_license
<?php Class PersonaDto{ Private $idpersona; Private $cedula_persona; Private $nombre_persona; Private $usuario_persona; Private $cargo_persona; Private $correo_persona; Private $fecha_ingreso; function __construct($idpersona, $cedula_persona, $nombre_persona, $usuario_persona, $cargo_persona, $c...
true
7a62d376cb8e3ff9af2a8cda8fea2da9825f94e0
PHP
wisdomwei201804/wx-jssdk-php
/api.php
UTF-8
1,489
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: hbd * Date: 2017/2/7 * Time: 上午8:52 */ header("Content-type: application/json"); $result = array( 'status' => 200, 'params' => [], 'data' => [], 'message' => '', ); $text = $_REQUEST['data']; $result['params'] = ['text' => $text]; if (empty($text)){ ...
true
5a0a287cb96cabb84de127c9897551df29002e69
PHP
Sprattel/MiniMVC
/core/CoreDatabase.php
UTF-8
574
2.828125
3
[]
no_license
<?php class CoreDatabase { protected $db = null; function init() { $cfg = Config::getDatabaseConfig(); $thisCfg = $cfg[Config::getEnvironment()]; $driver = Config::getDatabaseDriver(); $host = $thisCfg['hostname']; $database = $thisCfg['database']; $username = $thisCfg['username']; ...
true
4c184d1e94e087077affb143d5d72682e12af892
PHP
GabrielDA7/cms-esgi
/delegates/UserDelegate.class.php
UTF-8
3,552
2.53125
3
[]
no_license
<?php class UserDelegate extends ObjectDelegate { public function __construct(&$data) { ObjectDelegate::__construct($data, USER_CLASS_NAME); } public function getById(&$data, $params, $othersTablesColumns = []) { $user = $data['user']; $id = (isset($params['id'])) ? $params['id'] : $_SESSION['userI...
true
add6a1349b155098d298cfec0afafe7c66acd9f5
PHP
w4ugit/neo4j
/index.php
UTF-8
1,301
2.640625
3
[]
no_license
<pre> <?php ini_set("display_errors", "1"); error_reporting(E_ALL); require('vendor/autoload.php'); use Everyman\Neo4j\Client, Everyman\Neo4j\Transport, Everyman\Neo4j\Node, Everyman\Neo4j\Relationship; $client = new Everyman\Neo4j\Client('localhost', 7474);//подключение к базе /** построение нод */ /**...
true
0b4bf5a5cf5f94f8512e432c2a72b6eb93173003
PHP
microsoftgraph/msgraph-beta-sdk-php
/src/Generated/Models/Security/ThreatSubmission.php
UTF-8
13,744
2.5625
3
[ "MIT" ]
permissive
<?php namespace Microsoft\Graph\Beta\Generated\Models\Security; use DateTime; use Microsoft\Graph\Beta\Generated\Models\Entity; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; class ...
true
7af9fbfdd5cf2cfd50764d3a3471cd6b11133006
PHP
slamdunk-shop/slamdunk.shop
/wp-content/themes/wowmall/admin/redux-extensions/extensions/license/extension_license.php
UTF-8
2,883
2.625
3
[]
no_license
<?php // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } // Don't duplicate me! if ( ! class_exists( 'ReduxFramework_extension_license' ) ) { /** * Main ReduxFramework_extension_license extension class * * @since 3.1.6 */ class ReduxFramework_extension_license extends ReduxFramewor...
true
9357852aae9130d2da1069d61dd2bc6f5e7b683a
PHP
tiube00001/designer
/StructModel/Adapter/Suit.php
UTF-8
266
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: yhl * Date: 2018/10/13 * Time: 10:10 */ namespace Adapter; class Suit implements SuitInterface { public function dress() { // TODO: Implement dress() method. echo 'dresses suit'.PHP_EOL; } }
true
63c9ea4c66cd2c72d05a532cc3e6652260e6c62c
PHP
binhqd/english-yii
/api/protected/modules/users/models/APIZoneUser.php
UTF-8
4,819
2.6875
3
[]
no_license
<?php /** * APIZoneUser - This is the model class for extends ZoneUser * @author ngocnm <ngocnm@greenglobal.vn> * @version 1.0 * @created 2014-08-06 10:00 AM */ class APIZoneUser extends ZoneUser { /** * Returns the static model of the specified AR class. * @param $className Class name of model * @return ...
true
f703b72efe84ade93fb674126bf8ec482ddcf278
PHP
JuannAnntonio/phi-investment-capital
/app/Library/DAO/Permisos_inter.php
UTF-8
2,277
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Library\DAO; use Config; use App; use Log; use DB; use Illuminate\Database\Eloquent\Model; /* update and insert doesnt need get->() */ class Permisos_inter extends Model { public $table = 'permisos_inter'; public $timestamps = true; //protected $dateFormat = 'U'; const CREATED_...
true
6c795eab5967853f34f5740e8c2dea6750d5e7f2
PHP
gustavoneto/curso-php-7
/secao-5/arrays/25-array02.php
UTF-8
302
2.625
3
[]
no_license
<?php $carros[0][0] = "GM"; $carros[0][1] = "Cobold"; $carros[0][2] = "Onix"; $carros[0][3] = "Camaro"; $carros[1][0] = "Ford"; $carros[1][1] = "Fiesta"; $carros[1][2] = "Fusion"; $carros[1][3] = "Eco Sport"; echo $carros[0][3]; // devolve a última posição da coluna 1: echo end($carros[1]); ?>
true
9cc8472e00ad40b5b253cb5aa543940bb8b28108
PHP
ninydev/eugeny_php
/06_npfinaly/commands/npGetAreas.php
UTF-8
2,724
2.765625
3
[]
no_license
<?php require_once ("lib/GetResponse.php"); require_once ("lib/mySql.php"); echo " <p> Получаю области с сервера </p>"; $areas = GetResponse("Address", "getAreas", [ "" => "" ]); echo "<p> Я получил ответ от новой почты - и вношу их в базу </p>"; // var_dump($areas); // очистить таблицу $sql = "TRUNCATE `areas`";...
true
71d38dab62a422b093594fddb9b7992fba63a5d7
PHP
WendyGraphex/jobs-application
/modules/utils/common/lib/Validators/mfValidatorDurationTime.class.php
UTF-8
2,319
3.046875
3
[]
no_license
<?php /* * /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/ * (?P<name>\w+): (?P<digit>\d+)/ * /^(?P<hour>[0-1][0-9]|2[0-3]):(?P<minute>[0-5][0-9]):(?P<second>[0-5][0-9])$/ */ class mfValidatorDurationTime extends mfValidatorTime { protected function configure($options = array(), $messages = array()) { ...
true
462ebe3890d524b83627a61fad8a85d6d777e4a9
PHP
Takachan51/takachan-Repository
/sotsuken/login2.php
UTF-8
1,289
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>ログイン</title> </head> <body> <h1>ログイン</h1> <form method="post" action="main1.php"> ユーザー名:<br> <input type="text" name="user"> <br> パスワード:<br> <input type="text" name="pass"> <input type="submit" value="ログイン"> </form> </body> </html> <?php // 接続情報 ...
true
e75f1b1609b471d66cca53646083f8fee58b5fc8
PHP
SiyahKare/SiyahKare
/skcrm/application/app/Http/Middleware/General/TeamCheck.php
UTF-8
936
2.6875
3
[]
permissive
<?php /** -------------------------------------------------------------------------------- * This middleware class handles [team user validation] precheck processes * * @package Grow CRM * @author NextLoop *----------------------------------------------------------------------------------*/ namespace App\...
true
c85638f2480bf0c4dec7fec2cd3e14cf98a1d74a
PHP
MarioLegenda/langland
/lib/PublicApi/LearningUser/Business/Implementation/LearningUserImplementation.php
UTF-8
11,104
2.515625
3
[]
no_license
<?php namespace PublicApi\LearningUser\Business\Implementation; use AdminBundle\Entity\Language; use ApiSDK\ApiSDK; use ArmorBundle\Entity\User; use ArmorBundle\Repository\UserRepository; use LearningSystem\Infrastructure\Questions; use PublicApi\Language\Repository\LanguageRepository; use PublicApi\LearningUser\Infr...
true
5588d168c1122946435bfe4fd02d0316ab99db16
PHP
johnnyq/crm
/generate_system_number.php
UTF-8
859
2.5625
3
[]
no_license
<?php include("config.php"); include("includes/check_login.php"); $sql = mysql_query("SELECT * FROM users WHERE user_id=$session_user_id "); while ($row = mysql_fetch_array($sql)){ $new_system_number = $session_user_first_name[0].$session_user_last_name[0]; } $sql = mysql_query("SELECT MAX( CAST( SUBS...
true
ff42850c611c03819234ff63f0de18a3f1926c2d
PHP
RedUhl/CiteRite
/src/controllers/quiz/functions/findUserQuestionLocation.php
UTF-8
3,035
2.578125
3
[ "MIT" ]
permissive
<?php // require_once('controllers/quiz/functions/getQuiz.php'); // require_once('controllers/question/functions/getQuestions.php'); // require_once('controllers/question/functions/countQuestions.php'); function getNextQuestionId($db, $quizId, $nextQuestionRow){ $query ="SELECT quest_id FROM (S...
true
bce998d7e90ac7954e470f481d983835a7040475
PHP
westaddy/myleads_api
/app/Http/Controllers/Auth/LoginController.php
UTF-8
2,998
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\ResponseBody; use App\Services\UserImpl; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Tymon\JWTAuth\JWTAuth; use Tymon\JWTAuth\Exceptions\JWTException; use URL; use App...
true
1101d6c357564c31cf2265147cf1d00274653857
PHP
durdyshev/php_blog
/includes/getquery.php
UTF-8
1,252
2.6875
3
[]
no_license
<?php require 'db.php'; //echo "Haydo"; $numb= $_GET['id']; $text="SELECT * FROM articles WHERE categorie_id=$numb ORDER BY `pubdate` DESC"; /*echo $text; echo '<br>'; echo $numb+2; echo $numb;*/ $counter=0; $article_query=mysqli_query($connection,$text); if(mysqli_num_rows($article_query)>0){ while($row=mysql...
true
05e88bdb2a1819be26d55108ad3b1d59c1693ef6
PHP
MaiVanBinh/news
/src/Domain/User/UserServices.php
UTF-8
2,803
2.84375
3
[]
no_license
<?php namespace App\Domain\User; use App\Application\Actions\Posts\UpdatePost; use App\Domain\User\UserRepository; use App\Models\User; use Exception; use PDO; use Slim\Exception\HttpNotFoundException; /** * Service. */ class UserServices { private $connection; public function __construct(PDO $connection)...
true
ef627d8e6e44cebe24b477247caba04a2443d50c
PHP
renangtm/rtc
/php/entidades/Vencimento.php
UTF-8
1,837
2.6875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of CategoriaDocumento * * @author Renan */ class Vencimento { public $id; public $valor; ...
true
08d930394dbd65e8b0eb4ff7b9696255afdd5d88
PHP
Letitbe133/Akaoptics_final
/app/Controller/UploadSingleton/UploadController.php
UTF-8
4,150
3.046875
3
[]
no_license
<?php namespace Controller\UploadSingleton; use \W\Controller\Controller; class UploadController extends Controller { protected $dir; protected $errors; protected $uploadPaths; protected $types; protected $inputNames; private $files; private $fileStatus; private $uploadStatus; ...
true
2aae7cbe8f70a5b3c3c76c71f0c751bcbbffaa56
PHP
lehuuvinh92/php-examples
/date/date_function.php
UTF-8
815
2.640625
3
[]
no_license
<?php $today1 = date("F j, Y, g:i a");//October 5, 2021, 6:29 am $today2 = date("m.d.y");//10.05.21 $today3 = date("j, n, Y");//5, 10, 2021 $today4 = date("Ymd");//20211005 $today5 = date('h-i-s, j-m-y, it is w Day');//06-29-51, 5-10-21, 2931 2951 2 Tueam21 $today6 = date('\i\t \i\s \t\h\e jS \d\a\y.');//it is th...
true
f9da0a42de58e7bda409b83135401945d4740bd5
PHP
puajklejos/wallapop_falso
/sys/model.php
UTF-8
1,164
2.734375
3
[]
no_license
<?php class Model{ protected $db; protected $stmt; function __construct(){ $this->db=DB::singleton(); } function query($query) { $this->stmt = $this->db->prepare($query); } function bind($param, $value, $type = null) { switch ($value) { case is_null($value): $type=PDO::PARAM_NU...
true
91f2d4091242c4a38be917d8b14123e34e02cd04
PHP
lfmvicente/wjcrypto
/App/src/Holder/Model/ResourceModel/HolderResource.php
UTF-8
6,790
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace Wjcrypto\Holder\Model\ResourceModel; use Wjcrypto\Account\Api\AccountSessionControllerValidation; use Wjcrypto\Account\Model\Account; use Wjcrypto\Holder\Exception\HolderNotFoundException; use Wjcrypto\Holder\Exception\InvalidLoginException; use Wjcrypto\S...
true
f51fbe733d03c1c2f5424c1e6c1475f9132ace03
PHP
clodia92/progetto
/progetto/discolandia/model/Disco.php
UTF-8
2,301
3.03125
3
[]
no_license
<?php //Classe che rappresenta le informazioni di un disco class Disco { private $codDisco; private $titolo; private $artista; private $tracce; private $genere; private $descrizione; private $etichetta; private $immagine; p...
true
43341d69d383677c945c89ea44a458d5001ed23d
PHP
UdaraWeerasinghe/ImagePhotoFrame
/app/view/testInvoice.php
UTF-8
3,241
2.859375
3
[]
no_license
<?php // Include autoloader require_once '../../dompdf/autoload.inc.php'; include '../model/report-model.php'; $reportObj=new Report(); $invoiceResult=$reportObj->getInvoice(); $iRow=$invoiceResult->fetch_assoc(); $productResult=$reportObj->getProductsByOrder($iRow["or...
true
3afb70934da93640f21a60a4b9aa0eeb22892ae2
PHP
chenhuazhan/nodejs
/express-app/public/article/PHP/filesystem/example/upload.php
UTF-8
970
2.515625
3
[]
no_license
<?php header("content-type:text/html;charset:utf-8;"); $sfile=$_FILES['img']['tmp_name'];#上传的文件临时存放路径 $uploaddir='uploads'; $filesize=$_FILES['img']['size']; //创建上传日期目录 $year=date('Y'); $month=date('m'); $day=date('d'); $datedir=$uploaddir.'/'.$year.'-'.$month.'-'.$day; if(!file_exists($datedir)){ mkdir($datedir); ...
true
dbc3cd8c5d4760e5f4fdb244c16bd7d15b848f97
PHP
KaRLsM/SIFO
/instances/utilities/classes/Krumo.php
UTF-8
793
2.75
3
[ "Apache-2.0" ]
permissive
<?php /** * Alias of krumo::dump(). Formatted data dump. No output in production. * * @param mixed $data,... */ function d( $var ) { // Enable Krumo only when debug is present. if ( Domains::getInstance()->getDevMode() ) { require_once( ROOT_PATH . '/libs/krumo_0.2.1a_PHP5-Only/class.krumo.php' ); krumo( $va...
true
5a593bf39efbed4b65bd31ac8b7907e9bf9875a6
PHP
fi1a/crawler
/src/Restrictions/NotAllowRestriction.php
UTF-8
324
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Fi1a\Crawler\Restrictions; use Fi1a\Http\UriInterface; /** * Запрет на обход */ class NotAllowRestriction implements RestrictionInterface { /** * @inheritDoc */ public function isAllow(UriInterface $uri): bool { return false; } }
true
38383507c082ab03114d6ff0a2a8c5fed0a8de5c
PHP
crownbirth/t_mvc
/tams_base/models/user/user_model.php
UTF-8
4,414
2.578125
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * TAMS * User Model * * @category Model * @package Users * @subpackage User * @author Akinsola Tunmise <akinsolatunmise@gmail.com> * @copyright Copyright © 2014 TAMS. * @version 1.0.0 * @since File ...
true
9280ad2729280cb50af7b95eb8a2e569535a0960
PHP
roger-jb/edeip
/Object/Trimestre.php
UTF-8
4,839
3.015625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Jean-Baptiste * Date: 16/07/2015 * Time: 11:30 */ class Trimestre extends FormatDate{ protected $idTrimestre; protected $libelleTrimestre; protected $dateDebutTrimestre; protected $dateFinTrimestre; protected $dateFinCommentaire; public function toArray(){ $return...
true
23790ce3d00148f7bb73eca52e0edb842f8d6eca
PHP
netresearch/dhl-sdk-api-unified-tracking
/src/Model/Tracking/Response/DeliveryTimeFrame.php
UTF-8
689
2.796875
3
[ "MIT" ]
permissive
<?php /** * See LICENSE.md for license details. */ declare(strict_types=1); namespace Dhl\Sdk\UnifiedTracking\Model\Tracking\Response; use Dhl\Sdk\UnifiedTracking\Api\Data\DeliveryTimeFrameInterface; class DeliveryTimeFrame implements DeliveryTimeFrameInterface { /** * @var \DateTime */ private...
true
001793bdc9a6f7cedadbe01bcbd259e2938a0c22
PHP
DarkGhostHunter/Laralerts
/src/View/Component/LaralertsComponent.php
UTF-8
1,061
2.875
3
[ "MIT" ]
permissive
<?php namespace DarkGhostHunter\Laralerts\View\Component; use DarkGhostHunter\Laralerts\Bag; use DarkGhostHunter\Laralerts\Alert; use DarkGhostHunter\Laralerts\Contracts\Renderer; use Illuminate\View\Component; class LaralertsComponent extends Component { /** * Laralerts constructor. * * @param \...
true
cf72f6442d3ef746cfd7b3e04915faed06b5aa35
PHP
cristiantorr/php7-mysql-udemy
/seccion11-manejo-cadenas-funciones-matematicas/02cadena-strstr.php
UTF-8
474
3.484375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Manejo de cadenas | strstr()</title> <meta charset="utf-8"> </head> <body> <?php $cadena1 = "En el agua clara, que brota en la fuente, un lindo pescado sale de repente"; $cadena2 = "pescado"; if(strstr($cadena1,$cadena2)){ print "Si se encontró la subcadena '".$caden...
true
31be27aed909243b460b423916cdfb3e941da8a9
PHP
nwkwok/PHP
/oop/SOLIDPROFESSOR/abstract_classes/pet_example/index.php
UTF-8
846
3.640625
4
[]
no_license
<?php include_once 'classes/pet.php'; $dog_methods = get_class_methods('Dog'); $cat_methods = get_class_methods('Cat'); // See all methods from Dog class foreach($dog_methods as $method){ echo $method."<br>"; } echo "<br>"; echo "<br>"; $dog1 = new Dog(); $dog1->setName('Fred'); $dog1->setFur(true); $dog1->setT...
true
c5bf2b4fcb5078e1d82d8ab68b6fe8a814852624
PHP
juanrivlaz/PrenominaBahia
/consultas/Class.ConexionBD.php
UTF-8
2,218
3.0625
3
[]
no_license
<?php //Para hacer una conexion por un puerto especifico //$serverName = "DESKTOP-2POHOQ5\\JUAN, 1542"; /*$serverName = "DESKTOP-2POHOQ5\\JUAN"; $connectionInfo = array("Database" => "bahia", "UID" => "sa", "PWD"=>"Enterprice9"); $conn = sqlsrv_connect($serverName, $connectionInfo);*/ /** * CONEXION A SQL SERVER */ ...
true
ba214c5cb55a842d5c555abe36d6a82b3683940b
PHP
alfonso2254/modernpos
/_inc/model/sms.php
UTF-8
4,245
2.640625
3
[]
no_license
<?php /* | ----------------------------------------------------- | PRODUCT NAME: Modern POS | ----------------------------------------------------- | AUTHOR: ITSOLUTION24.COM | ----------------------------------------------------- | EMAIL: info@itsolution24.com | ---------------------------------------------------...
true
890e17e5fac1d02682263a96a5cb76e4d9555a0c
PHP
ducchinhbk/zotadi-v2
/admin/model/customtour/continent.php
UTF-8
3,054
2.546875
3
[]
no_license
<?php class ModelCustomtourContinent extends Model { public function addContinent($data) { $this->db->query("INSERT INTO tour_custom_continent SET vi_name = '" . $data['vi_name'] . "', en_name = '" . $data['en_name'] . "', ...
true
7e128564dbbda5ceccbfc5646ea76d2316dd6521
PHP
nahte-dev/PHP-Project
/gamingCommunity/view.php
UTF-8
3,625
3.1875
3
[]
no_license
<?php declare(strict_types = 1); abstract class AbstractRowDisplay { protected $allRows = []; public function addRow(array $newRow): void { $this->allRows[] = $newRow; } abstract protected function getStart() : string; abstract protected function getEnd() : string; abstract protec...
true
a8d196e0f51a2814a5f98f5e0ddd931a39193142
PHP
webD97/chameleon
/test/Colors/HSLColorTest.php
UTF-8
5,021
2.984375
3
[ "MIT" ]
permissive
<?php namespace Chameleon\Colors; use PHPUnit\Framework\TestCase; use Chameleon\Colors\HSLColor; use Chameleon\Exceptions\ValueOutOfBoundsException; final class HSLColorTest extends TestCase { private $color; /** * @before */ public function setUp() { ...
true
8fe72d1f74d348de05b4f13947b088f660e8dbfa
PHP
devmetal/ClassPage
/module/Home/src/Home/Form/FeedbackFormFilter.php
UTF-8
1,481
2.546875
3
[]
no_license
<?php namespace Home\Form; use Zend\InputFilter\InputFilter; /** * Description of FeedbackFormFilter * * @author adam */ class FeedbackFormFilter extends InputFilter { public function __construct() { $this->add(array( 'name' => 'email', 'required' => true, 'val...
true
7ef8ba3c4b200ed5f9b8382e81349177692ebd8e
PHP
NorahAlShaikhMubarak/Buy4meProject
/cart.php
UTF-8
5,565
2.734375
3
[]
no_license
<?php session_start(); $title = "Shopping Cart"; include 'header.php'; include 'connect-db.php'; if(isset($_GET['itemid'])) { $item = $_GET['itemid']; //STEP 4: CREATE THE QUERY $query = "SELECT * FROM stuff WHERE id=$item"; //STEP 5: RUN THE QUERY $result = mysqli...
true
b5f6889b574933b3a5850de7c96053055a5e8c5e
PHP
WPPlugins/appbrowzer
/classes/class-abws-output.php
UTF-8
597
3.03125
3
[]
no_license
<?php class ABWS_Output { private static $instance = null; /** * Get singleton instance of class * * @return null|ABWS_Output */ public static function get() { if ( self::$instance == null ) { self::$instance = new self(); } return self::$instance; } /** * Constructo...
true
2a25c31a04a20c4cdc3b5d50ec416d1e587913b9
PHP
phoice/phlexa
/src/Response/Card/Simple.php
UTF-8
1,798
3.140625
3
[]
no_license
<?php /** * Build voice applications for Amazon Alexa with phlexa and PHP * * @author Ralf Eggert <ralf@travello.audio> * @license http://opensource.org/licenses/MIT The MIT License (MIT) * @link https://github.com/phoice/phlexa * @link https://www.phoice.tech/ * @link https://www.travel...
true
02a85c91f98db44fdeeb29a720460cddd84ea4a2
PHP
SebastianGimenez/PHP
/Codigo PHP/busqueda.php
UTF-8
2,451
2.5625
3
[]
no_license
<?php if(isset($_POST['buscar'])){ $vBuscar = '%'.$_POST['buscar'].'%'; session_start(); $tipoUsuario = NULL; $vNRO = NULL; if(isset($_SESSION['usuario'])){ $fila = $_SESSION['usuario']; $nombreUsuario = $fila['Usuario']; $tipoUsuario = $fila['TipoUsuario']; if(isset($_SESSION["carro"])) $vNRO=coun...
true
11864b12813c7e56665b80a89de02257a5b516e8
PHP
vphe/Typeform
/src/Models/FormLogicActionCondition.php
UTF-8
949
2.765625
3
[ "MIT" ]
permissive
<?php namespace vphe\Typeform\Models; class FormLogicActionCondition extends Model { /** * Operator for the condition. * * @var string * @options=["begins_with", "ends_with", "contains", "not_contains", "lower_than", "lower_equal_than", "greater_than", "greater_equal_than", "is", "is_not", "eq...
true
d69c488a5f58f4bed6aabafe3b9dff606532c1dc
PHP
niechunhong/laravel01
/app/Http/Requests/AdminUserinsert.php
UTF-8
1,597
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class AdminUserinsert extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { //表单效验授权 return true; } ...
true
61d0eb43c097856fd608333c5b4f26e1dc44758b
PHP
badrsk1x/graphicEditor
/src/Shapes/Square.php
UTF-8
1,394
3.421875
3
[]
no_license
<?php namespace Src\Shapes; class Square extends AbstractShape { private $sideLength; public function __construct($shape) { $this->validate($shape); $this->setSideLength($shape['sideLength']); $this->setBorderColor($shape['border']['color']); $this->setBorderWidth($shape['...
true
4f814b9b8cd059cf26581f7c3f37d27787bd58a4
PHP
CADOJRP/FiveM-AdministrationPanel
/web/vendor/klein/klein/src/Klein/Exceptions/DispatchHaltedException.php
UTF-8
1,580
2.875
3
[ "MIT" ]
permissive
<?php /** * Klein (klein.php) - A fast & flexible router for PHP * * @author Chris O'Hara <cohara87@gmail.com> * @author Trevor Suarez (Rican7) (contributor and v2 refactorer) * @copyright (c) Chris O'Hara * @link https://github.com/klein/klein.php * @license MIT */ namespace Klein\Excep...
true
ae26824f7496dcb08d1064c4314db171fe649157
PHP
mixisLv/name-days
/src/Names.php
UTF-8
844
3.28125
3
[ "MIT" ]
permissive
<?php /** * @author Mikus Rozenbergs <mikus.rozenbergs@gmail.com> * @copyright Copyright (C) 2017 Mikus Rozenbergs */ namespace mixisLv\NameDays; class Names { /** @var string */ private $key; /** @var array */ private $names; /** * Names constructor. * * @param string $ke...
true
fc513315bafcfef38441a4a9dc4580efa32176f5
PHP
XxxxReynaldi/mgbk
/app/Http/Controllers/Admin/SekolahController.php
UTF-8
4,083
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Models\Sekolah; use Illuminate\Http\Request; class SekolahController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() ...
true
4726dc1d9ee60c6c9c3e41105b85c68dea5a2966
PHP
tiendzbk/btsmartosc
/btsmartOSC/controllers/products_controller.php
UTF-8
869
2.59375
3
[]
no_license
<?php require_once('base_controller.php'); include 'model/attributes.php'; include 'model/Product.php'; class ProductsController extends BaseController { function __construct() { $this->folder = 'products'; } // public function home() // { // $data = array( // 'name' => 'Sang Beo', // 'a...
true
e74839e811d6ad2527dc967a85dbf4e9f84bf672
PHP
effectra/framework
/src/Cmd/Scan.php
UTF-8
1,035
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Effectra\Core\Cmd; use Effectra\Core\Console\ConsoleBlock; use Effectra\Core\Exceptions\StructureException; use Effectra\Core\Structure; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\Out...
true
36bc1fd8041142bd82c98b7a21cd59e16f7b847f
PHP
fabiocicerchia/coding-tests
/hacker-rank/30-days-of-code/16-exceptions-string-to-integer.php
UTF-8
261
3.140625
3
[]
no_license
<?php // REF: https://www.hackerrank.com/challenges/30-exceptions-string-to-integer/problem $handle = fopen("php://stdin", "r"); fscanf($handle, "%s", $S); $converted = strval(intval($S)); echo $converted === $S ? $converted : "Bad String"; fclose($handle);
true
c7fe7d0946ae4d9e61cdfcc013164150bf48d402
PHP
vinku89/playapi
/packages/contus/cms/src/Repositories/LatestNewsRepository.php
UTF-8
5,878
2.625
3
[ "Apache-2.0", "MIT" ]
permissive
<?php /** * Latest News Repository * To manage the functionalities related to the Customer module from Latest News Resource Controller * * @name LatestNewsRepository * @vendor Contus * @package Cms * @version 1.0 * @author Contus<developers@contus.in> * @copyright Copyright (C) 2016 Contus. All rights reserve...
true
cf4da6a0c5783822283b25c2c136a3638f2a4d3d
PHP
JadenFurtado/swasthya
/booking/userData.php
UTF-8
1,136
2.515625
3
[]
no_license
<?php function getClinicsData($id){ $servername = "localhost"; $username = "root"; $password = ""; $dbname = "swasthya"; $conn = new mysqli("localhost", "u996110698_jaden", "E@y91>h2i#Z", "u996110698_swasthya"); /*if($_SESSION['user_type']=='doctor'){ {$sql="SELECT doctor_id FROM doctor WHERE profi...
true
7d8c82ded2c52e6089d2c1d166a06d24e5b889ff
PHP
ma1ex/Tasker-MVC
/public_html/app/models/Model_Login.php
UTF-8
1,106
2.875
3
[]
no_license
<?php /** * Project: Tasker MVC; * File: Model_Login.php; * Developer: Matvienko Alexey (matvienko.alexey@gmail.com); * Date & Time: 18.04.2019, 14:01 * Comment: */ class Model_Login extends Model { /** * @param $user_name * @param $password * @return bool|mixed */ public function ...
true
f57438b49af41294461a54280ae9f0def965d17b
PHP
kotopheiop/bitrix-core
/modules/sale/lib/delivery/services/crm/activity.php
UTF-8
3,631
2.875
3
[]
no_license
<?php namespace Bitrix\Sale\Delivery\Services\Crm; /** * Class Activity * @package Bitrix\Sale\Delivery\Services\Crm * @internal */ final class Activity { /** @var string|null */ private $subject; /** @var bool */ private $isHandleable = true; /** @var bool */ private $isCompleted = fals...
true
327daf1652b9a8e4affb5f884693816fa47e9959
PHP
DatAnimal-Bilkent/DatAnimal-Bilkent.github.io
/DATABASEPHP/Coordinator/createEvents.php
UTF-8
2,219
2.828125
3
[]
no_license
<?php session_start(); $uid = $_SESSION['username']; ?> <!DOCTYPE html> <html> <body> <?php //$sname = $_SESSION['name']; echo "Create Event\n"; ?> <br><br /> <?php echo "Event Type: "; $_GET['eventtype'] = 'edu'; function radioButtonFunction() { ...
true
a0bb2d037e3cfd8f2e7535fb1469c18778d8a900
PHP
ivan-petrovic/obrzar
/utildb/class.Insert.inc
UTF-8
2,254
3.171875
3
[ "MIT" ]
permissive
<?php require_once 'class.Query.inc'; /** * Klasa za upis rekorda u mysql bazu. */ class Insert extends Query { private $what; private $where; private $params; public function what($fields = array()) { if( is_array($fields) ) { $this->what = $fields; } else { trigger_error...
true
80cd3a383ab8a43b425ff22340bec2b4e9f67faf
PHP
inboxly/server
/app/Casts/ParametersCast.php
UTF-8
2,154
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Casts; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; use Illuminate\Contracts\Database\Eloquent\SerializesCastableAttributes; use Inboxly\Receiver\Contracts\Parameters; use Inboxly\Receiver\Managers\FetcherManager; class ParametersCast implements CastsAttri...
true
303c0cbb9519b147e40adfb86a0a589654b71ec4
PHP
melbahja/seo
/src/Helper.php
UTF-8
973
2.984375
3
[ "MIT" ]
permissive
<?php namespace Melbahja\Seo; /** * @package Melbahja\Seo * @since v2.0 * @see https://git.io/phpseo * @license MIT * @copyright 2019-present Mohamed Elabhja */ class Helper { public static $encoding = 'UTF-8'; public static function escape(string $text): string { return htmlspecialchars($text, ENT_QUOTES...
true
c78aa3fabd677d809800d8f9c83d66904e681e9d
PHP
Matheuspsilva/phpunit
/tests/unit/EqualTest.php
UTF-8
363
2.6875
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; class EqualsTest extends TestCase { public function testFailure() { $this->assertEquals(1, 1); } public function testFailure2() { $this->assertEquals('bar', 'bar'); } public function testFailure3() { $this->assertEquals("fo...
true
1a1869ca7751252d0fa35c9df560509148680309
PHP
sureshamk/laravel-5.3-boilerplate-api-jwt-vue2
/app/Transformers/UserTransformer.php
UTF-8
1,159
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Transformers; use App\Models\Access\User\User; use League\Fractal\TransformerAbstract; class UserTransformer extends TransformerAbstract { /** * List of resources possible to include. * * @var array */ protected $availableIncludes = [ 'roles', 'permissions', ...
true
1dc2e2479b3514021d393fcecb451a5a28643142
PHP
lancecaraccioli/legacy.caraccioli.me
/application/modules/contact/forms/Request.php
UTF-8
3,353
2.640625
3
[]
no_license
<?php class Contact_Form_Request extends Zend_Form { public function init() { $first_name = new Zend_Form_Element_Text('first_name'); $last_name = new Zend_Form_Element_Text('last_name'); $address_1 = new Zend_Form_Element_Text('address_line_1'); $address_2 = new Zend_Form_Element...
true
0b2a9877012fc723d98accb1d834b14b5f0aa4c7
PHP
dangquangha/request-logging
/src/Middleware/SearchDailyMiddleware.php
UTF-8
772
2.515625
3
[]
no_license
<?php namespace Workable\RequestLogging\Middleware; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; use Jenssegers\Agent\Agent; use Workable\RequestLogging\Libs\Common; class SearchDailyMiddleware { /** * @param Request $request * @param Closure $next * @return mixed ...
true