@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | string $layoutFile = NULL, |
70 | 70 | string $templateFile = NULL |
71 | 71 | ) { |
72 | - list(, , $parent, $name) = func_get_args() + [NULL, NULL, NULL, NULL]; |
|
72 | + list(,, $parent, $name) = func_get_args() + [NULL, NULL, NULL, NULL]; |
|
73 | 73 | |
74 | 74 | parent::__construct($parent, $name); |
75 | 75 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | public function getTemplateFile() : string |
113 | 113 | { |
114 | 114 | // ...try to get default component layout file |
115 | - return $this->templateFile !== NULL ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
115 | + return $this->templateFile !== NULL ? $this->templateFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte'; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | protected function createComponentConfirmer() : Application\UI\Multiplier |
205 | 205 | { |
206 | - return new Application\UI\Multiplier((function () { |
|
206 | + return new Application\UI\Multiplier((function() { |
|
207 | 207 | // Check if confirmer factory is available |
208 | 208 | if (!$this->confirmerFactory) { |
209 | 209 | throw new Exceptions\InvalidStateException('Confirmation control factory does not exist.'); |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | throw new Exceptions\InvalidArgumentException('$name must be string.'); |
240 | 240 | } |
241 | 241 | |
242 | - if ((!$this->confirmer = $this['confirmer-' . $name]) || !$this->confirmer->isConfigured()) { |
|
242 | + if ((!$this->confirmer = $this['confirmer-'.$name]) || !$this->confirmer->isConfigured()) { |
|
243 | 243 | throw new Exceptions\InvalidStateException(sprintf('Confirmer "%s" do not exist.', $name)); |
244 | 244 | } |
245 | 245 | |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | $name = Utils\Strings::substring($signal, 7); |
267 | 267 | $name{0} = strtolower($name{0}); |
268 | 268 | |
269 | - if (!$this['confirmer-' . $name]->isConfigured()) { |
|
269 | + if (!$this['confirmer-'.$name]->isConfigured()) { |
|
270 | 270 | throw new Exceptions\InvalidArgumentException('Invalid confirmation control.'); |
271 | 271 | } |
272 | 272 | |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | // If template was not defined before... |
312 | 312 | if ($template->getFile() === NULL) { |
313 | 313 | // ...try to get base component template file |
314 | - $layoutFile = $this->layoutFile !== NULL ? $this->layoutFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'layout.latte'; |
|
314 | + $layoutFile = $this->layoutFile !== NULL ? $this->layoutFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'layout.latte'; |
|
315 | 315 | $template->setFile($layoutFile); |
316 | 316 | } |
317 | 317 | |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | */ |
333 | 333 | private function getConfirmerControl(string $name) : Confirmer |
334 | 334 | { |
335 | - $confirmer = $this->getComponent('confirmer-' . $name); |
|
335 | + $confirmer = $this->getComponent('confirmer-'.$name); |
|
336 | 336 | |
337 | 337 | if (!$confirmer instanceof Confirmer) { |
338 | 338 | throw new Exceptions\InvalidArgumentException(sprintf('Confirmation control "%s" does not exists.', $name)); |