Test Setup Failed
Pull Request — master (#491)
by Andrew
05:52
created
src/Application/Bundle/DefaultBundle/Controller/AdminController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
                     $result['text'] = $result['cnt'].' ('.$result['percent'].' %)';
518 518
 
519 519
                     $green = $maxGreen - round($deltaGreen * $result['percent'] / 100);
520
-                    $otherColor = (int) round($green/($maxGreen / $green));
520
+                    $otherColor = (int) round($green / ($maxGreen / $green));
521 521
                     $otherColor = dechex($otherColor);
522 522
                     $result['color'] = '#'.$otherColor.dechex((int) $green).$otherColor;
523 523
                 } else {
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
             'Content-Disposition' => sprintf('attachment; filename="%s"', $filename),
554 554
             'Content-Type' => 'text/csv',
555 555
         ];
556
-        $callback = function () use ($users) {
556
+        $callback = function() use ($users) {
557 557
             $usersFile = \fopen('php://output', 'w');
558 558
             foreach ($users as $fields) {
559 559
                 \fputcsv($usersFile, $fields);
Please login to merge, or discard this patch.