Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public static function getAttributeStringForInheritedProperties(array $attributes): string |
||
29 | { |
||
30 | $attributes = array_filter($attributes, function ($key) { |
||
31 | return strpos($key, 'inherited_') === 0; |
||
32 | }, ARRAY_FILTER_USE_KEY); |
||
33 | |||
34 | $finalAttributes = []; |
||
35 | |||
36 | foreach ($attributes as $key => $value) { |
||
37 | $key = Str::kebab(Str::after($key, 'inherited_')); |
||
38 | |||
39 | $finalAttributes[$key] = $value; |
||
40 | } |
||
41 | |||
42 | return static::getAttributeString($finalAttributes); |
||
43 | } |
||
44 | } |