@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | public function getTemplateFile() |
114 | 114 | { |
115 | 115 | // ...try to get default component layout file |
116 | - return !empty($this->templateFile) ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR .'template'. DIRECTORY_SEPARATOR .'default.latte'; |
|
116 | + return !empty($this->templateFile) ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte'; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | throw new Exceptions\InvalidArgumentException("Confirmation control name contain invalid characters."); |
153 | 153 | |
154 | 154 | // Check confirmer |
155 | - } else if ((!$confirmer = $this->getComponent('confirmer-'. $name)) || !$confirmer instanceof Confirmer || $confirmer->isConfigured()) { |
|
155 | + } else if ((!$confirmer = $this->getComponent('confirmer-' . $name)) || !$confirmer instanceof Confirmer || $confirmer->isConfigured()) { |
|
156 | 156 | throw new Exceptions\InvalidArgumentException("Confirmation control '$name' could not be created."); |
157 | 157 | |
158 | 158 | } else { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | */ |
178 | 178 | public function getConfirmer($name) |
179 | 179 | { |
180 | - if ((!$confirmer = $this->getComponent('confirmer-'. $name)) || !$confirmer instanceof Confirmer || !$confirmer->isConfigured()) { |
|
180 | + if ((!$confirmer = $this->getComponent('confirmer-' . $name)) || !$confirmer instanceof Confirmer || !$confirmer->isConfigured()) { |
|
181 | 181 | throw new Exceptions\InvalidArgumentException("Confirmation control '$name' does not exists."); |
182 | 182 | } |
183 | 183 | |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | throw new Exceptions\InvalidArgumentException('$name must be string.'); |
242 | 242 | } |
243 | 243 | |
244 | - if ((!$this->confirmer = $this['confirmer-'. $name]) || !$this->confirmer->isConfigured()) { |
|
244 | + if ((!$this->confirmer = $this['confirmer-' . $name]) || !$this->confirmer->isConfigured()) { |
|
245 | 245 | throw new Exceptions\InvalidStateException("Confirmer '$name' do not exist."); |
246 | 246 | } |
247 | 247 | |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | $name = Utils\Strings::substring($signal, 7); |
268 | 268 | $name{0} = strtolower($name{0}); |
269 | 269 | |
270 | - if (!$this['confirmer-'. $name]->isConfigured()) { |
|
270 | + if (!$this['confirmer-' . $name]->isConfigured()) { |
|
271 | 271 | throw new Exceptions\InvalidArgumentException('Invalid confirmation control.'); |
272 | 272 | } |
273 | 273 |