AbstractCube::getMigrations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace WebComplete\core\cube;
4
5
use WebComplete\core\utils\container\ContainerInterface;
6
7
abstract class AbstractCube
8
{
9
    public $enabled = true;
10
    public $bootstrapAfterCubeClass = null;
11
12
    /**
13
     * @return array [sort => migration class]
14
     */
15
    public function getMigrations(): array
16
    {
17
        return [];
18
    }
19
20
    /**
21
     */
22
    public function bootstrap(ContainerInterface $container)
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    public function bootstrap(/** @scrutinizer ignore-unused */ ContainerInterface $container)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
    }
25
26
    /**
27
     * @param $definitions
28
     *
29
     * @return void
30
     */
31
    public function registerDependencies(array &$definitions)
0 ignored issues
show
Unused Code introduced by
The parameter $definitions is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

31
    public function registerDependencies(/** @scrutinizer ignore-unused */ array &$definitions)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
    {
33
    }
34
}
35