Passed
Pull Request — master (#1353)
by
unknown
07:19
created
app/Http/Controllers/enso/companies/Company/Options.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function __invoke(Request $request)
22 22
     {
23 23
         $conn = $this->getConnection();
24
-        if($conn == 'tenant') {
24
+        if ($conn == 'tenant') {
25 25
             // $companies = Auth::user()->person->companies;
26 26
             // return $companies;
27 27
             // $company_ids = [];
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
         $query = method_exists($this, 'query') ? $this->query($request) : App::make($this->model)::query();
39 39
 
40 40
         return (new EOptions($query))
41
-            ->when($request->has('trackBy'), fn ($options) => $options->trackBy($request->get('trackBy')))
42
-            ->when($request->has('searchMode'), fn ($options) => $options->searchMode($request->get('searchMode')))
43
-            ->when(isset($this->queryAttributes), fn ($options) => $options->queryAttributes($this->queryAttributes))
44
-            ->when(isset($this->resource), fn ($options) => $options->resource($this->resource))
45
-            ->when(isset($this->appends), fn ($options) => $options->appends($this->appends));
41
+            ->when($request->has('trackBy'), fn($options) => $options->trackBy($request->get('trackBy')))
42
+            ->when($request->has('searchMode'), fn($options) => $options->searchMode($request->get('searchMode')))
43
+            ->when(isset($this->queryAttributes), fn($options) => $options->queryAttributes($this->queryAttributes))
44
+            ->when(isset($this->resource), fn($options) => $options->resource($this->resource))
45
+            ->when(isset($this->appends), fn($options) => $options->appends($this->appends));
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
app/Http/Controllers/enso/companies/Company/Store.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         
25 25
         $company->save();
26 26
         $conn = $this->getConnection();
27
-        if($conn === 'tenant') {
27
+        if ($conn === 'tenant') {
28 28
             $person_id = Auth::user()->person_id;
29 29
             $email = Auth::user()->email;
30 30
             $company->email = $email;
Please login to merge, or discard this patch.
app/Http/Controllers/enso/companies/Company/TableData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
     public function __invoke(Request $request)
25 25
     {
26 26
         $this->tableClass = CompanyTable::class;
27
-        $conn =  $this->getConnection();
28
-        if($conn == 'tenant') {
27
+        $conn = $this->getConnection();
28
+        if ($conn == 'tenant') {
29 29
             $this->tableClass = CompanyTableIndi::class;
30 30
         }
31 31
 
Please login to merge, or discard this patch.
app/Http/Controllers/enso/people/Edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function __invoke(Person $person, PersonForm $form)
16 16
     {
17 17
         $conn = $this->getConnection();
18
-        if($conn === 'tenant') {
18
+        if ($conn === 'tenant') {
19 19
             $person = Person::find(Auth::user()->person_id);
20 20
             $form = new PersonFormIndi();
21 21
             return ['form' => $form->edit($person)];
Please login to merge, or discard this patch.
app/Http/Controllers/enso/people/TableData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
     public function __invoke(Request $request)
25 25
     {
26 26
         $this->tableClass = PersonTable::class;
27
-        $conn =  $this->getConnection();
28
-        if($conn == 'tenant') {
27
+        $conn = $this->getConnection();
28
+        if ($conn == 'tenant') {
29 29
             $this->tableClass = PersonTableIndi::class;
30 30
         }
31 31
 
Please login to merge, or discard this patch.
app/Http/Controllers/enso/core/Administration/User/Edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function __invoke(User $user, UserForm $form)
16 16
     {
17 17
         $conn = $this->getConnection();
18
-        if($conn === 'tenant') {
18
+        if ($conn === 'tenant') {
19 19
             $user = Auth::user();
20 20
             $form = new UserFormIndi();
21 21
             return ['form'=> $form->edit($user)];
Please login to merge, or discard this patch.
app/Http/Controllers/enso/core/Administration/User/TableData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     public function __invoke(Request $request)
26 26
     {
27 27
         $this->tableClass = UserTable::class;
28
-        $conn =  $this->getConnection();
29
-        if($conn == 'tenant') {
28
+        $conn = $this->getConnection();
29
+        if ($conn == 'tenant') {
30 30
             $this->tableClass = UserTableIndi::class;
31 31
         }
32 32
 
Please login to merge, or discard this patch.
app/Http/Requests/enso/core/PasswordValidator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,21 +28,21 @@  discard block
 block discarded – undo
28 28
                 ->add('password', __('You cannot use the existing password'));
29 29
         }
30 30
 
31
-        if (! $this->hasMinUppercase()) {
31
+        if (!$this->hasMinUppercase()) {
32 32
             $this->validator->errors()
33 33
                 ->add('password', __('Minimum upper case letters count is :number', [
34 34
                     'number' => config('enso.auth.password.minUpperCase'),
35 35
                 ]));
36 36
         }
37 37
 
38
-        if (! $this->hasMinNumeric()) {
38
+        if (!$this->hasMinNumeric()) {
39 39
             $this->validator->errors()
40 40
                 ->add('password', __('Minimum numeric characters count is :number', [
41 41
                     'number' => config('enso.auth.password.minNumeric'),
42 42
                 ]));
43 43
         }
44 44
 
45
-        if (! $this->hasMinSpecial()) {
45
+        if (!$this->hasMinSpecial()) {
46 46
             $this->validator->errors()
47 47
                 ->add('password', __('Minimum special characters count is :number', [
48 48
                     'number' => config('enso.auth.password.minSpecial'),
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     private function hasMinUppercase()
54 54
     {
55
-        if (! config('enso.auth.password.minUpperCase')) {
55
+        if (!config('enso.auth.password.minUpperCase')) {
56 56
             return true;
57 57
         }
58 58
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     private function hasMinNumeric()
65 65
     {
66
-        if (! config('enso.auth.password.minNumeric')) {
66
+        if (!config('enso.auth.password.minNumeric')) {
67 67
             return true;
68 68
         }
69 69
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     private function hasMinSpecial()
76 76
     {
77
-        if (! config('enso.auth.password.minSpecial')) {
77
+        if (!config('enso.auth.password.minSpecial')) {
78 78
             return true;
79 79
         }
80 80
 
Please login to merge, or discard this patch.
app/Http/Requests/enso/core/ValidateUserRequest.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
     public function withValidator($validator)
29 29
     {
30 30
         if ($this->filled('password')) {
31
-            $validator->after(fn ($validator) => (new PasswordValidator(
31
+            $validator->after(fn($validator) => (new PasswordValidator(
32 32
                 $this, $validator, $this->route('user')
33 33
             ))->handle());
34 34
         }
Please login to merge, or discard this patch.