@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * Lists all Device models. |
43 | 43 | * |
44 | - * @return mixed |
|
44 | + * @return string |
|
45 | 45 | */ |
46 | 46 | public function actionIndex() |
47 | 47 | { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @param int $id |
61 | 61 | * |
62 | - * @return mixed |
|
62 | + * @return string |
|
63 | 63 | */ |
64 | 64 | public function actionView($id) |
65 | 65 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @param int $id |
123 | 123 | * |
124 | - * @return mixed |
|
124 | + * @return \yii\web\Response |
|
125 | 125 | */ |
126 | 126 | public function actionDelete($id) |
127 | 127 | { |
@@ -164,9 +164,8 @@ discard block |
||
164 | 164 | * Remove a Screen from a Device. |
165 | 165 | * |
166 | 166 | * @param int $id |
167 | - * @param int $flowId |
|
168 | 167 | * |
169 | - * @return mixed |
|
168 | + * @return \yii\web\Response |
|
170 | 169 | */ |
171 | 170 | public function actionUnlink($id, $screenId) |
172 | 171 | { |
@@ -184,7 +183,7 @@ discard block |
||
184 | 183 | * |
185 | 184 | * @param int $id screen id |
186 | 185 | * |
187 | - * @return mixed |
|
186 | + * @return \yii\web\Response |
|
188 | 187 | */ |
189 | 188 | public function actionToggle($id) |
190 | 189 | { |
@@ -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 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | return $this->redirect(['view', 'id' => $model->id]); |
99 | 99 | } else { |
100 | 100 | $templates = ScreenTemplate::find()->all(); |
101 | - $templatesArray = array_reduce($templates, function ($a, $t) { |
|
101 | + $templatesArray = array_reduce($templates, function($a, $t) { |
|
102 | 102 | $a[$t->id] = $t->name; |
103 | 103 | |
104 | 104 | return $a; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | return $this->redirect(['view', 'id' => $model->id]); |
128 | 128 | } else { |
129 | 129 | $templates = ScreenTemplate::find()->all(); |
130 | - $templatesArray = array_reduce($templates, function ($a, $t) { |
|
130 | + $templatesArray = array_reduce($templates, function($a, $t) { |
|
131 | 131 | $a[$t->id] = $t->name; |
132 | 132 | |
133 | 133 | return $a; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | /** |
45 | 45 | * Lists all ScreenTemplate models. |
46 | 46 | * |
47 | - * @return mixed |
|
47 | + * @return string |
|
48 | 48 | */ |
49 | 49 | public function actionIndex() |
50 | 50 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @param int $id |
64 | 64 | * |
65 | - * @return mixed |
|
65 | + * @return string |
|
66 | 66 | */ |
67 | 67 | public function actionView($id) |
68 | 68 | { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @param int $id |
128 | 128 | * |
129 | - * @return mixed |
|
129 | + * @return \yii\web\Response |
|
130 | 130 | */ |
131 | 131 | public function actionDelete($id) |
132 | 132 | { |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | * |
210 | 210 | * @param int $id field id |
211 | 211 | * |
212 | - * @return mixed |
|
212 | + * @return null|string |
|
213 | 213 | */ |
214 | 214 | public function actionEditField($id) |
215 | 215 | { |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | * @param float $min |
331 | 331 | * @param float $max |
332 | 332 | * |
333 | - * @return float random float |
|
333 | + * @return integer random float |
|
334 | 334 | */ |
335 | 335 | public static function randf($min = 0.0, $max = 1.0) |
336 | 336 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use app\models\TemplateBackground; |
10 | 10 | use yii\data\ActiveDataProvider; |
11 | 11 | use yii\helpers\Url; |
12 | -use yii\web\Controller; |
|
13 | 12 | use yii\web\NotFoundHttpException; |
14 | 13 | use yii\filters\VerbFilter; |
15 | 14 | use yii\filters\AccessControl; |
@@ -223,7 +223,7 @@ |
||
223 | 223 | if (!is_array($newTypeIds)) { |
224 | 224 | $newTypeIds = []; |
225 | 225 | } |
226 | - $oldTypeIds = array_map(function ($c) { |
|
226 | + $oldTypeIds = array_map(function($c) { |
|
227 | 227 | return $c->id; |
228 | 228 | }, $field->contentTypes); |
229 | 229 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * Lists all TemplateBackground models. |
36 | 36 | * |
37 | - * @return mixed |
|
37 | + * @return string |
|
38 | 38 | */ |
39 | 39 | public function actionIndex() |
40 | 40 | { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * |
79 | 79 | * @param int $id |
80 | 80 | * |
81 | - * @return mixed |
|
81 | + * @return \yii\web\Response |
|
82 | 82 | */ |
83 | 83 | public function actionDelete($id) |
84 | 84 | { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * Lists all User models. |
48 | 48 | * |
49 | - * @return mixed |
|
49 | + * @return string |
|
50 | 50 | */ |
51 | 51 | public function actionIndex() |
52 | 52 | { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @param string $id |
66 | 66 | * |
67 | - * @return mixed |
|
67 | + * @return string |
|
68 | 68 | */ |
69 | 69 | public function actionView($id) |
70 | 70 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * |
135 | 135 | * @param string $id |
136 | 136 | * |
137 | - * @return mixed |
|
137 | + * @return \yii\web\Response |
|
138 | 138 | */ |
139 | 139 | public function actionDelete($id) |
140 | 140 | { |
@@ -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 ($rule, $action) { |
|
38 | + ['allow' => true, 'actions' => ['import'], 'matchCallback' => function($rule, $action) { |
|
39 | 39 | return Yii::$app->params['useLdap']; |
40 | 40 | }], |
41 | 41 | ], |
@@ -54,6 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | /** |
56 | 56 | * {@inheritdoc} |
57 | + * @param string $filename |
|
57 | 58 | */ |
58 | 59 | public function genImage($url, $filename) |
59 | 60 | { |
@@ -550,7 +551,7 @@ discard block |
||
550 | 551 | /** |
551 | 552 | * Trim and decode array content. |
552 | 553 | * |
553 | - * @param array $arr input array |
|
554 | + * @param string $arr input array |
|
554 | 555 | * |
555 | 556 | * @return array trimed array |
556 | 557 | */ |
@@ -163,7 +163,7 @@ |
||
163 | 163 | // exit(var_dump($blocks)); |
164 | 164 | |
165 | 165 | // Sort blocks by day and group |
166 | - usort($blocks, function ($a, $b) { |
|
166 | + usort($blocks, function($a, $b) { |
|
167 | 167 | if ($a['day'] != $b['day']) { |
168 | 168 | return $a['day'] - $b['day']; |
169 | 169 | } |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace app\models\types; |
4 | 4 | |
5 | 5 | use Yii; |
6 | -use app\models\Content; |
|
7 | 6 | use yii\web\UploadedFile; |
8 | 7 | use yii\helpers\FileHelper; |
9 | 8 | use YoutubeDl\YoutubeDl; |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | /** |
287 | 287 | * Try to get media info for this media. |
288 | 288 | * |
289 | - * @return \MediaInfo|null media info |
|
289 | + * @return \Mhor\MediaInfo\Container\MediaInfoContainer|null media info |
|
290 | 290 | */ |
291 | 291 | protected static function getMediaInfo($realFilepath) |
292 | 292 | { |
@@ -300,7 +300,8 @@ discard block |
||
300 | 300 | /** |
301 | 301 | * Use mediainfo to parse media duration. |
302 | 302 | * |
303 | - * @return int media duration |
|
303 | + * @param string $realFilepath |
|
304 | + * @return double|null media duration |
|
304 | 305 | */ |
305 | 306 | public static function getDuration($realFilepath) |
306 | 307 | { |
@@ -386,7 +387,7 @@ discard block |
||
386 | 387 | * After delete event |
387 | 388 | * Try to delete file if necessary. |
388 | 389 | * |
389 | - * @return bool success |
|
390 | + * @return boolean|null success |
|
390 | 391 | */ |
391 | 392 | public function afterDelete() |
392 | 393 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Yii; |
6 | 6 | use app\models\Content; |
7 | -use yii\helpers\Url; |
|
8 | 7 | |
9 | 8 | /** |
10 | 9 | * This is the model class for Weather content type. |