@@ -16,10 +16,8 @@ |
||
| 16 | 16 | |
| 17 | 17 | use Nette; |
| 18 | 18 | use Nette\Localization; |
| 19 | - |
|
| 20 | 19 | use Kdyby; |
| 21 | 20 | use Kdyby\Translation; |
| 22 | - |
|
| 23 | 21 | use IPub; |
| 24 | 22 | use IPub\FlashMessages\Adapters; |
| 25 | 23 | use IPub\FlashMessages\Entities; |
@@ -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) { |