Completed
Push — master ( f67f4f...77dcfd )
by Curtis
40s queued 12s
created
app/Logic/Activation/ActivationRepository.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -75,13 +75,13 @@
 block discarded – undo
75 75
     }
76 76
 
77 77
 
78
-     /**
79
-     * Creates a token and send email.- api
80
-     *
81
-     * @param \App\Models\User $user
82
-     *
83
-     * @return bool or void
84
-     */
78
+        /**
79
+         * Creates a token and send email.- api
80
+         *
81
+         * @param \App\Models\User $user
82
+         *
83
+         * @return bool or void
84
+         */
85 85
     public function createTokenAndSendEmailApi(User $user)
86 86
     {
87 87
         $activations = Activation::where('user_id', $user->id)
Please login to merge, or discard this patch.
app/Jobs/Tenant/Migration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
      *
32 32
      * @return void
33 33
      */
34
-    public function __construct(Company $tenant, $name='', $email='', $password='')
34
+    public function __construct(Company $tenant, $name = '', $email = '', $password = '')
35 35
     {
36 36
         //
37 37
         $this->tenant = $tenant;
38 38
         $this->name = $name;
39
-        $this->email= $email;
39
+        $this->email = $email;
40 40
         $this->password = $password;
41 41
         // $this->queue = 'sync';
42 42
     }
Please login to merge, or discard this patch.
app/Service/MixedConnection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public static function set($user, $tenant)
11 11
     {
12
-        if ( $tenant) {
12
+        if ($tenant) {
13 13
             self::connection(Connections::Tenant);
14 14
         } else {
15 15
             self::connection('mysql');
Please login to merge, or discard this patch.
app/Http/Middleware/Multitenant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         \DB::purge('mysql');
24 24
         \DB::reconnect('mysql');
25 25
 
26
-        if (! $request->user()) {
26
+        if (!$request->user()) {
27 27
             return $next($request);
28 28
         }
29 29
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     protected function create(array $data)
46 46
     {
47
-        try{
47
+        try {
48 48
             DB::beginTransaction();
49 49
             // create person
50 50
             $person = new Person();
@@ -53,15 +53,15 @@  discard block
 block discarded – undo
53 53
             $person->save();
54 54
 
55 55
             // get user_group_id
56
-            $user_group = UserGroup::where('name','Administrators')->first();
57
-            if($user_group == null) {
56
+            $user_group = UserGroup::where('name', 'Administrators')->first();
57
+            if ($user_group == null) {
58 58
                 // create user_group
59 59
                 $user_group = UserGroup::create(['name'=>'Administrators', 'description'=>'Administrator users group']);
60 60
             }
61 61
 
62 62
             // get role_id
63 63
             $role = Role::where('name', 'supervisor')->first();
64
-            if($role == null) {
64
+            if ($role == null) {
65 65
                 $role = Role::create(['menu_id'=>1, 'name'=>'supervisor', 'display_name'=>'Supervisor', 'description'=>'Supervisor role.']);
66 66
             }
67 67
             $user = User::create([
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
 
98 98
             return $user;
99
-        }catch(\Exception $e){
99
+        } catch (\Exception $e) {
100 100
             DB::rollBack();
101 101
             throw $e;
102 102
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
 
98 98
             return $user;
99
-        }catch(\Exception $e){
99
+        } catch(\Exception $e){
100 100
             DB::rollBack();
101 101
             throw $e;
102 102
         }
Please login to merge, or discard this patch.
app/Service/enso/files/Files.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public function delete()
53 53
     {
54 54
         if ($this->attachable->file) {
55
-            DB::transaction(function () {
55
+            DB::transaction(function() {
56 56
                 Storage::disk($this->disk)->delete($this->attachedFile());
57 57
                 $this->attachable->file->delete();
58 58
             });
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
     private function persistUploadedFile()
165 165
     {
166
-        DB::transaction(function () {
166
+        DB::transaction(function() {
167 167
             $this->attachable->file()->create([
168 168
                 'original_name' => $this->file->getClientOriginalName(),
169 169
                 'saved_name' => $this->file->hashName(),
Please login to merge, or discard this patch.
app/Service/enso/avatars/DefaultAvatar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     public function create()
30 30
     {
31
-        DB::transaction(fn () => $this->findOrCreate()
31
+        DB::transaction(fn() => $this->findOrCreate()
32 32
             ->generate()
33 33
             ->attach());
34 34
 
Please login to merge, or discard this patch.
app/Http/Response/enso/core/GuestState.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
         $authRoutes = new Collection(['login', 'password.email', 'password.reset']);
55 55
 
56 56
         return (new Collection(Route::getRoutes()->getRoutesByName()))
57
-            ->filter(fn ($route, $name) => $authRoutes->contains($name))
58
-            ->map(fn ($route) => (new Collection($route))
57
+            ->filter(fn($route, $name) => $authRoutes->contains($name))
58
+            ->map(fn($route) => (new Collection($route))
59 59
                 ->only(['uri', 'methods'])
60 60
                 ->put('domain', $route->domain()));
61 61
     }
Please login to merge, or discard this patch.
app/Http/Response/enso/core/AppState.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
     protected function i18n(): Collection
69 69
     {
70 70
         return $this->languages
71
-            ->reject(fn ($language) => $language->name === 'en')
72
-            ->mapWithKeys(fn ($language) => [
71
+            ->reject(fn($language) => $language->name === 'en')
72
+            ->mapWithKeys(fn($language) => [
73 73
                 $language->name => $this->lang($language),
74 74
             ]);
75 75
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     protected function rtl(): Collection
85 85
     {
86 86
         return $this->languages
87
-            ->filter(fn ($lang) => $lang->is_rtl)->pluck('name');
87
+            ->filter(fn($lang) => $lang->is_rtl)->pluck('name');
88 88
     }
89 89
 
90 90
     protected function meta(): array
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     protected function routes(): Collection
107 107
     {
108 108
         return $this->role->permissions
109
-            ->mapWithKeys(fn ($permission) => [
109
+            ->mapWithKeys(fn($permission) => [
110 110
                 $permission->name => $this->route($permission),
111 111
             ]);
112 112
     }
Please login to merge, or discard this patch.