| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php namespace Magestead\Installers; |
||
| 16 | public static function create(array $options, array $config, $projectPath, $output) |
||
| 17 | { |
||
| 18 | switch ($options['app']) { |
||
| 19 | case "magento": |
||
| 20 | return new MagentoProject($options, $config, $projectPath, $output); |
||
| 21 | break; |
||
|
|
|||
| 22 | case "magento2": |
||
| 23 | return new Magento2Project($options, $config, $projectPath, $output); |
||
| 24 | break; |
||
| 25 | } |
||
| 26 | } |
||
| 27 | } |
The break statement is not necessary if it is preceded for example by a return statement:
If you would like to keep this construct to be consistent with other case statements, you can safely mark this issue as a false-positive.