@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function adminlte_image() |
30 | 30 | { |
31 | 31 | $urlPicture = $this->path_picture != "" ? asset('storage/'.str_replace('app/public/', '', $this->path_picture)) : null; |
32 | - if(!isset($urlPicture) || $urlPicture === ""){ |
|
32 | + if (!isset($urlPicture) || $urlPicture === "") { |
|
33 | 33 | $urlPicture = url('').'/'.config('adminlte.logo_img'); |
34 | 34 | } |
35 | 35 | return $urlPicture; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function adminlte_desc() |
39 | 39 | { |
40 | 40 | $desc = ucfirst($this->firstname).' '.ucfirst($this->lastname); |
41 | - if($this->organization_id !== null){ |
|
41 | + if ($this->organization_id !== null) { |
|
42 | 42 | $organization = app(OrganizationRepository::class)->get($this->organization_id); |
43 | 43 | $desc .= ' - organisme : '.$organization->name(); |
44 | 44 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | public function showEditProfile(GetUser $getUser, GetOrganization $getOrganization) |
16 | 16 | { |
17 | 17 | $user = $getUser->get(Auth::user()->uuid); |
18 | - if($user->organizationId() !== null) { |
|
18 | + if ($user->organizationId() !== null) { |
|
19 | 19 | $organization = $getOrganization->get($user->organizationId()); |
20 | 20 | } |
21 | 21 | return view('users/edit_form', [ |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $lastname = $request->input('lastname') !== null ? $request->input('lastname') : ''; |
33 | 33 | $email = $request->input('email') !== null ? $request->input('email') : ''; |
34 | 34 | $picture = []; |
35 | - if($request->has('logo')){ |
|
35 | + if ($request->has('logo')) { |
|
36 | 36 | $picture['path_picture'] = $request->file('logo')->path(); |
37 | 37 | $picture['original_name'] = $request->file('logo')->getClientOriginalName(); |
38 | 38 | $picture['mine_type'] = $request->file('logo')->getMimeType(); |