From 59b308e29f4bb398379f30a9a03a5eaf612b3520 Mon Sep 17 00:00:00 2001 From: Craig Harman Date: Fri, 12 Jul 2019 08:14:29 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/InertiaTable.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/InertiaTable.php b/src/InertiaTable.php index 4a493c0..3b97404 100644 --- a/src/InertiaTable.php +++ b/src/InertiaTable.php @@ -7,7 +7,8 @@ use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Request; -class InertiaTable { +class InertiaTable +{ /** * Generates inertia view data for model. * @@ -16,7 +17,8 @@ class InertiaTable { * @param array $filterable A subset of the $columns array containing names of columsn that can be filtered * @return void */ - public function index(InertiaModel $model, array $columns = null, array $filterable = null) { + public function index(InertiaModel $model, array $columns = null, array $filterable = null) + { $modelName = class_basename($model); if ($columns == null) { // default to all columns @@ -30,7 +32,7 @@ public function index(InertiaModel $model, array $columns = null, array $filtera $modelPlural = Str::plural($modelName); - return Inertia::render($modelPlural . '/Index', [ + return Inertia::render($modelPlural.'/Index', [ 'filters' => Request::all('search', 'trashed'), 'order' => Request::all('orderColumn', 'orderDirection'), strtolower($modelPlural) => $model