@@ -209,7 +209,7 @@ |
||
| 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 |
@@ -171,7 +171,7 @@ discard block |
||
| 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 |
||
| 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']; |
@@ -196,12 +196,12 @@ discard block |
||
| 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 |
||
| 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 | Html::addCssClass($options, 'col s12'); |
| 234 | 234 | |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | $linkOptions['target'] = isset($linkOptions['target']) ? $linkOptions['target'] : '_self'; |
| 251 | 251 | $header = Html::a($label, $item['url'], $linkOptions); |
| 252 | 252 | } else { |
| 253 | - $header = Html::a($label, '#' . $options['id'], $linkOptions); |
|
| 253 | + $header = Html::a($label, '#'.$options['id'], $linkOptions); |
|
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | // Add tab content |