Completed
Push — master ( c90f48...d51382 )
by Robert
07:03 queued 51s
created

MediaMonksRestApiBundle.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace MediaMonks\RestApiBundle;
4
5
use MediaMonks\RestApiBundle\DependencyInjection\MediaMonksRestApiExtension;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
8
class MediaMonksRestApiBundle extends Bundle
9
{
10
    /**
11
     * @inheritdoc
12
     */
13 2
    public function getContainerExtension()
14
    {
15 2
        if (null === $this->extension) {
16 2
            $this->extension = new MediaMonksRestApiExtension();
17 2
        }
18
19 2
        return $this->extension;
0 ignored issues
show
Comprehensibility Best Practice introduced by
The expression $this->extension; of type Symfony\Component\Depend...xtensionInterface|false adds false to the return on line 19 which is incompatible with the return type declared by the interface Symfony\Component\HttpKe...::getContainerExtension of type Symfony\Component\Depend...ExtensionInterface|null. It seems like you forgot to handle an error condition.
Loading history...
20
    }
21
}
22