Passed
Push — master ( 73f50c...734467 )
by Dmitrijs
02:29
created
src/widgets/Breadcrumbs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         // Add icon to label text
196 196
         if (isset($link['icon'])) {
197 197
             // Has issues on positioning: https://github.com/Dogfalo/materialize/issues/6224
198
-            $label = $this->renderIcon($link['icon']) . $label;
198
+            $label = $this->renderIcon($link['icon']).$label;
199 199
         }
200 200
 
201 201
         $options = $link;
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         if (isset($link['url'])) {
209 209
             return Html::a($label, $link['url'], $options);
210 210
         } else {
211
-            return Html::tag('span', $label, $options) ;
211
+            return Html::tag('span', $label, $options);
212 212
         }
213 213
     }
214 214
 }
Please login to merge, or discard this patch.
src/widgets/Button.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,6 +127,6 @@
 block discarded – undo
127 127
         }
128 128
 
129 129
         $this->registerPlugin('button');
130
-        return Html::tag($this->tagName, $this->renderIcon($this->icon) . $label, $this->options);
130
+        return Html::tag($this->tagName, $this->renderIcon($this->icon).$label, $this->options);
131 131
     }
132 132
 }
Please login to merge, or discard this patch.
src/widgets/Card.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
         }
210 210
 
211 211
         if ($this->tabs) {
212
-             $html .= $this->renderTabsItem();
212
+                $html .= $this->renderTabsItem();
213 213
         }
214 214
 
215 215
         // Add card reveal tag
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
         // Validate tab attribute
173 173
         if ($this->tabs && !$this->tabs instanceof Tabs) {
174
-            throw new InvalidConfigException('"' . get_class($this) . '::$tabs" should be an instance of "\dmgpage\yii2materialize\widgets\Tabs".');
174
+            throw new InvalidConfigException('"'.get_class($this).'::$tabs" should be an instance of "\dmgpage\yii2materialize\widgets\Tabs".');
175 175
         }
176 176
 
177 177
         $html .= $this->renderTitleContent($contentData);
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
             MaterializeExtraAsset::register($view);
289 289
 
290 290
             // Has issues on positioning: https://github.com/google/material-design-icons/issues/206
291
-            $label = $this->renderIcon($link['icon']) . $label;
291
+            $label = $this->renderIcon($link['icon']).$label;
292 292
         }
293 293
 
294 294
         $options = $link['options'];
Please login to merge, or discard this patch.
src/widgets/Tabs.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -196,12 +196,12 @@  discard block
 block discarded – undo
196 196
         }
197 197
 
198 198
         $html = $this->insideCard
199
-            ? "\n" . Html::beginTag('div', $this->containerOptions)
199
+            ? "\n".Html::beginTag('div', $this->containerOptions)
200 200
             : '';
201 201
         $html .= Html::tag('ul', implode("\n", $headers), $this->options);
202
-        $html .= $this->insideCard ? "\n" . Html::endTag('div') : '';
202
+        $html .= $this->insideCard ? "\n".Html::endTag('div') : '';
203 203
         $html .= $this->renderTabContent
204
-            ? "\n" . Html::tag('div', implode("\n", $panes), $this->contentOptions)
204
+            ? "\n".Html::tag('div', implode("\n", $panes), $this->contentOptions)
205 205
             : '';
206 206
 
207 207
         return $html;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
             $headerOptions = array_merge($this->headerOptions, ArrayHelper::getValue($item, 'headerOptions', []));
229 229
             $linkOptions = array_merge($this->linkOptions, ArrayHelper::getValue($item, 'linkOptions', []));
230 230
             $options = array_merge($this->itemOptions, ArrayHelper::getValue($item, 'options', []));
231
-            $options['id'] = ArrayHelper::getValue($options, 'id', $this->options['id'] . '-tab' . $index);
231
+            $options['id'] = ArrayHelper::getValue($options, 'id', $this->options['id'].'-tab'.$index);
232 232
 
233 233
             // Adds necessary classes for tab item
234 234
             $this->addItemClasses($item, $options);
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
                 $linkOptions['target'] = isset($linkOptions['target']) ? $linkOptions['target'] : '_self';
240 240
                 $header = Html::a($label, $item['url'], $linkOptions);
241 241
             } else {
242
-                $header = Html::a($label, '#' . $options['id'], $linkOptions);
242
+                $header = Html::a($label, '#'.$options['id'], $linkOptions);
243 243
             }
244 244
 
245 245
             // Add tab content
Please login to merge, or discard this patch.