Passed
Push — master ( 930fe0...265458 )
by Babak
02:08
created
tests/Unit/DemoTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $app->bind('app', 'Illuminate\Container\Container');
47 47
 
48 48
         foreach ($this->PACKAGE_CLASSES as $PACKAGE_CLASS) {
49
-            $app->bind($PACKAGE_CLASS, $this->VENDOR.'\\'.$this->PACKAGE_NAME.'\\'.$PACKAGE_CLASS);
49
+            $app->bind($PACKAGE_CLASS, $this->VENDOR . '\\' . $this->PACKAGE_NAME . '\\' . $PACKAGE_CLASS);
50 50
         }
51 51
 
52 52
         $app->bind('Cache', 'Illuminate\Support\Facades\Cache');
Please login to merge, or discard this patch.
src/BaseModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
      */
97 97
     public function getMethods()
98 98
     {
99
-        return (new ReflectionHelper())->getClassMethodsNames($this,\ReflectionMethod::IS_PUBLIC);
99
+        return (new ReflectionHelper())->getClassMethodsNames($this, \ReflectionMethod::IS_PUBLIC);
100 100
     }
101 101
 
102 102
     /**
Please login to merge, or discard this patch.
src/BaseAuthModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 class BaseAuthModel extends Authenticatable
15 15
 {
16
-    use Searchable, PivotEventTrait,Notifiable, HasApiTokens, MetaTrait;
16
+    use Searchable, PivotEventTrait, Notifiable, HasApiTokens, MetaTrait;
17 17
 
18 18
     /**
19 19
      * default relations of method
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function getMethods()
102 102
     {
103
-        return (new LaravelReflectionHelper())->getClassMethodsNames($this,\ReflectionMethod::IS_PUBLIC);
103
+        return (new LaravelReflectionHelper())->getClassMethodsNames($this, \ReflectionMethod::IS_PUBLIC);
104 104
     }
105 105
 
106 106
     /**
Please login to merge, or discard this patch.
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_smart_restful');
16
+            $this->loadTranslationsFrom(resource_path('lang/vendor/alive2212'), 'laravel_smart_restful');
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_smart_restful.lang');
43 43
 
44 44
             // Registering package commands.
Please login to merge, or discard this patch.
src/BaseAuthLumenModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 class BaseAuthLumenModel extends Model implements AuthenticatableContract, AuthorizableContract
14 14
 {
15
-    use Authenticatable, Authorizable,Searchable;
15
+    use Authenticatable, Authorizable, Searchable;
16 16
 
17 17
     /**
18 18
      * default relations of method
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function getMethods()
101 101
     {
102
-        return (new LaravelReflectionHelper())->getClassMethodsNames($this,\ReflectionMethod::IS_PUBLIC);
102
+        return (new LaravelReflectionHelper())->getClassMethodsNames($this, \ReflectionMethod::IS_PUBLIC);
103 103
     }
104 104
 
105 105
     /**
Please login to merge, or discard this patch.
src/BaseController.php 1 patch
Spacing   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     public function index(Request $request)
174 174
     {
175 175
         // handle permission
176
-        list($request,$filters) = $this->handlePermission(__FUNCTION__, $request);
176
+        list($request, $filters) = $this->handlePermission(__FUNCTION__, $request);
177 177
 
178 178
         // create response model
179 179
         $response = new ResponseModel();
@@ -227,8 +227,7 @@  discard block
 block discarded – undo
227 227
                 $this->model
228 228
                     ->whereKey(collect($this->model
229 229
                         ->search(($request->get('query')))
230
-                        ->raw())->get('ids')) :
231
-                $this->model;
230
+                        ->raw())->get('ids')) : $this->model;
232 231
 
233 232
             if (array_key_exists('file', $request->toArray())) {
234 233
                 //TODO add relation on top if here and create a tree flatter array in array helper
@@ -767,14 +766,14 @@  discard block
 block discarded – undo
767 766
         return [$request, null];
768 767
     }
769 768
 
770
-    public function handleShowAdminPermission(Request $request,$id)
769
+    public function handleShowAdminPermission(Request $request, $id)
771 770
     {
772 771
         $filters = [];
773 772
 
774
-        return [$request,$filters];
773
+        return [$request, $filters];
775 774
     }
776 775
 
777
-    public function handleShowBranchPermission(Request $request,$id)
776
+    public function handleShowBranchPermission(Request $request, $id)
778 777
     {
779 778
         $filters = [];
780 779
         array_push($filters,
@@ -793,10 +792,10 @@  discard block
 block discarded – undo
793 792
                 ['group_id', '=', $group['id']]);
794 793
         }
795 794
 
796
-        return [$request,$filters];
795
+        return [$request, $filters];
797 796
     }
798 797
 
799
-    public function handleShowOwnPermission(Request $request,$id)
798
+    public function handleShowOwnPermission(Request $request, $id)
800 799
     {
801 800
         $filters = [];
802 801
         array_push($filters,
@@ -815,10 +814,10 @@  discard block
 block discarded – undo
815 814
                 ['group_id', '=', $group['id']]);
816 815
         }
817 816
 
818
-        return [$request,$filters];
817
+        return [$request, $filters];
819 818
     }
820 819
 
821
-    public function handleShowGuestPermission(Request $request,$id)
820
+    public function handleShowGuestPermission(Request $request, $id)
822 821
     {
823 822
         $filters = [];
824 823
         array_push($filters,
@@ -837,7 +836,7 @@  discard block
 block discarded – undo
837 836
                 ['group_id', '=', $group['id']]);
838 837
         }
839 838
 
840
-        return [$request,$filters];
839
+        return [$request, $filters];
841 840
     }
842 841
 
843 842
     public function handleOwnPermission($functionName, Request $request = null, $params)
Please login to merge, or discard this patch.