Passed
Pull Request — master (#308)
by
unknown
03:41
created

getPageComponents()   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
/**
4
 * Defines components
5
 */
6
7
namespace Flynt\SetComponents;
8
9
use Flynt\Components;
0 ignored issues
show
Bug introduced by
The type Flynt\Components 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...
10
11
function getCoreComponents()
12
{
13
    return [
14
        Components\BlockCollapse\getACFLayout(),
0 ignored issues
show
Bug introduced by
The function getACFLayout was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

14
        /** @scrutinizer ignore-call */ 
15
        Components\BlockCollapse\getACFLayout(),
Loading history...
15
        Components\BlockImageText\getACFLayout(),
16
        Components\BlockImage\getACFLayout(),
17
        Components\BlockReusable\getACFLayout(),
18
        Components\BlockVideoOembed\getACFLayout(),
19
        Components\BlockWysiwyg\getACFLayout(),
20
        Components\GridImageText\getACFLayout(),
21
        Components\GridPostsLatest\getACFLayout(),
22
        Components\ListComponents\getACFLayout(),
23
        Components\SliderImages\getACFLayout(),
24
    ];
25
}
26
27
function getPageComponents()
28
{
29
    return getCoreComponents();
30
}
31
32
function getPostComponents()
33
{
34
    return [
35
        Components\BlockCollapse\getACFLayout(),
0 ignored issues
show
Bug introduced by
The function getACFLayout was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

35
        /** @scrutinizer ignore-call */ 
36
        Components\BlockCollapse\getACFLayout(),
Loading history...
36
        Components\BlockImage\getACFLayout(),
37
        Components\BlockImageText\getACFLayout(),
38
        Components\BlockVideoOembed\getACFLayout(),
39
        Components\BlockWysiwyg\getACFLayout(),
40
        Components\SliderImages\getACFLayout(),
41
    ];
42
}
43
44
function getReusableComponents()
45
{
46
    return getCoreComponents();
47
}
48