Completed
Push — master ( 3a0c9c...9f512c )
by Jeff
08:43
created
models/types/Agenda.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Yii;
6 6
 use app\models\Content;
7
-use yii\helpers\Url;
8 7
 
9 8
 /**
10 9
  * This is the model class for Weather content type.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
         foreach ($agenda['events'] as $day => $events) {
164 164
             // Sort by desc first line
165
-            usort($events, function ($a, $b) {
165
+            usort($events, function($a, $b) {
166 166
                 return strcmp($a['desc'][0], $b['desc'][0]);
167 167
             });
168 168
 
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
                     'right' => ((1 - ($e['position'] + 1) / $e['overlaps']) * 100).'%',
391 391
                     'background-color' => $this->getColor($e['desc'][0]),
392 392
                 ];
393
-                $styleStr = implode('; ', array_map(function ($k, $v) {
393
+                $styleStr = implode('; ', array_map(function($k, $v) {
394 394
                     return $k.':'.$v;
395 395
                 }, array_keys($style), $style));
396 396
 
Please login to merge, or discard this patch.