@@ -21,7 +21,6 @@ |
||
21 | 21 | use Nette\ComponentModel; |
22 | 22 | use Nette\Localization; |
23 | 23 | use Nette\Utils; |
24 | - |
|
25 | 24 | use IPub; |
26 | 25 | use IPub\Widgets\Decorators; |
27 | 26 | use IPub\Widgets\Entities; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $dir = dirname($this->getReflection()->getFileName()); |
167 | 167 | |
168 | 168 | // ...try to get base component template file |
169 | - $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
169 | + $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte'; |
|
170 | 170 | $this->template->setFile($templateFile); |
171 | 171 | } |
172 | 172 | |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | $widget = $factory->create($data); |
309 | 309 | |
310 | 310 | // Add widget component to container/position |
311 | - $positionContainer->addComponent($widget, ($widget->getName() . spl_object_hash($data))); |
|
311 | + $positionContainer->addComponent($widget, ($widget->getName().spl_object_hash($data))); |
|
312 | 312 | |
313 | 313 | return $widget; |
314 | 314 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | ->render(); |
126 | 126 | |
127 | 127 | // Modify widget name |
128 | - $name = $title . mb_substr($name, $pos); |
|
128 | + $name = $title.mb_substr($name, $pos); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | // If widget name has subtitle... |
@@ -142,19 +142,19 @@ discard block |
||
142 | 142 | ->render(); |
143 | 143 | |
144 | 144 | // Split name to title & subtitle |
145 | - $name = $title . $subtitle; |
|
145 | + $name = $title.$subtitle; |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | // Set badge if exists |
149 | 149 | if ($badge = $this->data->getBadge()) { |
150 | 150 | $badge = Utils\Html::el('i') |
151 | - ->addAttributes(['class' => 'badge badge-' . $badge]); |
|
151 | + ->addAttributes(['class' => 'badge badge-'.$badge]); |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | // Set icon if exists |
155 | 155 | if ($icon = $this->data->getIcon()) { |
156 | 156 | $icon = Utils\Html::el('i') |
157 | - ->addAttributes(['class' => 'ipub-icon ipub-icon-' . $icon]); |
|
157 | + ->addAttributes(['class' => 'ipub-icon ipub-icon-'.$icon]); |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | // Assign basic widget data to template |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | $dir = dirname($this->getReflection()->getFileName()); |
184 | 184 | |
185 | 185 | // ...try to get base component template file |
186 | - $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
186 | + $templateFile = $this->templateFile !== NULL && is_file($this->templateFile) ? $this->templateFile : $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte'; |
|
187 | 187 | $this->template->setFile($templateFile); |
188 | 188 | } |
189 | 189 | } |