‪TYPO3CMS  10.4
php-cs-fixer.php File Reference

Go to the source code of this file.

Variables

if(PHP_SAPI !=='cli') $finder
 

Variable Documentation

◆ $finder

if (PHP_SAPI !=='cli') $finder
Initial value:
= (new PhpCsFixer\Finder())
->exclude('vendor')
->exclude('typo3conf')
->exclude('typo3temp')
->exclude('typo3/sysext/core/Tests/Acceptance/Support/_generated')
->notName('install.php')
->notName('index.php')
->in(__DIR__ . '/../')

This file represents the configuration for Code Sniffing PSR-2-related automatic checks of coding guidelines Install @fabpot's great php-cs-fixer tool via

$ composer global require friendsofphp/php-cs-fixer

And then simply run

$ ./bin/php-cs-fixer fix –config ./Build/php-cs-fixer.php

inside the TYPO3 directory. Warning: This may take up to 10 minutes.

For more information read: https://www.php-fig.org/psr/psr-2/ https://cs.sensiolabs.org

Definition at line 36 of file php-cs-fixer.php.