Completed
Push — master ( f3ccc1...bee11b )
by Jakub
02:32
created
src/InvalidMenuItemDefinitionException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Menu;
5 5
 
Please login to merge, or discard this patch.
src/MenuNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Menu;
5 5
 
Please login to merge, or discard this patch.
src/ConditionCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Menu;
5 5
 
Please login to merge, or discard this patch.
src/DI/MenuFactory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Menu\DI;
5 5
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
   /**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
       throw new InvalidMenuItemDefinitionException("Menu item is missing link.");
59 59
     }
60 60
     $item = new MenuItem($definition["link"], $text);
61
-    if(array_key_exists(static::SECTION_CONDITIONS, $definition) AND is_array($definition[static::SECTION_CONDITIONS])) {
61
+    if(array_key_exists(static::SECTION_CONDITIONS, $definition) and is_array($definition[static::SECTION_CONDITIONS])) {
62 62
       foreach($definition[static::SECTION_CONDITIONS] as $condition => $value) {
63 63
         try {
64 64
           $conditionService = $this->getCondition($condition);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $item->addCondition($conditionService, $value);
69 69
       }
70 70
     }
71
-    if(isset($definition["items"]) AND is_array($definition["items"])) {
71
+    if(isset($definition["items"]) and is_array($definition["items"])) {
72 72
       foreach($definition["items"] as $subtext => $subdefinition) {
73 73
         $item[] = $this->createItem($subtext, $subdefinition);
74 74
       }
Please login to merge, or discard this patch.
src/BaseCondition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Menu;
5 5
 
Please login to merge, or discard this patch.
src/LinkRenderUrl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Menu;
5 5
 
Please login to merge, or discard this patch.
src/MenuItem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/LinkRenderJavaScriptAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Menu;
5 5
 
Please login to merge, or discard this patch.
src/LinkRenderPresenterAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Menu;
5 5
 
Please login to merge, or discard this patch.