@@ -24,7 +24,7 @@ discard block |
||
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 |
||
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 | } |
@@ -12,7 +12,7 @@ |
||
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, |
@@ -14,14 +14,14 @@ |
||
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 |
@@ -11,7 +11,7 @@ |
||
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 | { |
@@ -15,7 +15,7 @@ discard block |
||
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 |
||
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 | } |
@@ -11,7 +11,7 @@ |
||
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 | { |
@@ -17,9 +17,9 @@ |
||
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 | } |
@@ -17,13 +17,13 @@ |
||
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 | } |
@@ -16,7 +16,7 @@ |
||
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 | { |