Completed
Push — master ( 9f62da...b3ba8b )
by Jakub
05:48
created
src/DI/MenuFactory.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/MenuControl.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
       throw new MenuTypeAlreadyDefinedException("Menu type $name is already defined");
41 41
     }
42 42
     if(!file_exists($template)) {
43
-      throw new TemplateNotFoundException("File $template does not exist.");
43
+      throw new TemplateNotFoundException("file $template does not exist.");
44 44
     }
45 45
     $this->templates[$name] = realpath($template);
46 46
   }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         return $menu;
57 57
       }
58 58
     }
59
-    throw new MenuNotFoundException("Menu $menuName not found.");
59
+    throw new MenuNotFoundException("menu $menuName not found.");
60 60
   }
61 61
   
62 62
   /**
Please login to merge, or discard this patch.