repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Files/baker/banana.php
tests/_support/Files/baker/banana.php
<?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. */
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Controllers/Popcorn.php
tests/_support/Controllers/Popcorn.php
<?php namespace Tests\Support\Controllers; use CodeIgniter\API\ResponseTrait; use CodeIgniter\Controller; /** * This is a testing only controller, intended to blow up in multiple * ways to make sure we catch them. */ class Popcorn extends Controller { use ResponseTrait; public function index() { return 'Hi ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Controllers/Hello.php
tests/_support/Controllers/Hello.php
<?php namespace App\Controllers; use CodeIgniter\Controller; class Hello extends Controller { public function index() { return 'Hello'; } }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102301_Some_migration.php
tests/_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102301_Some_migration.php
<?php namespace Tests\Support\MigrationTestMigrations\Database\Migrations; class Migration_some_migration extends \CodeIgniter\Database\Migration { public function up() { $this->forge->addField([ 'key' => [ 'type' => 'VARCHAR', 'constraint' => 255, ], ]); $this->forge->createTable('foo', tr...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102302_Another_migration.php
tests/_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102302_Another_migration.php
<?php namespace Tests\Support\MigrationTestMigrations\Database\Migrations; class Migration_another_migration extends \CodeIgniter\Database\Migration { public function up() { $fields = [ 'value' => [ 'type' => 'VARCHAR', 'constraint' => 255, ], ]; $this->forge->addColumn('foo', $fields); ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Validation/TestRules.php
tests/_support/Validation/TestRules.php
<?php namespace Tests\Support\Validation; class TestRules { public function customError(string $str, string &$error = null) { $error = 'My lovely error'; return false; } //-------------------------------------------------------------------- }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Database/Seeds/CITestSeeder.php
tests/_support/Database/Seeds/CITestSeeder.php
<?php namespace Tests\Support\Database\Seeds; class CITestSeeder extends \CodeIgniter\Database\Seeder { public function run() { // Job Data $data = [ 'user' => [ [ 'name' => 'Derek Jones', 'email' => 'derek@world.com', 'country' => 'US', ], [ 'name' => 'Ahmadin...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Database/Seeds/AnotherSeeder.php
tests/_support/Database/Seeds/AnotherSeeder.php
<?php namespace Tests\Support\Database\Seeds; class AnotherSeeder extends \CodeIgniter\Database\Seeder { public function run() { $row = [ 'name' => 'Jerome Lohan', 'email' => 'jlo@lohanenterprises.com', 'country' => 'UK', ]; $this->db->table('user')->insert($row); } }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php
tests/_support/Database/Migrations/20160428212500_Create_test_tables.php
<?php namespace Tests\Support\Database\Migrations; class Migration_Create_test_tables extends \CodeIgniter\Database\Migration { public function up() { // SQLite3 uses auto increment different $unique_or_auto = $this->db->DBDriver === 'SQLite3' ? 'unique' : 'auto_increment'; // User Table $this->forge->addFi...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Config/Registrar.php
tests/_support/Config/Registrar.php
<?php namespace Tests\Support\Config; /** * Class Registrar * * Provides a basic registrar class for testing BaseConfig registration functions. */ class Registrar { public static function RegistrarConfig() { return [ 'bar' => [ 'first', 'second', ], 'format' => 'nice', 'fruit' => [ ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Config/BadRegistrar.php
tests/_support/Config/BadRegistrar.php
<?php namespace Tests\Support\Config; /** * Class BadRegistrar * * Doesn't provides a basic registrar class for testing BaseConfig registration functions, * because it doesn't return an associative array */ class BadRegistrar { public static function RegistrarConfig() { return 'I am not worthy'; } }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Config/Routes.php
tests/_support/Config/Routes.php
<?php /** * This is a simple file to include for testing the RouteCollection class. */ $routes->add('testing', 'TestController::index', ['as' => 'testing-index']);
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/RESTful/Worker.php
tests/_support/RESTful/Worker.php
<?php namespace Tests\Support\RESTful; use CodeIgniter\RESTful\ResourceController; /** * An extendable controller to provide a RESTful API for a resource. */ class Worker extends ResourceController { }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/RESTful/Worker2.php
tests/_support/RESTful/Worker2.php
<?php namespace Tests\Support\RESTful; use CodeIgniter\RESTful\ResourcePresenter; /** * An extendable controller to provide a RESTful API for a resource. */ class Worker2 extends ResourcePresenter { }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Autoloader/UnnamespacedClass.php
tests/_support/Autoloader/UnnamespacedClass.php
<?php class UnnamespacedClass { }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/ValidModel.php
tests/_support/Models/ValidModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class ValidModel extends Model { protected $table = 'job'; protected $returnType = 'object'; protected $useSoftDeletes = false; protected $dateFormat = 'int'; protected $allowedFields = [ 'name', 'description', ]; protected $validationRules ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/JobModel.php
tests/_support/Models/JobModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class JobModel extends Model { protected $table = 'job'; protected $returnType = 'object'; protected $useSoftDeletes = false; protected $dateFormat = 'int'; protected $allowedFields = [ 'name', 'description', ]; public $name = ''; public $...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/ValidErrorsModel.php
tests/_support/Models/ValidErrorsModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class ValidErrorsModel extends Model { protected $table = 'job'; protected $returnType = 'object'; protected $useSoftDeletes = false; protected $dateFormat = 'int'; protected $allowedFields = [ 'name', 'description', ]; protected $validation...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/UserModel.php
tests/_support/Models/UserModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class UserModel extends Model { protected $table = 'user'; protected $allowedFields = [ 'name', 'email', 'country', 'deleted_at', ]; protected $returnType = 'object'; protected $useSoftDeletes = true; protected $dateFormat = 'datetime'; ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/EventModel.php
tests/_support/Models/EventModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class EventModel extends Model { protected $table = 'user'; protected $returnType = 'array'; protected $useSoftDeletes = false; protected $dateFormat = 'datetime'; protected $allowedFields = [ 'name', 'email', 'country', 'deleted_at', ]; ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/SecondaryModel.php
tests/_support/Models/SecondaryModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class SecondaryModel extends Model { protected $table = 'secondary'; protected $primaryKey = 'id'; protected $returnType = 'object'; protected $useSoftDeletes = false; protected $dateFormat = 'int'; protected $allowedFields = [ 'key', 'value'...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/EntityModel.php
tests/_support/Models/EntityModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class EntityModel extends Model { protected $table = 'job'; protected $returnType = '\Tests\Support\Models\SimpleEntity'; protected $useSoftDeletes = false; protected $dateFormat = 'int'; protected $deletedField = 'deleted_at'; protected $allowed...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/FabricatorModel.php
tests/_support/Models/FabricatorModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; use Faker\Generator; class FabricatorModel extends Model { protected $table = 'job'; protected $returnType = 'object'; protected $useSoftDeletes = true; protected $useTimestamps = true; protected $dateFormat = 'int'; protected $allowedFields = [ ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/SimpleEntity.php
tests/_support/Models/SimpleEntity.php
<?php namespace Tests\Support\Models; use CodeIgniter\Entity; /** * Class SimpleEntity * * Simple Entity-type class for testing creating and saving entities * in the model so we can support Entity/Repository type patterns. * * @package Tests\Support\Models */ class SimpleEntity extends Entity { }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Models/StringifyPkeyModel.php
tests/_support/Models/StringifyPkeyModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class StringifyPkeyModel extends Model { protected $table = 'stringifypkey'; protected $returnType = 'object'; }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/SecondMockLanguage.php
tests/_support/Language/SecondMockLanguage.php
<?php namespace Tests\Support\Language; use CodeIgniter\Language\Language; class SecondMockLanguage extends Language { //-------------------------------------------------------------------- /** * Expose the protected *load* method */ public function loadem(string $file, string $locale = 'en', bool $return = f...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/en-ZZ/More.php
tests/_support/Language/en-ZZ/More.php
<?php return [ 'strongForce' => 'These are not the droids you are looking for', 'notaMoon' => "It's made of cheese", 'wisdom' => 'There is no try', ];
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/ab/Allin.php
tests/_support/Language/ab/Allin.php
<?php // seven deadly sins return [ 'two' => 'gluttony', 'tre' => 'greed', 'six' => 'envy', 'sev' => 'pride', ];
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/en/Nested.php
tests/_support/Language/en/Nested.php
<?php return [ 'a' => [ 'b' => [ 'c' => [ 'd' => 'e', ], ], ], ];
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/en/Foo.php
tests/_support/Language/en/Foo.php
<?php return [ 'bar' => 'Foo Bar Translated', 'bar.min_length1' => 'The {field} field is very short.', 'bar.min_length2' => 'Supplied value ({value}) for {field} must have at least {param} characters.', 'baz' => [ 'min_length3.short' => 'The {field} field is very short.', ], ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/en/More.php
tests/_support/Language/en/More.php
<?php return [ 'strongForce' => 'These are not the droids you are looking for', 'notaMoon' => "That's no moon... it's a space station", 'cannotMove' => 'I have a very bad feeling about this', ];
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/en/Core.php
tests/_support/Language/en/Core.php
<?php /** * Core language strings. * * @package CodeIgniter * @author CodeIgniter Dev Team * @copyright 2014-2018 British Columbia Institute of Technology (https://bcit.ca/) * @license https://opensource.org/licenses/MIT MIT License * @link https://codeigniter.com * @since Version 4.0.0 *...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/en/Allin.php
tests/_support/Language/en/Allin.php
<?php // 12 days of Christmas return [ 'for' => 'four calling birds', 'fiv' => 'five golden rings', 'six' => 'six geese a laying', 'sev' => 'seven swans a swimming', ];
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/ab-CD/Allin.php
tests/_support/Language/ab-CD/Allin.php
<?php // seven wonders of the ancient world return [ 'one' => 'Pyramid of Giza', 'tre' => 'Colossus of Rhodes', 'fiv' => 'Temple of Artemis', 'sev' => 'Hanging Gardens of Babylon', ];
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Language/ru/Language.php
tests/_support/Language/ru/Language.php
<?php return [ 'languageGetLineInvalidArgumentException' => 'Whatever this would be, translated', ];
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Commands/AppInfo.php
tests/_support/Commands/AppInfo.php
<?php namespace Tests\Support\Commands; use CodeIgniter\CLI\BaseCommand; use CodeIgniter\CLI\CLI; use CodeIgniter\CodeIgniter; class AppInfo extends BaseCommand { protected $group = 'demo'; protected $name = 'app:info'; protected $description = 'Displays basic application information.'; public func...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Commands/AbstractInfo.php
tests/_support/Commands/AbstractInfo.php
<?php namespace Tests\Support\Commands; use CodeIgniter\CLI\BaseCommand; abstract class AbstractInfo extends BaseCommand { protected $group = 'demo'; protected $name = 'app:pablo'; protected $description = 'Displays basic application information.'; }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/Log/Handlers/TestHandler.php
tests/_support/Log/Handlers/TestHandler.php
<?php namespace Tests\Support\Log\Handlers; /** * Class TestHandler * * A simple LogHandler that stores the logs in memory. * Only used for testing purposes. */ class TestHandler extends \CodeIgniter\Log\Handlers\FileHandler { /** * Local storage for logs. * * @var array */ protected static $logs = []...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/View/SampleClassWithInitController.php
tests/_support/View/SampleClassWithInitController.php
<?php namespace Tests\Support\View; use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use Psr\Log\LoggerInterface; /** * Class SampleClassWithInitController * * This class is only used to provide a reference point * during tests to make sure that things work as expected. */ class Sa...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/View/SampleClass.php
tests/_support/View/SampleClass.php
<?php namespace Tests\Support\View; /** * Class SampleClass * * This class is only used to provide a reference point * during tests to make sure that things work as expected. */ class SampleClass { public function index() { return 'Hello World'; } public function hello() { return 'Hello'; } //-----...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/View/Views/simples.php
tests/_support/View/Views/simples.php
<h1><?= $testString ?? 'is_not' ?></h1>
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/View/Views/simpler.php
tests/_support/View/Views/simpler.php
<h1>{testString}</h1>
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/_support/View/Views/simple.php
tests/_support/View/Views/simple.php
<h1><?= $testString ?></h1>
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/tests/travis/Database.php
tests/travis/Database.php
<?php $dbconfig = [ 'mysqli' => [ 'DSN' => '', 'hostname' => 'localhost', 'username' => 'travis', 'password' => '', 'database' => 'test', 'DBDriver' => 'MySQLi', 'DBPrefix' => 'db_', 'pConnect' => false, 'DBDebug' => (ENVIRONMENT !== 'production'), 'cacheOn' => fals...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/app/Config/Paths.php
admin/starter/app/Config/Paths.php
<?php namespace Config; /** * Holds the paths that are used by the system to * locate the main directories, app, system, etc. * Modifying these allows you to re-structure your application, * share a system folder between multiple applications, and more. * * All paths are relative to the project's root folder. *...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/tests/session/ExampleSessionTest.php
admin/starter/tests/session/ExampleSessionTest.php
<?php class ExampleSessionTest extends \Tests\Support\SessionTestCase { public function setUp(): void { parent::setUp(); } public function testSessionSimple() { $this->session->set('logged_in', 123); $value = $this->session->get('logged_in'); $this->assertEquals(123, $value); } }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/tests/unit/HealthTest.php
admin/starter/tests/unit/HealthTest.php
<?php class HealthTest extends \CodeIgniter\Test\CIUnitTestCase { public function setUp(): void { parent::setUp(); } public function testIsDefinedAppPath() { $test = defined('APPPATH'); $this->assertTrue($test); } public function testBaseUrlHasBeenSet() { $env = $config = false; // First check in...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/tests/_support/SessionTestCase.php
admin/starter/tests/_support/SessionTestCase.php
<?php namespace Tests\Support; use CodeIgniter\Session\Handlers\ArrayHandler; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\Mock\MockSession; class SessionTestCase extends CIUnitTestCase { /** * @var SessionHandler */ protected $session; public function setUp(): void { parent::setUp(); $this...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/tests/_support/DatabaseTestCase.php
admin/starter/tests/_support/DatabaseTestCase.php
<?php namespace Tests\Support; class DatabaseTestCase extends \CodeIgniter\Test\CIDatabaseTestCase { /** * Should the database be refreshed before each test? * * @var boolean */ protected $refresh = true; /** * The seed file(s) used for all tests within this test case. * Should be fully-namespaced or r...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/tests/_support/Libraries/ConfigReader.php
admin/starter/tests/_support/Libraries/ConfigReader.php
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014-2019 British Columbia Institute of Technology * Copyright (c) 2019-2020 CodeIgniter Foundation * * Permission is hereby granted, free of charge...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/tests/_support/Database/Seeds/ExampleSeeder.php
admin/starter/tests/_support/Database/Seeds/ExampleSeeder.php
<?php namespace Tests\Support\Database\Seeds; use CodeIgniter\Database\Seeder; class ExampleSeeder extends Seeder { public function run() { $factories = [ [ 'name' => 'Test Factory', 'uid' => 'test001', 'class' => 'Factories\Tests\NewFactory', 'icon' => 'fas fa-puzzle-piece', 's...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
admin/starter/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
<?php namespace Tests\Support\Database\Migrations; use CodeIgniter\Database\Migration; class ExampleMigration extends Migration { protected $DBGroup = 'tests'; public function up() { $fields = [ 'name' => [ 'type' => 'varchar', 'constraint' => 31, ], 'uid' => [ 'type' ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/tests/_support/Models/ExampleModel.php
admin/starter/tests/_support/Models/ExampleModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class ExampleModel extends Model { protected $table = 'factories'; protected $primaryKey = 'id'; protected $returnType = 'object'; protected $useSoftDeletes = false; protected $allowedFields = [ 'name', 'uid', 'class', 'icon', 'sum...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/starter/tests/database/ExampleDatabaseTest.php
admin/starter/tests/database/ExampleDatabaseTest.php
<?php use Tests\Support\Models\ExampleModel; class ExampleDatabaseTest extends \Tests\Support\DatabaseTestCase { public function setUp(): void { parent::setUp(); // Extra code to run before each test } public function testModelFindAll() { $model = new ExampleModel(); // Get every row created by Exampl...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/module/tests/session/ExampleSessionTest.php
admin/module/tests/session/ExampleSessionTest.php
<?php class ExampleSessionTest extends \Tests\Support\SessionTestCase { public function setUp(): void { parent::setUp(); } public function testSessionSimple() { $this->session->set('logged_in', 123); $value = $this->session->get('logged_in'); $this->assertEquals(123, $value); } }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/module/tests/unit/ExampleTest.php
admin/module/tests/unit/ExampleTest.php
<?php class ExampleTest extends \CodeIgniter\Test\CIUnitTestCase { public function setUp(): void { parent::setUp(); } public function testIsDefinedAppPath() { $test = defined('APPPATH'); $this->assertTrue($test); } }
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/module/tests/_support/SessionTestCase.php
admin/module/tests/_support/SessionTestCase.php
<?php namespace Tests\Support; use CodeIgniter\Session\Handlers\ArrayHandler; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\Mock\MockSession; class SessionTestCase extends CIUnitTestCase { /** * @var SessionHandler */ protected $session; public function setUp(): void { parent::setUp(); $this...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/module/tests/_support/DatabaseTestCase.php
admin/module/tests/_support/DatabaseTestCase.php
<?php namespace Tests\Support; class DatabaseTestCase extends \CodeIgniter\Test\CIDatabaseTestCase { /** * Should the database be refreshed before each test? * * @var boolean */ protected $refresh = true; /** * The seed file(s) used for all tests within this test case. * Should be fully-namespaced or r...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/module/tests/_support/Libraries/ConfigReader.php
admin/module/tests/_support/Libraries/ConfigReader.php
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014-2019 British Columbia Institute of Technology * Copyright (c) 2019-2020 CodeIgniter Foundation * * Permission is hereby granted, free of charge...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/module/tests/_support/Database/Seeds/ExampleSeeder.php
admin/module/tests/_support/Database/Seeds/ExampleSeeder.php
<?php namespace Tests\Support\Database\Seeds; use CodeIgniter\Database\Seeder; class ExampleSeeder extends Seeder { public function run() { $factories = [ [ 'name' => 'Test Factory', 'uid' => 'test001', 'class' => 'Factories\Tests\NewFactory', 'icon' => 'fas fa-puzzle-piece', 's...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/module/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
admin/module/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
<?php namespace Tests\Support\Database\Migrations; use CodeIgniter\Database\Migration; class ExampleMigration extends Migration { protected $DBGroup = 'tests'; public function up() { $fields = [ 'name' => [ 'type' => 'varchar', 'constraint' => 31, ], 'uid' => [ 'type' ...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/module/tests/_support/Models/ExampleModel.php
admin/module/tests/_support/Models/ExampleModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class ExampleModel extends Model { protected $table = 'factories'; protected $primaryKey = 'id'; protected $returnType = 'object'; protected $useSoftDeletes = false; protected $allowedFields = [ 'name', 'uid', 'class', 'icon', 'sum...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/admin/module/tests/database/ExampleDatabaseTest.php
admin/module/tests/database/ExampleDatabaseTest.php
<?php use Tests\Support\Models\ExampleModel; class ExampleDatabaseTest extends \Tests\Support\DatabaseTestCase { public function setUp(): void { parent::setUp(); // Extra code to run before each test } public function testModelFindAll() { $model = new ExampleModel(); // Get every row created by Exampl...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
ParitoshVaidya/CodeIgniter-JWT-Sample
https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/public/index.php
public/index.php
<?php // Valid PHP Version? $minPHPVersion = '7.2'; if (phpversion() < $minPHPVersion) { die("Your PHP version must be {$minPHPVersion} or higher to run CodeIgniter. Current version: " . phpversion()); } unset($minPHPVersion); // Path to the front controller (this file) define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR...
php
MIT
30c05d0d710b6da07b05a45f7dbd68cde78ca8e1
2026-01-05T02:39:07.204597Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/footer.php
footer.php
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <div id="footer" class="cf"> <div class="social-wrapper"> <?php if ($this->options->socialgithub): ?> <a class="social github" target="blank" href="<?php $this->options->socialgithub(); ?>"> <i class="icon icon-github"></i> </a> <?php endif; ?> <?...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/page.php
page.php
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <?php $this->need('header.php'); ?> <div class="container"> <div class="wrapper main" role="main"> <article class="post" itemscope itemtype="http://schema.org/BlogPosting"> <div class="post-title no-meta" itemprop="name headline"><?php $...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/archive.php
archive.php
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; $this->need('header.php'); ?> <div class="container"> <h3 class="archive-title"><?php $this->archiveTitle(array( 'category' => _t('- %s -'), 'search' => _t('- %s -'), 'tag' => _t('- %s -')...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/comments.php
comments.php
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <?php function threadedComments($comments, $options) { $commentClass = ''; if ($comments->authorId) { if ($comments->authorId == $comments->ownerId) { $commentClass .= ' comment-by-author'; } else { $commentClass .= ' ...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/post.php
post.php
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <?php $this->need('header.php'); ?> <div class="container"> <div class="wrapper main" role="main"> <article class="post" itemscope itemtype="http://schema.org/BlogPosting"> <h1 class="post-title" itemprop="name...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/functions.php
functions.php
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; function themeConfig($form) { $slogan = new Typecho_Widget_Helper_Form_Element_Text('slogan', NULL, NULL, _t('logo旁边的标语'), _t('在这里输入标语')); $form->addInput($slogan); //图标设置 $favicon = new Typecho_Widget_Helper_Form_Element_Text('favicon', NULL, NULL, _t('Favicon'),...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/index.php
index.php
<?php /** * Lpisme是Typecho的一套主题模板,Lpisme这个主题的名字由来,Lp是我女朋友的名字的首个字母,没错我女朋友的名字只有两个字。So,很容易看出,Lp is me。一开始是打算起Lpismine,但太长了同时觉得还是要有点chinese的感觉,故Lpisme诞生,意味着女朋友是我的。 * * @package Lpisme Theme * @author Chakhsu Lau * @version 3.2.1 * @link https://www.linpx.com/ */ if (!defined('__TYPECHO_ROOT_DIR__')) exit; $this->ne...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/404.php
404.php
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link rel="shortcut icon" href="<?php $this->options->themeUrl('images/favicon.ico'); ?>"> <title>请求...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/header.php
header.php
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <!DOCTYPE html> <html> <head> <meta charset="<?php $this->options->charset(); ?>"> <?php if ($this->options->cdn_add): ?> <meta http-equiv="x-dns-prefetch-control" content="on"> <link rel="dns-prefetch" href="<?php $this->options->cdn_add(); ?>" /> <link rel="dns-pre...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
chakhsu/lpisme
https://github.com/chakhsu/lpisme/blob/b095ae4318715cf4dce5f08d918bedef77a6f7ad/page-archives.php
page-archives.php
<?php /** * Template Page of Archives * * @package custom */ if (!defined('__TYPECHO_ROOT_DIR__')) exit; $this->need('header.php'); ?> <div class="container"> <?php $this->widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archives); $year=0; $i=0; $j=0; $output = '<div class...
php
MIT
b095ae4318715cf4dce5f08d918bedef77a6f7ad
2026-01-05T02:39:46.117782Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tools/ecs/ecs.php
tools/ecs/ecs.php
<?php declare(strict_types=1); use PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer; use PhpCsFixer\Fixer\PhpUnit\PhpUnitStrictFixer; use Symplify\EasyCodingStandard\Config\ECSConfig; return static function (ECSConfig $ecsConfig): void { $ecsConfig->import(__DIR__ . '/vendor/brick/coding-standard/ecs.php...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/VarExporter.php
src/VarExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter; use Brick\VarExporter\Internal\GenericExporter; use function array_map; use function array_shift; use function count; use function implode; use function str_repeat; use const PHP_EOL; final class VarExporter { /** * Prepends the output with `ret...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/ExportException.php
src/ExportException.php
<?php declare(strict_types=1); namespace Brick\VarExporter; use Exception; use Throwable; use function implode; final class ExportException extends Exception { /** * @param string[] $path */ public function __construct(string $message, array $path, ?Throwable $previous = null) { if ($...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/GenericExporter.php
src/Internal/GenericExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal; use Brick\VarExporter\ExportException; use Brick\VarExporter\VarExporter; use ReflectionObject; use function array_keys; use function array_merge; use function array_unshift; use function count; use function gettype; use function implode; use func...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/ObjectExporter.php
src/Internal/ObjectExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal; use Brick\VarExporter\ExportException; use ReflectionClass; use ReflectionObject; use function array_merge; /** * An exporter that handles a specific type of object. * * @internal This class is for internal use, and not part of the public API....
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/ObjectExporter/ClosureExporter.php
src/Internal/ObjectExporter/ClosureExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal\ObjectExporter; use Brick\VarExporter\ExportException; use Brick\VarExporter\Internal\ObjectExporter; use Closure; use Override; use PhpParser\Error; use PhpParser\Node; use PhpParser\NodeTraverser; use PhpParser\NodeVisitor\FindingVisitor; use PhpP...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/ObjectExporter/EnumExporter.php
src/Internal/ObjectExporter/EnumExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal\ObjectExporter; use Brick\VarExporter\Internal\ObjectExporter; use Override; use ReflectionObject; use UnitEnum; use function assert; /** * Handles enums. * * @internal This class is for internal use, and not part of the public API. It may chan...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/ObjectExporter/StdClassExporter.php
src/Internal/ObjectExporter/StdClassExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal\ObjectExporter; use Brick\VarExporter\Internal\ObjectExporter; use Override; use ReflectionObject; use stdClass; /** * Handles stdClass objects. * * @internal This class is for internal use, and not part of the public API. It may change at any t...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/ObjectExporter/SerializeExporter.php
src/Internal/ObjectExporter/SerializeExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal\ObjectExporter; use Brick\VarExporter\Internal\ObjectExporter; use Override; use ReflectionObject; use function array_merge; /** * Handles instances of classes with __serialize() and __unserialize() methods. * * @internal This class is for inte...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/ObjectExporter/SetStateExporter.php
src/Internal/ObjectExporter/SetStateExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal\ObjectExporter; use Brick\VarExporter\ExportException; use Brick\VarExporter\Internal\ObjectExporter; use Override; use ReflectionClass; use ReflectionObject; use function array_key_exists; use function strrpos; use function substr; /** * Handles...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/ObjectExporter/AnyObjectExporter.php
src/Internal/ObjectExporter/AnyObjectExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal\ObjectExporter; use Brick\VarExporter\Internal\ObjectExporter; use Override; use ReflectionClass; use ReflectionObject; use ReflectionProperty; use function array_key_exists; use function array_merge; use function method_exists; use function preg_m...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/ObjectExporter/InternalClassExporter.php
src/Internal/ObjectExporter/InternalClassExporter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal\ObjectExporter; use Brick\VarExporter\ExportException; use Brick\VarExporter\Internal\ObjectExporter; use Override; use ReflectionObject; /** * Throws on internal classes. * * @internal This class is for internal use, and not part of the public ...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/src/Internal/ObjectExporter/ClosureExporter/PrettyPrinter.php
src/Internal/ObjectExporter/ClosureExporter/PrettyPrinter.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Internal\ObjectExporter\ClosureExporter; use Override; use PhpParser\PrettyPrinter\Standard; use function str_repeat; /** * Extends the standard pretty-printer to allow for a base indent level. * * @psalm-suppress PropertyNotSetInConstructor */ final c...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/AbstractTestCase.php
tests/AbstractTestCase.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests; use Brick\VarExporter\ExportException; use Brick\VarExporter\VarExporter; use Closure; use PHPUnit\Framework\TestCase; use ReflectionFunction; use function array_map; use function explode; use function implode; use function preg_quote; abstract clas...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/VarExporterTest.php
tests/VarExporterTest.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests; use ArrayIterator; use Brick\VarExporter\ExportException; use Brick\VarExporter\Tests\Classes\PublicPropertiesOnly; use Brick\VarExporter\Tests\Classes\SetState; use Brick\VarExporter\VarExporter; use DateTime; use DateTimeImmutable; use DateTimeZone;...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/ExportObjectTest.php
tests/ExportObjectTest.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests; use Brick\VarExporter\Tests\Classes\ConstructorAndNoProperties; use Brick\VarExporter\Tests\Classes\Enum; use Brick\VarExporter\Tests\Classes\Hierarchy; use Brick\VarExporter\Tests\Classes\NoProperties; use Brick\VarExporter\Tests\Classes\PrivateConst...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/ExportClosureTest.php
tests/ExportClosureTest.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests; use Brick\VarExporter\Tests\Classes\Enum; use Brick\VarExporter\Tests\Classes\NoProperties; use Brick\VarExporter\Tests\Classes\PublicPropertiesOnly; use Brick\VarExporter\Tests\Classes\SetState; use Brick\VarExporter\VarExporter; /** * The function...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/SerializeMagicMethodsWithConstructor.php
tests/Classes/SerializeMagicMethodsWithConstructor.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests\Classes; /** * __serialize() and __unserialize() magic methods, and constructor. */ class SerializeMagicMethodsWithConstructor extends SerializeMagicMethods { public function __construct(string $foo, int $bar) { $this->foo = $foo; ...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/ConstructorAndNoProperties.php
tests/Classes/ConstructorAndNoProperties.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests\Classes; /** * A constructor, but no properties. */ class ConstructorAndNoProperties { public function __construct() { } }
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/Enum.php
tests/Classes/Enum.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests\Classes; enum Enum { case TEST; }
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/ReadonlyPropertiesWithConstructor.php
tests/Classes/ReadonlyPropertiesWithConstructor.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests\Classes; class ReadonlyPropertiesWithConstructor { public function __construct( public readonly string $foo, private readonly string $bar, public string $baz, ) { } }
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/SetStateWithOverriddenPrivateProperties.php
tests/Classes/SetStateWithOverriddenPrivateProperties.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests\Classes; class SetStateWithOverriddenPrivateProperties extends SetState { private $baz; }
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/NoProperties.php
tests/Classes/NoProperties.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests\Classes; /** * No properties, and no constructor. */ class NoProperties { // Static property should not be returned in the output public static $staticProp = []; }
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/PublicPropertiesOnly.php
tests/Classes/PublicPropertiesOnly.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests\Classes; /** * Public properties only, and no constructor. */ class PublicPropertiesOnly { public $foo; public $bar; }
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/PrivateConstructor.php
tests/Classes/PrivateConstructor.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests\Classes; class PrivateConstructor extends PublicPropertiesOnly { private function __construct() { } public static function create() { return new self(); } }
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false
brick/varexporter
https://github.com/brick/varexporter/blob/c84d0b5c773936c5f646b060e8b178d0d015fbc5/tests/Classes/SetState.php
tests/Classes/SetState.php
<?php declare(strict_types=1); namespace Brick\VarExporter\Tests\Classes; use function array_key_exists; class SetState extends PublicAndPrivateProperties { public static function __set_state(array $array): self { $object = new self(); // note: these checks would usually not be necessary in...
php
MIT
c84d0b5c773936c5f646b060e8b178d0d015fbc5
2026-01-05T02:40:13.413890Z
false