@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | public function boot() |
41 | 41 | { |
42 | - Event::listen('backend.menu.extendItems', function ($manager) { |
|
42 | + Event::listen('backend.menu.extendItems', function($manager) { |
|
43 | 43 | $manager->addSideMenuItems('RainLab.User', 'user', [ |
44 | 44 | 'users' => [ |
45 | 45 | 'label' => 'rainlab.user::lang.users.menu_label', |
@@ -6,9 +6,9 @@ |
||
6 | 6 | 'description' => 'Umožní import nebo export uživatelů' |
7 | 7 | ], |
8 | 8 | 'permissions' => [ |
9 | - 'tab' => 'Import/export uživatelů', |
|
10 | - 'all' => [ |
|
11 | - 'label' => 'Import a export uživatelů' |
|
12 | - ] |
|
9 | + 'tab' => 'Import/export uživatelů', |
|
10 | + 'all' => [ |
|
11 | + 'label' => 'Import a export uživatelů' |
|
12 | + ] |
|
13 | 13 | ] |
14 | 14 | ]; |
@@ -6,9 +6,9 @@ |
||
6 | 6 | 'description' => 'Provide import and export users' |
7 | 7 | ], |
8 | 8 | 'permissions' => [ |
9 | - 'tab' => 'User import/export', |
|
10 | - 'all' => [ |
|
11 | - 'label' => 'User import and export' |
|
12 | - ] |
|
9 | + 'tab' => 'User import/export', |
|
10 | + 'all' => [ |
|
11 | + 'label' => 'User import and export' |
|
12 | + ] |
|
13 | 13 | ] |
14 | 14 | ]; |
@@ -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']); |