PHP code example of adamwojs / php-cs-fixer-phpdoc-force-fqcn
1. Go to this page and download the library: Download adamwojs/php-cs-fixer-phpdoc-force-fqcn library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
adamwojs / php-cs-fixer-phpdoc-force-fqcn example snippets
// PHP-CS-Fixer 2.x syntax
return PhpCsFixer\Config::create()
// (1) Register \AdamWojs\PhpCsFixerPhpdocForceFQCN\Fixer\Phpdoc\ForceFQCNFixer fixer
->registerCustomFixers([
new \AdamWojs\PhpCsFixerPhpdocForceFQCN\Fixer\Phpdoc\ForceFQCNFixer()
])
->setRules([
// ...
// (2) Enable AdamWojs/phpdoc_force_fqcn_fixer rule
'AdamWojs/phpdoc_force_fqcn_fixer' => true,
])
// ...
;