PackageModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 9

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 9
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Package;
6
7
use BEAR\Package\Provide\Error\VndErrorModule;
8
use BEAR\Package\Provide\Logger\PsrLoggerModule;
9
use BEAR\Package\Provide\Representation\CreatedResourceModule;
10
use BEAR\Package\Provide\Router\WebRouterModule;
11
use BEAR\QueryRepository\QueryRepositoryModule;
12
use BEAR\Streamer\StreamModule;
13
use BEAR\Sunday\Module\SundayModule;
14
use Ray\Compiler\DiCompileModule;
15
use Ray\Di\AbstractModule;
16
17
class PackageModule extends AbstractModule
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    protected function configure(): void
23
    {
24
        $this->install(new QueryRepositoryModule());
0 ignored issues
show
Documentation introduced by
new \BEAR\QueryRepository\QueryRepositoryModule() is of type object<BEAR\QueryReposit...\QueryRepositoryModule>, but the function expects a object<self>.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
25
        $this->install(new WebRouterModule());
0 ignored issues
show
Documentation introduced by
new \BEAR\Package\Provide\Router\WebRouterModule() is of type object<BEAR\Package\Prov...Router\WebRouterModule>, but the function expects a object<self>.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
26
        $this->install(new VndErrorModule());
0 ignored issues
show
Documentation introduced by
new \BEAR\Package\Provide\Error\VndErrorModule() is of type object<BEAR\Package\Provide\Error\VndErrorModule>, but the function expects a object<self>.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
27
        $this->install(new PsrLoggerModule());
0 ignored issues
show
Documentation introduced by
new \BEAR\Package\Provide\Logger\PsrLoggerModule() is of type object<BEAR\Package\Prov...Logger\PsrLoggerModule>, but the function expects a object<self>.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
28
        $this->install(new StreamModule());
0 ignored issues
show
Documentation introduced by
new \BEAR\Streamer\StreamModule() is of type object<BEAR\Streamer\StreamModule>, but the function expects a object<self>.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
29
        $this->install(new CreatedResourceModule());
0 ignored issues
show
Documentation introduced by
new \BEAR\Package\Provid...CreatedResourceModule() is of type object<BEAR\Package\Prov...\CreatedResourceModule>, but the function expects a object<self>.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
30
        $this->install(new DiCompileModule(false));
0 ignored issues
show
Documentation introduced by
new \Ray\Compiler\DiCompileModule(false) is of type object<Ray\Compiler\DiCompileModule>, but the function expects a object<self>.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
31
        $this->install(new SundayModule());
0 ignored issues
show
Documentation introduced by
new \BEAR\Sunday\Module\SundayModule() is of type object<BEAR\Sunday\Module\SundayModule>, but the function expects a object<self>.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
32
    }
33
}
34