Passed
Push — master ( 644c03...ce1e0e )
by Andrey
07:03
created
controllers/ProductController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@
 block discarded – undo
25 25
                 'rules' => [
26 26
                     [
27 27
                         'allow' => true,
28
-                        'actions' => ['view'],
29
-                        'roles' => ['?', '@'],
28
+                        'actions' => [ 'view' ],
29
+                        'roles' => [ '?', '@' ],
30 30
                     ],
31 31
                 ],
32 32
             ],
33 33
             'verbs' => [
34 34
                 'class' => VerbFilter::class,
35 35
                 'actions' => [
36
-                    'view' => ['get'],
36
+                    'view' => [ 'get' ],
37 37
                 ],
38 38
             ],
39 39
         ]);
Please login to merge, or discard this patch.
controllers/HomeController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,15 +24,15 @@
 block discarded – undo
24 24
                 'rules' => [
25 25
                     [
26 26
                         'allow' => true,
27
-                        'actions' => ['index'],
28
-                        'roles' => ['?', '@'],
27
+                        'actions' => [ 'index' ],
28
+                        'roles' => [ '?', '@' ],
29 29
                     ],
30 30
                 ],
31 31
             ],
32 32
             'verbs' => [
33 33
                 'class' => VerbFilter::class,
34 34
                 'actions' => [
35
-                    'index' => ['get'],
35
+                    'index' => [ 'get' ],
36 36
                 ],
37 37
             ]
38 38
         ]);
Please login to merge, or discard this patch.
controllers/admin/FeedbackController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function afterAction($action, $result)
28 28
     {
29 29
         if ($action->id == 'view') {
30
-            $modelId = $action->controller->actionParams['id'];
30
+            $modelId = $action->controller->actionParams[ 'id' ];
31 31
             Feedback::fixReadStatus((int)$modelId);
32 32
         }
33 33
 
Please login to merge, or discard this patch.
controllers/admin/HomeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $home = Home::findOne($homeId);
41 41
 
42 42
         if (null === $home) {
43
-            throw  new NotFoundHttpException('Record with id ' . $homeId . ' does not exist');
43
+            throw  new NotFoundHttpException('Record with id '.$homeId.' does not exist');
44 44
         }
45 45
 
46 46
         $home->default = 1;
Please login to merge, or discard this patch.
controllers/admin/ContactController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $contact = Contact::findOne($contactId);
41 41
 
42 42
         if (null === $contact) {
43
-            throw  new NotFoundHttpException('Record with id ' . $contactId . ' does not exist');
43
+            throw  new NotFoundHttpException('Record with id '.$contactId.' does not exist');
44 44
         }
45 45
 
46 46
         $contact->default = 1;
Please login to merge, or discard this patch.
controllers/admin/SitemapController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      */
80 80
     private function readSitemapFile()
81 81
     {
82
-        $filePath = Yii::getAlias($this->savePathAlias) . '/' . $this->sitemapFileName;
82
+        $filePath = Yii::getAlias($this->savePathAlias).'/'.$this->sitemapFileName;
83 83
 
84 84
         if (!file_exists($filePath)) {
85 85
             return null;
Please login to merge, or discard this patch.
controllers/admin/BaseUserController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
      */
44 44
     protected function getAdditionFields(): array
45 45
     {
46
-        $additionFields = [];
46
+        $additionFields = [ ];
47 47
 
48 48
         if ($this->action->id == 'create' || $this->action->id == 'update') {
49
-            $additionFields['roles'] = $this->validateComponent->getAuthManager()->getRoles();
50
-            $additionFields['positions'] = Position::getPositions();
49
+            $additionFields[ 'roles' ] = $this->validateComponent->getAuthManager()->getRoles();
50
+            $additionFields[ 'positions' ] = Position::getPositions();
51 51
         }
52 52
 
53 53
         return $additionFields;
@@ -70,6 +70,6 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected function getSearchModelName():string
72 72
     {
73
-        return \Yii::$app->user->identityClass . 'Search';
73
+        return \Yii::$app->user->identityClass.'Search';
74 74
     }
75 75
 }
Please login to merge, or discard this patch.
controllers/admin/AboutController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $about = About::findOne($aboutId);
41 41
 
42 42
         if (null === $about) {
43
-            throw  new NotFoundHttpException('Record with id ' . $aboutId . ' does not exist');
43
+            throw  new NotFoundHttpException('Record with id '.$aboutId.' does not exist');
44 44
         }
45 45
 
46 46
         $about->default = 1;
Please login to merge, or discard this patch.
controllers/BaseController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function beforeAction($action)
33 33
     {
34
-        $this->view->params['pages'] = Page::getActiveMenu();
35
-        $this->view->params['contacts'] = Contact::getDefaultContacts();
36
-        $this->view->params['controllerId'] = Yii::$app->controller->id;
34
+        $this->view->params[ 'pages' ] = Page::getActiveMenu();
35
+        $this->view->params[ 'contacts' ] = Contact::getDefaultContacts();
36
+        $this->view->params[ 'controllerId' ] = Yii::$app->controller->id;
37 37
 
38 38
         return parent::beforeAction($action);
39 39
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $this->view->registerLinkTag([
75 75
                 'rel' => 'alternate',
76 76
                 'hreflang' => $shortName,
77
-                'href' => rtrim(Yii::$app->request->hostInfo, '/') .
77
+                'href' => rtrim(Yii::$app->request->hostInfo, '/').
78 78
                     BaseHelper::getSwitchLanguageLink($shortName, Yii::$app->request)
79 79
             ]);
80 80
         }
Please login to merge, or discard this patch.