Passed
Push — master ( 5918a4...be39d3 )
by Adam
03:03
created
src/IPub/ConfirmationDialog/Components/Control.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           12.03.14
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\ConfirmationDialog\Components;
18 18
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	public function getTemplateFile() : string
110 110
 	{
111 111
 		// ...try to get default component layout file
112
-		return $this->templateFile !== NULL ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default.latte';
112
+		return $this->templateFile !== NULL ? $this->templateFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default.latte';
113 113
 	}
114 114
 
115 115
 	/**
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 			throw new Exceptions\InvalidArgumentException('$name must be string.');
235 235
 		}
236 236
 
237
-		if ((!$this->confirmer = $this['confirmer-' . $name]) || !$this->confirmer->isConfigured()) {
237
+		if ((!$this->confirmer = $this['confirmer-'.$name]) || !$this->confirmer->isConfigured()) {
238 238
 			throw new Exceptions\InvalidStateException(sprintf('Confirmer "%s" do not exist.', $name));
239 239
 		}
240 240
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 		$name = Utils\Strings::substring($signal, 7);
262 262
 		$name{0} = strtolower($name{0});
263 263
 
264
-		if (!$this['confirmer-' . $name]->isConfigured()) {
264
+		if (!$this['confirmer-'.$name]->isConfigured()) {
265 265
 			throw new Exceptions\InvalidArgumentException('Invalid confirmation control.');
266 266
 		}
267 267
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 			// If template was not defined before...
307 307
 			if ($template->getFile() === NULL) {
308 308
 				// ...try to get base component template file
309
-				$layoutFile = $this->layoutFile !== NULL ? $this->layoutFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'layout.latte';
309
+				$layoutFile = $this->layoutFile !== NULL ? $this->layoutFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'layout.latte';
310 310
 				$template->setFile($layoutFile);
311 311
 			}
312 312
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 	 */
328 328
 	private function getConfirmerControl(string $name) : Confirmer
329 329
 	{
330
-		$confirmer = $this->getComponent('confirmer-' . $name);
330
+		$confirmer = $this->getComponent('confirmer-'.$name);
331 331
 
332 332
 		if (!$confirmer instanceof Confirmer) {
333 333
 			throw new Exceptions\InvalidArgumentException(sprintf('Confirmation control "%s" does not exists.', $name));
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/Components/IConfirmer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           31.01.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\ConfirmationDialog\Components;
18 18
 
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/Components/IControl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           12.03.14
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\ConfirmationDialog\Components;
18 18
 
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/Components/BaseControl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           12.03.14
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\ConfirmationDialog\Components;
18 18
 
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
 		$templateName = preg_replace('/.latte/', '', $templateFile);
155 155
 
156 156
 		// ...check if extension template is used
157
-		if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateName . '.latte')) {
158
-			return $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateName . '.latte';
157
+		if (is_file($dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateName.'.latte')) {
158
+			return $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateName.'.latte';
159 159
 		}
160 160
 
161 161
 		// ...if not throw exception
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/TConfirmationDialog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @date           01.02.15
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\ConfirmationDialog;
18 18
 
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/DI/ConfirmationDialogExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @date           08.06.14
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 namespace IPub\ConfirmationDialog\DI;
18 18
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	public function getTranslationResources() : array
100 100
 	{
101 101
 		return [
102
-			__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Translations'
102
+			__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Translations'
103 103
 		];
104 104
 	}
105 105
 }
Please login to merge, or discard this patch.