RundeckConfig::getDefaults()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
crap 1
1
<?php
2
3
namespace G2R\Config;
4
5
class RundeckConfig extends AbstractConfig
6
{
7
    /**
8
     * The default config values.
9
     *
10
     * @return array
11
     */
12 8
    protected function getDefaults()
13
    {
14
        return [
15 8
            'port'        => 4440,
16
            'ssl'         => false,
17
            'api_version' => 13,
18
            'log_level'   => 'WARN',
19
        ];
20
    }
21
22
    /**
23
     * Set the required fields.
24
     *
25
     * @return array
26
     */
27 8
    protected function getRequirements()
28
    {
29
        return [
30 8
            'host',
31
            'token',
32
        ];
33
    }
34
}
35