@@ -17,7 +17,7 @@ |
||
17 | 17 | $this->wikiCode = $wikiCode; |
18 | 18 | } |
19 | 19 | |
20 | - public function doneAt():?\DateTime |
|
20 | + public function doneAt(): ?\DateTime |
|
21 | 21 | { |
22 | 22 | return $this->doneAt; |
23 | 23 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public $code; |
17 | 17 | public $wiki; |
18 | 18 | |
19 | - public function __construct(string $uuid, string $label, string $type, ?string $icon, $prettyLabel, array $opt = [], string $wiki = 'fr') |
|
19 | + public function __construct(string $uuid, string $label, string $type, ?string $icon, $prettyLabel, array $opt = [], string $wiki = 'fr') |
|
20 | 20 | { |
21 | 21 | $this->uuid = $uuid; |
22 | 22 | $this->label = $label; |
@@ -11,6 +11,6 @@ |
||
11 | 11 | public function getByType(string $type, bool $isMain):array; |
12 | 12 | public function getAllByType(string $type, string $wikiCode):array; |
13 | 13 | public function save(Characteristic $c); |
14 | - public function getBy(array $conditions):?Characteristic; |
|
15 | - public function getByPageId(int $pageId):?Characteristic; |
|
14 | + public function getBy(array $conditions): ?Characteristic; |
|
15 | + public function getByPageId(int $pageId): ?Characteristic; |
|
16 | 16 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | interface InteractionRepository |
12 | 12 | { |
13 | 13 | public function save(CanInteract $canInteract, Interaction $interaction); |
14 | - public function getByInteractUser(CanInteract $canInteract, int $pageId, string $wikiCode):?Interaction; |
|
14 | + public function getByInteractUser(CanInteract $canInteract, int $pageId, string $wikiCode): ?Interaction; |
|
15 | 15 | public function transfer(CanInteract $anonymous, CanInteract $registered); |
16 | 16 | public function getCountInteractionsOnPage(int $pageId, string $wikiCode):array; |
17 | 17 | public function getInteractionsByUser(string $userId):array; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $localesConfigs = $this->getLocalesConfig(); |
15 | 15 | |
16 | 16 | foreach ($localesConfigs as $localeConfig) { |
17 | - if($localeConfig->code === $lang){ |
|
17 | + if ($localeConfig->code === $lang) { |
|
18 | 18 | return $localeConfig; |
19 | 19 | } |
20 | 20 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $localesConfigs = Cache::get('localesConfigs'); |
26 | 26 | if (empty($localesConfigs)) { |
27 | 27 | $localesConfigs = LocalesConfig::all()->toArray(); |
28 | - Cache::put('localesConfigs', $localesConfigs, 60 * 24); |
|
28 | + Cache::put('localesConfigs', $localesConfigs, 60*24); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | return $localesConfigs; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | public function all(): array |
35 | 35 | { |
36 | 36 | $locales = []; |
37 | - foreach($this->getLocalesConfig() as $localeConfig){ |
|
37 | + foreach ($this->getLocalesConfig() as $localeConfig) { |
|
38 | 38 | $locales[$localeConfig['code']] = $localeConfig; |
39 | 39 | } |
40 | 40 |
@@ -38,9 +38,9 @@ |
||
38 | 38 | |
39 | 39 | |
40 | 40 | $this->client->createContact($createContact); |
41 | - Log::info('Email added to sendinblue : ' . $email); |
|
41 | + Log::info('Email added to sendinblue : '.$email); |
|
42 | 42 | } catch (\Throwable $e) { |
43 | - Log::error('Exception when calling ContactsApi->createContact: '. $e->getMessage()); |
|
43 | + Log::error('Exception when calling ContactsApi->createContact: '.$e->getMessage()); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | } |