| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 40 | public function createCyclomaticComplexityProcess(File $file): ChurnProcess |
||
| 41 | { |
||
| 42 | $rootFolder = __DIR__ . '/../../'; |
||
| 43 | |||
| 44 | $process = new Process( |
||
| 45 | "php {$rootFolder}CyclomaticComplexityAssessorRunner {$file->getFullPath()}" |
||
| 46 | ); |
||
| 47 | |||
| 48 | return new ChurnProcess($file, $process, 'CyclomaticComplexityProcess'); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: