FfcmsInfoCollector   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getWidgets() 0 8 1
A collect() 0 5 1
1
<?php
2
3
namespace Ffcms\Core\Debug\Collectors;
4
5
use DebugBar\DataCollector\DataCollector;
6
use DebugBar\DataCollector\Renderable;
7
8
class FfcmsInfoCollector extends DataCollector implements Renderable
9
{
10
    /**
11
     * @return string
12
     */
13
    public function getName()
14
    {
15
        return 'ffcms';
16
    }
17
18
    /**
19
     * @return array
20
     */
21
    public function collect()
22
    {
23
        return [
24
            'version' => \Extend\Version::VERSION,
0 ignored issues
show
Bug introduced by
The type Extend\Version 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...
25
            'release_date' => \Extend\Version::DATE
26
        ];
27
    }
28
29
    /**
30
     * {@inheritDoc}
31
     */
32
    public function getWidgets()
33
    {
34
        return [
35
            "ffcms_version" => [
36
                "icon" => "shield",
37
                "tooltip" => "FFCMS Version",
38
                "map" => "ffcms.version",
39
                "default" => ""
40
            ]
41
        ];
42
    }
43
}
44