| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 58 | 
| Code Lines | 48 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php | ||
| 44 | public function configure(): void | ||
| 45 |     { | ||
| 46 |         $this->setName('inspector:daemon') | ||
| 47 |             ->setDescription('periodically get running function name from an outer process or thread') | ||
| 48 | ->addOption( | ||
| 49 | 'target-regex', | ||
| 50 | 'P', | ||
| 51 | InputOption::VALUE_OPTIONAL, | ||
| 52 | 'regex to find the php binary loaded in the target process' | ||
| 53 | ) | ||
| 54 |             ->addOption('depth', 'd', InputOption::VALUE_OPTIONAL, 'max depth') | ||
| 55 | ->addOption( | ||
| 56 | 'sleep-ns', | ||
| 57 | 's', | ||
| 58 | InputOption::VALUE_OPTIONAL, | ||
| 59 | 'nanoseconds between traces (default: 1000 * 1000 * 10)' | ||
| 60 | ) | ||
| 61 | ->addOption( | ||
| 62 | 'max-retries', | ||
| 63 | 'r', | ||
| 64 | InputOption::VALUE_OPTIONAL, | ||
| 65 | 'max retries on contiguous errors of read (default: 10)' | ||
| 66 | ) | ||
| 67 | ->addOption( | ||
| 68 | 'threads', | ||
| 69 | 'T', | ||
| 70 | InputOption::VALUE_OPTIONAL, | ||
| 71 | 'number of workers (default: 8)' | ||
| 72 | ) | ||
| 73 | ->addOption( | ||
| 74 | 'php-regex', | ||
| 75 | null, | ||
| 76 | InputOption::VALUE_OPTIONAL, | ||
| 77 | 'regex to find the php binary loaded in the target process' | ||
| 78 | ) | ||
| 79 | ->addOption( | ||
| 80 | 'libpthread-regex', | ||
| 81 | null, | ||
| 82 | InputOption::VALUE_OPTIONAL, | ||
| 83 | 'regex to find the libpthread.so loaded in the target process' | ||
| 84 | ) | ||
| 85 | ->addOption( | ||
| 86 | 'php-version', | ||
| 87 | null, | ||
| 88 | InputOption::VALUE_OPTIONAL, | ||
| 89 | 'php version of the target' | ||
| 90 | ) | ||
| 91 | ->addOption( | ||
| 92 | 'php-path', | ||
| 93 | null, | ||
| 94 | InputOption::VALUE_OPTIONAL, | ||
| 95 | 'path to the php binary (only needed in tracing chrooted ZTS target)' | ||
| 96 | ) | ||
| 97 | ->addOption( | ||
| 98 | 'libpthread-path', | ||
| 99 | null, | ||
| 100 | InputOption::VALUE_OPTIONAL, | ||
| 101 | 'path to the libpthread.so (only needed in tracing chrooted ZTS target)' | ||
| 102 | ) | ||
| 181 | 
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths