Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
44 | 29 | public static function getSynonyms($defaults = true) |
|
45 | { |
||
46 | // If we want the defaults, load it in to the array, otherwise return an empty array |
||
47 | 29 | $usuk = $defaults ? static::config()->get('usuk')['synonyms'] : []; |
|
48 | 29 | $synonyms = static::config()->get('synonyms') ?: []; |
|
49 | |||
50 | 29 | return array_merge($usuk, $synonyms); |
|
51 | } |
||
53 |