| Conditions | 3 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function handleFinishedProcess(Process $process) |
||
| 32 | { |
||
| 33 | $this->check->storeProcessOutput($process); |
||
| 34 | |||
| 35 | try { |
||
| 36 | if (! $process->isSuccessful()) { |
||
| 37 | $this->handleFailedProcess($process); |
||
| 38 | |||
| 39 | return; |
||
| 40 | } |
||
| 41 | |||
| 42 | $this->handleSuccessfulProcess($process); |
||
| 43 | } catch (Exception $exception) { |
||
| 44 | $this->check->failed('Exception occurred: '.$exception->getMessage()); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 62 |
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: