PHP code example of stejac / code-thresholds
1. Go to this page and download the library: Download stejac/code-thresholds 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/ */
stejac / code-thresholds example snippets
return [
'source_dirs' => ['src', 'lib'],
'exclude' => ['src/Generated/*'],
'limits' => ['parameters' => 5, 'function_length' => null], // null switches a rule off
'rules' => ['loop_counter_reassigned' => false],
];