From 70d73c7f9c5d5ff5667fadc46e36eb3326501ea3 Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Tue, 30 Dec 2014 20:56:37 +0100 Subject: [PATCH] Respecting PSR-2 --- Http/Controllers/Admin/MenuItemController.php | 2 ++ Repositories/Cache/CacheMenuItemDecorator.php | 2 +- Services/MenuOrdener.php | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Http/Controllers/Admin/MenuItemController.php b/Http/Controllers/Admin/MenuItemController.php index 7a931bc..b4fe3f9 100644 --- a/Http/Controllers/Admin/MenuItemController.php +++ b/Http/Controllers/Admin/MenuItemController.php @@ -60,6 +60,7 @@ public function update(Menu $menu, Menuitem $menuItem, UpdateMenuItemRequest $re $this->menuItem->update($menuItem, $this->addMenuId($menu, $request)); Flash::success(trans('menu::messages.menuitem updated')); + return $this->redirector->route('dashboard.menu.edit', [$menu->id]); } @@ -68,6 +69,7 @@ public function destroy(Menu $menu, Menuitem $menuItem) $this->menuItem->destroy($menuItem); Flash::success(trans('menu::messages.menuitem deleted')); + return $this->redirector->route('dashboard.menu.edit', [$menu->id]); } diff --git a/Repositories/Cache/CacheMenuItemDecorator.php b/Repositories/Cache/CacheMenuItemDecorator.php index e956935..3b20d62 100644 --- a/Repositories/Cache/CacheMenuItemDecorator.php +++ b/Repositories/Cache/CacheMenuItemDecorator.php @@ -87,7 +87,7 @@ function () use ($menuId) { /** * Get all root elements * - * @param int $menuId + * @param int $menuId * @return object */ public function allRootsForMenu($menuId) diff --git a/Services/MenuOrdener.php b/Services/MenuOrdener.php index 6280fa7..f818fdf 100644 --- a/Services/MenuOrdener.php +++ b/Services/MenuOrdener.php @@ -1,5 +1,6 @@ $item) { $menuItem = $this->menuItemRepository->find($item['id']);