Completed
Push — master ( c8f0e6...4f85c2 )
by
unknown
04:01
created

MediaMonksSonataMediaBundle.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\SonataMediaBundle;
4
5
use MediaMonks\SonataMediaBundle\DependencyInjection\MediaMonksSonataMediaExtension;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
8
/**
9
 * @author Robert Slootjes <[email protected]>
10
 */
11
class MediaMonksSonataMediaBundle extends Bundle
12
{
13
    const BUNDLE_CONFIG_NAME = 'mediamonks_sonata_media';
14
15
    /**
16
     * @inheritdoc
17
     */
18
    public function getContainerExtension()
19
    {
20
        if (null === $this->extension) {
21
            $this->extension = new MediaMonksSonataMediaExtension();
22
        }
23
24
        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 24 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...
25
    }
26
}
27