| @@ -14,4 +14,6 @@ | ||
| 14 | 14 | |
| 15 | 15 | namespace IPub\FlashMessages\Exceptions; | 
| 16 | 16 | |
| 17 | -class InvalidStateException extends \RuntimeException implements IException {} | |
| 18 | 17 | \ No newline at end of file | 
| 18 | +class InvalidStateException extends \RuntimeException implements IException | |
| 19 | +{ | |
| 20 | +} | |
| 19 | 21 | \ No newline at end of file | 
| @@ -14,4 +14,6 @@ | ||
| 14 | 14 | |
| 15 | 15 | namespace IPub\FlashMessages\Exceptions; | 
| 16 | 16 | |
| 17 | -interface IException {} | |
| 18 | 17 | \ No newline at end of file | 
| 18 | +interface IException | |
| 19 | +{ | |
| 20 | +} | |
| 19 | 21 | \ No newline at end of file | 
| @@ -14,4 +14,6 @@ | ||
| 14 | 14 | |
| 15 | 15 | namespace IPub\FlashMessages\Exceptions; | 
| 16 | 16 | |
| 17 | -class IOException extends \RuntimeException implements IException {} | |
| 18 | 17 | \ No newline at end of file | 
| 18 | +class IOException extends \RuntimeException implements IException | |
| 19 | +{ | |
| 20 | +} | |
| 19 | 21 | \ No newline at end of file | 
| @@ -14,4 +14,6 @@ | ||
| 14 | 14 | |
| 15 | 15 | namespace IPub\FlashMessages\Exceptions; | 
| 16 | 16 | |
| 17 | -class FileNotFoundException extends IOException implements IException {} | |
| 18 | 17 | \ No newline at end of file | 
| 18 | +class FileNotFoundException extends IOException implements IException | |
| 19 | +{ | |
| 20 | +} | |
| 19 | 21 | \ No newline at end of file | 
| @@ -89,8 +89,7 @@ | ||
| 89 | 89 | $templateFile = NULL, | 
| 90 | 90 | FlashMessages\SessionStorage $sessionStorage, | 
| 91 | 91 | Nette\ComponentModel\IContainer $parent = NULL, $name = NULL | 
| 92 | - ) | |
| 93 | -	{ | |
| 92 | +	) { | |
| 94 | 93 | // TODO: remove, only for tests | 
| 95 | 94 | parent::__construct(NULL, NULL); | 
| 96 | 95 | |
| @@ -229,8 +229,8 @@ | ||
| 229 | 229 | */ | 
| 230 | 230 | private function checkForAttribute(array $attributes, $type) | 
| 231 | 231 |  	{ | 
| 232 | -		foreach($attributes as $attribute) { | |
| 233 | - switch($type) | |
| 232 | +		foreach ($attributes as $attribute) { | |
| 233 | + switch ($type) | |
| 234 | 234 |  			{ | 
| 235 | 235 | case 'title': | 
| 236 | 236 |  					if (is_string($attribute) === TRUE || $attribute instanceof Translation\Phrase || $attribute instanceof Adapters\IPhraseAdapter) { |