Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 7 | public function __construct(string $string, array $correctedStringArray) |
|
14 | { |
||
15 | 7 | $this->sourceString = trim($string); |
|
16 | |||
17 | 7 | foreach ($correctedStringArray as $correctedString) { |
|
18 | 5 | if (empty(trim($correctedString))) { |
|
19 | continue; |
||
20 | } |
||
21 | |||
22 | 5 | $this->correctedStringArray[] = $correctedString; |
|
23 | } |
||
46 |