| @@ -44,14 +44,14 @@ discard block | ||
| 44 | 44 | return $condition; | 
| 45 | 45 | } | 
| 46 | 46 | } | 
| 47 | -    throw new MenuItemConditionNotSupportedException("Condition $name is not defined."); | |
| 47 | +    throw new MenuItemConditionNotSupportedException("condition $name is not defined."); | |
| 48 | 48 | } | 
| 49 | 49 | |
| 50 | 50 | /** | 
| 51 | 51 | * @throws MenuItemConditionNotSupportedException | 
| 52 | 52 | */ | 
| 53 | 53 |    protected function insertConditions(MenuItem &$item, array $definition): void { | 
| 54 | -    if(!array_key_exists(static::SECTION_CONDITIONS, $definition) OR !is_array($definition[static::SECTION_CONDITIONS])) { | |
| 54 | +    if(!array_key_exists(static::SECTION_CONDITIONS, $definition) or !is_array($definition[static::SECTION_CONDITIONS])) { | |
| 55 | 55 | return; | 
| 56 | 56 | } | 
| 57 | 57 |      foreach($definition[static::SECTION_CONDITIONS] as $condition => $value) { | 
| @@ -80,7 +80,7 @@ discard block | ||
| 80 | 80 | } | 
| 81 | 81 | $item = new MenuItem($definition["link"], $text); | 
| 82 | 82 | $this->insertConditions($item, $definition); | 
| 83 | -    if(isset($definition["items"]) AND is_array($definition["items"])) { | |
| 83 | +    if(isset($definition["items"]) and is_array($definition["items"])) { | |
| 84 | 84 |        foreach($definition["items"] as $subtext => $subdefinition) { | 
| 85 | 85 | $item[] = $this->createItem($subtext, $subdefinition); | 
| 86 | 86 | } |