@@ -17,8 +17,6 @@ |
||
17 | 17 | use Nette; |
18 | 18 | use Nette\Application; |
19 | 19 | use Nette\Localization; |
20 | -use Nette\Utils; |
|
21 | - |
|
22 | 20 | use IPub; |
23 | 21 | use IPub\FlashMessages; |
24 | 22 | use IPub\FlashMessages\Exceptions; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | // If template was not defined before... |
154 | 154 | if ($this->template->getFile() === NULL) { |
155 | 155 | // ...try to get base component template file |
156 | - $templateFile = !empty($this->templateFile) ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
156 | + $templateFile = !empty($this->templateFile) ? $this->templateFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default'.DIRECTORY_SEPARATOR.'default.latte'; |
|
157 | 157 | $this->template->setFile($templateFile); |
158 | 158 | } |
159 | 159 | } |
@@ -192,12 +192,12 @@ discard block |
||
192 | 192 | $template = basename($templateFile, '.latte'); |
193 | 193 | |
194 | 194 | // ...check if extension template is used |
195 | - if (is_file(__DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $template . DIRECTORY_SEPARATOR . 'default.latte')) { |
|
196 | - $templateFile = __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $template . DIRECTORY_SEPARATOR . 'default.latte'; |
|
195 | + if (is_file(__DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$template.DIRECTORY_SEPARATOR.'default.latte')) { |
|
196 | + $templateFile = __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$template.DIRECTORY_SEPARATOR.'default.latte'; |
|
197 | 197 | |
198 | 198 | } else { |
199 | 199 | // ...if not throw exception |
200 | - throw new Exceptions\FileNotFoundException('Template file "' . $templateFile . '" was not found.'); |
|
200 | + throw new Exceptions\FileNotFoundException('Template file "'.$templateFile.'" was not found.'); |
|
201 | 201 | } |
202 | 202 | } |
203 | 203 |
@@ -267,7 +267,7 @@ |
||
267 | 267 | */ |
268 | 268 | public function __toString() |
269 | 269 | { |
270 | - return $this->level . ' ' . ($this->title ? $this->title . ' ' : '') . $this->getMessage(); |
|
270 | + return $this->level.' '.($this->title ? $this->title.' ' : '').$this->getMessage(); |
|
271 | 271 | } |
272 | 272 | |
273 | 273 | /** |
@@ -92,7 +92,7 @@ |
||
92 | 92 | ->setClass(Events\OnResponseHandler::class); |
93 | 93 | |
94 | 94 | $application = $builder->getDefinition('application'); |
95 | - $application->addSetup('$service->onResponse[] = ?', ['@' . $this->prefix('onResponseHandler')]); |
|
95 | + $application->addSetup('$service->onResponse[] = ?', ['@'.$this->prefix('onResponseHandler')]); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |