Skip to content

Commit

Permalink
Merge pull request #3 from Harmonic/analysis-XZV6PY
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Craig Harman authored Jul 12, 2019
2 parents e0cbf2c + 59b308e commit 657df5f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/InertiaTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Request;

class InertiaTable {
class InertiaTable
{
/**
* Generates inertia view data for model.
*
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 657df5f

Please sign in to comment.