@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Menu; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Menu; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Menu; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Menu; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Menu; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Menu; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Menu\DI; |
5 | 5 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | return $service; |
43 | 43 | } |
44 | 44 | } |
45 | - throw new MenuItemConditionNotSupportedException("Condition $name is not defined."); |
|
45 | + throw new MenuItemConditionNotSupportedException("condition $name is not defined."); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | throw new InvalidMenuItemDefinitionException("Menu item is missing link."); |
63 | 63 | } |
64 | 64 | $item = new MenuItem($definition["link"], $text); |
65 | - if(array_key_exists(MenuExtension::SECTION_CONDITIONS, $definition) AND is_array($definition[MenuExtension::SECTION_CONDITIONS])) { |
|
65 | + if(array_key_exists(MenuExtension::SECTION_CONDITIONS, $definition) and is_array($definition[MenuExtension::SECTION_CONDITIONS])) { |
|
66 | 66 | foreach($definition[MenuExtension::SECTION_CONDITIONS] as $condition => $value) { |
67 | 67 | try { |
68 | 68 | $conditionService = $this->getCondition($condition); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Menu\DI; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Menu; |
5 | 5 |