PHP code example of gordinskiy / line-length-checker
1. Go to this page and download the library: Download gordinskiy/line-length-checker 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/ */
gordinskiy / line-length-checker example snippets
// ...
return (new PhpCsFixer\Config())
// ...
->registerCustomFixers([
new Gordinskiy\LineLengthChecker\Rules\LineLengthLimit()
])
;
// ...
return (new PhpCsFixer\Config())
// ...
->setRules([
'Gordinskiy/line_length_limit' => true,
])
;
// ...
return (new PhpCsFixer\Config())
// ...
->setRules([
'Gordinskiy/line_length_limit' => ['max_length' => 115],
])
;