@@ -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 |
@@ -40,14 +40,14 @@ discard block |
||
40 | 40 | return $service; |
41 | 41 | } |
42 | 42 | } |
43 | - throw new MenuItemConditionNotSupportedException("Condition $name is not defined."); |
|
43 | + throw new MenuItemConditionNotSupportedException("condition $name is not defined."); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | 47 | * @throws MenuItemConditionNotSupportedException |
48 | 48 | */ |
49 | 49 | protected function insertConditions(MenuItem &$item, array $definition): void { |
50 | - if(!array_key_exists(static::SECTION_CONDITIONS, $definition) OR !is_array($definition[static::SECTION_CONDITIONS])) { |
|
50 | + if(!array_key_exists(static::SECTION_CONDITIONS, $definition) or !is_array($definition[static::SECTION_CONDITIONS])) { |
|
51 | 51 | return; |
52 | 52 | } |
53 | 53 | foreach($definition[static::SECTION_CONDITIONS] as $condition => $value) { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | } |
77 | 77 | $item = new MenuItem($definition["link"], $text); |
78 | 78 | $this->insertConditions($item, $definition); |
79 | - if(isset($definition["items"]) AND is_array($definition["items"])) { |
|
79 | + if(isset($definition["items"]) and is_array($definition["items"])) { |
|
80 | 80 | foreach($definition["items"] as $subtext => $subdefinition) { |
81 | 81 | $item[] = $this->createItem($subtext, $subdefinition); |
82 | 82 | } |
@@ -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 |