Passed
Push — master ( 95c50e...888032 )
by Bertrand
10:36
created
app/Src/UseCases/Domain/Users/Dto/GetUserRole.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 {
8 8
     public function get()
9 9
     {
10
-         return collect([
10
+            return collect([
11 11
             new WikiUserRole('advisor'),
12 12
             new WikiUserRole('farmer'),
13 13
             new WikiUserRole('student'),
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
             }
107 107
 
108 108
             return redirect()->route('wizard.profile');
109
-        }catch (ValidationException $e) {
109
+        } catch (ValidationException $e) {
110 110
             $attributes = $e->validator->attributes();
111 111
             $attributes['provider'] = $provider;
112 112
             return redirect()->route('register-social-network')
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Users/GetAvatar.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
                 $image->make($pathPicture)->widen($dim, function ($constraint) {
32 32
                     $constraint->upsize();
33 33
                 });
34
-            }else{
34
+            } else{
35 35
                 $image->make($pathPicture)->heighten($dim, function ($constraint) {
36 36
                     $constraint->upsize();
37 37
                 });
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/GetIcon.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
                 $image->make($pathPicture)->widen($dim, function ($constraint) {
32 32
                     $constraint->upsize();
33 33
                 });
34
-            }else{
34
+            } else{
35 35
                 $image->make($pathPicture)->heighten($dim, function ($constraint) {
36 36
                     $constraint->upsize();
37 37
                 });
Please login to merge, or discard this patch.
app/Console/Commands/ImportCharacteristicsFromWiki.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                             $content = $response->getBody()->getContents();
67 67
                             $path = 'public/characteristics/' . $uuid . '.png';
68 68
                             Storage::put('public/characteristics/' . $uuid . '.png', $content);
69
-                        }catch (ClientException $e){
69
+                        } catch (ClientException $e){
70 70
                             $path = '';
71 71
                         }
72 72
                     }
Please login to merge, or discard this patch.
app/Console/Commands/ImportDepartmentFromWiki.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,11 +87,11 @@
 block discarded – undo
87 87
                         $content = $response->getBody()->getContents();
88 88
                         $path = 'public/characteristics/' . $uuid . '.png';
89 89
                         Storage::put('public/characteristics/' . $uuid . '.png', $content);
90
-                    }catch (ClientException $e){
90
+                    } catch (ClientException $e){
91 91
                         $this->info('No icon for department : '.$number);
92 92
                         $path = '';
93 93
                     }
94
-                }else{
94
+                } else{
95 95
                     $this->info('No icon for department : '.$number);
96 96
                     $path = '';
97 97
                 }
Please login to merge, or discard this patch.
app/Console/Commands/ImportPagesWithIconAndTypeFromWiki.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,10 +78,10 @@
 block discarded – undo
78 78
                             $content = $response->getBody()->getContents();
79 79
                             $path = 'public/pages/' . $pageModel->id . '.png';
80 80
                             Storage::put('public/pages/' . $pageModel->id . '.png', $content);
81
-                        }catch (ClientException $e){
81
+                        } catch (ClientException $e){
82 82
                             $path = '';
83 83
                         }
84
-                    }else{
84
+                    } else{
85 85
                         $path = '';
86 86
                     }
87 87
                 }
Please login to merge, or discard this patch.
app/Http/Controllers/Profile/ProfileController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $allCharacteristics = app(GetAllCharacteristics::class)->get();
33 33
         try {
34 34
             $context = $contextQueryByUser->execute(Auth::user()->uuid)->toArray();
35
-        }catch (\Throwable $e){
35
+        } catch (\Throwable $e){
36 36
             Log::emergency($e->getMessage().' '.$e->getLine().' '.$e->getFile().' '.$e->getTraceAsString());
37 37
             return redirect()->route('wizard.profile');
38 38
         }
Please login to merge, or discard this patch.
app/Src/UseCases/Infra/Sql/InteractionPageRepositorySql.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
      * @param string|null $characteristicIdCroppingSystem
127 127
      * @return Paginator
128 128
      *
129
-    */
129
+     */
130 130
     public function getFollowersPage(int $pageId, string $type = 'follow', ?string $departmentNumber = null, ?string $characteristicId = null, ?string $characteristicIdCroppingSystem = null): Paginator
131 131
     {
132 132
         return  InteractionModel::query()
Please login to merge, or discard this patch.