@@ -27,7 +27,7 @@ |
||
| 27 | 27 | 'template' => '{link}', |
| 28 | 28 | 'header' => Yii::t('app', 'Link'), |
| 29 | 29 | 'buttons' => [ |
| 30 | - 'link' => function ($url, $_model, $key) use ($model) { |
|
| 30 | + 'link' => function($url, $_model, $key) 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, $key) use ($model) { |
|
| 57 | + 'unlink' => function($url, $_model, $key) 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 | ], |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | 'controller' => 'content', |
| 66 | 66 | 'template' => '{view} {update} {delete} {toggle}', |
| 67 | 67 | 'buttons' => [ |
| 68 | - 'toggle' => function ($url, $model, $key) { |
|
| 68 | + 'toggle' => function($url, $model, $key) { |
|
| 69 | 69 | return Html::a('<span class="glyphicon glyphicon-'.($model->enabled ? 'pause' : 'play').'"></span>', $url); |
| 70 | 70 | }, |
| 71 | 71 | ], |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | 'controller' => 'content', |
| 66 | 66 | 'template' => '{view} {update} {delete} {toggle}', |
| 67 | 67 | 'buttons' => [ |
| 68 | - 'toggle' => function ($url, $model, $key) { |
|
| 68 | + 'toggle' => function($url, $model, $key) { |
|
| 69 | 69 | return Html::a('<span class="glyphicon glyphicon-'.($model->enabled ? 'pause' : 'play').'"></span>', $url); |
| 70 | 70 | }, |
| 71 | 71 | ], |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | 'controller' => 'content', |
| 66 | 66 | 'template' => '{view} {update} {delete} {toggle}', |
| 67 | 67 | 'buttons' => [ |
| 68 | - 'toggle' => function ($url, $model, $key) { |
|
| 68 | + 'toggle' => function($url, $model, $key) { |
|
| 69 | 69 | return Html::a('<span class="glyphicon glyphicon-'.($model->enabled ? 'pause' : 'play').'"></span>', $url); |
| 70 | 70 | }, |
| 71 | 71 | ], |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | 'template' => '{link}', |
| 28 | 28 | 'header' => Yii::t('app', 'Link'), |
| 29 | 29 | 'buttons' => [ |
| 30 | - 'link' => function ($url, $_model, $key) use ($model) { |
|
| 30 | + 'link' => function($url, $_model, $key) 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, $key) use ($model) { |
|
| 57 | + 'unlink' => function($url, $_model, $key) 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 | ], |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | 'displayTeachers' => false, |
| 37 | 37 | ], |
| 38 | 38 | // Weather widget |
| 39 | - 'weather' => [ // Get an API key at https://darksky.net/dev |
|
| 39 | + 'weather' => [// Get an API key at https://darksky.net/dev |
|
| 40 | 40 | 'language' => 'en', |
| 41 | 41 | 'units' => 'us', |
| 42 | 42 | 'apikey' => '', |
@@ -261,7 +261,7 @@ |
||
| 261 | 261 | return true; |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | - $prevFlows = array_map(function ($f) { |
|
| 264 | + $prevFlows = array_map(function($f) { |
|
| 265 | 265 | return $f->id; |
| 266 | 266 | }, $this->flows); |
| 267 | 267 | |