Completed
Push — master ( 4ca837...424429 )
by Babak
04:19
created
src/BaseController.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -204,8 +204,7 @@  discard block
 block discarded – undo
204 204
                 $this->model
205 205
                     ->whereKey(collect($this->model
206 206
                         ->search(($request->get('query')))
207
-                        ->raw())->get('ids')) :
208
-                $this->model;
207
+                        ->raw())->get('ids')) : $this->model;
209 208
             if (array_key_exists('file', $request->toArray())) {
210 209
                 //TODO add relation on top if here and create a tree flatter array in array helper
211 210
                 return (new ExcelHelper())->setOptions([
@@ -365,8 +364,7 @@  discard block
 block discarded – undo
365 364
             $response->setData($result
366 365
                 ->with(
367 366
                     collect($this->storeLoad)->count() == 0 ?
368
-                        $this->indexLoad :
369
-                        $this->storeLoad
367
+                        $this->indexLoad : $this->storeLoad
370 368
                 )
371 369
                 ->get());
372 370
 
Please login to merge, or discard this patch.