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 |
|---|---|---|---|---|---|---|---|---|
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Admin/User.php | app/System/Admin/User.php | <?php
namespace App\System\Admin;
use App\System\Models\SystemRole;
use App\System\Models\SystemUser;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Illuminate\Database\Eloquent\Builder;
use Psr\Http\Message\ServerRequestInterface;
#[Resource(app: 'admin', rout... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Admin/Auth.php | app/System/Admin/Auth.php | <?php
namespace App\System\Admin;
use App\System\Models\LogLogin;
use App\System\Models\SystemUser;
use donatj\UserAgent\UserAgentParser;
use Dux\App;
use Dux\Auth\AuthService;
use Dux\Handlers\ExceptionBusiness;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use Dux\Route\Attribute\Route;
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Admin/Role.php | app/System/Admin/Role.php | <?php
namespace App\System\Admin;
use App\System\Models\SystemRole;
use Dux\App;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use Dux\Validator\Data;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Serve... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Admin/Total.php | app/System/Admin/Total.php | <?php
namespace App\System\Admin;
use App\System\Service\Stats;
use App\System\Service\System;
use Dux\App;
use Dux\Handlers\ExceptionBusiness;
use Dux\Resources\Action\Resources;
use Dux\Resources\Attribute\Action;
use Dux\Resources\Attribute\Resource;
use GuzzleHttp\Client;
use Psr\Http\Message\ResponseInterface;
u... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Web/Manage.php | app/System/Web/Manage.php | <?php
namespace App\System\Web;
use Dux\App;
use Dux\Route\Attribute\Route;
use Dux\Route\Attribute\RouteGroup;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
#[RouteGroup(app: 'web', pattern: '/manage')]
class Manage
{
#[Route(methods: 'GET', pattern: '')]
public functi... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Middleware/VisitorMiddleware.php | app/System/Middleware/VisitorMiddleware.php | <?php
namespace App\System\Middleware;
use App\System\App;
use App\System\Models\LogApi;
use App\System\Service\Visitor;
use Dux\Handlers\ExceptionBusiness;
use Illuminate\Support\Facades\DB;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Serve... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Middleware/OperateMiddleware.php | app/System/Middleware/OperateMiddleware.php | <?php
namespace App\System\Middleware;
use App\System\App;
use App\System\Models\LogOperate;
use donatj\UserAgent\UserAgentParser;
use Dux\Handlers\ExceptionBusiness;
use Illuminate\Support\Str;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Se... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Middleware/ApiStatsMiddleware.php | app/System/Middleware/ApiStatsMiddleware.php | <?php
namespace App\System\Middleware;
use App\System\App;
use App\System\Models\LogApi;
use Illuminate\Support\Facades\DB;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Server\RequestHandlerInterface as RequestHandler;
use Slim\Routing\RouteC... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/LogApi.php | app/System/Models/LogApi.php | <?php
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class LogApi extends Model {
public $table = "log_api";
public function migration(Blueprint $table)
{
$table->id();
$table->string(... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/SystemRole.php | app/System/Models/SystemRole.php | <?php
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
use \Illuminate\Database\Eloquent\Relations\BelongsToMany;
#[AutoMigrate]
class SystemRole extends Model {
public $table = "system_role... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/SystemApi.php | app/System/Models/SystemApi.php | <?php
declare(strict_types=1);
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
#[AutoMigrate]
class SystemApi extends \Dux\Database\Model
{
public $table = 'system_api';
public function migration(\Illuminate\Database\Schema\Blueprint $table)
{
$table->id();
$table->char('name')->... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/LogVisitData.php | app/System/Models/LogVisitData.php | <?php
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class LogVisitData extends Model {
public $table = "log_visit_data";
public function migration(Blueprint $table)
{
$table->id();
$t... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/LogVisitUv.php | app/System/Models/LogVisitUv.php | <?php
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class LogVisitUv extends Model {
public $table = "log_visit_uv";
public function migration(Blueprint $table)
{
$table->id();
$table... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/Config.php | app/System/Models/Config.php | <?php
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class Config extends Model {
public $table = "config";
public function migration(Blueprint $table)
{
$table->string("name")->comment("配置名称"... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/LogVisit.php | app/System/Models/LogVisit.php | <?php
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class LogVisit extends Model {
public $table = "log_visit";
public function migration(Blueprint $table)
{
$table->id();
$table->str... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/LogLogin.php | app/System/Models/LogLogin.php | <?php
namespace App\System\Models;
use Dux\App;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Connection;
use \Illuminate\Database\Eloquent\Relations\BelongsToMany;
#[AutoMigrate]
class LogLogin extends Model {
public $table = "... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/LogOperate.php | app/System/Models/LogOperate.php | <?php
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class LogOperate extends Model {
public $table = "log_operate";
protected $casts = ['request_params' => 'array'];
public function migration(Bluepri... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/SystemUserRole.php | app/System/Models/SystemUserRole.php | <?php
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class SystemUserRole extends Model {
public $table = "system_user_role";
public $timestamps = false;
public fu... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/SystemUser.php | app/System/Models/SystemUser.php | <?php
declare(strict_types = 1);
namespace App\System\Models;
use Dux\App;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Connection;
use \Illuminate\Database\Eloquent\Relations\BelongsToMany;
#[AutoMigrate]
class SystemUser extends M... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Models/LogVisitSpider.php | app/System/Models/LogVisitSpider.php | <?php
namespace App\System\Models;
use Dux\Database\Attribute\AutoMigrate;
use Dux\Database\Model;
use Illuminate\Database\Schema\Blueprint;
#[AutoMigrate]
class LogVisitSpider extends Model {
public $table = "log_visit_spider";
public function migration(Blueprint $table)
{
$table->id();
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Service/Stats.php | app/System/Service/Stats.php | <?php
namespace App\System\Service;
class Stats
{
/**
* 环比计算
* @param $currentValue
* @param $previousValue
* @return float|int
*/
public static function calculateRate($currentValue, $previousValue): float|int
{
if (!$currentValue && !$previousValue) {
return 0... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Service/Config.php | app/System/Service/Config.php | <?php
namespace App\System\Service;
use Illuminate\Support\Str;
class Config
{
private static string $model = \App\System\Models\Config::class;
private static ?array $config = null;
public static function getJsonValue(string $name, mixed $default = null)
{
$value = self::getValue($name);
... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Service/System.php | app/System/Service/System.php | <?php
namespace App\System\Service;
class System
{
protected bool $isWin = false;
protected bool $isMac = false;
protected mixed $linCpuUsage = null;
protected mixed $linMemUsage = null;
public function __construct()
{
$this->isWin = $this->isWin();
$this->isMac = $this->isMa... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/app/System/Service/Visitor.php | app/System/Service/Visitor.php | <?php
namespace App\System\Service;
use App\System\Models\LogVisit;
use App\System\Models\LogVisitData;
use App\System\Models\LogVisitSpider;
use App\System\Models\LogVisitUv;
use donatj\UserAgent\UserAgentParser;
use Dux\App;
use Jaybizzle\CrawlerDetect\CrawlerDetect;
class Visitor
{
public static function incr... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/console/TestCommand.php | console/TestCommand.php | <?php
namespace console;
use Dux\App;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class TestCommand extends Command{
protected static $defaultName = 'test';
protected static $defaultDescription = 'Th... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
duxweb/duxcms | https://github.com/duxweb/duxcms/blob/9f9d4ba7ba1eda000c9d9740282c63fab8dab83f/public/index.php | public/index.php | <?php
$file = __DIR__ . '/../vendor/autoload.php';
if (!is_file($file)) {
exit('Please run "composer intall" to install the dependencies, Composer is not installed, please install <a href="https://getcomposer.org/" target="_blank">Composer</a>.');
}
require $file;
// 运行框架
$app = \Dux\App::create(dirname(__DIR__)... | php | MIT | 9f9d4ba7ba1eda000c9d9740282c63fab8dab83f | 2026-01-05T02:38:03.670873Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/crc32_benchmark.php | crc32_benchmark.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/src/CRCInterface.php | src/CRCInterface.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/src/Table.php | src/Table.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/src/CRC32.php | src/CRC32.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/src/PHPSlicedBy4.php | src/PHPSlicedBy4.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/src/CRCTrait.php | src/CRCTrait.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/src/Google.php | src/Google.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/src/Builtin.php | src/Builtin.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/src/PHP.php | src/PHP.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/tests/DataIterator.php | tests/DataIterator.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/tests/BuiltinTest.php | tests/BuiltinTest.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/tests/CRC32Test.php | tests/CRC32Test.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
google/php-crc32 | https://github.com/google/php-crc32/blob/efd8f5fb26d2d13443775954703736c0499db686/tests/GoogleTest.php | tests/GoogleTest.php | <?php
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | php | Apache-2.0 | efd8f5fb26d2d13443775954703736c0499db686 | 2026-01-05T02:40:16.891050Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/monorepo-builder.php | monorepo-builder.php | <?php
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\ComposerJsonManipulator\ValueObject\ComposerJsonSection;
use Symplify\MonorepoBuilder\ValueObject\Option;
return static function (ContainerConfigurator $containerConfigurator): void {
... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
$finder = PhpCsFixer\Finder::create()
->in('packages')
->exclude('var')
;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@PhpCsFixer' => true,
'array_syntax' => [
'syntax' => 'short'
],
'list_syntax' => [
'syntax' =>... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/sentry/src/Bundle/LongRunningSentryBundle.php | packages/sentry/src/Bundle/LongRunningSentryBundle.php | <?php
namespace LongRunning\Sentry\Bundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
final class LongRunningSentryBundle extends Bundle
{
}
| php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/sentry/src/Bundle/DependencyInjection/LongRunningSentryExtension.php | packages/sentry/src/Bundle/DependencyInjection/LongRunningSentryExtension.php | <?php
namespace LongRunning\Sentry\Bundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\Ht... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/sentry/src/Bundle/Resources/config/services.php | packages/sentry/src/Bundle/Resources/config/services.php | <?php
use LongRunning\Sentry\Cleaner\FlushSentryErrors;
use Psr\Log\LoggerInterface;
use Sentry\ClientInterface;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
return function (ContainerConfigurator $... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/sentry/src/Cleaner/FlushSentryErrors.php | packages/sentry/src/Cleaner/FlushSentryErrors.php | <?php
namespace LongRunning\Sentry\Cleaner;
use LongRunning\Core\Cleaner;
use Psr\Log\LoggerInterface;
use Sentry\ClientInterface;
final class FlushSentryErrors implements Cleaner
{
private ClientInterface $sentry;
private LoggerInterface $logger;
public function __construct(ClientInterface $sentry, Log... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/sentry/tests/Functional/TestKernel.php | packages/sentry/tests/Functional/TestKernel.php | <?php
namespace LongRunning\Sentry\Functional;
use LongRunning\Core\Bundle\LongRunningBundle;
use LongRunning\Sentry\Bundle\LongRunningSentryBundle;
use Sentry\SentryBundle\SentryBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Http... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/sentry/tests/Functional/LongRunningExtensionTest.php | packages/sentry/tests/Functional/LongRunningExtensionTest.php | <?php
namespace LongRunning\Sentry\Functional;
use LongRunning\Core\DelegatingCleaner;
use LongRunning\Sentry\Cleaner\FlushSentryErrors;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
final class LongRunningExtensionTest extends KernelTestCase
{
private DelegatingCleaner $cleaner;
protected functio... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/sentry/tests/Functional/config.php | packages/sentry/tests/Functional/config.php | <?php
use LongRunning\Core\DelegatingCleaner;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return function (ContainerConfigurator $container) {
$container->extension('framework', ['test' => null]);
$container->services()->alias('public_cleaner', DelegatingCleaner::clas... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/sentry/tests/Cleaner/FlushSentryErrorsTest.php | packages/sentry/tests/Cleaner/FlushSentryErrorsTest.php | <?php
namespace LongRunning\Sentry\Cleaner;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
use Sentry\ClientInterface;
final class FlushSentryErrorsTest extends TestCase
{
/**
* @test
*/
public function it_test_if_handlers_get_cleared(): void
{
$logger = $this->createMock(... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/src/Bundle/LongRunningDoctrineORMBundle.php | packages/doctrine-orm/src/Bundle/LongRunningDoctrineORMBundle.php | <?php
namespace LongRunning\DoctrineORM\Bundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
final class LongRunningDoctrineORMBundle extends Bundle
{
}
| php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/src/Bundle/DependencyInjection/LongRunningDoctrineORMExtension.php | packages/doctrine-orm/src/Bundle/DependencyInjection/LongRunningDoctrineORMExtension.php | <?php
namespace LongRunning\DoctrineORM\Bundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Compone... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/src/Bundle/Resources/config/services.php | packages/doctrine-orm/src/Bundle/Resources/config/services.php | <?php
use LongRunning\DoctrineORM\Cleaner\ClearEntityManagers;
use LongRunning\DoctrineORM\Cleaner\ResetClosedEntityManagers;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/src/Cleaner/ClearEntityManagers.php | packages/doctrine-orm/src/Cleaner/ClearEntityManagers.php | <?php
namespace LongRunning\DoctrineORM\Cleaner;
use Doctrine\Persistence\ManagerRegistry;
use LongRunning\Core\Cleaner;
use Psr\Log\LoggerInterface;
final class ClearEntityManagers implements Cleaner
{
private ManagerRegistry $managerRegistry;
private LoggerInterface $logger;
public function __construc... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/src/Cleaner/ResetClosedEntityManagers.php | packages/doctrine-orm/src/Cleaner/ResetClosedEntityManagers.php | <?php
namespace LongRunning\DoctrineORM\Cleaner;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\ManagerRegistry;
use LongRunning\Core\Cleaner;
use Psr\Log\LoggerInterface;
final class ResetClosedEntityManagers implements Cleaner
{
private ManagerRegistry $manage... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/tests/Functional/TestKernel.php | packages/doctrine-orm/tests/Functional/TestKernel.php | <?php
namespace LongRunning\DoctrineORM\Functional;
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use LongRunning\Core\Bundle\LongRunningBundle;
use LongRunning\DoctrineORM\Bundle\LongRunningDoctrineORMBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Component\Config\Loader\LoaderInterface... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/tests/Functional/LongRunningExtensionTest.php | packages/doctrine-orm/tests/Functional/LongRunningExtensionTest.php | <?php
namespace LongRunning\DoctrineORM\Functional;
use LongRunning\Core\DelegatingCleaner;
use LongRunning\DoctrineORM\Cleaner\ClearEntityManagers;
use LongRunning\DoctrineORM\Cleaner\ResetClosedEntityManagers;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
final class LongRunningExtensionTest extends Kern... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/tests/Functional/config.php | packages/doctrine-orm/tests/Functional/config.php | <?php
use LongRunning\Core\DelegatingCleaner;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return function (ContainerConfigurator $container) {
$container->extension('framework', ['test' => null, 'secret' => 'secret']);
$container->extension(
'doctrine',
... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/tests/Cleaner/ResetClosedEntityManagersTest.php | packages/doctrine-orm/tests/Cleaner/ResetClosedEntityManagersTest.php | <?php
namespace LongRunning\DoctrineORM\Cleaner;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\ManagerRegistry;
use Doctrine\Persistence\ObjectManager;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
final c... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/doctrine-orm/tests/Cleaner/ClearEntityManagersTest.php | packages/doctrine-orm/tests/Cleaner/ClearEntityManagersTest.php | <?php
namespace LongRunning\DoctrineORM\Cleaner;
use Doctrine\Persistence\ManagerRegistry;
use Doctrine\Persistence\ObjectManager;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
final class ClearEntityManagersTest extends TestCase
{
/**
* @test
... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/src/Cleaner.php | packages/core/src/Cleaner.php | <?php
namespace LongRunning\Core;
interface Cleaner
{
public function cleanUp(): void;
}
| php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/src/DelegatingCleaner.php | packages/core/src/DelegatingCleaner.php | <?php
namespace LongRunning\Core;
final class DelegatingCleaner implements Cleaner
{
/**
* @var iterable<Cleaner>
*/
private iterable $cleaners;
/**
* @param iterable<Cleaner> $cleaners
*/
public function __construct(iterable $cleaners)
{
$this->cleaners = $cleaners;
... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/src/Bundle/LongRunningBundle.php | packages/core/src/Bundle/LongRunningBundle.php | <?php
namespace LongRunning\Core\Bundle;
use LongRunning\Core\Cleaner;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
final class LongRunningBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
$container->regi... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/src/Bundle/DependencyInjection/LongRunningExtension.php | packages/core/src/Bundle/DependencyInjection/LongRunningExtension.php | <?php
namespace LongRunning\Core\Bundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
final class LongRunningExt... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/src/Bundle/Resources/config/services.php | packages/core/src/Bundle/Resources/config/services.php | <?php
use LongRunning\Core\Cleaner;
use LongRunning\Core\DelegatingCleaner;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use function Symfony\Component\DependencyInjection\Loader\Configurator\tagged_iterator;
return function (ContainerConfigurator $container) {
$container->... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/tests/DelegatingCleanerTest.php | packages/core/tests/DelegatingCleanerTest.php | <?php
namespace LongRunning\Core;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
final class DelegatingCleanerTest extends TestCase
{
/**
* @test
*/
public function it_tests_the_delecated_cleaners(): void
{
$cleaner = new DelegatingCleaner([
$th... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/tests/Functional/TestKernel.php | packages/core/tests/Functional/TestKernel.php | <?php
namespace LongRunning\Core\Functional;
use LongRunning\Core\Bundle\LongRunningBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
use Symfony\Component\HttpKernel\Kernel;
final class TestKernel... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/tests/Functional/LongRunningExtensionTest.php | packages/core/tests/Functional/LongRunningExtensionTest.php | <?php
namespace LongRunning\Core\Functional;
use LongRunning\Core\DelegatingCleaner;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
final class LongRunningExtensionTest extends KernelTestCase
{
private DelegatingCleaner $cleaner;
protected function setUp(): void
{
self::bootKernel();
... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/tests/Functional/config.php | packages/core/tests/Functional/config.php | <?php
use LongRunning\Core\DelegatingCleaner;
use LongRunning\Core\Functional\CleanerOne;
use LongRunning\Core\Functional\CleanerTwo;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return function (ContainerConfigurator $container) {
$container->extension('framework', ['test'... | php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/tests/Functional/CleanerTwo.php | packages/core/tests/Functional/CleanerTwo.php | <?php
declare(strict_types=1);
namespace LongRunning\Core\Functional;
use LongRunning\Core\Cleaner;
final class CleanerTwo implements Cleaner
{
public function cleanUp(): void
{
}
}
| php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
LongRunning/LongRunning | https://github.com/LongRunning/LongRunning/blob/0f2000a5160bb3e50881007030432e23dccaa652/packages/core/tests/Functional/CleanerOne.php | packages/core/tests/Functional/CleanerOne.php | <?php
declare(strict_types=1);
namespace LongRunning\Core\Functional;
use LongRunning\Core\Cleaner;
final class CleanerOne implements Cleaner
{
public function cleanUp(): void
{
}
}
| php | MIT | 0f2000a5160bb3e50881007030432e23dccaa652 | 2026-01-05T02:40:39.211174Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/.php-cs-fixer.php | .php-cs-fixer.php | <?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->files()
->in([
'src',
'tests'
])
->exclude([
'data'
]);
return (new Redaxo\PhpCsFixerConfig\Config())
->setFinder($finder)
;
| php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/ignore-by-php-version.neon.php | ignore-by-php-version.neon.php | <?php declare(strict_types = 1);
$includes = [];
if (PHP_VERSION_ID < 80000) {
$includes[] = __DIR__ . '/baseline-7.4.neon';
}
return [
'includes' => $includes,
'parameters' => [
'phpVersion' => PHP_VERSION_ID,
],
];
| php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/TodoByTicketRule.php | src/TodoByTicketRule.php | <?php
namespace staabm\PHPStanTodoBy;
use PhpParser\Node;
use PHPStan\Analyser\Scope;
use PHPStan\Node\CollectedDataNode;
use PHPStan\Rules\Rule;
use RuntimeException;
use staabm\PHPStanTodoBy\utils\ExpiredCommentErrorBuilder;
use staabm\PHPStanTodoBy\utils\ticket\TicketRuleConfiguration;
use function array_key_exis... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/TodoByIssueUrlRule.php | src/TodoByIssueUrlRule.php | <?php
namespace staabm\PHPStanTodoBy;
use PhpParser\Node;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\Rule;
use staabm\PHPStanTodoBy\utils\CommentMatcher;
use staabm\PHPStanTodoBy\utils\ExpiredCommentErrorBuilder;
use staabm\PHPStanTodoBy\utils\ticket\GitHubTicketStatusFetcher;
use function array_key_exists;
use f... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/TodoByDateRule.php | src/TodoByDateRule.php | <?php
namespace staabm\PHPStanTodoBy;
use PhpParser\Node;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\Rule;
use RuntimeException;
use staabm\PHPStanTodoBy\utils\CommentMatcher;
use staabm\PHPStanTodoBy\utils\ExpiredCommentErrorBuilder;
use function strtotime;
use function trim;
/**
* @implements Rule<Node>
*/
f... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/TodoByTicketCollector.php | src/TodoByTicketCollector.php | <?php
namespace staabm\PHPStanTodoBy;
use PhpParser\Node;
use PHPStan\Analyser\Scope;
use PHPStan\Collectors\Collector;
use staabm\PHPStanTodoBy\utils\CommentMatcher;
use staabm\PHPStanTodoBy\utils\ticket\TicketRuleConfiguration;
use function trim;
/**
* @implements Collector<Node, list<array{string, int, string, ... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/TodoByPackageVersionRule.php | src/TodoByPackageVersionRule.php | <?php
namespace staabm\PHPStanTodoBy;
use Composer\Semver\VersionParser;
use OutOfBoundsException;
use PhpParser\Comment;
use PhpParser\Node;
use PHPStan\Analyser\Scope;
use PHPStan\Internal\ComposerHelper;
use PHPStan\Rules\IdentifierRuleError;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleError;
use staabm\PHPStanT... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/TodoBySymfonyDeprecationRule.php | src/TodoBySymfonyDeprecationRule.php | <?php
namespace staabm\PHPStanTodoBy;
use Composer\InstalledVersions;
use Composer\Semver\VersionParser;
use PhpParser\Node;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\IdentifierRuleError;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleError;
use PHPStan\Rules\RuleErrorBuilder;
use staabm\PHPStanTodoBy\utils\Expire... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/TodoByVersionRule.php | src/TodoByVersionRule.php | <?php
namespace staabm\PHPStanTodoBy;
use Composer\Semver\VersionParser;
use PhpParser\Node;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleErrorBuilder;
use staabm\PHPStanTodoBy\utils\CommentMatcher;
use staabm\PHPStanTodoBy\utils\ExpiredCommentErrorBuilder;
use staabm\PHPStanTodoBy\utils\... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/ExpiredCommentErrorBuilder.php | src/utils/ExpiredCommentErrorBuilder.php | <?php
namespace staabm\PHPStanTodoBy\utils;
use PhpParser\Comment;
use PHPStan\Rules\RuleErrorBuilder;
final class ExpiredCommentErrorBuilder
{
public const ERROR_IDENTIFIER_PREFIX = 'todoBy.';
private bool $nonIgnorable;
public function __construct(bool $nonIgnorable)
{
$this->nonIgnorable... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/CommentMatcher.php | src/utils/CommentMatcher.php | <?php
namespace staabm\PHPStanTodoBy\utils;
use PhpParser\Comment;
use PhpParser\Node;
use PHPStan\Node\VirtualNode;
use RuntimeException;
use function count;
final class CommentMatcher
{
/**
* @return iterable<Comment, array<mixed>>
*/
public static function matchComments(Node $node, string $patt... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/HttpClient.php | src/utils/HttpClient.php | <?php
namespace staabm\PHPStanTodoBy\utils;
use CurlShareHandle;
use CurlSharePersistentHandle;
use RuntimeException;
use function function_exists;
use function is_string;
final class HttpClient
{
/**
* @var CurlShareHandle|CurlSharePersistentHandle|resource|null
*/
private $shareHandle;
/**
... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/ReferenceVersionFinder.php | src/utils/ReferenceVersionFinder.php | <?php
namespace staabm\PHPStanTodoBy\utils;
use RuntimeException;
use Version\Exception\InvalidVersionString;
use Version\Version;
use function count;
use function in_array;
final class ReferenceVersionFinder
{
private const PRE_RELEASE_CHUNK_COUNT = 2;
private TagFetcher $fetcher;
private string $refe... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/LatestTagNotFoundException.php | src/utils/LatestTagNotFoundException.php | <?php
namespace staabm\PHPStanTodoBy\utils;
use RuntimeException;
final class LatestTagNotFoundException extends RuntimeException
{
}
| php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/GitTagFetcher.php | src/utils/GitTagFetcher.php | <?php
namespace staabm\PHPStanTodoBy\utils;
use function count;
final class GitTagFetcher implements TagFetcher
{
// fetch version of the latest created git tag
public function fetchLatestTagVersion(?string $workingDirectory): string
{
// requires tags have been fetched into the local clone
... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/TagFetcher.php | src/utils/TagFetcher.php | <?php
namespace staabm\PHPStanTodoBy\utils;
interface TagFetcher
{
public function fetchLatestTagVersion(?string $workingDirectory): ?string;
}
| php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/CredentialsHelper.php | src/utils/CredentialsHelper.php | <?php
namespace staabm\PHPStanTodoBy\utils;
use RuntimeException;
final class CredentialsHelper
{
public static function getCredentials(?string $credentials, ?string $credentialsFilePath): ?string
{
if (null !== $credentials) {
return trim($credentials);
}
if (null === $c... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/ticket/YouTrackTicketStatusFetcher.php | src/utils/ticket/YouTrackTicketStatusFetcher.php | <?php
namespace staabm\PHPStanTodoBy\utils\ticket;
use RuntimeException;
use staabm\PHPStanTodoBy\utils\CredentialsHelper;
use staabm\PHPStanTodoBy\utils\HttpClient;
use function array_key_exists;
use function is_array;
final class YouTrackTicketStatusFetcher implements TicketStatusFetcher
{
private string $hos... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/ticket/TicketRuleConfiguration.php | src/utils/ticket/TicketRuleConfiguration.php | <?php
namespace staabm\PHPStanTodoBy\utils\ticket;
final class TicketRuleConfiguration
{
/** @var non-empty-string */
private string $keyPattern;
/** @var list<string> */
private array $resolvedStatuses;
/** @var list<string> */
private array $keyPrefixes;
private TicketStatusFetcher $fetc... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/ticket/GitHubTicketStatusFetcher.php | src/utils/ticket/GitHubTicketStatusFetcher.php | <?php
namespace staabm\PHPStanTodoBy\utils\ticket;
use RuntimeException;
use staabm\PHPStanTodoBy\utils\CredentialsHelper;
use staabm\PHPStanTodoBy\utils\HttpClient;
use function array_key_exists;
use function is_array;
use function is_string;
final class GitHubTicketStatusFetcher implements TicketStatusFetcher
{
... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/ticket/TicketStatusFetcher.php | src/utils/ticket/TicketStatusFetcher.php | <?php
namespace staabm\PHPStanTodoBy\utils\ticket;
/** @internal */
interface TicketStatusFetcher
{
/**
* @param non-empty-list<non-empty-string> $ticketKeys
*
* @return array<non-empty-string, null|string> Map using the ticket-key as key and Status name or null if ticket doesn't exist as value
... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/ticket/JiraTicketStatusFetcher.php | src/utils/ticket/JiraTicketStatusFetcher.php | <?php
namespace staabm\PHPStanTodoBy\utils\ticket;
use RuntimeException;
use staabm\PHPStanTodoBy\utils\CredentialsHelper;
use staabm\PHPStanTodoBy\utils\HttpClient;
use function array_key_exists;
use function is_array;
use function is_string;
final class JiraTicketStatusFetcher implements TicketStatusFetcher
{
... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/src/utils/ticket/TicketRuleConfigurationFactory.php | src/utils/ticket/TicketRuleConfigurationFactory.php | <?php
namespace staabm\PHPStanTodoBy\utils\ticket;
use PHPStan\DependencyInjection\Container;
use RuntimeException;
final class TicketRuleConfigurationFactory
{
private Container $container;
public function __construct(Container $container)
{
$this->container = $container;
}
public func... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/tests/TodoBySymfonyDeprecationTest.php | tests/TodoBySymfonyDeprecationTest.php | <?php
namespace staabm\PHPStanTodoBy\Tests;
use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;
use staabm\PHPStanTodoBy\TodoBySymfonyDeprecationRule;
use function dirname;
/**
* @extends RuleTestCase<TodoBySymfonyDeprecationRule>
* @internal
*/
final class TodoBySymfonyDeprecationTest extends RuleTestCase... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/tests/TodoByVersionRuleTest.php | tests/TodoByVersionRuleTest.php | <?php
namespace staabm\PHPStanTodoBy\Tests;
use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;
use staabm\PHPStanTodoBy\TodoByVersionRule;
use staabm\PHPStanTodoBy\utils\ExpiredCommentErrorBuilder;
use staabm\PHPStanTodoBy\utils\GitTagFetcher;
use staabm\PHPStanTodoBy\utils\ReferenceVersionFinder;
/**
* @ext... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/tests/ReferenceVersionFinderTest.php | tests/ReferenceVersionFinderTest.php | <?php
namespace staabm\PHPStanTodoBy\Tests;
use PHPUnit\Framework\TestCase;
use staabm\PHPStanTodoBy\utils\ReferenceVersionFinder;
/**
* @internal
*/
final class ReferenceVersionFinderTest extends TestCase
{
/**
* @dataProvider provideData
*/
public function testReferenceFinder(string $refernceVe... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/tests/TodoByTicketRuleTest.php | tests/TodoByTicketRuleTest.php | <?php
namespace staabm\PHPStanTodoBy\Tests;
use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;
use staabm\PHPStanTodoBy\TodoByTicketCollector;
use staabm\PHPStanTodoBy\TodoByTicketRule;
use staabm\PHPStanTodoBy\utils\ExpiredCommentErrorBuilder;
use staabm\PHPStanTodoBy\utils\ticket\TicketRuleConfiguration;
/*... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/tests/TodoByIssueUrlRuleTest.php | tests/TodoByIssueUrlRuleTest.php | <?php
namespace staabm\PHPStanTodoBy\Tests;
use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;
use staabm\PHPStanTodoBy\TodoByIssueUrlRule;
use staabm\PHPStanTodoBy\utils\ExpiredCommentErrorBuilder;
use staabm\PHPStanTodoBy\utils\ticket\GitHubTicketStatusFetcher;
/**
* @extends RuleTestCase<TodoByIssueUrlRul... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/tests/CredentialsHelperTest.php | tests/CredentialsHelperTest.php | <?php
namespace staabm\PHPStanTodoBy\Tests;
use PHPUnit\Framework\TestCase;
use staabm\PHPStanTodoBy\utils\CredentialsHelper;
/**
* @internal
*/
final class CredentialsHelperTest extends TestCase
{
public function testReturnsNullIfNeitherCredentialsNorFilePathConfigured(): void
{
static::assertNull... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
staabm/phpstan-todo-by | https://github.com/staabm/phpstan-todo-by/blob/733a1aff0e573047d89baa1715e6b0495305e249/tests/TodoByVersionRuleAlwaysThrowingFetchterTest.php | tests/TodoByVersionRuleAlwaysThrowingFetchterTest.php | <?php
namespace staabm\PHPStanTodoBy\Tests;
use Exception;
use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;
use RuntimeException;
use staabm\PHPStanTodoBy\TodoByVersionRule;
use staabm\PHPStanTodoBy\utils\ExpiredCommentErrorBuilder;
use staabm\PHPStanTodoBy\utils\LatestTagNotFoundException;
use staabm\PHPSta... | php | MIT | 733a1aff0e573047d89baa1715e6b0495305e249 | 2026-01-05T02:40:56.377106Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.