Passed
Pull Request — master (#1700)
by Struan
04:10
created

MSs::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 7
c 0
b 0
f 0
nc 2
nop 0
dl 0
loc 9
rs 10
1
<?php
2
/**
3
 * MSs Class
4
 *
5
 * @package TheyWorkForYou
6
 */
7
8
namespace MySociety\TheyWorkForYou\People;
9
10
class MSs extends \MySociety\TheyWorkForYou\People {
11
12
    public $type = 'mss';
13
    public $house = HOUSE_TYPE_WALES;
14
    public $cons_type = 'WAC';
15
    public $reg_cons_type = 'WAE';
16
17
    public function __construct() {
18
        if (LANGUAGE == 'cy') {
0 ignored issues
show
introduced by
The condition MySociety\TheyWorkForYou\People\LANGUAGE == 'cy' is always false.
Loading history...
19
            $this->rep_name = 'AS';
20
            $this->rep_plural = 'ASau';
21
        } else {
22
            $this->rep_name = 'MS';
23
            $this->rep_plural = 'MSs';
24
        }
25
        parent::__construct();
26
    }
27
}
28
29