Completed
Push — master ( 60e840...4ca837 )
by Babak
02:59
created
src/BaseController.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -195,8 +195,7 @@  discard block
 block discarded – undo
195 195
                 $this->model
196 196
                     ->whereKey(collect($this->model
197 197
                         ->search(($request->get('query')))
198
-                        ->raw())->get('ids')) :
199
-                $this->model;
198
+                        ->raw())->get('ids')) : $this->model;
200 199
             if (array_key_exists('file', $request->toArray())) {
201 200
                 //TODO add relation on top if here and create a tree flatter array in array helper
202 201
                 return (new ExcelHelper())->setOptions([
@@ -521,7 +520,7 @@  discard block
 block discarded – undo
521 520
      */
522 521
     public function getTrans($method, $status)
523 522
     {
524
-        return trans('laravel_smart_restful::'.'controller.'.get_class($this->model) . '.' . $method . '.' . $status);
523
+        return trans('laravel_smart_restful::' . 'controller.' . get_class($this->model) . '.' . $method . '.' . $status);
525 524
     }
526 525
 
527 526
     public function setLocale()
Please login to merge, or discard this patch.
src/LaravelSmartRestfulServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
             // Publishing the translation files.
40 40
             $this->publishes([
41
-                __DIR__.'/../resources/lang/' => resource_path('lang/vendor/alive2212'),
41
+                __DIR__ . '/../resources/lang/' => resource_path('lang/vendor/alive2212'),
42 42
             ], 'laravel_smart_restful.lang');
43 43
 
44 44
             // Registering package commands.
Please login to merge, or discard this patch.