@@ -57,7 +57,7 @@ |
||
| 57 | 57 | 'controller' => 'flow', |
| 58 | 58 | 'template' => '{view} {update} {unlink}', |
| 59 | 59 | 'buttons' => [ |
| 60 | - 'unlink' => function ($url, $_model) use ($model) { |
|
| 60 | + 'unlink' => function($url, $_model) use ($model) { |
|
| 61 | 61 | return Html::a('<span class="glyphicon glyphicon-remove"></span>', Url::to(['unlink', 'id' => $model->id, 'flowId' => $_model->id])); |
| 62 | 62 | }, |
| 63 | 63 | ], |
@@ -4,7 +4,6 @@ |
||
| 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. |
@@ -162,7 +162,7 @@ discard block |
||
| 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 |
||
| 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 | |