| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public static function materialDesignColor($name, $prefix = "") { |
||
| 45 | |||
| 46 | $colors = ColorHelper::getMaterialDesignColorPalette(); |
||
| 47 | |||
| 48 | $color = $colors[0]; |
||
| 49 | |||
| 50 | foreach ($colors as $current) { |
||
| 51 | if ($name !== $current->getName()) { |
||
| 52 | continue; |
||
| 53 | } |
||
| 54 | $color = $current; |
||
| 55 | } |
||
| 56 | |||
| 57 | return implode("", [$prefix, $color->getName()]); |
||
| 58 | } |
||
| 59 | } |
||
| 60 |