@@ -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 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | return $service; |
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | - throw new MenuItemConditionNotSupportedException("Condition $name is not defined."); |
|
| 42 | + throw new MenuItemConditionNotSupportedException("condition $name is not defined."); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | throw new InvalidMenuItemDefinitionException("Menu item is missing link."); |
| 58 | 58 | } |
| 59 | 59 | $item = new MenuItem($definition["link"], $text); |
| 60 | - if(array_key_exists(static::SECTION_CONDITIONS, $definition) AND is_array($definition[static::SECTION_CONDITIONS])) { |
|
| 60 | + if(array_key_exists(static::SECTION_CONDITIONS, $definition) and is_array($definition[static::SECTION_CONDITIONS])) { |
|
| 61 | 61 | foreach($definition[static::SECTION_CONDITIONS] as $condition => $value) { |
| 62 | 62 | try { |
| 63 | 63 | $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; |
| 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 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Menu; |
| 5 | 5 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $link = $this->link; |
| 33 | 33 | foreach($this->linkRenders as $render) { |
| 34 | 34 | if($render->isApplicable($this->link)) { |
| 35 | - $link = $render->renderLink($this->link); |
|
| 35 | + $link = $render->renderLink($this->link); |
|
| 36 | 36 | break; |
| 37 | 37 | } |
| 38 | 38 | } |
@@ -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 | |