Passed
Push — master ( 74d9ae...7da1ca )
by Dmitrijs
01:52
created
src/widgets/Button.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @see \dmgpage\yii2materialize\helpers\Html::icon()
62 62
      */
63
-    public $icon = [];
63
+    public $icon = [ ];
64 64
 
65 65
     /**
66 66
      * @var string|array one or several wave effects
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     public function init()
92 92
     {
93 93
         parent::init();
94
-        $this->clientOptions = [];
94
+        $this->clientOptions = [ ];
95 95
     }
96 96
 
97 97
     /**
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         }
128 128
 
129 129
         $this->registerPlugin('button');
130
-        return Html::tag($this->tagName, $this->renderIcon() . $label, $this->options);
130
+        return Html::tag($this->tagName, $this->renderIcon().$label, $this->options);
131 131
     }
132 132
 
133 133
     /**
@@ -145,8 +145,8 @@  discard block
 block discarded – undo
145 145
             return '';
146 146
         } else {
147 147
             $name = ArrayHelper::getValue($this->icon, 'name', null);
148
-            $position = ArrayHelper::getValue($this->icon, 'position', []);
149
-            $options = ArrayHelper::getValue($this->icon, 'options', []);
148
+            $position = ArrayHelper::getValue($this->icon, 'position', [ ]);
149
+            $options = ArrayHelper::getValue($this->icon, 'options', [ ]);
150 150
 
151 151
             if (!empty($position)) {
152 152
                 Html::addCssClass($options, $position);
Please login to merge, or discard this patch.