Passed
Push — master ( 09d577...6e0adc )
by Andrey
04:55
created
widgets/Alert.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @var array the options for rendering the close button tag.
42 42
      * Array will be passed to [[\yii\bootstrap\Alert::closeButton]].
43 43
      */
44
-    public $closeButton = [];
44
+    public $closeButton = [ ];
45 45
 
46 46
 
47 47
     /**
@@ -51,20 +51,20 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $session = Yii::$app->session;
53 53
         $flashes = $session->getAllFlashes();
54
-        $appendClass = isset($this->options['class']) ? ' ' . $this->options['class'] : '';
54
+        $appendClass = isset($this->options[ 'class' ]) ? ' '.$this->options[ 'class' ] : '';
55 55
 
56 56
         foreach ($flashes as $type => $flash) {
57
-            if (!isset($this->alertTypes[$type])) {
57
+            if (!isset($this->alertTypes[ $type ])) {
58 58
                 continue;
59 59
             }
60 60
 
61
-            foreach ((array) $flash as $i => $message) {
61
+            foreach ((array)$flash as $i => $message) {
62 62
                 echo \yii\bootstrap\Alert::widget([
63 63
                     'body' => $message,
64 64
                     'closeButton' => $this->closeButton,
65 65
                     'options' => array_merge($this->options, [
66
-                        'id' => $this->getId() . '-' . $type . '-' . $i,
67
-                        'class' => $this->alertTypes[$type] . $appendClass,
66
+                        'id' => $this->getId().'-'.$type.'-'.$i,
67
+                        'class' => $this->alertTypes[ $type ].$appendClass,
68 68
                     ]),
69 69
                 ]);
70 70
             }
Please login to merge, or discard this patch.
commands/HelloController.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
      */
28 28
     public function actionIndex($message = 'hello world')
29 29
     {
30
-        echo $message . "\n";
30
+        echo $message."\n";
31 31
 
32 32
         return ExitCode::OK;
33 33
     }
Please login to merge, or discard this patch.
commands/BuildRbacController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 
71 71
         $this->tryAddChild($item_role_user, $item_permission_view_frontside);
72 72
 
73
-        echo 'Done' . "\n";
73
+        echo 'Done'."\n";
74 74
 
75 75
         return ExitCode::OK;
76 76
     }
Please login to merge, or discard this patch.
models/AboutTechnology.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                     'technologies_id'
50 50
                 ],
51 51
                 'unique',
52
-                'targetAttribute' => ['about_id', 'technologies_id']
52
+                'targetAttribute' => [ 'about_id', 'technologies_id' ]
53 53
             ],
54 54
             [
55 55
                 [
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 'exist',
59 59
                 'skipOnError' => true,
60 60
                 'targetClass' => About::class,
61
-                'targetAttribute' => ['about_id' => 'id']
61
+                'targetAttribute' => [ 'about_id' => 'id' ]
62 62
             ],
63 63
             [
64 64
                 [
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 'exist',
68 68
                 'skipOnError' => true,
69 69
                 'targetClass' => Technology::class,
70
-                'targetAttribute' => ['technologies_id' => 'id']
70
+                'targetAttribute' => [ 'technologies_id' => 'id' ]
71 71
             ],
72 72
         ];
73 73
     }
Please login to merge, or discard this patch.
models/QualitySearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return [
21 21
             [
22
-                ['id'],
22
+                [ 'id' ],
23 23
                 'integer',
24 24
             ],
25 25
             [
Please login to merge, or discard this patch.
models/HomeLanguage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                     'language_id'
82 82
                 ],
83 83
                 'unique',
84
-                'targetAttribute' => ['home_id', 'language_id']
84
+                'targetAttribute' => [ 'home_id', 'language_id' ]
85 85
             ],
86 86
             [
87 87
                 [
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                 'exist',
91 91
                 'skipOnError' => true,
92 92
                 'targetClass' => Home::class,
93
-                'targetAttribute' => ['home_id' => 'id']
93
+                'targetAttribute' => [ 'home_id' => 'id' ]
94 94
             ],
95 95
             [
96 96
                 [
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 'exist',
100 100
                 'skipOnError' => true,
101 101
                 'targetClass' => Language::class,
102
-                'targetAttribute' => ['language_id' => 'id']
102
+                'targetAttribute' => [ 'language_id' => 'id' ]
103 103
             ],
104 104
         ];
105 105
     }
Please login to merge, or discard this patch.
models/ProductLanguage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                     'language_id'
82 82
                 ],
83 83
                 'unique',
84
-                'targetAttribute' => ['products_id', 'language_id']
84
+                'targetAttribute' => [ 'products_id', 'language_id' ]
85 85
             ],
86 86
             [
87 87
                 [
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                 'exist',
91 91
                 'skipOnError' => true,
92 92
                 'targetClass' => Language::class,
93
-                'targetAttribute' => ['language_id' => 'id']
93
+                'targetAttribute' => [ 'language_id' => 'id' ]
94 94
             ],
95 95
             [
96 96
                 [
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 'exist',
100 100
                 'skipOnError' => true,
101 101
                 'targetClass' => Product::class,
102
-                'targetAttribute' => ['products_id' => 'id']
102
+                'targetAttribute' => [ 'products_id' => 'id' ]
103 103
             ],
104 104
         ];
105 105
     }
Please login to merge, or discard this patch.
models/sitemap/SitemapContact.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @var array [langId => langCode]
29 29
      */
30
-    public $sitemapLanguages = [];
30
+    public $sitemapLanguages = [ ];
31 31
     /**
32 32
      * If TRUE - Yii::$app->language will be switched for each sitemapLanguages and restored after.
33 33
      *
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         return [
61 61
             [
62
-                'loc' => Url::to('/' . $lang . '/contact', true),
62
+                'loc' => Url::to('/'.$lang.'/contact', true),
63 63
                 'lastmod' => $this->getSitemapLastmod(),
64 64
                 'changefreq' => $this->getSitemapChangefreq(),
65 65
                 'priority' => $this->getSitemapPriority(),
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function getSitemapLoc($lang = null)
83 83
     {
84
-        return Url::to('/' . $lang . '/contact', true);
84
+        return Url::to('/'.$lang.'/contact', true);
85 85
     }
86 86
 
87 87
     /**
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function getSitemapAlternateLinks()
115 115
     {
116
-        $buffer = [];
116
+        $buffer = [ ];
117 117
 
118 118
         foreach ($this->sitemapLanguages as $langCode) {
119
-            $buffer[$langCode] = $this->getSitemapLoc($langCode);
119
+            $buffer[ $langCode ] = $this->getSitemapLoc($langCode);
120 120
         }
121 121
 
122 122
         return $buffer;
Please login to merge, or discard this patch.
models/sitemap/SitemapAbout.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @var array [langId => langCode]
29 29
      */
30
-    public $sitemapLanguages = [];
30
+    public $sitemapLanguages = [ ];
31 31
     /**
32 32
      * If TRUE - Yii::$app->language will be switched for each sitemapLanguages and restored after.
33 33
      *
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         return [
61 61
             [
62
-                'loc' => Url::to('/' . $lang . '/about', true),
62
+                'loc' => Url::to('/'.$lang.'/about', true),
63 63
                 'lastmod' => $this->getSitemapLastmod(),
64 64
                 'changefreq' => $this->getSitemapChangefreq(),
65 65
                 'priority' => $this->getSitemapPriority(),
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function getSitemapLoc($lang = null)
83 83
     {
84
-        return Url::to('/' . $lang . '/about', true);
84
+        return Url::to('/'.$lang.'/about', true);
85 85
     }
86 86
 
87 87
     /**
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function getSitemapAlternateLinks()
115 115
     {
116
-        $buffer = [];
116
+        $buffer = [ ];
117 117
 
118 118
         foreach ($this->sitemapLanguages as $langCode) {
119
-            $buffer[$langCode] = $this->getSitemapLoc($langCode);
119
+            $buffer[ $langCode ] = $this->getSitemapLoc($langCode);
120 120
         }
121 121
 
122 122
         return $buffer;
Please login to merge, or discard this patch.