|
@@ -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.