| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function getApplication() |
||
| 27 | { |
||
| 28 | $application = new Application('Doctrine Manager Builder Command Line Interface'); |
||
| 29 | $application->setCatchExceptions(true); |
||
| 30 | |||
| 31 | foreach ($this->builders as $builder) { |
||
| 32 | foreach ($builder->getConsoleCommands() as $command) { |
||
| 33 | $helperSet = $command->getHelperSet(); |
||
| 34 | |||
| 35 | $application->add($command)->setHelperSet($helperSet); |
||
|
|
|||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | return $application; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: