Test Setup Failed
Branch user/international-postal-code... (b53ac3)
by Bertrand
08:58
created
app/Src/UseCases/Domain/Users/Interactions/HandleInteractions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         private PageRepository                 $pageRepository,
25 25
         private readonly InteractionRepository $interactionRepository,
26 26
         private readonly AuthGateway           $authGateway
27
-    ){}
27
+    ) {}
28 28
 
29 29
     /**
30 30
      * @param int $pageId
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         $canInteractUser = $this->getInteractUser();
41 41
         $interaction = $this->interactionRepository->getByInteractUser($canInteractUser, $pageId, $wikiCode);
42
-        if(!isset($interaction)) {
42
+        if (!isset($interaction)) {
43 43
             $canInteractUser->addInteraction($interactions, $pageId, $wikiCode, $doneValue);
44 44
             return;
45 45
         }
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/GetFollowersOfPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     public function __construct(
14 14
         private InteractionRepository $interactionRepository
15
-    ){}
15
+    ) {}
16 16
 
17 17
     public function execute(
18 18
         int $pageId,
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/SearchCharacteristics.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
 {
15 15
     public function __construct(
16 16
         private PageRepository $pageRepository
17
-    ){}
17
+    ) {}
18 18
 
19 19
     public function execute(string $type, string $search):array
20 20
     {
21
-        if($type === 'farming') {
21
+        if ($type === 'farming') {
22 22
             $type = 'culture';
23 23
         }
24
-        if($type === 'croppingSystem') {
24
+        if ($type === 'croppingSystem') {
25 25
             $type = 'label';
26 26
         }
27 27
 
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/CountInteractionsOnPageQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function __construct(
13 13
         private InteractionRepository $interactionRepository
14
-    ){}
14
+    ) {}
15 15
 
16 16
     public function execute(int $pageId, string $wikiCode):array
17 17
     {
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/GetLastUserComments.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 {
16 16
     public function __construct(
17 17
         private UserRepository $userRepository,
18
-    ){}
18
+    ) {}
19 19
 
20 20
     public function get(string $userId)
21 21
     {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 $commentsToRetrieved[$aPost['created_at']] = [
47 47
                     'html' => $aPost['blurb'],
48 48
                     'title' => $topicsTitleById[$aPost['topic_id']],
49
-                    'url' => $forumURL . '/t/'.$aPost['topic_id'].'/'.$aPost['post_number'],
49
+                    'url' => $forumURL.'/t/'.$aPost['topic_id'].'/'.$aPost['post_number'],
50 50
                     'date' => (new Carbon($aPost['created_at']))->translatedFormat('l j F Y - h:i')
51 51
                 ];
52 52
             }
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/GetAllCharacteristics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function __construct(
13 13
         private CharacteristicsRepository $characteristicsRepository
14
-    ){}
14
+    ) {}
15 15
 
16 16
     public function get(string $wikiCode): array
17 17
     {
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/Queries/SearchStructure.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
     {
18 18
         $client = new WikiClient(Auth::user()->wiki);
19 19
         $content = $client->searchStructures($search);
20
-        if(isset($content['query']['search'])){
20
+        if (isset($content['query']['search'])) {
21 21
             $results = array_column($content['query']['search'], 'title');
22
-            return array_map(function ($item){
22
+            return array_map(function($item) {
23 23
                 return str_replace('Structure:', '', $item);
24 24
             }, $results);
25 25
         }
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/UseCases/CreateCharacteristic.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
         private CharacteristicsRepository $characteristicRepository,
18 18
         private AuthGateway $authGateway,
19 19
         private ContextRepository $contextRepository
20
-    ){}
20
+    ) {}
21 21
 
22 22
     public function execute(string $id, string $type, string $title)
23 23
     {
24 24
         $user = $this->authGateway->current();
25 25
         $characteristic = $this->characteristicRepository->getBy(['title' => $title, 'type' => $type]);
26
-        if(!isset($characteristic)){
26
+        if (!isset($characteristic)) {
27 27
             $characteristic = new Characteristic($id, $type, $title, false, null, $user->wiki());
28 28
             $characteristic->create();
29 29
         }
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Context/UseCases/UpdateMainData.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
         private ContextRepository $contextRepository,
17 17
         private AuthGateway $authGateway,
18 18
         private UserRepository $userRepository
19
-    ){}
19
+    ) {}
20 20
 
21 21
     public function execute(string $sector, string $structure, string $email, string $firstname, string $lastname, string $role, ?string $country, ?string $postalCode)
22 22
     {
Please login to merge, or discard this patch.