Passed
Push — main ( d1a6b2...a01d04 )
by Axel
04:37
created

ZikulaLegalBundle::getMetaData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Zikula package.
7
 *
8
 * Copyright Zikula - https://ziku.la/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zikula\LegalBundle;
15
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
use Zikula\CoreBundle\Bundle\MetaData\BundleMetaDataInterface;
18
use Zikula\CoreBundle\Bundle\MetaData\MetaDataAwareBundleInterface;
19
use Zikula\LegalBundle\Bundle\MetaData\LegalBundleMetaData;
20
21
class ZikulaLegalBundle extends Bundle implements MetaDataAwareBundleInterface
22
{
23
    public function getMetaData(): BundleMetaDataInterface
24
    {
25
        return $this->container->get(LegalBundleMetaData::class);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->container-...lBundleMetaData::class) could return the type null which is incompatible with the type-hinted return Zikula\CoreBundle\Bundle...BundleMetaDataInterface. Consider adding an additional type-check to rule them out.
Loading history...
26
    }
27
}
28