| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 53 | private function checkDict(array $dict) | ||
| 54 |     { | ||
| 55 |         foreach ($dict as $score => $words) { | ||
| 56 |             if (is_numeric($score) === false) { | ||
| 57 |                 throw new BadDictException('Keys of dict array must be string representation of float number, ex.: 0.9, 1.0 etc'); | ||
| 58 | } | ||
| 59 |             foreach ($words as $word) { | ||
| 60 |                 if (is_string($word) === false) { | ||
| 61 |                     throw new BadDictException('Values in dict sub-array must be of type string'); | ||
| 62 | } | ||
| 66 | } |