@@ -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 | ], |
@@ -44,8 +44,8 @@ |
||
44 | 44 | */ |
45 | 45 | |
46 | 46 | /** |
47 | - * {@inheritdoc} |
|
48 | - */ |
|
47 | + * {@inheritdoc} |
|
48 | + */ |
|
49 | 49 | public function __construct($config = []) |
50 | 50 | { |
51 | 51 | parent::__construct($config); |
@@ -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 | ], |
@@ -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 | ], |