| @@ -87,11 +87,11 @@ | ||
| 87 | 87 | $content = $response->getBody()->getContents(); | 
| 88 | 88 | $path = 'public/characteristics/' . $uuid . '.png'; | 
| 89 | 89 |                          Storage::put('public/characteristics/' . $uuid . '.png', $content); | 
| 90 | -                    }catch (ClientException $e){ | |
| 90 | +                    } catch (ClientException $e){ | |
| 91 | 91 |                          $this->info('No icon for department : '.$number); | 
| 92 | 92 | $path = ''; | 
| 93 | 93 | } | 
| 94 | -                }else{ | |
| 94 | +                } else{ | |
| 95 | 95 |                      $this->info('No icon for department : '.$number); | 
| 96 | 96 | $path = ''; | 
| 97 | 97 | } | 
| @@ -78,10 +78,10 @@ | ||
| 78 | 78 | $content = $response->getBody()->getContents(); | 
| 79 | 79 | $path = 'public/pages/' . $pageModel->id . '.png'; | 
| 80 | 80 |                              Storage::put('public/pages/' . $pageModel->id . '.png', $content); | 
| 81 | -                        }catch (ClientException $e){ | |
| 81 | +                        } catch (ClientException $e){ | |
| 82 | 82 | $path = ''; | 
| 83 | 83 | } | 
| 84 | -                    }else{ | |
| 84 | +                    } else{ | |
| 85 | 85 | $path = ''; | 
| 86 | 86 | } | 
| 87 | 87 | } | 
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | $allCharacteristics = app(GetAllCharacteristics::class)->get(); | 
| 36 | 36 |          try { | 
| 37 | 37 | $context = $contextQueryByUser->execute(Auth::user()->uuid)->toArray(); | 
| 38 | -        }catch (\Throwable $e){ | |
| 38 | +        } catch (\Throwable $e){ | |
| 39 | 39 | Log::emergency($e->getMessage().' '.$e->getLine().' '.$e->getFile().' '.$e->getTraceAsString()); | 
| 40 | 40 |              return redirect()->route('wizard.profile'); | 
| 41 | 41 | } | 
| @@ -66,7 +66,7 @@ discard block | ||
| 66 | 66 |      { | 
| 67 | 67 |          try { | 
| 68 | 68 | $user = app(GetUser::class)->get($userId)->toArray(); | 
| 69 | -        }catch (UserNotFound $e){ | |
| 69 | +        } catch (UserNotFound $e){ | |
| 70 | 70 | throw new NotFoundHttpException(); | 
| 71 | 71 | } | 
| 72 | 72 | |
| @@ -38,8 +38,9 @@ | ||
| 38 | 38 | |
| 39 | 39 | // FIXME : This test is only necessary because corsica breaks the line above. When corsica is correctly handled, | 
| 40 | 40 | // we should remove the test for emptyness. | 
| 41 | - if (!empty($characteristicsModel)) | |
| 42 | -                $characteristicsModel->icon = route('api.icon.serve', ['id' => $characteristicsModel->uuid]); | |
| 41 | +            if (!empty($characteristicsModel)) { | |
| 42 | +                            $characteristicsModel->icon = route('api.icon.serve', ['id' => $characteristicsModel->uuid]); | |
| 43 | + } | |
| 43 | 44 | |
| 44 | 45 | $interaction->departmentData = $characteristicsModel; | 
| 45 | 46 | $interactionsToReturn[] = $interaction->toArray(); | 
| @@ -126,7 +126,7 @@ | ||
| 126 | 126 | * @param string|null $characteristicIdCroppingSystem | 
| 127 | 127 | * @return Paginator | 
| 128 | 128 | * | 
| 129 | - */ | |
| 129 | + */ | |
| 130 | 130 | public function getFollowersPage(int $pageId, string $type = 'follow', ?string $departmentNumber = null, ?string $characteristicId = null, ?string $characteristicIdCroppingSystem = null): Paginator | 
| 131 | 131 |      { | 
| 132 | 132 | return InteractionModel::query() | 
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 |          foreach ($properties as $key => $property){ | 
| 17 | 17 |              if(is_object($property)){ | 
| 18 | 18 | $params[$this->camelToSnake($key)] = $this->toArray(get_object_vars($property)); | 
| 19 | -            }else { | |
| 19 | +            } else { | |
| 20 | 20 | $params[$this->camelToSnake($key)] = $property; | 
| 21 | 21 | } | 
| 22 | 22 | } |