Passed
Push — master ( 80df18...80df18 )
by Dāvis
04:16
created

Lexik::getRequirements()   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
namespace Sludio\HelperBundle\DependencyInjection\Requirement;
4
5
use Lexik\Bundle\TranslationBundle\LexikTranslationBundle;
0 ignored issues
show
Bug introduced by
The type Lexik\Bundle\Translation...\LexikTranslationBundle was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Sonata\AdminBundle\SonataAdminBundle;
0 ignored issues
show
Bug introduced by
The type Sonata\AdminBundle\SonataAdminBundle was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle;
0 ignored issues
show
Bug introduced by
The type Sonata\DoctrineORMAdminB...aDoctrineORMAdminBundle was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
9
10
class Lexik extends AbstractRequirement
11
{
12
    protected $requirements = [
13
        LexikTranslationBundle::class => 'lexik/translation-bundle',
14
        SonataAdminBundle::class => 'sonata-project/admin-bundle',
15
        SonataDoctrineORMAdminBundle::class => 'sonata-project/doctrine-orm-admin-bundle',
16
    ];
17
    
18
    public function getRequirements()
19
    {
20
        return $this->requirements;
21
    }
22
}
23