@@ -23,7 +23,7 @@ |
||
| 23 | 23 | 'class' => 'yii\grid\ActionColumn', |
| 24 | 24 | 'template' => '{view} {update} {delete} {toggle}', |
| 25 | 25 | 'buttons' => [ |
| 26 | - 'toggle' => function ($url, $model) { |
|
| 26 | + 'toggle' => function($url, $model) { |
|
| 27 | 27 | return Html::a('<span class="glyphicon glyphicon-'.($model->enabled ? 'pause' : 'play').'"></span>', $url); |
| 28 | 28 | }, |
| 29 | 29 | ], |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | 'template' => '{link}', |
| 28 | 28 | 'header' => Yii::t('app', 'Link'), |
| 29 | 29 | 'buttons' => [ |
| 30 | - 'link' => function ($url, $_model) use ($model) { |
|
| 30 | + 'link' => function($url, $_model) use ($model) { |
|
| 31 | 31 | return Html::a('<span class="glyphicon glyphicon-plus"></span>', Url::to(['link', 'id' => $model->id, 'screenId' => $_model->id])); |
| 32 | 32 | }, |
| 33 | 33 | ], |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | 'controller' => 'screen', |
| 55 | 55 | 'template' => '{view} {update} {unlink}', |
| 56 | 56 | 'buttons' => [ |
| 57 | - 'unlink' => function ($url, $_model) use ($model) { |
|
| 57 | + 'unlink' => function($url, $_model) use ($model) { |
|
| 58 | 58 | return Html::a('<span class="glyphicon glyphicon-remove"></span>', Url::to(['unlink', 'id' => $model->id, 'screenId' => $_model->id])); |
| 59 | 59 | }, |
| 60 | 60 | ], |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | 'last_login_at', |
| 27 | 27 | [ |
| 28 | 28 | 'attribute' => 'role', |
| 29 | - 'value' => function ($model) { |
|
| 29 | + 'value' => function($model) { |
|
| 30 | 30 | return $model->role ? Yii::t('app', $model->role->name) : null; |
| 31 | 31 | }, |
| 32 | 32 | ], |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | ['class' => 'yii\grid\ActionColumn', |
| 35 | 35 | 'template' => '{view} {set-roles} {delete}', |
| 36 | 36 | 'buttons' => [ |
| 37 | - 'set-roles' => function ($url) { |
|
| 37 | + 'set-roles' => function($url) { |
|
| 38 | 38 | return Html::a('<span class="glyphicon glyphicon-cog"></span>', $url); |
| 39 | 39 | }, |
| 40 | 40 | ], |
@@ -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 | ], |
@@ -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 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | 'template' => '{toggle}', |
| 25 | 25 | 'header' => Yii::t('app', 'Enabled'), |
| 26 | 26 | 'buttons' => [ |
| 27 | - 'toggle' => function ($url, $model) { |
|
| 27 | + 'toggle' => function($url, $model) { |
|
| 28 | 28 | return Html::a('<span class="glyphicon glyphicon-'.($model->enabled ? 'pause' : 'play').'"></span>', $url); |
| 29 | 29 | }, |
| 30 | 30 | ], |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | 'class' => 'yii\grid\ActionColumn', |
| 24 | 24 | 'template' => '{view} {update} {delete} {toggle}', |
| 25 | 25 | 'buttons' => [ |
| 26 | - 'toggle' => function ($url, $model) { |
|
| 26 | + 'toggle' => function($url, $model) { |
|
| 27 | 27 | return Html::a('<span class="glyphicon glyphicon-'.($model->enabled ? 'pause' : 'play').'"></span>', $url); |
| 28 | 28 | }, |
| 29 | 29 | ], |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | 'template' => '{link}', |
| 28 | 28 | 'header' => Yii::t('app', 'Link'), |
| 29 | 29 | 'buttons' => [ |
| 30 | - 'link' => function ($url, $_model) use ($model) { |
|
| 30 | + 'link' => function($url, $_model) use ($model) { |
|
| 31 | 31 | return Html::a('<span class="glyphicon glyphicon-plus"></span>', Url::to(['link', 'id' => $model->id, 'flowId' => $_model->id])); |
| 32 | 32 | }, |
| 33 | 33 | ], |