Completed
Push — master ( 5d494d...48c5e1 )
by Adam
02:09
created
src/IPub/ConfirmationDialog/Components/Confirmer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
 	 */
232 232
 	protected function generateToken() : string
233 233
 	{
234
-		return base_convert(md5(uniqid('confirm' . $this->getName(), TRUE)), 16, 36);
234
+		return base_convert(md5(uniqid('confirm'.$this->getName(), TRUE)), 16, 36);
235 235
 	}
236 236
 
237 237
 	/**
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/Components/BaseControl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -149,11 +149,11 @@
 block discarded – undo
149 149
 		$dir = dirname($this->getReflection()->getFileName());
150 150
 
151 151
 		// ...check if extension template is used
152
-		if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile)) {
153
-			return $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile;
152
+		if (is_file($dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile)) {
153
+			return $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile;
154 154
 
155
-		} elseif (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile . '.latte')) {
156
-			return $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile . '.latte';
155
+		} elseif (is_file($dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile.'.latte')) {
156
+			return $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile.'.latte';
157 157
 		}
158 158
 
159 159
 		// ...if not throw exception
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/Components/Control.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 		string $layoutFile = NULL,
67 67
 		string $templateFile = NULL
68 68
 	) {
69
-		list(, , $parent, $name) = func_get_args() + [NULL, NULL, NULL, NULL];
69
+		list(,, $parent, $name) = func_get_args() + [NULL, NULL, NULL, NULL];
70 70
 
71 71
 		parent::__construct($parent, $name);
72 72
 
@@ -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
 	/**
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 			throw new Exceptions\InvalidArgumentException('$name must be string.');
237 237
 		}
238 238
 
239
-		if ((!$this->confirmer = $this['confirmer-' . $name]) || !$this->confirmer->isConfigured()) {
239
+		if ((!$this->confirmer = $this['confirmer-'.$name]) || !$this->confirmer->isConfigured()) {
240 240
 			throw new Exceptions\InvalidStateException(sprintf('Confirmer "%s" do not exist.', $name));
241 241
 		}
242 242
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 		$name = Utils\Strings::substring($signal, 7);
264 264
 		$name{0} = strtolower($name{0});
265 265
 
266
-		if (!$this['confirmer-' . $name]->isConfigured()) {
266
+		if (!$this['confirmer-'.$name]->isConfigured()) {
267 267
 			throw new Exceptions\InvalidArgumentException('Invalid confirmation control.');
268 268
 		}
269 269
 
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 			// If template was not defined before...
309 309
 			if ($template->getFile() === NULL) {
310 310
 				// ...try to get base component template file
311
-				$layoutFile = $this->layoutFile !== NULL ? $this->layoutFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'layout.latte';
311
+				$layoutFile = $this->layoutFile !== NULL ? $this->layoutFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'layout.latte';
312 312
 				$template->setFile($layoutFile);
313 313
 			}
314 314
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 	 */
330 330
 	private function getConfirmerControl(string $name) : Confirmer
331 331
 	{
332
-		$confirmer = $this->getComponent('confirmer-' . $name);
332
+		$confirmer = $this->getComponent('confirmer-'.$name);
333 333
 
334 334
 		if (!$confirmer instanceof Confirmer) {
335 335
 			throw new Exceptions\InvalidArgumentException(sprintf('Confirmation control "%s" does not exists.', $name));
Please login to merge, or discard this patch.
src/IPub/ConfirmationDialog/DI/ConfirmationDialogExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 	public function getTranslationResources()
94 94
 	{
95 95
 		return [
96
-			__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Translations'
96
+			__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Translations'
97 97
 		];
98 98
 	}
99 99
 }
Please login to merge, or discard this patch.