Completed
Push — master ( 664709...70cc89 )
by Adam
05:40
created
src/IPub/FlashMessages/Components/Control.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,6 @@
 block discarded – undo
17 17
 use Nette;
18 18
 use Nette\Application;
19 19
 use Nette\Localization;
20
-use Nette\Utils;
21
-
22 20
 use IPub;
23 21
 use IPub\FlashMessages;
24 22
 use IPub\FlashMessages\Exceptions;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 		// If template was not defined before...
154 154
 		if ($this->template->getFile() === NULL) {
155 155
 			// ...try to get base component template file
156
-			$templateFile = !empty($this->templateFile) ? $this->templateFile : __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default' . DIRECTORY_SEPARATOR . 'default.latte';
156
+			$templateFile = !empty($this->templateFile) ? $this->templateFile : __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.'default'.DIRECTORY_SEPARATOR.'default.latte';
157 157
 			$this->template->setFile($templateFile);
158 158
 		}
159 159
 	}
@@ -192,12 +192,12 @@  discard block
 block discarded – undo
192 192
 			$template = basename($templateFile, '.latte');
193 193
 
194 194
 			// ...check if extension template is used
195
-			if (is_file(__DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $template . DIRECTORY_SEPARATOR . 'default.latte')) {
196
-				$templateFile = __DIR__ . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $template . DIRECTORY_SEPARATOR . 'default.latte';
195
+			if (is_file(__DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$template.DIRECTORY_SEPARATOR.'default.latte')) {
196
+				$templateFile = __DIR__.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$template.DIRECTORY_SEPARATOR.'default.latte';
197 197
 
198 198
 			} else {
199 199
 				// ...if not throw exception
200
-				throw new Exceptions\FileNotFoundException('Template file "' . $templateFile . '" was not found.');
200
+				throw new Exceptions\FileNotFoundException('Template file "'.$templateFile.'" was not found.');
201 201
 			}
202 202
 		}
203 203
 
Please login to merge, or discard this patch.
src/IPub/FlashMessages/Entities/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
 	 */
268 268
 	public function __toString()
269 269
 	{
270
-		return $this->level . ' ' . ($this->title ? $this->title . ' ' : '') . $this->getMessage();
270
+		return $this->level.' '.($this->title ? $this->title.' ' : '').$this->getMessage();
271 271
 	}
272 272
 
273 273
 	/**
Please login to merge, or discard this patch.
src/IPub/FlashMessages/DI/FlashMessagesExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 			->setClass(Events\OnResponseHandler::class);
93 93
 
94 94
 		$application = $builder->getDefinition('application');
95
-		$application->addSetup('$service->onResponse[] = ?', ['@' . $this->prefix('onResponseHandler')]);
95
+		$application->addSetup('$service->onResponse[] = ?', ['@'.$this->prefix('onResponseHandler')]);
96 96
 	}
97 97
 
98 98
 	/**
Please login to merge, or discard this patch.