@@ -7,7 +7,7 @@ |
||
7 | 7 | { |
8 | 8 | public function get() |
9 | 9 | { |
10 | - return collect([ |
|
10 | + return collect([ |
|
11 | 11 | new WikiUserRole('advisor'), |
12 | 12 | new WikiUserRole('farmer'), |
13 | 13 | new WikiUserRole('student'), |
@@ -106,7 +106,7 @@ |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | return redirect()->route('wizard.profile'); |
109 | - }catch (ValidationException $e) { |
|
109 | + } catch (ValidationException $e) { |
|
110 | 110 | $attributes = $e->validator->attributes(); |
111 | 111 | $attributes['provider'] = $provider; |
112 | 112 | return redirect()->route('register-social-network') |
@@ -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 | }); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | if($provider === 'twitter'){ |
16 | 16 | $user = Socialite::driver($provider)->user(); |
17 | - }else { |
|
17 | + } else { |
|
18 | 18 | $user = Socialite::driver($provider)->stateless()->user(); |
19 | 19 | } |
20 | 20 |
@@ -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 | }); |
@@ -25,9 +25,9 @@ |
||
25 | 25 | * @bodyParam interactions string[] required The user's interactions on the page. Example: unapplause, done |
26 | 26 | */ |
27 | 27 | public function handle($pageId, Request $request, |
28 | - HandleInteractions $handleInteractions, |
|
29 | - InteractionsQueryByPageAndUser $interactionsQueryByPageAndUser, |
|
30 | - CountInteractionsOnPageQuery $countInteractionsOnPage |
|
28 | + HandleInteractions $handleInteractions, |
|
29 | + InteractionsQueryByPageAndUser $interactionsQueryByPageAndUser, |
|
30 | + CountInteractionsOnPageQuery $countInteractionsOnPage |
|
31 | 31 | ) |
32 | 32 | { |
33 | 33 | $interactions = $request->input('interactions'); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | $content = $response->getBody()->getContents(); |
67 | 67 | $path = 'public/characteristics/' . $uuid . '.png'; |
68 | 68 | Storage::put('public/characteristics/' . $uuid . '.png', $content); |
69 | - }catch (ClientException $e){ |
|
69 | + } catch (ClientException $e){ |
|
70 | 70 | $path = ''; |
71 | 71 | } |
72 | 72 | } |