@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @date 15.09.14 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\Widgets\Widgets; |
| 18 | 18 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | ->render(); |
| 123 | 123 | |
| 124 | 124 | // Modify widget name |
| 125 | - $name = $title . mb_substr($name, $pos); |
|
| 125 | + $name = $title.mb_substr($name, $pos); |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | // If widget name has subtitle... |
@@ -139,19 +139,19 @@ discard block |
||
| 139 | 139 | ->render(); |
| 140 | 140 | |
| 141 | 141 | // Split name to title & subtitle |
| 142 | - $name = $title . $subtitle; |
|
| 142 | + $name = $title.$subtitle; |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | // Set badge if exists |
| 146 | 146 | if ($badge = $this->data->getBadge()) { |
| 147 | 147 | $badge = Utils\Html::el('i') |
| 148 | - ->addAttributes(['class' => 'badge badge-' . $badge]); |
|
| 148 | + ->addAttributes(['class' => 'badge badge-'.$badge]); |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | // Set icon if exists |
| 152 | 152 | if ($icon = $this->data->getIcon()) { |
| 153 | 153 | $icon = Utils\Html::el('i') |
| 154 | - ->addAttributes(['class' => 'ipub-icon ipub-icon-' . $icon]); |
|
| 154 | + ->addAttributes(['class' => 'ipub-icon ipub-icon-'.$icon]); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | // Assign basic widget data to template |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $dir = dirname($this->getReflection()->getFileName()); |
| 181 | 181 | |
| 182 | 182 | // ...try to get base component template file |
| 183 | - $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
| 183 | + $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte'; |
|
| 184 | 184 | $this->template->setFile($templateFile); |
| 185 | 185 | } |
| 186 | 186 | } |