| Conditions | 7 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 7 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 24 | 1 | public function layoutsAttribute(string $key): array | |
| 25 |     { | ||
| 26 | 1 | $value = $this->attribute($key); | |
| 27 | 1 |         if($value && is_array($value)) { | |
| 28 | 1 |             return array_values(array_filter(array_map(function ($item) { | |
| 29 | 1 | $layoutValue = new LayoutValue(!is_array($item) ? (array)$item : $item); | |
| 30 | 1 |                 if($layoutValue->layout && $layoutValue->key && is_array($layoutValue->attributes)) { | |
| 31 | 1 | return $layoutValue; | |
| 32 | } | ||
| 33 | |||
| 34 | 1 | return null; | |
| 35 | 1 | }, $value))); | |
| 36 | } | ||
| 37 | |||
| 38 | 1 | return []; | |
| 39 | } | ||
| 46 |