@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | string $templateFile = NULL, |
54 | 54 | Storage\IStorage $storage |
55 | 55 | ) { |
56 | - list(, , $parent, $name) = func_get_args() + [NULL, NULL, NULL, NULL]; |
|
56 | + list(,, $parent, $name) = func_get_args() + [NULL, NULL, NULL, NULL]; |
|
57 | 57 | |
58 | 58 | parent::__construct($storage, $parent, $name); |
59 | 59 | |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | */ |
266 | 266 | private function generateToken() : string |
267 | 267 | { |
268 | - return base_convert(md5(uniqid('confirm' . $this->getName(), TRUE)), 16, 36); |
|
268 | + return base_convert(md5(uniqid('confirm'.$this->getName(), TRUE)), 16, 36); |
|
269 | 269 | } |
270 | 270 | |
271 | 271 | /** |
@@ -153,8 +153,8 @@ |
||
153 | 153 | $templateName = preg_replace('/.latte/', '', $templateFile); |
154 | 154 | |
155 | 155 | // ...check if extension template is used |
156 | - if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateName . '.latte')) { |
|
157 | - return $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateName . '.latte'; |
|
156 | + if (is_file($dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateName.'.latte')) { |
|
157 | + return $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateName.'.latte'; |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | // ...if not throw exception |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | string $templateFile = NULL, |
60 | 60 | IConfirmer $confirmerFactory |
61 | 61 | ) { |
62 | - list(, , , $parent, $name) = func_get_args() + [NULL, NULL, NULL, NULL, NULL]; |
|
62 | + list(,,, $parent, $name) = func_get_args() + [NULL, NULL, NULL, NULL, NULL]; |
|
63 | 63 | |
64 | 64 | parent::__construct($parent, $name); |
65 | 65 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | public function getTemplateFile() : string |
106 | 106 | { |
107 | 107 | // ...try to get default component layout file |
108 | - return $this->templateFile !== NULL ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
108 | + return $this->templateFile !== NULL ? $this->templateFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte'; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | throw new Exceptions\InvalidArgumentException('$name must be string.'); |
233 | 233 | } |
234 | 234 | |
235 | - if ((!$this->confirmer = $this['confirmer-' . $name]) || !$this->confirmer->isConfigured()) { |
|
235 | + if ((!$this->confirmer = $this['confirmer-'.$name]) || !$this->confirmer->isConfigured()) { |
|
236 | 236 | throw new Exceptions\InvalidStateException(sprintf('Confirmer "%s" do not exist.', $name)); |
237 | 237 | } |
238 | 238 | |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | $name = Utils\Strings::substring($signal, 7); |
260 | 260 | $name{0} = strtolower($name{0}); |
261 | 261 | |
262 | - if (!$this['confirmer-' . $name]->isConfigured()) { |
|
262 | + if (!$this['confirmer-'.$name]->isConfigured()) { |
|
263 | 263 | throw new Exceptions\InvalidArgumentException('Invalid confirmation control.'); |
264 | 264 | } |
265 | 265 | |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | // If template was not defined before... |
305 | 305 | if ($template->getFile() === NULL) { |
306 | 306 | // ...try to get base component template file |
307 | - $layoutFile = $this->layoutFile !== NULL ? $this->layoutFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'layout.latte'; |
|
307 | + $layoutFile = $this->layoutFile !== NULL ? $this->layoutFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'layout.latte'; |
|
308 | 308 | $template->setFile($layoutFile); |
309 | 309 | } |
310 | 310 | |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | */ |
326 | 326 | private function getConfirmerControl(string $name) : Confirmer |
327 | 327 | { |
328 | - $confirmer = $this->getComponent('confirmer-' . $name); |
|
328 | + $confirmer = $this->getComponent('confirmer-'.$name); |
|
329 | 329 | |
330 | 330 | if (!$confirmer instanceof Confirmer) { |
331 | 331 | throw new Exceptions\InvalidArgumentException(sprintf('Confirmation control "%s" does not exists.', $name)); |