Module   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * ReportingCloud Laminas Module
6
 *
7
 * Laminas Module for ReportingCloud Web API. Authored and supported by Text Control GmbH.
8
 *
9
 * @link      https://www.reporting.cloud to learn more about ReportingCloud
10
 * @link      https://git.io/JexF4 for the canonical source repository
11
 * @license   https://git.io/JexFB
12
 * @copyright © 2022 Text Control GmbH
13
 */
14
15
namespace TxTextControl\ReportingCloud;
16
17
/**
18
 * Class Module
19
 *
20
 * @package TxTextControl\ReportingCloud
21
 * @author  Jonathan Maron (@JonathanMaron)
22
 */
23
class Module
24
{
25
    /**
26
     * Return the Laminas module configuration array
27
     *
28
     * @return array
29
     */
30 4
    public function getConfig(): array
31
    {
32 4
        $filename = dirname(__FILE__, 2) . '/config/module.config.php';
33
34 4
        $config = include $filename;
35 4
        assert(is_array($config));
36
37 4
        return $config;
38
    }
39
}
40