Test Failed
Pull Request — master (#78)
by guillaume
08:09
created
app/Src/UseCases/Domain/Ports/InteractionRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 interface InteractionRepository
11 11
 {
12 12
     public function save(CanInteract $canInteract, Interaction $interaction);
13
-    public function getByInteractUser(CanInteract $canInteract, int $pageId):?Interaction;
13
+    public function getByInteractUser(CanInteract $canInteract, int $pageId): ?Interaction;
14 14
     public function transfer(CanInteract $anonymous, CanInteract $registered);
15 15
     public function getCountInteractionsOnPage(int $pageId):array;
16 16
     public function getInteractionsByUser(string $userId):array;
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Ports/ContextRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,5 +12,5 @@
 block discarded – undo
12 12
     public function getByUser(string $userId);
13 13
     public function add(Context $context, string $userId);
14 14
     public function update(Context $context, string $userId);
15
-    public function getByUserDto(string $userId):?ContextDto;
15
+    public function getByUserDto(string $userId): ?ContextDto;
16 16
 }
Please login to merge, or discard this patch.
app/Console/Commands/ImportAllPagesFromWiki.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $this->handlePages($pages);
36 36
         $continue = $content['continue']['gapcontinue'] ?? null;
37 37
 
38
-        while($continue !== null && $continue !== ''){
38
+        while ($continue !== null && $continue !== '') {
39 39
             $this->info($continue);
40 40
 
41 41
             $pagesApiUri = config('wiki.api_uri').$queryPages.'&gapcontinue='.$continue;
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Dto/ContextDto.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $this->postalCode = $postalCode;
34 34
         $this->department = (new PostalCode($postalCode))->department();
35 35
         $this->characteristics = $characteristics;
36
-        foreach($this->characteristics as $characteristic){
36
+        foreach ($this->characteristics as $characteristic) {
37 37
             $this->characteristicsByType[$characteristic->type()][] = $characteristic;
38 38
         }
39 39
         $this->description = $description;
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Dto/PractiseVo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $this->doneAt = $doneAt;
18 18
     }
19 19
 
20
-    public function doneAt():?\DateTime
20
+    public function doneAt(): ?\DateTime
21 21
     {
22 22
         return $this->doneAt;
23 23
     }
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/ContextQueryByUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         $this->contextRepository = $contextRepository;
17 17
     }
18 18
 
19
-    public function execute(string $userId):?ContextDto
19
+    public function execute(string $userId): ?ContextDto
20 20
     {
21 21
         return $this->contextRepository->getByUserDto($userId);
22 22
     }
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/InteractionsQueryByPageAndUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $this->authGateway = $authGateway;
26 26
     }
27 27
 
28
-    public function execute(int $pageId):?Interaction
28
+    public function execute(int $pageId): ?Interaction
29 29
     {
30 30
         $canInteractUser = $this->getInteractUser();
31 31
         return $this->interactionRepository->getByInteractUser($canInteractUser, $pageId);
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/GetIcon.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@
 block discarded – undo
18 18
         $h = $img->height();
19 19
         $w = $img->width();
20 20
 
21
-        if($dim == null){
21
+        if ($dim == null) {
22 22
             return $img->response();
23 23
         }
24 24
 
25 25
         $img = Image::cache(function($image) use($pathPicture, $dim, $w, $h){
26
-            if($w <= $h) {
27
-                $image->make($pathPicture)->widen($dim, function ($constraint) {
26
+            if ($w <= $h) {
27
+                $image->make($pathPicture)->widen($dim, function($constraint) {
28 28
                     $constraint->upsize();
29 29
                 });
30
-            }else{
31
-                $image->make($pathPicture)->heighten($dim, function ($constraint) {
30
+            } else {
31
+                $image->make($pathPicture)->heighten($dim, function($constraint) {
32 32
                     $constraint->upsize();
33 33
                 });
34 34
             }
Please login to merge, or discard this 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/Model/PostalCode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
 
16 16
     public function department():string
17 17
     {
18
-        if(substr($this->postalCode, 0, 2) > 96){
19
-            return substr($this->postalCode, 0,3);
18
+        if (substr($this->postalCode, 0, 2) > 96) {
19
+            return substr($this->postalCode, 0, 3);
20 20
         }
21
-        return substr($this->postalCode, 0,2);
21
+        return substr($this->postalCode, 0, 2);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.