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