updrade with rector
This commit is contained in:
.env.gitignore.php-cs-fixer.cache.php-cs-fixer.phpsymfony.lock
assets
app.jsbootstrap.jscontrollers.json
composer.jsoncomposer.lockcontrollers
images
24unix
js
app.js
components
Author.vueNotFound.vuePagesEdit.vueProjectsList.vueSidebar.vuefooter.vuehandleLogout.vueheader.vuelogin.vuenavbar.vuepages.vueprofile.vuequotes.vue
pages
router.jsstyles
config
bundles.php
packages
api_platform.yamlassets.yaml
dev
fos_ckeditor.yamlnelmio_cors.yamlprod
reset_password.yamlsecurity.yamltest
twig.yamlroutes
migrations
Version20210530154026.phpVersion20210530161844.phpVersion20210530162315.phpVersion20210601114523.phpVersion20210609175005.phpVersion20220412144008.phpVersion20220423085724.phpVersion20220424100610.phpVersion20220425082917.php
package.jsonpublic/uploads
rector.phpsrc
Controller
Admin
BlogCrudController.phpCommentCrudController.phpDashboardController.phpPagesCrudController.phpProjectsCrudController.phpQuotesCrudController.phpSectionCrudController.phpUserCrudController.php
BlogController.phpFrontendController.phpMainController.phpPagesController.phpProjectsController.phpRegistrationController.phpResetPasswordController.phpSecurityController.phpUserController.phpEntity
EntityListener
Form
Repository
BlogRepository.phpCommentRepository.phpPagesRepository.phpProjectsRepository.phpQuotesRepository.phpResetPasswordRequestRepository.phpSectionRepository.phpUserRepository.php
Security
templates
_aside.html.twig_footer.html.twig_header.html.twig
admin
base.html.twigblog
pages
projects
security
check_email.html.twigconfirmation_email.html.twigemail.html.twiglogin.html.twigregister.html.twigrequest.html.twigreset.html.twig
user
tools/php-cs-fixer
webpack.config.jsyarn.lock
21
rector.php
Normal file
21
rector.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?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(paths: [
|
||||
__DIR__ . '/src'
|
||||
]);
|
||||
|
||||
// register a single rule
|
||||
$rectorConfig->rule(rectorClass: InlineConstructorDefaultToPropertyRector::class);
|
||||
|
||||
// define sets of rules
|
||||
// $rectorConfig->sets([
|
||||
// LevelSetList::UP_TO_PHP_80
|
||||
// ]);
|
||||
};
|
Reference in New Issue
Block a user