Completed
Push — master ( 27d4d0...9e9ea6 )
by Joao
03:11
created
src/routes.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * All the "restricted area" routes
7 7
  * are defined here.
8 8
  */
9
-Route::group(array('prefix' => '/', 'middleware' => 'webPublic'), function ()
9
+Route::group(array('prefix' => '/', 'middleware' => 'webPublic'), function()
10 10
 {
11 11
 
12 12
     /**
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     /* POST */ Route::post('login', 'jlourenco\base\Controllers\AuthController@postSignin');
39 39
 
40 40
     /* GET  */ Route::get('register', array('as' => 'register', 'uses' => 'jlourenco\base\Controllers\AuthController@getSignup'));
41
-    /* POST */ Route::post('register', array('as' => 'register','uses' => 'jlourenco\base\Controllers\AuthController@postSignup'));
41
+    /* POST */ Route::post('register', array('as' => 'register', 'uses' => 'jlourenco\base\Controllers\AuthController@postSignup'));
42 42
 
43 43
     /* GET  */ Route::get('forgot-password', array('as' => 'forgot-password', 'uses' => 'jlourenco\base\Controllers\AuthController@getLostPassword'));
44
-    /* POST */ Route::post('forgot-password', array('as' => 'forgot-password','uses' => 'jlourenco\base\Controllers\AuthController@postForgotPassword'));
44
+    /* POST */ Route::post('forgot-password', array('as' => 'forgot-password', 'uses' => 'jlourenco\base\Controllers\AuthController@postForgotPassword'));
45 45
 
46 46
     # Forgot Password Confirmation
47 47
     Route::get('forgot-password/{userId}/{passwordResetCode}', array('as' => 'forgot-password-confirm', 'uses' => 'jlourenco\base\Controllers\AuthController@getForgotPasswordConfirm'));
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     Route::get('activate/{userId}/{activationCode}', array('as' => 'activate', 'uses' => 'jlourenco\base\Controllers\AuthController@getActivate'));
55 55
 
56 56
     # User account
57
-    Route::group(array('middleware' => 'auth'), function () {
57
+    Route::group(array('middleware' => 'auth'), function() {
58 58
         Route::get('profile', array('as' => 'profile', 'uses' => 'jlourenco\base\Controllers\UsersController@myAccount'));
59 59
         Route::post('profile', 'jlourenco\base\Controllers\UsersController@updateAccount');
60 60
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
  * All the "restricted area" routes
71 71
  * are defined here.
72 72
  */
73
-Route::group(array('prefix' => '/admin', 'middleware' => ['webAdmin', 'auth']), function ()
73
+Route::group(array('prefix' => '/admin', 'middleware' => ['webAdmin', 'auth']), function()
74 74
 {
75 75
 
76 76
     # Dashboard
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /* POST */ Route::post('settings/{id}/edit', array('as' => 'settings.update', 'uses' => 'jlourenco\base\Controllers\SettingsController@update'));
90 90
 
91 91
     # User Management
92
-    Route::group(array('prefix' => 'users'), function () {
92
+    Route::group(array('prefix' => 'users'), function() {
93 93
         Route::get('/list', array('as' => 'users', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminIndex'));
94 94
         Route::get('/pending', array('as' => 'users.pending', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminPending'));
95 95
         Route::get('/blocked', array('as' => 'users.blocked', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminBlocked'));
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         Route::get('/list/{userId}/delete', array('as' => 'delete/user', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminDelete'));
103 103
         Route::get('/list/{userId}/confirm-delete', array('as' => 'confirm-delete/user', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminModalDelete'));
104 104
         Route::get('/list/{userId}/restore', array('as' => 'restore/user', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminRestore'));
105
-        Route::get('deleted',array('as' => 'users.deleted', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminDeletedUsers'));
105
+        Route::get('deleted', array('as' => 'users.deleted', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminDeletedUsers'));
106 106
         Route::get('/list/{userId}', array('as' => 'users.show', 'uses' => 'jlourenco\base\Controllers\UsersController@adminShow'));
107 107
 
108 108
         Route::get('/list/{userId}/confirm-remove/{groupId}', array('as' => 'confirm-remove/group', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminModalRemoveGroup'));
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     });
113 113
 
114 114
     # Groups Management
115
-    Route::group(array('prefix' => 'groups'), function () {
115
+    Route::group(array('prefix' => 'groups'), function() {
116 116
         Route::get('/list', array('as' => 'groups', 'uses' => 'jlourenco\base\Controllers\GroupsController@index'));
117 117
         Route::get('/create', array('as' => 'create.group', 'uses' => 'jlourenco\base\Controllers\GroupsController@getCreate'));
118 118
         Route::post('/create', 'jlourenco\base\Controllers\GroupsController@postCreate');
Please login to merge, or discard this patch.
src/Controllers/GroupsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $group = Sentinel::getRoleRepository()->find($id);
64 64
 
65 65
         // Get the group's information
66
-        if($group == null)
66
+        if ($group == null)
67 67
         {
68 68
             // Prepare the error message
69 69
             $error = Lang::get('base.groups.not_found');
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         // Was the post updated?
129 129
         if ($group->save())
130 130
         {
131
-            Base::Log('Group (' . $group->id . ' - ' . $group->name . ') was edited.');
131
+            Base::Log('Group ('.$group->id.' - '.$group->name.') was edited.');
132 132
 
133 133
             // Prepare the success message
134 134
             $success = Lang::get('base.groups.changed');
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
         $group->save();
197 197
 
198
-        Base::Log('A new group (' . $group->id . ' - ' . $group->name . ') was created.');
198
+        Base::Log('A new group ('.$group->id.' - '.$group->name.') was created.');
199 199
 
200 200
         // Redirect to the home page with success menu
201 201
         return Redirect::route("groups")->with('success', Lang::get('base.groups.created'));
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             return Redirect::route('groups')->with('error', $error);
249 249
         }
250 250
 
251
-        Base::Log('Group (' . $group->id . ' - ' . $group->name . ') was deleted.');
251
+        Base::Log('Group ('.$group->id.' - '.$group->name.') was deleted.');
252 252
 
253 253
         // Delete the group
254 254
         $group->delete();
Please login to merge, or discard this patch.
src/Controllers/UsersController.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         // Do we want to update the user password?
139 139
         if ($password = Input::get('password'))
140 140
         {
141
-            if (Sentinel::validateCredentials($user, [ 'email' => $email, 'password' => Input::get('old-password')]))
141
+            if (Sentinel::validateCredentials($user, ['email' => $email, 'password' => Input::get('old-password')]))
142 142
             {
143 143
                 $passwordChanged = true;
144 144
                 $user->password = Hash::make($password);
@@ -157,18 +157,18 @@  discard block
 block discarded – undo
157 157
         if ($file = Input::file('pic')) {
158 158
             $extension = $file->getClientOriginalExtension() ?: 'png';
159 159
             $folderName = '/uploads/users/';
160
-            $destinationPath = public_path() . $folderName;
161
-            $safeName = str_random(10) . '.' . $extension;
160
+            $destinationPath = public_path().$folderName;
161
+            $safeName = str_random(10).'.'.$extension;
162 162
             $file->move($destinationPath, $safeName);
163 163
 
164 164
             //delete old pic if exists
165
-            if (File::exists(public_path() . $folderName . $user->pic))
166
-                File::delete(public_path() . $folderName . $user->pic);
165
+            if (File::exists(public_path().$folderName.$user->pic))
166
+                File::delete(public_path().$folderName.$user->pic);
167 167
 
168 168
             //save new file path into db
169 169
             $user->pic = $safeName;
170 170
 
171
-            Base::Log($user->username . ' (' . $user->first_name . ' ' . $user->last_name . ') changed its profile photo. ');
171
+            Base::Log($user->username.' ('.$user->first_name.' '.$user->last_name.') changed its profile photo. ');
172 172
         }
173 173
 
174 174
         // Was the user updated?
@@ -178,14 +178,14 @@  discard block
 block discarded – undo
178 178
 
179 179
             if ($passwordChanged)
180 180
             {
181
-                Base::Log($user->username . ' (' . $user->first_name . ' ' . $user->last_name . ') changed its password. ');
182
-                Mail::queue('emails.account.password-changed', [ 'user' => $user ], function ($m) use ($user) {
183
-                    $m->to($user->email, $user->first_name . ' ' . $user->last_name);
181
+                Base::Log($user->username.' ('.$user->first_name.' '.$user->last_name.') changed its password. ');
182
+                Mail::queue('emails.account.password-changed', ['user' => $user], function($m) use ($user) {
183
+                    $m->to($user->email, $user->first_name.' '.$user->last_name);
184 184
                     $m->subject(Lang::get('base.mails.password_changed'));
185 185
                 });
186 186
             }
187 187
 
188
-            Base::Log($user->username . ' (' . $user->first_name . ' ' . $user->last_name . ') updated the profile. ');
188
+            Base::Log($user->username.' ('.$user->first_name.' '.$user->last_name.') updated the profile. ');
189 189
 
190 190
             // Redirect to the user page
191 191
             return Redirect::route('profile')->with('success', $success);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
             // Do we want to update the user password?
235 235
             $password = Input::get('password');
236 236
 
237
-            if (Sentinel::validateCredentials($user, [ 'email' => $user->email, 'password' => Input::get('old-password')]))
237
+            if (Sentinel::validateCredentials($user, ['email' => $user->email, 'password' => Input::get('old-password')]))
238 238
             {
239 239
                 $user->password = Hash::make($password);
240 240
                 $redirect = 'change-password';
@@ -251,12 +251,12 @@  discard block
 block discarded – undo
251 251
                     // Prepare the success message
252 252
                     $success = Lang::get('base.auth.account.changed');
253 253
 
254
-                    Mail::queue('emails.account.password-changed', [ 'user' => $user ], function ($m) use ($user) {
255
-                        $m->to($user->email, $user->first_name . ' ' . $user->last_name);
254
+                    Mail::queue('emails.account.password-changed', ['user' => $user], function($m) use ($user) {
255
+                        $m->to($user->email, $user->first_name.' '.$user->last_name);
256 256
                         $m->subject(Lang::get('base.mails.password_changed'));
257 257
                     });
258 258
 
259
-                    Base::Log($user->username . ' (' . $user->first_name . ' ' . $user->last_name . ') changed its password account. ');
259
+                    Base::Log($user->username.' ('.$user->first_name.' '.$user->last_name.') changed its password account. ');
260 260
 
261 261
                     // Redirect to the user page
262 262
                     return Redirect::route($redirect)->with('success', $success);
@@ -353,13 +353,13 @@  discard block
 block discarded – undo
353 353
                 $activation = Activation::exists($user);
354 354
             }
355 355
 
356
-            if($activation)
356
+            if ($activation)
357 357
                 Activation::complete($user, $activation->code);
358 358
 
359
-            Base::TargettedLog($user->username . ' (' . $user->first_name . ' ' . $user->last_name . ') account was accepted. ', $user->id);
359
+            Base::TargettedLog($user->username.' ('.$user->first_name.' '.$user->last_name.') account was accepted. ', $user->id);
360 360
 
361
-            Mail::queue('emails.account.accepted-by-admin', [ 'user' => $user ], function ($m) use ($user) {
362
-                $m->to($user->email, $user->first_name . ' ' . $user->last_name);
361
+            Mail::queue('emails.account.accepted-by-admin', ['user' => $user], function($m) use ($user) {
362
+                $m->to($user->email, $user->first_name.' '.$user->last_name);
363 363
                 $m->subject(Lang::get('base.mails.account_accepted'));
364 364
             });
365 365
 
@@ -399,11 +399,11 @@  discard block
 block discarded – undo
399 399
 
400 400
         if ($user->save())
401 401
         {
402
-            Base::TargettedLog($user->username . ' (' . $user->first_name . ' ' . $user->last_name . ') account was refused. ', $user->id);
402
+            Base::TargettedLog($user->username.' ('.$user->first_name.' '.$user->last_name.') account was refused. ', $user->id);
403 403
 
404 404
             if (Base::getSetting('SEND_EMAIL_ON_REFUSE'))
405
-                Mail::queue('emails.account.refused-by-admin', [ 'user' => $user ], function ($m) use ($user) {
406
-                    $m->to($user->email, $user->first_name . ' ' . $user->last_name);
405
+                Mail::queue('emails.account.refused-by-admin', ['user' => $user], function($m) use ($user) {
406
+                    $m->to($user->email, $user->first_name.' '.$user->last_name);
407 407
                     $m->subject(Lang::get('base.mails.account_accepted'));
408 408
                 });
409 409
 
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
         }
487 487
 
488 488
         // Check if we are not trying to delete ourselves
489
-        if ($user->id === Sentinel::getUser()->id)  {
489
+        if ($user->id === Sentinel::getUser()->id) {
490 490
             // Prepare the error message
491 491
             $error = Lang::get('base.base.error');
492 492
 
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
     public function getAdminEdit($id = null)
578 578
     {
579 579
         // Get the user information
580
-        if($user = Sentinel::findById($id))
580
+        if ($user = Sentinel::findById($id))
581 581
         {
582 582
             // Get this user groups
583 583
             $userRoles = $user->getRoles()->lists('name', 'id')->all();
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
 
657 657
         try {
658 658
             // Update the user
659
-            $user->gender   = Input::get('gender');
659
+            $user->gender = Input::get('gender');
660 660
             $user->first_name  = Input::get('first_name');
661 661
             $user->last_name   = Input::get('last_name');
662 662
             $user->username    = Input::get('username');
@@ -689,16 +689,16 @@  discard block
 block discarded – undo
689 689
                 if ($extension == 'png' || $extension == 'PNG' || $extension == 'JGP' || $extension == 'jpg' || $extension == 'gif')
690 690
                 {
691 691
                     $folderName      = '/uploads/users/';
692
-                    $destinationPath = public_path() . $folderName;
692
+                    $destinationPath = public_path().$folderName;
693 693
                     $safeName        = str_random(10).'.'.$extension;
694 694
                     $file->move($destinationPath, $safeName);
695 695
 
696 696
                     //delete old pic if exists
697
-                    if(File::exists(public_path() . $folderName . $user->pic))
698
-                        File::delete(public_path() . $folderName . $user->pic);
697
+                    if (File::exists(public_path().$folderName.$user->pic))
698
+                        File::delete(public_path().$folderName.$user->pic);
699 699
 
700 700
                     //save new file path into db
701
-                    $user->pic   = $safeName;
701
+                    $user->pic = $safeName;
702 702
                 }
703 703
             }
704 704
 
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
             $status = $activation = Activation::completed($user);
734 734
             $currentStatus = Input::get('status');
735 735
 
736
-            if($currentStatus != $status)
736
+            if ($currentStatus != $status)
737 737
             {
738 738
                 if ($currentStatus == 0)
739 739
                     // Remove existing activation record
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
                         $activation = Activation::exists($user);
750 750
                     }
751 751
 
752
-                    if($activation)
752
+                    if ($activation)
753 753
                         Activation::complete($user, $activation->code);
754 754
                 }
755 755
 
@@ -763,16 +763,16 @@  discard block
 block discarded – undo
763 763
             {
764 764
                 if ($password_changed && Input::get('send_new_password_email'))
765 765
                 {
766
-                    Mail::queue('emails.account.password-changed-by-admin', [ 'user' => $user, 'new_password' => $password ], function ($m) use ($user) {
767
-                        $m->to($user->email, $user->first_name . ' ' . $user->last_name);
766
+                    Mail::queue('emails.account.password-changed-by-admin', ['user' => $user, 'new_password' => $password], function($m) use ($user) {
767
+                        $m->to($user->email, $user->first_name.' '.$user->last_name);
768 768
                         $m->subject(Lang::get('base.mails.password_changed'));
769 769
                     });
770 770
                 }
771 771
 
772 772
                 if ($password_changed)
773
-                    Base::TargettedLog($user->username . ' (' . $user->first_name . ' ' . $user->last_name . ') password was changed by an admin. ', $user->id);
773
+                    Base::TargettedLog($user->username.' ('.$user->first_name.' '.$user->last_name.') password was changed by an admin. ', $user->id);
774 774
 
775
-                Base::TargettedLog($user->username . ' (' . $user->first_name . ' ' . $user->last_name . ') profile was changed by an admin. ', $user->id);
775
+                Base::TargettedLog($user->username.' ('.$user->first_name.' '.$user->last_name.') profile was changed by an admin. ', $user->id);
776 776
 
777 777
                 // Prepare the success message
778 778
                 $success = Lang::get('base.auth.user_changed');
@@ -864,36 +864,36 @@  discard block
 block discarded – undo
864 864
                 if ($extension == 'png' || $extension == 'PNG' || $extension == 'JGP' || $extension == 'jpg' || $extension == 'gif')
865 865
                 {
866 866
                     $folderName      = '/uploads/users/';
867
-                    $destinationPath = public_path() . $folderName;
867
+                    $destinationPath = public_path().$folderName;
868 868
                     $safeName        = str_random(10).'.'.$extension;
869 869
                     $file->move($destinationPath, $safeName);
870 870
 
871 871
                     //delete old pic if exists
872
-                    if(File::exists(public_path() . $folderName . $user->pic))
873
-                        File::delete(public_path() . $folderName . $user->pic);
872
+                    if (File::exists(public_path().$folderName.$user->pic))
873
+                        File::delete(public_path().$folderName.$user->pic);
874 874
 
875 875
                     //save new file path into db
876
-                    $user->pic   = $safeName;
876
+                    $user->pic = $safeName;
877 877
                 }
878 878
             }
879 879
 
880 880
             $user->save();
881 881
 
882
-            Base::TargettedLog($user->username . ' (' . $user->first_name . ' ' . $user->last_name . ') account was created by an admin. ', $user->id);
882
+            Base::TargettedLog($user->username.' ('.$user->first_name.' '.$user->last_name.') account was created by an admin. ', $user->id);
883 883
 
884 884
             if (Input::get('send_new_password_email'))
885 885
             {
886 886
                 if ($activate)
887 887
                 {
888
-                    Mail::queue('emails.account.account-created-by-admin', [ 'user' => $user, 'new_password' => Input::get('password') ], function ($m) use ($user) {
889
-                        $m->to($user->email, $user->first_name . ' ' . $user->last_name);
888
+                    Mail::queue('emails.account.account-created-by-admin', ['user' => $user, 'new_password' => Input::get('password')], function($m) use ($user) {
889
+                        $m->to($user->email, $user->first_name.' '.$user->last_name);
890 890
                         $m->subject(Lang::get('base.mails.account_created'));
891 891
                     });
892 892
                 }
893 893
                 else
894 894
                 {
895
-                    Mail::queue('emails.account.account-created-by-admin-inactive', [ 'user' => $user, 'new_password' => Input::get('password') ], function ($m2) use ($user) {
896
-                        $m2->to($user->email, $user->first_name . ' ' . $user->last_name);
895
+                    Mail::queue('emails.account.account-created-by-admin-inactive', ['user' => $user, 'new_password' => Input::get('password')], function($m2) use ($user) {
896
+                        $m2->to($user->email, $user->first_name.' '.$user->last_name);
897 897
                         $m2->subject(Lang::get('base.mails.account_created'));
898 898
                     });
899 899
 
@@ -906,9 +906,9 @@  discard block
 block discarded – undo
906 906
                     );
907 907
 
908 908
                     // Send the activation code through email
909
-                    Mail::queue('emails.auth.register-activate', $data, function ($m) use ($user) {
910
-                        $m->to($user->email, $user->first_name . ' ' . $user->last_name);
911
-                        $m->subject(Lang::get('base.mails.welcome') . ' ' . $user->first_name);
909
+                    Mail::queue('emails.auth.register-activate', $data, function($m) use ($user) {
910
+                        $m->to($user->email, $user->first_name.' '.$user->last_name);
911
+                        $m->subject(Lang::get('base.mails.welcome').' '.$user->first_name);
912 912
                     });
913 913
 
914 914
                 }
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
         }
970 970
 
971 971
         // Check if we are not trying to delete ourselves
972
-        if ($user->id === Sentinel::getUser()->id + 1)  {
972
+        if ($user->id === Sentinel::getUser()->id + 1) {
973 973
             // Prepare the error message
974 974
             $error = Lang::get('base.base.yourself');
975 975
 
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
         }
1011 1011
 
1012 1012
         // Check if we are not trying to delete ourselves
1013
-        if ($user->id === Sentinel::getUser()->id + 1)  {
1013
+        if ($user->id === Sentinel::getUser()->id + 1) {
1014 1014
             // Prepare the error message
1015 1015
             $error = Lang::get('base.base.yourself');
1016 1016
 
Please login to merge, or discard this patch.
src/baseServiceProvider.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -49,41 +49,41 @@  discard block
 block discarded – undo
49 49
     {
50 50
         // Publish our views
51 51
         $this->publishes([
52
-            __DIR__ .  '/views' => base_path("resources/views")
52
+            __DIR__.'/views' => base_path("resources/views")
53 53
         ]);
54 54
 
55 55
         // Publish our lang
56 56
         $this->publishes([
57
-            __DIR__ .  '/lang' => base_path("resources/lang")
57
+            __DIR__.'/lang' => base_path("resources/lang")
58 58
         ]);
59 59
 
60 60
         // Publish our public
61 61
         $this->publishes([
62
-            __DIR__ .  '/public' => base_path("public")
62
+            __DIR__.'/public' => base_path("public")
63 63
         ]);
64 64
 
65 65
         // Publish our migrations
66 66
         $this->publishes([
67
-            __DIR__ .  '/migrations' => base_path("database/migrations")
67
+            __DIR__.'/migrations' => base_path("database/migrations")
68 68
         ], 'migrations');
69 69
 
70 70
         // Publish our migrations
71 71
         $this->publishes([
72
-            __DIR__ .  '/seeds' => base_path("database/seeds")
72
+            __DIR__.'/seeds' => base_path("database/seeds")
73 73
         ], 'seeds');
74 74
 
75 75
         // Publish a config file
76 76
         $this->publishes([
77
-            __DIR__ . '/config' => base_path('/config')
77
+            __DIR__.'/config' => base_path('/config')
78 78
         ], 'config');
79 79
 
80 80
         // Publish our routes
81 81
         $this->publishes([
82
-            __DIR__ .  '/routes.php' => base_path("app/Http/base_routes.php")
82
+            __DIR__.'/routes.php' => base_path("app/Http/base_routes.php")
83 83
         ], 'routes');
84 84
 
85 85
         // Include the routes file
86
-        if(file_exists(base_path("app/Http/base_routes.php")))
86
+        if (file_exists(base_path("app/Http/base_routes.php")))
87 87
             include base_path("app/Http/base_routes.php");
88 88
     }
89 89
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function registerUsers()
96 96
     {
97
-        $this->app->singleton('jlourenco.user', function ($app) {
97
+        $this->app->singleton('jlourenco.user', function($app) {
98 98
             $config = $app['config']->get('jlourenco.base');
99 99
 
100 100
             $users = array_get($config, 'models.User');
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     protected function registerGroups()
116 116
     {
117
-        $this->app->singleton('jlourenco.group', function ($app) {
117
+        $this->app->singleton('jlourenco.group', function($app) {
118 118
             $config = $app['config']->get('jlourenco.base');
119 119
 
120 120
             $model = array_get($config, 'base.models.Group');
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     protected function registerSettings()
132 132
     {
133
-        $this->app->singleton('jlourenco.settings', function ($app) {
133
+        $this->app->singleton('jlourenco.settings', function($app) {
134 134
             $config = $app['config']->get('jlourenco.base');
135 135
 
136 136
             $model = array_get($config, 'models.Settings');
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     protected function registerLog()
148 148
     {
149
-        $this->app->singleton('jlourenco.log', function ($app) {
149
+        $this->app->singleton('jlourenco.log', function($app) {
150 150
             $config = $app['config']->get('jlourenco.base');
151 151
 
152 152
             $model = array_get($config, 'models.Logs');
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     protected function registerVisits()
164 164
     {
165
-        $this->app->singleton('jlourenco.visits', function ($app) {
165
+        $this->app->singleton('jlourenco.visits', function($app) {
166 166
             $config = $app['config']->get('jlourenco.base');
167 167
 
168 168
             $model = array_get($config, 'models.Visits');
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     protected function registerJobs()
180 180
     {
181
-        $this->app->singleton('jlourenco.jobs', function ($app) {
181
+        $this->app->singleton('jlourenco.jobs', function($app) {
182 182
             $config = $app['config']->get('jlourenco.base');
183 183
 
184 184
             $model = array_get($config, 'models.Jobs');
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     protected function registerBase()
196 196
     {
197
-        $this->app->singleton('base', function ($app) {
197
+        $this->app->singleton('base', function($app) {
198 198
             $base = new Base($app['jlourenco.settings'], $app['jlourenco.user'], $app['jlourenco.log'], $app['jlourenco.visits'], $app['jlourenco.jobs']);
199 199
 
200 200
             return $base;
Please login to merge, or discard this patch.