Skip to content

Commit ceb52d9

Browse files
StyleCIBotpxpm
authored andcommitted
Apply fixes from StyleCI
1 parent 59232ab commit ceb52d9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

app/Http/Controllers/Admin/MonsterCrudController.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ protected function addCustomCrudFilters()
727727
],
728728
false, // the simple filter has no values, just the "Draft" label specified above
729729
function () { // if the filter is active (the GET parameter "draft" exits)
730-
$this->crud->addClause('where', 'checkbox', '1');
730+
$this->crud->addClause('where', 'checkbox', '1');
731731
}
732732
);
733733

@@ -748,7 +748,7 @@ function () { // if the filter is active (the GET parameter "draft" exits)
748748
],
749749
false,
750750
function ($value) { // if the filter is active
751-
$this->crud->addClause('where', 'text', 'LIKE', "%$value%");
751+
$this->crud->addClause('where', 'text', 'LIKE', "%$value%");
752752
}
753753
);
754754

@@ -762,7 +762,7 @@ function ($value) { // if the filter is active
762762
],
763763
false,
764764
function ($value) { // if the filter is active
765-
$range = json_decode($value);
765+
$range = json_decode($value);
766766
if ($range->from && $range->to) {
767767
$this->crud->addClause('where', 'number', '>=', (float) $range->from);
768768
$this->crud->addClause('where', 'number', '<=', (float) $range->to);
@@ -778,7 +778,7 @@ function ($value) { // if the filter is active
778778
],
779779
false,
780780
function ($value) { // if the filter is active, apply these constraints
781-
$this->crud->addClause('where', 'date', '=', $value);
781+
$this->crud->addClause('where', 'date', '=', $value);
782782
}
783783
);
784784

@@ -796,7 +796,7 @@ function ($value) { // if the filter is active, apply these constraints
796796
],
797797
false,
798798
function ($value) { // if the filter is active, apply these constraints
799-
$dates = json_decode($value);
799+
$dates = json_decode($value);
800800
$this->crud->addClause('where', 'date', '>=', $dates->from);
801801
$this->crud->addClause('where', 'date', '<=', $dates->to);
802802
}
@@ -809,7 +809,7 @@ function ($value) { // if the filter is active, apply these constraints
809809
], function () {
810810
return \Backpack\NewsCRUD\app\Models\Category::all()->keyBy('id')->pluck('name', 'id')->toArray();
811811
}, function ($value) { // if the filter is active
812-
$this->crud->addClause('where', 'select2', $value);
812+
$this->crud->addClause('where', 'select2', $value);
813813
});
814814

815815
$this->crud->addFilter([ // select2_multiple filter
@@ -819,9 +819,9 @@ function ($value) { // if the filter is active, apply these constraints
819819
], function () {
820820
return \Backpack\NewsCRUD\app\Models\Category::all()->keyBy('id')->pluck('name', 'id')->toArray();
821821
}, function ($values) { // if the filter is active
822-
foreach (json_decode($values) as $key => $value) {
823-
$this->crud->addClause('orWhere', 'select2', $value);
824-
}
822+
foreach (json_decode($values) as $key => $value) {
823+
$this->crud->addClause('orWhere', 'select2', $value);
824+
}
825825
});
826826

827827
$this->crud->addFilter(
@@ -834,7 +834,7 @@ function ($value) { // if the filter is active, apply these constraints
834834
],
835835
url('api/article-search'), // the ajax route
836836
function ($value) { // if the filter is active
837-
$this->crud->addClause('where', 'select2_from_ajax', $value);
837+
$this->crud->addClause('where', 'select2_from_ajax', $value);
838838
}
839839
);
840840
}

0 commit comments

Comments
 (0)