| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 4 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 24 | 304 | public static function createFromArray(array $attributesKeyValue): array | |
| 25 |     { | ||
| 26 | 304 | $attributes = []; | |
| 27 | |||
| 28 | /** @var Closure|scalar|null $value */ | ||
| 29 | 304 |         foreach ($attributesKeyValue as $name => $value) { | |
| 30 | 304 |             if (is_int($name) && is_string($value)) { | |
| 31 | 34 | $attributes[] = self::create($value); | |
| 32 | 34 | continue; | |
| 33 | } | ||
| 34 | 301 | Assert::string($name); | |
| 35 | 301 | $attributes[] = self::create($name, $value); | |
| 36 | } | ||
| 37 | 303 | return $attributes; | |
| 38 | } | ||
| 56 |