Completed
Branch master (bf31fb)
by Александр
77:38 queued 37:39
created
src/models/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             [
237 237
                 ['username'],
238 238
                 'default',
239
-                'value' => function (self $model) {
239
+                'value' => function(self $model) {
240 240
                     $userLast = static::find()->orderBy("id DESC")->one();
241 241
                     return "id" . ($userLast->id + 1);
242 242
                 }
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             [
248 248
                 ['auth_key'],
249 249
                 'default',
250
-                'value' => function (self $model) {
250
+                'value' => function(self $model) {
251 251
                     return \Yii::$app->security->generateRandomString();
252 252
                 }
253 253
             ],
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
             [
256 256
                 ['password_hash'],
257 257
                 'default',
258
-                'value' => function (self $model) {
258
+                'value' => function(self $model) {
259 259
                     return \Yii::$app->security->generatePasswordHash(\Yii::$app->security->generateRandomString());
260 260
                 }
261 261
             ],
Please login to merge, or discard this patch.
src/models/CmsContentType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,14 +97,14 @@
 block discarded – undo
97 97
             [
98 98
                 'code',
99 99
                 'default',
100
-                'value' => function ($model, $attribute) {
100
+                'value' => function($model, $attribute) {
101 101
                     return "sx_auto_" . md5(rand(1, 10) . time());
102 102
                 }
103 103
             ],
104 104
             [
105 105
                 'priority',
106 106
                 'default',
107
-                'value' => function ($model, $attribute) {
107
+                'value' => function($model, $attribute) {
108 108
                     return 500;
109 109
                 }
110 110
             ],
Please login to merge, or discard this patch.
src/models/Tree.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -380,7 +380,7 @@
 block discarded – undo
380 380
             [
381 381
                 ['name'],
382 382
                 'default',
383
-                'value' => function (self $model) {
383
+                'value' => function(self $model) {
384 384
                     $lastTree = static::find()->orderBy(["id" => SORT_DESC])->one();
385 385
                     if ($lastTree) {
386 386
                         return "pk-" . $lastTree->primaryKey;
Please login to merge, or discard this patch.
src/models/Core.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             BlameableBehavior::className() =>
46 46
                 [
47 47
                     'class' => BlameableBehavior::className(),
48
-                    'value' => function ($event) {
48
+                    'value' => function($event) {
49 49
                         if (\Yii::$app instanceof \yii\console\Application) {
50 50
                             return null;
51 51
                         } else {
Please login to merge, or discard this patch.
src/models/behaviors/HasRelatedProperties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     public function getRelatedProperties()
77 77
     {
78 78
         $className = $this->relatedPropertyClassName;
79
-        $find = $className::find()->orderBy(['priority' => SORT_ASC]);;
79
+        $find = $className::find()->orderBy(['priority' => SORT_ASC]); ;
80 80
         $find->multiple = true;
81 81
 
82 82
         return $find;
Please login to merge, or discard this patch.
src/models/CmsContentElement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             [
287 287
                 'tree_id',
288 288
                 'default',
289
-                'value' => function () {
289
+                'value' => function() {
290 290
                     if ($this->cmsContent->defaultTree) {
291 291
                         return $this->cmsContent->defaultTree->id;
292 292
                     }
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
             [
330 330
                 'parent_content_element_id',
331 331
                 'required',
332
-                'when' => function (CmsContentElement $model) {
332
+                'when' => function(CmsContentElement $model) {
333 333
 
334 334
                     if ($model->cmsContent && $model->cmsContent->parentContent) {
335 335
                         return (bool)($model->cmsContent->parent_content_is_required == "Y");
Please login to merge, or discard this patch.
src/grid/ComponentSettingsColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             return $this->_result(Cms::BOOL_Y);
51 51
         }
52 52
 
53
-        return $this->_result(Cms::BOOL_N);;
53
+        return $this->_result(Cms::BOOL_N); ;
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
src/behaviors/RelationalBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
                 foreach ($relationPks as $relationPk) {
111 111
                     $junctionRows[] = [$model->primaryKey, $relationPk];
112 112
                 }
113
-                $model->getDb()->transaction(function () use (
113
+                $model->getDb()->transaction(function() use (
114 114
                     $junctionTable,
115 115
                     $primaryModelColumn,
116 116
                     $relatedModelColumn,
Please login to merge, or discard this patch.
src/config/admin/menu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,11 +33,11 @@  discard block
 block discarded – undo
33 33
                         [
34 34
                             'label' => $content->name,
35 35
                             'url' => ["cms/admin-cms-content-element", "content_id" => $content->id],
36
-                            "activeCallback" => function ($adminMenuItem) use ($content) {
36
+                            "activeCallback" => function($adminMenuItem) use ($content) {
37 37
                                 return (bool)($content->id == \Yii::$app->request->get("content_id") && \Yii::$app->controller->uniqueId == 'cms/admin-cms-content-element');
38 38
                             },
39 39
 
40
-                            "accessCallback" => function ($adminMenuItem) use ($content) {
40
+                            "accessCallback" => function($adminMenuItem) use ($content) {
41 41
                                 $controller = \Yii::$app->createController('cms/admin-cms-content-element')[0];
42 42
                                 $controller->setContent($content);
43 43
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 'label' => $dashboard->name,
86 86
                 "img" => ['\skeeks\cms\assets\CmsAsset', 'images/icons/dashboard.png'],
87 87
                 'url' => ["admin/index/dashboard", "pk" => $dashboard->id],
88
-                "activeCallback" => function ($adminMenuItem) {
88
+                "activeCallback" => function($adminMenuItem) {
89 89
                     return (bool)(\Yii::$app->controller->action->uniqueId == 'admin/index/dashboard' && \yii\helpers\ArrayHelper::getValue($adminMenuItem->urlData,
90 90
                             'pk') == \Yii::$app->request->get('pk'));
91 91
                 },
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 'url' => ["/cms/admin-cms-content-type/update", "pk" => $contentType->id],
125 125
                 'label' => $contentType->name,
126 126
                 "img" => ['\skeeks\cms\assets\CmsAsset', 'images/icons/icon.article.png'],
127
-                "activeCallback" => function ($adminMenuItem) {
127
+                "activeCallback" => function($adminMenuItem) {
128 128
                     return (bool)(\Yii::$app->controller->action->uniqueId == 'cms/admin-cms-content-type/update' && \yii\helpers\ArrayHelper::getValue($adminMenuItem->urlData,
129 129
                             'pk') == \Yii::$app->request->get('pk'));
130 130
                 },
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                         [
137 137
                             'label' => $content->name,
138 138
                             'url' => ["cms/admin-cms-content/update", "pk" => $content->id],
139
-                            "activeCallback" => function ($adminMenuItem) {
139
+                            "activeCallback" => function($adminMenuItem) {
140 140
                                 return (bool)(\Yii::$app->controller->action->uniqueId == 'cms/admin-cms-content/update' && \yii\helpers\ArrayHelper::getValue($adminMenuItem->urlData,
141 141
                                         'pk') == \Yii::$app->request->get('pk'));
142 142
                             },
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                 $result[] = [
170 170
                     'label' => $loadedComponent->descriptor->name,
171 171
                     'url' => ["cms/admin-settings", "component" => $loadedComponent->className()],
172
-                    "activeCallback" => function ($adminMenuItem) {
172
+                    "activeCallback" => function($adminMenuItem) {
173 173
                         return (bool)(\Yii::$app->request->getUrl() == $adminMenuItem->getUrl());
174 174
                     },
175 175
                 ];
Please login to merge, or discard this patch.