Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
50 | 3 | public function process() : ?string |
|
51 | { |
||
52 | 3 | $language = $this->_registry->get('language'); |
|
53 | |||
54 | /* process direction */ |
||
55 | |||
56 | 3 | foreach ($this->_directionArray as $direction => $valueArray) |
|
57 | { |
||
58 | 3 | if (in_array($language, $valueArray)) |
|
59 | { |
||
60 | 1 | return $direction; |
|
61 | } |
||
62 | } |
||
63 | 2 | return $this->_direction; |
|
64 | } |
||
65 | } |
||
66 |