| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 18 | public function create()  | 
            ||
| 19 |     { | 
            ||
| 20 |         return array_map(function ($name) { | 
            ||
| 21 | $command = new GeneratorCommand($this->generator, $name);  | 
            ||
| 22 | |||
| 23 | $instanceName = 'generator.'.$name;  | 
            ||
| 24 | $this->app->instance($instanceName, $command);  | 
            ||
| 25 | |||
| 26 | return $instanceName;  | 
            ||
| 27 | }, array_keys($this->config));  | 
            ||
| 28 | }  | 
            ||
| 29 | }  | 
            ||
| 30 | 
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: