Passed
Push — main ( b3d2d3...f7b23f )
by PRATIK
08:37 queued 04:51
created
src/Http/Controllers/Admin/SocialiteController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $user = User::where('email', $socialiteuser->email)->first();
51 51
 
52
-        if (! isset($user)) {
52
+        if (!isset($user)) {
53 53
             $user = User::create([
54 54
                 'name' => $socialiteuser->name,
55 55
                 'email' => $socialiteuser->email,
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $preferences = Preference::all();
80 80
             if (isset($preferences)) {
81 81
                 foreach ($preferences as $preference) {
82
-                    if (! isset($preference->roles)) {
82
+                    if (!isset($preference->roles)) {
83 83
                         $user->preferences()->attach($preference->id, [
84 84
                             'enabled' => $preference->active,
85 85
                         ]);
Please login to merge, or discard this patch.
src/Http/Controllers/Auth/RegisterController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         $preferences = Preference::all();
91 91
         if (isset($preferences)) {
92 92
             foreach ($preferences as $preference) {
93
-                if (! isset($preference->roles)) {
93
+                if (!isset($preference->roles)) {
94 94
                     $user->preferences()->attach($preference->id, [
95 95
                         'enabled' => $preference->active,
96 96
                     ]);
Please login to merge, or discard this patch.
src/Services/RepositoryPatternService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 {
11 11
     public static function ImplementNow($name, $makeRequest = false)
12 12
     {
13
-        if (! file_exists($repository_path = app_path('/Repositories'))) {
13
+        if (!file_exists($repository_path = app_path('/Repositories'))) {
14 14
             mkdir($repository_path, 0777, true);
15 15
         }
16
-        if (! file_exists($contract_path = app_path('/Contracts'))) {
16
+        if (!file_exists($contract_path = app_path('/Contracts'))) {
17 17
             mkdir($contract_path, 0777, true);
18 18
         }
19 19
 
Please login to merge, or discard this patch.
src/Services/MakePermission.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@
 block discarded – undo
57 57
     // Make a Policy
58 58
     protected static function makePolicy($name, $only_flags)
59 59
     {
60
-        if (! $only_flags) {
60
+        if (!$only_flags) {
61 61
             if (trim($name) != 'User' || trim($name) != 'user') {
62
-                if (! file_exists($path = app_path('Policies'))) {
62
+                if (!file_exists($path = app_path('Policies'))) {
63 63
                     mkdir($path, 0777, true);
64 64
                 }
65 65
                 $policyTemplate = str_replace(
Please login to merge, or discard this patch.
src/Services/MakeAPIResource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     protected static function makeRestAPIController($name)
43 43
     {
44 44
         $lowername = strtolower($name);
45
-        if (! file_exists($path = app_path('Http/Controllers/Admin/API/Restful'))) {
45
+        if (!file_exists($path = app_path('Http/Controllers/Admin/API/Restful'))) {
46 46
             mkdir($path, 0777, true);
47 47
         }
48 48
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     protected static function makeAPIController($name)
69 69
     {
70 70
         $lowername = strtolower($name);
71
-        if (! file_exists($path = app_path('Http/Controllers/Admin/API'))) {
71
+        if (!file_exists($path = app_path('Http/Controllers/Admin/API'))) {
72 72
             mkdir($path, 0777, true);
73 73
         }
74 74
         $controllerTemplate = str_replace(
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected static function makeClientAPIResource($name)
94 94
     {
95
-        if (! file_exists($path = app_path("/Http/Resources/Client/{$name}"))) {
95
+        if (!file_exists($path = app_path("/Http/Resources/Client/{$name}"))) {
96 96
             mkdir($path, 0777, true);
97 97
         }
98 98
         // Making Collection
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         file_put_contents(app_path("/Http/Resources/Client/{$name}/{$name}Resource.php"), $clientResourceTemplate);
129 129
 
130 130
         // Making Controller
131
-        if (! file_exists($path = app_path('Http/Controllers/API'))) {
131
+        if (!file_exists($path = app_path('Http/Controllers/API'))) {
132 132
             mkdir($path, 0777, true);
133 133
         }
134 134
         $controllerTemplate = str_replace(
Please login to merge, or discard this patch.
src/Console/Commands/AdmineticDummyCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function handle()
44 44
     {
45
-        if (! config('adminetic.migrate_with_dummy', false)) {
45
+        if (!config('adminetic.migrate_with_dummy', false)) {
46 46
             // Generating Roles
47 47
             $roles = [
48 48
                 [
Please login to merge, or discard this patch.
src/Models/Admin/Setting.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
     {
16 16
         parent::boot();
17 17
 
18
-        static::saving(function () {
18
+        static::saving(function() {
19 19
             self::cacheKey();
20 20
         });
21 21
 
22
-        static::deleting(function () {
22
+        static::deleting(function() {
23 23
             self::cacheKey();
24 24
         });
25 25
     }
Please login to merge, or discard this patch.
src/Models/Admin/Preference.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
     {
16 16
         parent::boot();
17 17
 
18
-        static::saving(function () {
18
+        static::saving(function() {
19 19
             self::cacheKey();
20 20
         });
21 21
 
22
-        static::deleting(function () {
22
+        static::deleting(function() {
23 23
             self::cacheKey();
24 24
         });
25 25
     }
Please login to merge, or discard this patch.
src/Models/Admin/Permission.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
     {
16 16
         parent::boot();
17 17
 
18
-        static::saving(function () {
18
+        static::saving(function() {
19 19
             self::cacheKey();
20 20
         });
21 21
 
22
-        static::deleting(function () {
22
+        static::deleting(function() {
23 23
             self::cacheKey();
24 24
         });
25 25
     }
Please login to merge, or discard this patch.