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

MSs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 2
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