@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * Lists all Screen models. |
44 | 44 | * |
45 | - * @return mixed |
|
45 | + * @return string |
|
46 | 46 | */ |
47 | 47 | public function actionIndex() |
48 | 48 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @param int $id |
67 | 67 | * |
68 | - * @return mixed |
|
68 | + * @return string |
|
69 | 69 | */ |
70 | 70 | public function actionView($id) |
71 | 71 | { |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * |
147 | 147 | * @param int $id |
148 | 148 | * |
149 | - * @return mixed |
|
149 | + * @return \yii\web\Response |
|
150 | 150 | */ |
151 | 151 | public function actionDelete($id) |
152 | 152 | { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * @param int $id |
192 | 192 | * @param int $flowId |
193 | 193 | * |
194 | - * @return mixed |
|
194 | + * @return \yii\web\Response |
|
195 | 195 | */ |
196 | 196 | public function actionUnlink($id, $flowId) |
197 | 197 | { |
@@ -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 | ], |