| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function Style(Application $app) { |
||
| 12 | $colors = $app['phpdraft.DraftDataRepository']->GetPositionColors(); |
||
| 13 | |||
| 14 | $minified_css = ''; |
||
| 15 | |||
| 16 | foreach ($colors as $position => $hex_color_key) { |
||
| 17 | $minified_css .= "div.pick$position{background-color:$hex_color_key;}"; |
||
| 18 | } |
||
| 19 | |||
| 20 | return new Response($minified_css, 200, array( |
||
| 21 | "Content-Type" => "text/css" |
||
| 22 | )); |
||
| 36 |