Completed
Push — master ( d57410...764919 )
by
unknown
11:04
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 1
    public function getContainerExtension()
14
    {
15 1
        if (null === $this->extension) {
16 1
            $this->extension = new MediaMonksRestApiExtension();
17
        }
18
19 1
        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