@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | private function readCrumbs(CookieStore $cookies) { |
| 32 | 32 | if ($cookies->hasKey(self::COOKIE_KEY)) { |
| 33 | - return array_map(function ($array) { |
|
| 33 | + return array_map(function($array) { |
|
| 34 | 34 | return new BreadCrumb($array['caption'], $array['target']); |
| 35 | 35 | }, $cookies->read(self::COOKIE_KEY)->payload); |
| 36 | 36 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * @return BreadCrumb[] |
| 43 | 43 | */ |
| 44 | 44 | private function saveCrumbs($crumbs) { |
| 45 | - $this->cookies->create(new Cookie(array_map(function (BreadCrumb $crumb) { |
|
| 45 | + $this->cookies->create(new Cookie(array_map(function(BreadCrumb $crumb) { |
|
| 46 | 46 | return [ |
| 47 | 47 | 'caption' => $crumb->getCaption(), |
| 48 | 48 | 'target' => $crumb->getTarget() |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | $serialized = array_values($serialized); |
| 44 | 44 | $serialized = array_values(array_slice($serialized, 1)); |
| 45 | - $serialized = array_map(function ($item) use ($itemParameter) { |
|
| 45 | + $serialized = array_map(function($item) use ($itemParameter) { |
|
| 46 | 46 | return $this->fields->getField($itemParameter)->inflate($itemParameter, $item); |
| 47 | 47 | }, $serialized); |
| 48 | 48 | return $serialized; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | public function render() { |
| 37 | - $render = function (MenuItem $item) { |
|
| 37 | + $render = function(MenuItem $item) { |
|
| 38 | 38 | return $item->render(); |
| 39 | 39 | }; |
| 40 | 40 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | new Element('span', ['class' => 'caret']) |
| 34 | 34 | ]), |
| 35 | 35 | new Element('ul', ['class' => 'dropdown-menu'], |
| 36 | - array_map(function (MenuItem $item) { |
|
| 36 | + array_map(function(MenuItem $item) { |
|
| 37 | 37 | return $item->render(); |
| 38 | 38 | }, $this->items) |
| 39 | 39 | ) |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | private function assembleBreadCrumbs() { |
| 105 | - return array_map(function (BreadCrumb $crumb) { |
|
| 105 | + return array_map(function(BreadCrumb $crumb) { |
|
| 106 | 106 | return [ |
| 107 | 107 | 'target' => $crumb->getTarget(), |
| 108 | 108 | 'caption' => $crumb->getCaption() |