@@ -36,7 +36,7 @@ |
||
36 | 36 | ], |
37 | 37 | [ |
38 | 38 | 'attribute' => 'flows', |
39 | - 'value' => count($model->flows) ? implode(', ', array_map(function ($f) { |
|
39 | + 'value' => count($model->flows) ? implode(', ', array_map(function($f) { |
|
40 | 40 | return $f->name; |
41 | 41 | }, $model->flows)) : null, |
42 | 42 | 'visible' => $model->needsFlow, |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> |
21 | 21 | |
22 | 22 | <?php |
23 | - $bgs = array_map(function ($bg) { |
|
23 | + $bgs = array_map(function($bg) { |
|
24 | 24 | return '<img src="'.$bg['uri'].'" alt="'.$bg['name'].'" class="img-preview"/><br />'.$bg['name']; |
25 | 25 | }, $backgrounds); |
26 | 26 | ?> |
@@ -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 |
@@ -327,7 +327,7 @@ |
||
327 | 327 | * @param float $min |
328 | 328 | * @param float $max |
329 | 329 | * |
330 | - * @return float random float |
|
330 | + * @return integer random float |
|
331 | 331 | */ |
332 | 332 | public static function randf($min = 0.0, $max = 1.0) |
333 | 333 | { |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | 'background' => $screenTemplate->background ? $screenTemplate->background->uri : null, |
73 | 73 | 'fields' => $screenTemplate->getFields()->with('contentTypes')->asArray()->all(), |
74 | 74 | 'contentTypes' => ContentType::getAllList(), |
75 | - 'setFieldPosUrl' => Url::to([Yii::$app->controller->id . '/set-field-pos', 'id' => '']), |
|
76 | - 'editFieldUrl' => Url::to([Yii::$app->controller->id . '/edit-field', 'id' => '']), |
|
75 | + 'setFieldPosUrl' => Url::to([Yii::$app->controller->id.'/set-field-pos', 'id' => '']), |
|
76 | + 'editFieldUrl' => Url::to([Yii::$app->controller->id.'/edit-field', 'id' => '']), |
|
77 | 77 | ]); |
78 | 78 | } |
79 | 79 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | if (!is_array($newTypeIds)) { |
222 | 222 | $newTypeIds = []; |
223 | 223 | } |
224 | - $oldTypeIds = array_map(function ($c) { |
|
224 | + $oldTypeIds = array_map(function($c) { |
|
225 | 225 | return $c->id; |
226 | 226 | }, $field->contentTypes); |
227 | 227 |
@@ -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'], |
@@ -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 | ], |
@@ -54,7 +54,7 @@ |
||
54 | 54 | 'controller' => 'screen', |
55 | 55 | 'template' => '{view} {update} {unlink}', |
56 | 56 | 'buttons' => [ |
57 | - 'unlink' => function ($url, $_model) use ($model) { |
|
57 | + 'unlink' => function($url, $_model) 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 | ], |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | 'last_login_at', |
27 | 27 | [ |
28 | 28 | 'attribute' => 'role', |
29 | - 'value' => function ($model) { |
|
29 | + 'value' => function($model) { |
|
30 | 30 | return $model->role ? Yii::t('app', $model->role->name) : null; |
31 | 31 | }, |
32 | 32 | ], |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | ['class' => 'yii\grid\ActionColumn', |
35 | 35 | 'template' => '{view} {set-roles} {delete}', |
36 | 36 | 'buttons' => [ |
37 | - 'set-roles' => function ($url) { |
|
37 | + 'set-roles' => function($url) { |
|
38 | 38 | return Html::a('<span class="glyphicon glyphicon-cog"></span>', $url); |
39 | 39 | }, |
40 | 40 | ], |