| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Modules\Core\Console\Installers; |
||
| 43 | public function install(Command $command) |
||
| 44 | { |
||
| 45 | foreach ($this->scripts as $script) { |
||
| 46 | try { |
||
| 47 | $this->app->make($script)->fire($command); |
||
| 48 | } catch (\Exception $e) { |
||
| 49 | $command->error($e->getMessage()); |
||
| 50 | |||
| 51 | return false; |
||
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 55 | return true; |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
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: