Failed Conditions
Push — psr2 ( 8eb28c...c68e26 )
by Andreas
28s queued 20s
created

SettingSepchar::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 2
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace dokuwiki\plugin\config\core\Setting;
4
5
/**
6
 * Class setting_sepchar
7
 */
8
class SettingSepchar extends SettingMultichoice {
9
10
    /** @inheritdoc */
11
    public function __construct($key, $param = null) {
12
        $str = '_-.';
13
        for($i = 0; $i < strlen($str); $i++) $this->choices[] = $str{$i};
14
15
        // call foundation class constructor
16
        parent::__construct($key, $param);
17
    }
18
}
19