Skip to content

Commit

Permalink
Merge pull request #463 from uasoft-indonesia/analysis-2QW1NZ
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
4fdal authored Nov 12, 2021
2 parents eb2c9fc + 7e2e529 commit 90305e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Controllers/BadasoMenuController.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function browseMenuItemByKeys(Request $request)
$data = [];
foreach ($menus as $index => $menu) {
$menu_items = $all_menu_items
->where("parent_id", null)
->where('parent_id', null)
->where('menu_id', $menu->id)->map(function ($item) use ($all_menu_items) {
$children = array_values($all_menu_items->where('parent_id', $item->id)->toArray());

Expand Down
5 changes: 2 additions & 3 deletions src/Seeder/Configurations/FixedMenuItemSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

namespace Database\Seeders\Badaso;

use Uasoft\Badaso\Models\Menu;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Uasoft\Badaso\Models\Menu;
use Uasoft\Badaso\Models\MenuItem;

class FixedMenuItemSeeder extends Seeder
Expand Down Expand Up @@ -217,7 +216,7 @@ public function run()
}
}
} catch (\Exception $e) {
throw new \Exception('Exception occur ' . $e);
throw new \Exception('Exception occur '.$e);
\DB::rollBack();
}

Expand Down

0 comments on commit 90305e9

Please sign in to comment.