Completed
Push — master ( 671875...a8b5df )
by Babak
03:54
created
src/BaseController.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -207,8 +207,7 @@  discard block
 block discarded – undo
207 207
                 $this->model
208 208
                     ->whereKey(collect($this->model
209 209
                         ->search(($request->get('query')))
210
-                        ->raw())->get('ids')) :
211
-                $this->model;
210
+                        ->raw())->get('ids')) : $this->model;
212 211
             if (array_key_exists('file', $request->toArray())) {
213 212
                 //TODO add relation on top if here and create a tree flatter array in array helper
214 213
                 return (new ExcelHelper())->setOptions([
@@ -523,7 +522,7 @@  discard block
 block discarded – undo
523 522
      */
524 523
     public function getTrans($method, $status)
525 524
     {
526
-        return trans('laravel_smart_restful::' . $this->LOCALE_PREFIX.'.' . get_class($this->model) . '.' . $method . '.' . $status);
525
+        return trans('laravel_smart_restful::' . $this->LOCALE_PREFIX . '.' . get_class($this->model) . '.' . $method . '.' . $status);
527 526
     }
528 527
 
529 528
     public function setLocale()
Please login to merge, or discard this patch.