phpvms/rector.php
Nabeel Shahzad c82f877ac8
refactor(addons): remove deprecated tests, update service bindings, and improve addon handling
- Removed outdated AddonsTableTest and related assertions.
- Unified service namespaces: migrated support classes to `Support` and service classes to `Services`.
- Added `name` column to the `addons` table and updated related models, migrations, and seeders.
- Replaced `AddonBootService` references with `AddonRuntimeService` throughout tests and codebase.
- Updated Rector configuration and Mago schema, improving import handling and schema validation.
- Simplified addon discovery logic, enhancing boot cache performance.
- Removed unused methods and adjusted runtime behavior for stricter validation and consistency.
2026-06-07 16:54:20 -05:00

46 lines
1.6 KiB
PHP

<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector;
use RectorLaravel\Rector\Class_\AppendsPropertyToAppendsAttributeRector;
use RectorLaravel\Rector\Class_\FillablePropertyToFillableAttributeRector;
use RectorLaravel\Rector\Class_\GuardedPropertyToGuardedAttributeRector;
use RectorLaravel\Rector\Class_\HiddenPropertyToHiddenAttributeRector;
use RectorLaravel\Rector\Class_\TablePropertyToTableAttributeRector;
use RectorLaravel\Rector\Class_\TouchesPropertyToTouchesAttributeRector;
use RectorLaravel\Set\LaravelSetProvider;
return RectorConfig::configure()
->withPaths([
__DIR__.'/app',
__DIR__.'/bootstrap/app.php',
__DIR__.'/config',
__DIR__.'/routes',
__DIR__.'/resources',
__DIR__.'/tests',
])
->withSetProviders(LaravelSetProvider::class)
->withComposerBased(laravel: true)
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
earlyReturn: true,
)
->withPhpSets()
->withSkip([
RemoveUselessVarTagRector::class => [
__DIR__.'/app/Http/Resources/SimBriefResource.php',
],
FillablePropertyToFillableAttributeRector::class,
TablePropertyToTableAttributeRector::class,
GuardedPropertyToGuardedAttributeRector::class,
AppendsPropertyToAppendsAttributeRector::class,
TouchesPropertyToTouchesAttributeRector::class,
HiddenPropertyToHiddenAttributeRector::class,
])
->withImportNames(true, true);