@@ -10,7 +10,7 @@ |
||
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; |
@@ -12,5 +12,5 @@ |
||
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 | } |
@@ -35,7 +35,7 @@ |
||
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; |
@@ -33,7 +33,7 @@ |
||
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; |
@@ -17,7 +17,7 @@ |
||
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 | } |
@@ -16,7 +16,7 @@ |
||
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 | } |
@@ -25,7 +25,7 @@ |
||
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); |
@@ -18,17 +18,17 @@ |
||
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 | } |
@@ -31,7 +31,7 @@ |
||
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 | }); |
@@ -15,9 +15,9 @@ |
||
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 | } |