@@ -26,15 +26,15 @@ discard block |
||
| 26 | 26 | // 'country_id' => 14 |
| 27 | 27 | ]; |
| 28 | 28 | |
| 29 | - if ( empty($data['username']) ) { |
|
| 29 | + if (empty($data['username'])) { |
|
| 30 | 30 | $data['username'] = $data['email']; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - if ( empty($data['password']) ) { |
|
| 33 | + if (empty($data['password'])) { |
|
| 34 | 34 | $data['password'] = $data['username']; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - if ( empty($data['password_confirmation']) ) { |
|
| 37 | + if (empty($data['password_confirmation'])) { |
|
| 38 | 38 | $data['password_confirmation'] = $data['password']; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | // try to find avatar |
| 46 | 46 | $avatar = $this->findAvatar($data['username']); |
| 47 | - if ( $avatar ) { |
|
| 47 | + if ($avatar) { |
|
| 48 | 48 | $user->avatar = $avatar; |
| 49 | 49 | } |
| 50 | 50 | |
@@ -72,9 +72,9 @@ discard block |
||
| 72 | 72 | $library = MediaLibrary::instance(); |
| 73 | 73 | $files = $library->listFolderContents($this->imageStoragePath, 'title', 'image'); |
| 74 | 74 | |
| 75 | - foreach($files as $file) { |
|
| 75 | + foreach ($files as $file) { |
|
| 76 | 76 | $pathinfo = pathinfo($file->publicUrl); |
| 77 | - if ( $pathinfo['filename'] == $username ) { |
|
| 77 | + if ($pathinfo['filename'] == $username) { |
|
| 78 | 78 | $file = new File(); |
| 79 | 79 | $file->is_public = $this->imagePublic; |
| 80 | 80 | $file->fromFile(base_path() . $pathinfo['dirname'] . '/' . $pathinfo['basename']); |