@@ -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 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | 'only' => ['index', 'view', 'create', 'import', 'delete', 'set-roles'], |
36 | 36 | 'rules' => [ |
37 | 37 | ['allow' => true, 'actions' => ['index', 'view', 'create', 'delete', 'set-roles'], 'roles' => ['admin']], |
38 | - ['allow' => true, 'actions' => ['import'], 'matchCallback' => function () { |
|
38 | + ['allow' => true, 'actions' => ['import'], 'matchCallback' => function() { |
|
39 | 39 | return Yii::$app->params['useLdap']; |
40 | 40 | }], |
41 | 41 | ], |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | // string, required, root directory of all source files |
5 | - 'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..', |
|
5 | + 'sourcePath' => __DIR__.DIRECTORY_SEPARATOR.'..', |
|
6 | 6 | // array, required, list of language codes that the extracted messages |
7 | 7 | // should be translated to. For example, ['zh-CN', 'de']. |
8 | 8 | 'languages' => ['fr-FR'], |
@@ -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 | ], |