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
129b5edd1c4e00dd4f1ad3bcfa1ab68486cb895c
PHP
aprok10/one
/laba131.php
UTF-8
2,397
3.03125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ААА * Date: 06.04.2018 * Time: 19:38 */ $hour = date('D d M Y H:i'); print_r($hour); echo "\n"; $a = date('D'); $h = date('H'); $m = date('i'); //$m = intval(400); echo "\n$h"; echo ":$m\n"; //if( $h>"23" && $m>intval(59)) {echo $m; die('не допустимые значения времени. пров...
true
dbc6be54c7d8b5c4b5e1cef334ceb9977a28ae31
PHP
tcc-estacio-douglas/Projeto-TCC
/aula39-mvc-p10/views/usuario/editarUsuario.php
UTF-8
1,022
2.515625
3
[]
no_license
<H1>Editar usuário</H1> <?php if (isset($this->Dados[0]['msg'])) { echo $this->Dados[0]['msg']; } elseif (isset($this->Dados['msg'])) { echo $this->Dados['msg']; } ?> <form name="CadUsuario" action="" method="post" enctype="multipart/form-data"> <label>Nome:</label> <input type="text" name="name" place...
true
c6e0c2c4b13736fe85e7a8ccad78a8fca27c0c14
PHP
mjohnston878/uniwork
/airwave/processschedule.php
UTF-8
1,014
2.890625
3
[]
no_license
<?php // connect to database include('conn.php'); // retriving stageID from url using GET method $getstageid = $_GET['stageID']; // read from schedule table joined to artist and stage on their ID's where the stageID is equal to the id passed in by the get method $read = "SELECT schedule.scheduleID, artist.name, sta...
true
6a9acc2ad718ab396811a04c87cc8d6c4d2bb0e5
PHP
qasedak/QChat
/system/Skin.php
UTF-8
870
2.671875
3
[]
no_license
<?php class Skin { protected $info = array(); public function __construct($path = null) { $this->info['view_replace'] = false; if($path !== null) { $this->load($path); } } public function __get($name) { return $this->info[$name]; } ...
true
2c1a21dea5880207b314fa735c947008a28817ce
PHP
cgardner/core
/test/classes/ContentBlock.Test.php
UTF-8
2,161
2.625
3
[]
no_license
<?php /** * Cumula * * Cumula - Framework for the cloud. * * @package Cumula * @version 0.1.0 * @author Seabourne Consulting * @license MIT LIcense * @copyrigt 2011 Seabourne Consulting * @link http://cumula.org */ require_once 'base/Test.php'; require_once 'libraries/ContentBloc...
true
55e69efaaa3d51e6f51a0c4b0111321a27ad6db2
PHP
elahsoft/DESIGN-AND-IMPLEMENTATION-OF-A-WEB-APPLICATION-FOR-MICROFINANCE-FINANCIAL-RATIO-REPORTING-SYSTEM
/tests/unit/AdjustedReturnOnAssetsTest.php
UTF-8
1,086
2.625
3
[]
no_license
<?php require_once 'models/AdjustedReturnOnAssets.php'; class AdjustedReturnOnAssetsTest extends \Codeception\Test\Unit { /** * @var \UnitTester */ protected $tester; private $adjusted_net_operating_income, $taxes, $adjusted_average_assets = 0; protected function _before() { $thi...
true
740f38cd10372ea941477168bb4f4b61f245e414
PHP
louLabo/applicationAPI
/src/ExperienceDAOImpl.php
UTF-8
3,045
2.90625
3
[]
no_license
<?php include 'ExperienceDAO.php'; include 'Database.php'; class ExperienceDAOImpl implements ExperienceDAO { private $conn; // constructor with $db as database connection public function __construct(){ $database = new Database(); $db = $database->getConnection(); $this->conn = $...
true
f19ef4ae1854751d25099365fe17fb6d443d5d89
PHP
robertocarroll/barjeel
/functions.php
UTF-8
24,139
2.515625
3
[]
no_license
<?php /** * barjeel functions and definitions * * @package barjeel * @since barjeel 1.0 */ /** * Set the content width based on the theme's design and stylesheet. * * @since barjeel 1.0 */ if ( ! function_exists( 'barjeel_setup' ) ): /** * Sets up theme defaults and registers support for various WordPress f...
true
c20f39afe00a1ceae935f4ef3708f0a297c6e949
PHP
wplibs/rules
/tests/Operator/LessThanOrEqualTest.php
UTF-8
805
2.546875
3
[ "MIT" ]
permissive
<?php use Ruler\Context; use Ruler\Variable; use WPLibs\Rules\Operator\Less_Than_Or_Equal; class LessThanOrEqualTest extends \WP_UnitTestCase { public function testInterface() { $op = new Less_Than_Or_Equal( new Variable( 'a', 1 ), new Variable( 'b', 2 ) ); $this->assertInstanceOf( 'Ruler\Proposition', $op ); ...
true
f613f9a4e50feab027fa5ed4bb79ecf9f362baa7
PHP
pop-web/kinddle-watcher
/backend/app/Console/Commands/ItemScraping.php
UTF-8
1,898
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Goutte\Client; use App\Item; use App\Mail\EmailNotification; use Illuminate\Support\Facades\Mail; class ItemScraping extends Command { /** * The name and signature of the console command. * * @var string */ protecte...
true
0930a5346a0cdbf1b8c1fdcc44b7f6254d18d8b4
PHP
lausek/lowebf
/src/lowebf/Module/CacheModule.php
UTF-8
1,013
2.796875
3
[]
no_license
<?php namespace lowebf\Module; use lowebf\Error\FileNotFoundException; class CacheModule extends Module { public function getPath(string $subpath = null) : string { if ($subpath !== null) { $subpath = ltrim($subpath, "/"); return $this->env->asAbsolutePath("cache/$subpath"); ...
true
23683bc9acfcaf05bef98797a309551df8cb4048
PHP
naao/myshop
/class/myshop_votedata.php
ISO-8859-1
4,607
2.6875
3
[]
no_license
<?php if (!defined('XOOPS_ROOT_PATH')) { die("XOOPS root path not defined"); } include_once XOOPS_ROOT_PATH.'/class/xoopsobject.php'; if (!class_exists('Myshop_XoopsPersistableObjectHandler')) { include_once XOOPS_ROOT_PATH.'/modules/myshop/class/PersistableObjectHandler.php'; } class myshop_votedata extends Mysho...
true
ee41dbfcb72f46394652f6c78da00ee3a0bf2485
PHP
daodaoy/tars-php
/src/server/rpc/ServerRequest.php
UTF-8
797
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace wenbinye\tars\server\rpc; use wenbinye\tars\rpc\message\MethodMetadataInterface; use wenbinye\tars\rpc\message\RequestTrait; class ServerRequest implements ServerRequestInterface { use RequestTrait; /** * ServerRequest constructor. */ public function _...
true
96f5077a40da62f0b4e4eb05dbe3bac7c5bf30a3
PHP
zjjzjw/web_fangquan
/fangquan/app-admin/app/Http/Controllers/Api/Tag/TagController.php
UTF-8
1,725
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Admin\Http\Controllers\Api\Tag; use App\Admin\Http\Controllers\BaseController; use App\Admin\Src\Forms\Tag\TagDeleteForm; use App\Admin\Src\Forms\Tag\TagStoreForm; use App\Src\Tag\Infra\Repository\TagRepository; use Illuminate\Http\Request; class TagController extends BaseController { /** ...
true
0ee4d290fdb01233fd671a3fb7ee8e1e8e10931b
PHP
manilucky/recipe-app
/app/Http/Controllers/RecipeController.php
UTF-8
2,745
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Recipe; use App\Transformers\CustomSerializer; use Illuminate\Http\Request; use App\Transformers\RecipeTransformer; use League\Fractal\Manager; use League\Fractal\Resource\Item; use League\Fractal\Resource\Collection; class RecipeController extends Controller { ...
true
b51db82782f193d0d7871a8c255cfca744d9512d
PHP
DrillSergeant/JWT
/Classes/Security/Authentication/Factory/CookieFactory.php
UTF-8
1,022
2.671875
3
[ "MIT" ]
permissive
<?php namespace RFY\JWT\Security\Authentication\Factory; use Neos\Flow\Annotations as Flow; use Neos\Flow\Http\Cookie; /** * Class TokenFactory * * @package RFY\JWT\Domain\Factory * @Flow\Scope("singleton") */ class CookieFactory { /** * @Flow\InjectConfiguration(package="Neos.Flow", path="session") ...
true
06e31329dc691aeca885bde2aa22240fde3f39b8
PHP
RayPeng08/Gimay
/Core/Gimay/Client/HttpClient.php
UTF-8
8,151
2.625
3
[]
no_license
<?php namespace Gimay\Client; class HttpClient { const EOF = "\r\n"; const PORT = 80; protected $timeout = 30; public $gimay; public $url; public $uri; public $reqHeader; /** * @var \swoole_client */ protected $cli; protected $buffer = ''; protected $nparse = 0...
true
7ad77a2834509342afc8525fb5e5e35ea75638a8
PHP
Dement/file-storage
/src/Modules/ObjectBundle/Entity/File.php
UTF-8
2,403
2.875
3
[]
no_license
<?php namespace Modules\ObjectBundle\Entity; use BaseClasses\BaseModel; /** * File */ class File extends BaseModel { /** * @var int */ private $id; /** * @var string */ private $path; /** * @var string */ private $fileName; /** * @var string */...
true
f8b80061f99e7f78497bfa40bbe7900f726936ec
PHP
aemaething/ISP
/08_Elementare-Klassen/8.2_SPL/array-object.php
UTF-8
288
3.375
3
[ "MIT" ]
permissive
<?php $ao = new ArrayObject(); $ao["foo"] = "bar"; $ao->append("Katze"); foreach ($ao as $key => $value) { var_dump($value); } // string(3) "bar" // string(5) "Katze" var_dump($ao->getArrayCopy()); /* array(2) { ["foo"]=> string(3) "bar" [0]=> string(5) "Katze" } */
true
4156b9a7ad356008e516bac3abbcb1132d24bbbf
PHP
44hapa/ants
/bots/tools.php
UTF-8
15,419
2.84375
3
[]
no_license
<?php class Tools { static public $turn = 0; static public $food = array(); static public $defaultGoal = null; static public $direction = array('n' ,'e' ,'s' ,'w'); static public $directionNum = array( // 'n' => 1, // 'e' => 1, // 's' => -1, // 'w' => -1, // ...
true
91754be25427f2e59e338a06ff5768d29b180d97
PHP
GhostSt/Mafia
/site/src/GhostSt/CoreBundle/Filter/DateFilter.php
UTF-8
1,287
3.0625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php /** * Created by PhpStorm. * Author: Victor Diditskiy <victor.diditskiy@yandex.ru> * Date: 22.10.17 * Time: 21:06 */ declare(strict_types = 1); namespace GhostSt\CoreBundle\Filter; use DateTime; /** * Date filter */ class DateFilter implements DateFilterInterface { /** * Filter code * ...
true
8115bdcd72c7e9644cca858f97b09f4f2c91501b
PHP
sarriaroman/PuntoUBP
/views/default/output/date.php
UTF-8
444
2.703125
3
[]
no_license
<?php /** * Date * Displays a properly formatted date * * @package Elgg * @subpackage Core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 * @link http://elgg.org/ * * @uses $vars['valu...
true
573944172c2ca446d23905d3dbd72faf8cf21d08
PHP
DannyvanHolten/WordPress-Models
/Models/UserModel/Subscriber.php
UTF-8
390
2.84375
3
[]
no_license
<?php namespace WordPressModels\UserModel; /** * This is the model if you want to get the users of the rol subscriber * * Class Subscriber * @package WordPressModels\UserModel */ class Subscriber extends UserModel { /** * Subscriber constructor. * * Set all the arguments that are default for this Model ...
true
6fb0039a461cfa14b70e4932484e8155b46702fa
PHP
Azakazam/shelteredWorkshop.github.io
/views/all-clients-delete-view.php
UTF-8
2,574
2.5625
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="description" content="My homepage."> <title> Search Engine </title> <link rel="stylesheet" type="text/css" href="css/style.css"/> </head> <body> <header> <img id ="Logo" src="images/logo2.png" alt=...
true
ebaabcde4ac707316a0750d6c065fbaae5e877c4
PHP
lokothodida/bank
/src/Infrastructure/Storage/InMemoryGetAccounts.php
UTF-8
1,402
2.546875
3
[]
no_license
<?php namespace lokothodida\Bank\Infrastructure\Storage; use lokothodida\Bank\Domain\Account; use lokothodida\Bank\Domain\AccountRepository; use lokothodida\Bank\Domain\Event; use lokothodida\Bank\Domain\Event\AccountOpened; use lokothodida\Bank\Infrastructure\Publisher\EventPublisher; use lokothodida\Bank\Query\Mode...
true
c8c55bdf4bca07d8607b64f83083c94b99fadd35
PHP
dbierer/classic_php_examples
/basics/elseif_random_benchmark.php
UTF-8
810
3.421875
3
[]
no_license
<?php function withSpace() { $count = 100000; $t = microtime(true); for ($i=0; $i < $count; $i++) { if ($i == -1) { } else if ($i == -2) { } else if ($i == -3) { } } return microtime(true)-$t; } function noSpace() { $count = 100000; $t = microtime(true); for ($i=0; $i < $count; $i++) { if ($i == -1) {...
true
6c79f32b29ed5d49ae45ac13104d8486f4b7b135
PHP
Romario25/parser
/app/Console/Commands/TestProxyCommand.php
UTF-8
1,861
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Proxy; use GuzzleHttp\Client; use function GuzzleHttp\Promise\all; use function GuzzleHttp\Promise\settle; use Illuminate\Console\Command; use Mockery\CountValidator\Exception; class TestProxyCommand extends Command { /** * The name and signature of the console ...
true
75bd154e433c584235a37a859ec6d4f77a8afa44
PHP
ddksaku/terence
/app/models/Site/Search.php
UTF-8
19,973
2.65625
3
[ "MIT" ]
permissive
<?php namespace Models\Site; class Search { protected $totalEntries; protected $perPage; protected $totalPages; protected $currentPage; protected $resultsRaw = array(); protected $results = array(); protected $paginator; protected $query; protected $tag; ...
true
2d84af1c0522013ae030b78315d23329266bd071
PHP
MaxPRafferty/cmwn-platform
/module/Rule/src/Rule/Provider/Collection/ProviderCollectionAwareTrait.php
UTF-8
757
2.71875
3
[]
no_license
<?php namespace Rule\Provider\Collection; /** * Class ProviderCollectionAwareTrait */ trait ProviderCollectionAwareTrait { /** * @var ProviderCollectionInterface */ protected $providerCollection; /** * Sets the provider collection * * @param ProviderCollectionInterface $collect...
true
9247fd7fd83bf4d7b00196009cea547452794ca3
PHP
gerardoGomr/siacme
/app/Infraestructura/Pacientes/ITratamientoOrtopediaOrtodonciaRepositorio.php
UTF-8
546
2.5625
3
[ "MIT" ]
permissive
<?php namespace Siacme\Infraestructura\Pacientes; use Siacme\Dominio\Expedientes\Expediente; use Siacme\Dominio\Expedientes\TratamientoOdontologia; /** * Interface ITratamientoOrtopediaOrtodonciaRepositorio * @package Siacme\Infraestructura\Pacientes * @author Gerardo Adrián Gómez Ruiz */ interface ITratamientoOr...
true
e46fd51e93df76c7a96a996582df3f7a0558b53b
PHP
ssendi/zendProject
/application/models/Register.php
UTF-8
195
2.5625
3
[]
no_license
<?php class Application_Model_Register { public function createUser($array) { $dbTableUser = new Application_Model_DbTable_User(); $dbTableUser->insert($array); } }
true
5d974537819046eee49c9ffdf7274e7bdcdcd543
PHP
dennis-tmeinc/tdweb
/vcqdel.php
UTF-8
1,126
2.53125
3
[]
no_license
<?php // vcqdel.php - delete one video request (cell table) // Requests: // vcq_id: id of video request // Return: // JSON object, res=1 for success // By Dennis Chen @ TME - 2016-12-14 // Copyright 2016 Toronto MicroElectronics Inc. require 'session.php' ; header("Content-Type: application/j...
true
17e961d4c13e669b49fc6767fccbc711083aec7a
PHP
jaimealaddo/protrainers
/includes/Imagen.php
ISO-8859-10
21,544
2.640625
3
[]
no_license
<?php /** * Responsable de Modificar imagenes en el servidor. * @author Marcelo Castro * @author objetivophp * @version 4.0.0 15/03/2009.- * Incoporar ver propiedades * Chequeo de seguriadad en imagen. * Soporte para png, gif y jpg * @since Soporte para PHP 5 exclusivamente.- ...
true
2a645d9a39dd864017f3ebdb0db84cc4d14ff57f
PHP
mohorima/bug-tracker
/database/migrations/2021_03_12_184309_create_issues_table.php
UTF-8
1,154
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateIssuesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('issues', functio...
true
966508b54e32307468f1902987b432f4efbfde07
PHP
webeweb/core-library
/src/database/Helper/PaginateHelper.php
UTF-8
1,741
2.9375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the core-library package. * * (c) 2018 WEBEWEB * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace WBW\Library\Database\Helper; /** * Paginate helper. * * @author webeweb <https://github....
true
9841bfb5b6fe243183e1d2e0dd9955ac36737cec
PHP
shashaa35/yom
/add.php
UTF-8
1,755
2.578125
3
[]
no_license
<html> <head> <title>data addition page</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.min.css"> <script src="js/bootstrap.min.js"></script> </head> <body> <div class="text-right"> <a href="logout.php"...
true
1e95b6cb396ffad8d8c99f7c29f6a828565ac863
PHP
Josh-Mosh/Red-Belt-CodingDojo
/application/controllers/edits.php
UTF-8
1,533
2.515625
3
[]
no_license
<?php class Edits extends CI_Controller { public function index() { date_default_timezone_set("America/Los_Angeles"); $this->load->view('edits_view'); } public function update() { $this->load->library('form_validation'); $this->form_validation->set_rules('name', 'Task', 'required'); $this->form_valid...
true
edec426b45d965784432f89307f0f2a5faa1d81e
PHP
cdreher/CS-0334
/Final/final_script/final_query.php
UTF-8
1,122
2.71875
3
[]
no_license
<!--Collin Dreher--> <!DOCTYPE html> <html> <head> <title>Search Inventory - Final Project</title> </head> <body> <?php require_once 'final_login.php'; //Get values from form $brand = $_POST['brand']; $category = $_POST['category']; $price = $_POST['price']; $result=mysql_query("SELECT*FROM inventory WHERE b...
true
b7b90ca11191f069de5378b4092038a806726bf5
PHP
faisaldeveloper/testcom
/include/db_config.php
UTF-8
5,033
2.6875
3
[]
no_license
<?php class dataAccess{ private $host = "localhost"; private $user = "root"; private $pass = ""; private $db_name = "atm"; private $conn; function connect(){ $this->conn = mysql_connect($this->host, $this->user, $this->pass); mysql_select_db($this->db_name); if(!$this->conn){ echo "<br> Not Connected to ...
true
d1d1fd078ec3225007e597ac4f819e8da84d9f76
PHP
cblab/admin-dash
/app/Http/Controllers/StockController.php
UTF-8
1,376
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Model\Company; use App\Model\Stock; use Illuminate\Http\Request; class StockController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); ...
true
9ba8814f8c9ff92fce43e62eec98d229d73d9c02
PHP
LucasFormiga/discord-notification-channel
/src/Channels/DiscordChannel.php
UTF-8
1,788
2.828125
3
[ "MIT" ]
permissive
<?php namespace LucasFormiga\Notifications\Channels; use GuzzleHttp\Client as HttpClient; use GuzzleHttp\Exception\ClientException; use Illuminate\Notifications\Notification; use Exception; class DiscordChannel { private $url; private $client; /** * DiscordChannel constructor. * @param HttpCli...
true
f6205249176c29c2b50ac5f013150be47c75b014
PHP
wkupaochuan/film
/application/service/Film_service.php
UTF-8
4,749
2.53125
3
[]
no_license
<?php class Film_service extends MY_Service{ /**************************************public methods****************************************************************************/ public function __construct(){ parent::__construct(); $this->load->model('Film_model'); $this->load->model('Film_pic_model'); ...
true
7e08ef511e8debc6c945c22bbe9cca5c1b981c19
PHP
claudiofreitas/conways-game-of-life-oop-solid
/gameoflife/classes/HTMLGameController.php
UTF-8
906
2.96875
3
[]
no_license
<?php class HTMLGameController extends GameController { public function __construct() { $gameRenderer = new HTMLGameRenderer(); $boardRenderer = new HTMLBoardRenderer(); $cellRenderer = new HTMLCellRenderer(); parent::__construct($gameRenderer, $boardRenderer, $cellRenderer...
true
65e8828976295798d0cb8e3b7f619bad9e9f0e27
PHP
vnetmx/wave
/app/Rules/Nss.php
UTF-8
1,709
3.0625
3
[ "MIT" ]
permissive
<?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; class Nss implements Rule { /** * Create a new rule instance. * * @return void */ public function __construct() { // } /** * Determine if the validation rule passes. * * @param string ...
true
76aa7f5f21c37ca17734d1f80e118d0cca9f40bf
PHP
beautyfree/ls-picalbums
/classes/modules/blacklist/mapper/Blacklist.mapper.class.php
UTF-8
1,600
2.578125
3
[]
no_license
<?php /* --------------------------------------------------------------------------- * @Plugin Name: Livestreet Picture Albums * @Plugin URI: http://lsmafia.com/blog/picalbums/3.html * @Authors: Sebastian Prelesniy (sebastian.prelesniy@gmail.com) and Lora_GT (gttgirl@gmail.com) * @Contacts: http://lsmafia.com * --...
true
6cccb51add028e512a5b6a608b52e5d2a5c29333
PHP
Petah/ispy
/laravel/app/Models/BaseModel.php
UTF-8
1,802
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Helpers\Uuid; use App\Serializers\ModelInterface; use Illuminate\Database\Eloquent\Model; abstract class BaseModel extends Model implements ModelInterface { protected $primaryKey = 'uuid'; protected $keyType = 'string'; public $incrementing = false; public functio...
true
6c7916769a6b9abbcab68fad3c4e4274aae088b0
PHP
cs-esmaeili/blog_shop
/app/Http/Middleware/CheckHeaders.php
UTF-8
1,861
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use App\Http\helpers\G; use Mockery\Matcher\Contains; use Illuminate\Support\Str; class CheckHeaders { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ ...
true
4d125529d689c3d58a3e3beaf37f41d45dc39684
PHP
xofwg/artisan
/Raptors/Mphp/closure/simple.php
UTF-8
351
3.140625
3
[]
no_license
<?php /** * 最经常用作回调函数(callback)参数的值。 * php>5.3 * http://php.net/manual/zh/class.closure.php * Created by PhpStorm. * User: Administrator * Date: 2016/10/14 * Time: 11:45 */ $closure = function ($name) { return sprintf("hello %s",$name); }; #var_dump($closure);闭包类 echo $closure("abc");
true
f3d7252bd33662e2884825efac402fa1daff9f48
PHP
timaxphp/calculator_insurance
/index.php
UTF-8
27,928
2.546875
3
[]
no_license
<?php // include config file require_once "config.php"; // request params $act = isset($_GET['act']) ? trim($_GET['act']) : NULL; $id = isset($_GET['id']) ? intval($_GET['id']) : NULL; //////////////////////////////////////////////// // FUNCTIONS //////////////////////////////////////////////// // send...
true
b6c10e712c157f9d86d66cd1474c174187889533
PHP
anna-framework/anna
/src/anna/Console/Commands/MakeRepositoryCommand.php
UTF-8
5,244
2.921875
3
[]
no_license
<?php namespace Anna\Console\Commands; use Anna\Config; use Anna\Console\Commands\Abstracts\Command; use Anna\Console\Helpers\TemplateHelper; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Con...
true
9348588c36320f554494c41c89f63fce9b474fac
PHP
JmanuelJustiniano250/nadaque_ponerte
/models/ColoresProductos.php
UTF-8
770
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; /** * This is the model class for table "colores_productos". * * @property int $id_cp * @property string $value * @property string $nombre */ class ColoresProductos extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { ...
true
20a7fc209a9d20dec167f8b68545d82df2c72137
PHP
naresh29s/Visitor-application
/visitor/barcode.php
UTF-8
1,331
2.609375
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <?php header("Content-type: ima...
true
ca77c178ec82f9b5ebd2ca057ff07e9df382862c
PHP
hitmeister/metrics
/src/Collector/CollectorInterface.php
UTF-8
2,692
2.890625
3
[ "MIT" ]
permissive
<?php /** * User: Maksim Naumov <maksim.naumov@hitmeister.de> * Date: 6/18/15 * Time: 7:40 PM */ namespace Hitmeister\Component\Metrics\Collector; interface CollectorInterface { /** * Increments one or more metrics to value points. * * @param string|array $names * @param array $tags...
true
5023a518b7fd5a5d025818ea83e10a331a23700f
PHP
digistorm/omnipay-msa-quickpay
/src/Message/PurchaseRequest.php
UTF-8
2,970
2.59375
3
[]
no_license
<?php namespace Omnipay\MsaQuickpay\Message; use Omnipay\Common\Exception\InvalidRequestException; /** * MsaQuickpay Purchase Request. */ class PurchaseRequest extends AbstractRequest { /** * Get request data array to process a purchase. * * @return array|mixed * * @throws \Omnipay\Com...
true
4e5daf999ef4d883d55aad1bcb7b2f3b9b8d4c7b
PHP
atlanthot/m2ibackend
/back_end/nodejs/exos/game_correction/make/compiler.php
UTF-8
2,370
2.71875
3
[ "WTFPL" ]
permissive
<?php //header( 'Content-Type: application/javascript' ); function packJs( $p_srcDir, $ignores = null ) { $data = ""; $jsFiles = scanRecursively( $p_srcDir, $ignores ); $bigJs = ""; $k = 0; foreach( $jsFiles as $jsFile ) { $data = file_get_contents( $jsFile ); //$bigJs .= "\n\n//***********...
true
f93543f8bc2326cf50793ae9d13a514467948a0a
PHP
bradzacher/dota2-stats
/src/api/includes/mappers/class.player_mapper_db.php
UTF-8
2,712
3.140625
3
[ "MIT" ]
permissive
<?php /** * All Info About One Player */ class player_mapper_db { public function __construct() { } public function set_steamid($id) { $this->_steam_id = (string)$id; } public function get_steamid() { return $this->_steam_id; } /** * @param steam_id or null * @return player object */ public fu...
true
f5310d12376ef07a7be6f64e5689aa9a8dcf0560
PHP
hryktrd/sukitamba
/addComment.php
UTF-8
809
2.515625
3
[]
no_license
<?php date_default_timezone_set('Asia/Tokyo'); require_once('config.php'); $commentStr = htmlspecialchars($_GET['comment']); $pictureId = htmlspecialchars($_GET['picutureId']); addCommentToDb($pictureId, $commentStr); // header("HTTP/1.1 200 OK"); echo "OK"; function addCommentToDb($pictureId, $commentStr){ $sql ...
true
b310155b7e53747bb28a78d80f67e1856132850b
PHP
meshkorea/open-juso
/src/Mesh/OpenJuso/UnexpectedResponseException.php
UTF-8
848
2.84375
3
[]
no_license
<?php namespace Mesh\OpenJuso; use Psr\Http\Message\ResponseInterface; /** * Class UnexpectedResponseException * * The Response object may be accessed for fine-grained retry and recovery. * * @package Mesh\OpenJuso */ class UnexpectedResponseException extends \RuntimeException { /** * @var null|Respons...
true
1d776ef6a3e758f87577b75c4f719d0b19001e58
PHP
amadeus4dev-examples/amadeus-php
/src/client/HTTPClient.php
UTF-8
631
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Amadeus\Client; use Amadeus\Configuration; interface HTTPClient { public function execute(Request $request): Response; public function getWithOnlyPath(string $path): Response; public function getWithArrayParams(string $path, array $params): Response; public f...
true
249fbce1f85f5a32e9d55e381ce27ea17213e2e2
PHP
dontdrinkandroot/gitki-bundle.php
/src/Service/FileSystem/FileSystemService.php
UTF-8
5,735
2.734375
3
[ "Apache-2.0" ]
permissive
<?php namespace Dontdrinkandroot\GitkiBundle\Service\FileSystem; use Dontdrinkandroot\GitkiBundle\Exception\DirectoryNotEmptyException; use Dontdrinkandroot\GitkiBundle\Model\FileInfo\Directory; use Dontdrinkandroot\GitkiBundle\Model\FileInfo\File; use Dontdrinkandroot\Path\DirectoryPath; use Dontdrinkandroot\Path\Fi...
true
093103e12df1bc845050650033b7d2f1fa5e8f4b
PHP
AlexanderJarvinen/lovitell
/public/includes/functions.php
UTF-8
3,262
2.515625
3
[]
no_license
<?php function cyr($str) { return iconv('cp1251','utf8', $str); } function json_thead($json_str) { $c_i=0; $template_head='111'; $out_str="<tr>\n"; while ( $json_str->col[$c_i]->row[0]->desk[0]){ $out_str.="<th align=\"center\" "; if ($json_str->col[$c_i]->row[0]->tooltip[0] != ''){ $out_...
true
e9fdb93abfeb5f3721152452c62071b6e15b29d8
PHP
RadekDvorak/JsonRpcFormatter
/src/JsonRpcFormatter/Response.php
UTF-8
3,080
3.078125
3
[ "Apache-2.0" ]
permissive
<?php namespace JsonRpcFormatter; /** * Response object * * @author Radek Dvořák <radek.dvorak@gmail.com> */ class Response extends Message { /** @var Validator\ArgumentValidatorInterface $validator Validator instance */ private $validator; private $id; private $result; private $error; private $version = "...
true
66882233c776f3e6bb6792ee8739d11f548b643e
PHP
giulysanfins/OincBank
/app/Http/Middleware/CheckPermission.php
UTF-8
984
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class CheckPermission { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $...
true
dcbf06c5ee930a8ea6af1c20592b89e4318ce105
PHP
shellking4/restaurant-project-api
/app/Http/Controllers/TableController.php
UTF-8
2,983
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Utils\Constants; use App\Utils\StringResponse; use App\Models\Table; class TableController extends Controller { public function getAllTables() { $stringResponse = new StringResponse(); $tables = Table::all(); i...
true
f3a6015f11d0b66392f4ccd3d9c54ea8e5407f89
PHP
deiusoft/whois
/application/libraries/whois/servers/country/bgtld.php
UTF-8
938
2.84375
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php namespace Whois\Servers\Country; class Bgtld extends \Whois\Server { protected $host = 'whois.register.bg'; protected $allow = array ( 'bg', 'com.au', 'net.au', 'edu.au', 'org.au', 'gov.au' ); public function __construct($domain) { $this->domain = $this->get_domain($domain); if (!isset($this->query...
true
78989b13b678939929706d8467ca7432052ac09a
PHP
oramKaloni/extranet
/assets/php/sendEvents.php
UTF-8
2,890
2.625
3
[]
no_license
<?php require_once('bdd.php'); $imagenEvento = ""; /* --- RECUPERAR IMAGEN --- */ $target_dir = "../img/events/"; $target_file = $target_dir . basename($_FILES["imagenEvento"]["name"]); $imagenEvento = basename($_FILES["imagenEvento"]["name"]); $uploadOk = 1; $imageFileType = strtolower(path...
true
9ecc609d1f3f4dd74a096d22d9c62860d2f7632e
PHP
naczynski/plugin-kg
/kg-quizes/single/kg-single-question.php
UTF-8
2,782
3.28125
3
[]
no_license
<?php class KG_Single_Question implements JsonSerializable { private $question; private $answer_a; private $answer_b; private $answer_c; private $answer_d; private $correct_answer; private $user_answer; public function __construct($data, $user_answer = false, $show_correct_answer = false) { $th...
true
4db48b9dc6a3cc21abba021351468d0c07fa3c12
PHP
armandoaepp/PHPeru-FrameWork
/v.0.7-angularjs/clases/Bean/BeanPerusuario.php
UTF-8
1,338
2.890625
3
[]
no_license
<?php # Clase Bean Generada - Creado por @armandoaepp class BeanPerusuario{ # Constructor public function __construct(){} # Atributos private $idperusuario; private $perapellidos; private $pernombre; private $perusuario; private $perpassword; private $fechareg; private $estado; # METO...
true
6cbb2f24b0b4fd6ccf3665529471475e66ec7149
PHP
TermanEmil/cursus42
/PHP_piscine/day01/ex06/ssap.php
UTF-8
1,087
3.15625
3
[]
no_license
#!/usr/bin/php <?PHP function ft_split($str) { if ($str == NULL) return (NULL); $words = explode(" ", $str); if ($words == NULL) return (NULL); if (sort($words) == False) return (NULL); return (array_filter($words, 'strlen')); } function get_norm_spaced($str) { $str = join(" ", array_filter(e...
true
987900e9f282e9418ffdaf140c2b4b8d3bea7a36
PHP
alvaro603/Segundoparcial-4amprg-BIDKAR
/02_PRIMEROS_PASOS/Variables.php
UTF-8
550
2.609375
3
[]
no_license
<?php /** * Nombres de variables * Deben iniciar con signo de $ * Seguido de una letra o _ * Pueden contener letras (alfabeto inglés), números y _ * Distingue mayúsculas y minúsculas (Case Sensitive) * No se pueden utilizar palabras reservadas * Se recomienda utilizar nombres que tengan sentido */ $no...
true
11cf6279b6d13a38575eee2194d3939b6d8b46c7
PHP
lu7766lu7766/XCHenpay
/database/migrations/2019_02_20_142723_update_bank_card_account_table_step1.php
UTF-8
1,071
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; class UpdateBankCardAccountTableStep1 extends Migration { /** * Run the migrations. * * @return void */ public function up() { \DB::connection()->statement( "ALTER TABLE bank_card_account MODIFY COLUM...
true
0933bcec91f6ae63c944959c3fb7d04ba3300a63
PHP
ms0680146/shop-platform
/app/SaleStrategy.php
UTF-8
841
2.53125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class SaleStrategy extends Model { public const TYPE_PRODUCT = 'PRODUCT'; public const TYPE_ORDER = 'ORDER'; public const TYPE_SHOP = 'SHOP'; public const TYPE_COUPON = 'COUPON'; public const STRAGETY_UP_AMOUNT_DISCOUNT_PRICE = 1; // 滿...
true
349e9f66a14889c904d40a05eee3d7ecaf9edcf0
PHP
IonBatir/book-a-room-api
/customer.php
UTF-8
2,239
2.578125
3
[]
no_license
<?php include_once 'config/headers.php'; include_once 'config/database.php'; include_once 'config/core.php'; include_once 'objects/customer.php'; $database = new Database(); $db = $database->getConnection(); $customer = new Customer($db); $customer->id = isset($_GET['id']) ? $_GET['id'] : NULL; $data = json_decode(...
true
663b8bd876271f0ce15afe6fd21287b5f7f7fa16
PHP
thischris1/Ausleihe
/ausleihe/src/dbInsert_pupil.php
UTF-8
1,626
3.21875
3
[ "Apache-2.0" ]
permissive
<?php function rand_chars($c, $l, $u = FALSE) { if (!$u) for ($s = '', $i = 0, $z = strlen($c)-1; $i < $l; $x = rand(0,$z), $s .= $c{$x}, $i++); else for ($i = 0, $z = strlen($c)-1, $s = $c{rand(0,$z)}, $i = 1; $i != $l; $x = rand(0,$z), $s .= $c{$x}, $s = ($s{$i} == $s{$i-1} ? substr($s,0,-1) : $s), $i=strlen($s)); r...
true
546ea70b17c8fa1347ebdaab5ca8d62d45561b92
PHP
Zereis240620/dadosPhpDAO
/usuario.php
UTF-8
2,483
2.765625
3
[]
no_license
<?php class usuario{ private $id_usuario; private $des_login; private $des_senha; private $dt_cadastro; public function getIdusuario() { return $this ->id_usuario; } public function setIdusuario($value) { $this->id_usuario = $value; } public function getDeslogin() { return $this ->des_login; }...
true
8b2a92eec8f2a47caf6408bc8763cc7c7f0ccc75
PHP
mousems/NTUvoteV2
/application/controllers/api.php
UTF-8
12,669
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Api extends CI_Controller { /** * MIT License (MIT) * Copyright (c) 2014 MouseMs <mousems.kuo@gmail.com> * http://opensource.org/licenses/MIT * https://github.com/mousems/NTUVoteV2 **/ public function index() { $tmp = new stdC...
true
2252341df6723d1102454e45959325d81abf9d55
PHP
dalinet/switch-master
/app/models/ScreenResolution.php
UTF-8
437
2.625
3
[ "MIT" ]
permissive
<?php class ScreenResolution extends Eloquent { protected $table = 'Screens_size'; protected $primaryKey = 'screen_size_id'; /** * Se obtienen las resoluciones registradas */ public static function getResolutions(){ $result = ScreenResolution::select('screen_size_id', DB::raw('CONCAT( width, "...
true
7bf648bb7f94ec484a5ab15c52cd4117a22d4537
PHP
mangesh1409/PHP-Tuts
/010_CommanLineArguments.php
UTF-8
388
2.84375
3
[]
no_license
<?php /* Open terminal type command C:\xampp\php>php.exe "c:\xampp\htdocs\Programs\010_CommanLineArguments.php" 4 6 */ $a=$argv[1]; $b=$argv[2]; $c=$a+$b; echo $c,"\n"; echo "1st Command line parameter is $argv[0]\n"; echo "2nd Command line parameter is $argv[1]...
true
2695059235b386fb85ad28a66d3ed683b3140a5e
PHP
2tanak/setevik
/app333333/Http/Middleware/CheckAuth.php
UTF-8
515
2.78125
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Contracts\Auth\Guard; use Auth; use Session; class CheckAuth { protected $auth; function __construct(Guard $auth) { $this->auth = $auth; } public function handle($request, Closure $next){ $date = "10.12.2020 1:30:59"; ...
true
a87143bdc5deed1352c44ea91e7f2f8ba13d0159
PHP
alberc01/SW_UCM
/Ejercicio 2/procesarLogin.php
UTF-8
1,204
2.609375
3
[]
no_license
<?php session_start(); if(isset($_POST["user"] ) && isset($_POST["pwd"] )){ if( $_POST["user"] === "user" && $_POST["pwd"]=== "userpass"){ $_SESSION['nombre']="Juan"; $_SESSION['login']=true; } else if($_POST["user"] === "admin" && $_POST["pwd"]=== "adminpass"){ $_SESSION['nombre']="Administrador"; ...
true
5a394537997234b0f3048f70f6365dda024cf232
PHP
JovannyRch/apirestful-codeigniter
/app/Controllers/Cursos.php
UTF-8
2,929
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use CodeIgniter\Controller; use App\Models\CursosModel; class Cursos extends Controller{ public function Index(){ $cursosModel = new CursosModel(); $cursos = $cursosModel->findAll(); //Usando querys normales /* $db = \Config\Databas...
true
1263b633cabc4fd2098fd823bdf8b14e0093e634
PHP
AMARA-PHOEUK/symfonyTP
/src/DataFixtures/ArticlesFixtures.php
UTF-8
3,126
2.890625
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Article; use App\Entity\Category; use App\Entity\Comment; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; class ArticlesFixtures extends Fixture { public function load(ObjectManager $manager) { $faker = \Faker\Factor...
true
d0442c1b6266b3518bcd099a45aa2767c5705ac7
PHP
AbdallahTarekRashad/Lotus
/Models/userClass.php
UTF-8
14,138
2.796875
3
[]
no_license
<?php include_once 'DB.php'; /* **this class about everything about user and user table in database */ class User { /* **function check if user is sorted in db or not and if sorted update his info **$code-> get form google api **$gClient->get from google api **$google_oauthV2->get from google api */ ...
true
6e2ae76d21d11a4ea5cde3ecb05d3c7610e951a3
PHP
a19860101/gjun_php
/relative-db/new-post.php
UTF-8
1,249
2.5625
3
[]
no_license
<?php require_once("../connDB.php"); $sql_cate = "SELECT * FROM `categories`"; $result_cate = mysqli_query($conn,$sql_cate); $sql_m = "SELECT * FROM `members`"; $result_m = mysqli_query($conn,$sql_m); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" co...
true
1cf5156ebf87dfec0054be6a0df545454d9cfef3
PHP
ArjunKhunti/HowToCook
/csvconnect.php
UTF-8
860
3.203125
3
[]
no_license
<?php $row = 1; if (($handle = fopen("clean_recipes.csv", "r")) !== FALSE) { while (($data = fgetcsv($handle, 2000, ";")) !== FALSE) { $num = count($data); // echo "<p> $num fields in line $row: <br /></p>\n"; // $row++; // echo "Name : ".$data...
true
2170a52f11fec2241f33855f92a9d93cbf3d545c
PHP
viniciusgcweb/pagseguro-php-sdk
/source/Boleto.php
UTF-8
3,515
2.65625
3
[ "MIT" ]
permissive
<?php include_once "Config.php"; include_once "Utils.php"; include_once "Curl.php"; class Boleto extends Utils { private $data = array(); public function setCustomerCPF($data) { $this->data['customer']['document']['type'] = 'CPF'; $this->data['customer']['document']['value'] = $data; ...
true
dc9801ae52a2e4298575440d7258a11c243c4187
PHP
tolan/SmartHome
/server/Database/RelationQuery.php
UTF-8
1,638
2.71875
3
[ "MIT" ]
permissive
<?php namespace SmartHome\Database; use Doctrine\ORM\QueryBuilder; /** * This file defines class for build relation query. * * @author Martin Kovar <mkovar86@gmail.com> */ class RelationQuery extends Abstracts\Query { /** * Sets of RelationsQuery * * @var RelationQuery[] */ private $...
true
d9164e50aaba28af53a6c40afd06e26841c6e77e
PHP
robyoung/war-and-peace
/lib/Parser.class.php
UTF-8
6,344
2.9375
3
[]
no_license
<?php require_once dirname(__file__) . '/CountryFinder.class.php'; require_once dirname(__file__) . '/Classifier.class.php'; class ParserFactory { private $country_finder; private $classifier; private $tokenizer; public static function create() { $factory = new self(); $tokenizer = self::createTo...
true
cf3813c83419dad426e3e4149ba5e5b7695f30e0
PHP
DeRidderStijn/DeRidderStijnOplossingen
/error-handling/error-handling.php
UTF-8
1,325
3.046875
3
[]
no_license
<?php try { if ( isset( $_POST["submit"])) { if ( isset( $_POST["code"]) ) { } else { throw new Exception( "SUBMIT-ERROR" ); } } } catch( Exception $e) { $messageCode = $e->get...
true
8321704c2b954e8a9c273ffdb71f2e7dcad25fb2
PHP
kg-bot/laravel-rackbeat
/src/Models/OrderShipment.php
UTF-8
956
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: nts * Date: 19.4.18. * Time: 01.30 */ namespace Rackbeat\Models; use Rackbeat\Utils\Model; class OrderShipment extends Model { protected $entity = 'order-shipments'; protected $primaryKey = 'id'; protected $modelClass = self::class; /** * Mark shipment as shi...
true
25fb2c395bf3ccdbbeea9f948444b6180ebc9c11
PHP
exception-agent/laravel-grocerry-shop
/app/Models/PayoutPreference.php
UTF-8
11,377
2.59375
3
[ "MIT" ]
permissive
<?php /** * PayoutPreference Model * * @package GoferEats * @subpackage Model * @category PayoutPreference * @author Trioangle Product Team * @version 1.0 * @link http://trioangle.com */ namespace App\Models; use Auth; use Config; use DateTime; use DateTimeZone; use Illuminate\Databa...
true
6dedd458e58f3acbc8e98995535cd5672526320d
PHP
rohandalvi/final_codeIt
/common/utilities.php
UTF-8
1,187
3.71875
4
[]
no_license
<?php // Author: Shardul Bagade // Comment: Created file. Contains common utility functions //author: SB; comment: function to generate a random string function get_random_string($valid_chars, $length) { // start with an empty random string $random_string = ""; // count the number of chars in the valid ...
true
bc9c4bf3dba02ab8a5ee44b5af5748ef878ebe47
PHP
JaniITF/test
/com_j3_pdfparser/administrator/helpers/api/mailReader.php
UTF-8
12,923
2.578125
3
[]
no_license
<?php require_once "Mail/mimeDecode.php"; /* * @class mailReader.php */ class mailReader { var $saved_files = Array(); var $send_email = FALSE; // Send confirmation e-mail back to sender? var $save_msg_to_db = FALSE; // Save e-mail message and file list to DB? var $save_directory; // A safe place ...
true
0f03ba280b5e50bde6d7f7d27abf9c902682293e
PHP
ixocreate/scheduler-package
/src/Task/TaskConfigurator.php
UTF-8
1,654
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * @link https://github.com/ixocreate * @copyright IXOCREATE GmbH * @license MIT License */ declare(strict_types=1); namespace Ixocreate\Scheduler\Task; use Ixocreate\Application\Configurator\ConfiguratorInterface; use Ixocreate\Application\Service\ServiceRegistryInterface; use Ixocreate\Application\Ser...
true
d170bec37dc9a528207da5eb835db28b0fb418f2
PHP
gdmgent-1718-webdev1/oefening-04-Simodeme2
/oefening-04.php
UTF-8
185
3.53125
4
[]
no_license
<?php function type($watIs){ return "De waarde is " . gettype($watIs) . "<br>"; } echo type('Simon'); echo type(true); echo type(6.4); echo type(9); echo type(["Fruit", "vlees"]);
true
0f057e65a533ba04425868e5f581d11af9ff30a4
PHP
flakeshake/mail2forum
/routers/countOCharacters/countOCharacters.php
UTF-8
541
2.59375
3
[]
no_license
<?php /************************************************************ * * $Date$ * $Revision$ * $Author$ * $HeadURL$ * /***********************************************************/ class m2f_routers_countOCharacters extends m2f_router { /** * Counts the number of 'o' characters in the message body * @acc...
true
79de6b70b470b731bd7853176402183590e9c777
PHP
gabrielanhaia/ex-test
/app/DBConectivity/Core/Orm/Driver/Factory/DriverFactory.php
UTF-8
448
2.6875
3
[]
no_license
<?php namespace App\DBConectivity\Core\Orm\Driver\Factory; use App\DBConectivity\Core\Orm\Contract\AbstractDriver; /** * Interface DriverFactory * @package App\DBConectivity\Core\Orm\Driver\Factory * * @author Gabriel Anhaia <anhaia.gabriel@gmail.com> */ interface DriverFactory { /** * Method responsib...
true
31dc6c14f44ab807c2d254fac1a72ded1dbefe57
PHP
alvar99/2DAW
/Desarrollo Web Entorno Servidor/teoría/explicacion/consultaspreparadasPDO.php
UTF-8
351
3
3
[]
no_license
<?php $sentencia = $mbd->prepare("INSERT INTO REGISTRY (name, value) VALUES (:name, :value)"); $sentencia->bindParam(':name', $nombre); $sentencia->bindParam(':value', $valor); // insertar una fila $nombre = 'uno'; $valor = 1; $sentencia->execute(); // insertar otra fila con diferentes valores $nombre = 'dos'; $valor...
true
7f01b5ce6ce39b772b3599b247bd80e132b62e89
PHP
link2qaiser/lego-scraper
/app/library/PosTagger.php
UTF-8
9,203
3.25
3
[]
no_license
<?php /* ALL POS CODE DESCRIBE IN WEKIPEDIA */ //https://en.wikipedia.org/wiki/Brown_Corpus#Part-of-speech_tags_used namespace App\library; class PosTagger { private $dict; public function __construct($lexicon) { $fh = fopen($lexicon, 'r'); while($line = fgets(...
true
269ecdae275a31f64472024414b12a87c6068e74
PHP
Andreikos/Online-shop
/www/app/Models/Order.php
UTF-8
2,054
2.6875
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * App\Models\Order. * * @property int $id * @property string $description * @property string $body * @property bool $status * @property int $user_id * @property int $type_id * @property \Carbon\Carbon $created_at * @property \Carbon\Ca...
true