Completed
Push — master ( a8b5df...622773 )
by Babak
02:53
created
src/LaravelSmartRestfulServiceProvider.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function boot()
15 15
     {
16
-         $this->loadTranslationsFrom(resource_path('lang/vendor/alive2212'), 'laravel_setting_service');
16
+            $this->loadTranslationsFrom(resource_path('lang/vendor/alive2212'), 'laravel_setting_service');
17 17
         // $this->loadViewsFrom(__DIR__.'/../resources/views', 'alive2212');
18 18
 //        $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
19 19
 //        $this->loadRoutesFrom(__DIR__.'/routes.php');
Please login to merge, or discard this 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_setting_service.lang');
43 43
 
44 44
             // Registering package commands.
Please login to merge, or discard this patch.
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([
@@ -522,7 +521,7 @@  discard block
 block discarded – undo
522 521
      */
523 522
     public function getTrans($method, $status)
524 523
     {
525
-        return trans('laravel_smart_restful::' . $this->LOCALE_PREFIX.'.' . get_class($this->model) . '.' . $method . '.' . $status);
524
+        return trans('laravel_smart_restful::' . $this->LOCALE_PREFIX . '.' . get_class($this->model) . '.' . $method . '.' . $status);
526 525
     }
527 526
 
528 527
     /**
Please login to merge, or discard this patch.