Major refactoring cleanup: - Add new controller architecture (class-controller-*.php) - Add new settings-v2 UI (views/settings-v2/) - Add new CSS architecture (agentic-sidebar.css, tokens) - Add esbuild build pipeline (scripts/build.js, package.json) - Add composer dependencies (vendor/) - Add frontend src directory (assets/js/src/index.jsx) - Add documentation files - Remove old/obsolete files (class-settings.php, old CSS) This commits all pending changes from previous refactoring efforts.
25 lines
678 B
PHP
25 lines
678 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->paths([
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/tests/unit'
|
|
]);
|
|
|
|
// register a single rule
|
|
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
|
$rectorConfig->rule(Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector::class);
|
|
$rectorConfig->importNames();
|
|
|
|
// define sets of rules
|
|
$rectorConfig->sets([
|
|
LevelSetList::UP_TO_PHP_81,
|
|
]);
|
|
};
|