| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 26 | public function createGitCommitProcess(File $file): ChurnProcess |
||
| 27 | { |
||
| 28 | $process = new Process( |
||
| 29 | 'git -C ' . getcwd() . " log --since=\"" . $this->config->getCommitsSince() . "\" --name-only --pretty=format: " . $file->getFullPath(). " | sort | uniq -c | sort -nr" |
||
| 30 | ); |
||
| 31 | |||
| 32 | return new ChurnProcess($file, $process, 'GitCommitProcess'); |
||
| 33 | } |
||
| 34 | |||
| 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: