@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Distilleries\Expendable\Exporter\CsvExporter; |
| 4 | 4 | use Distilleries\Expendable\Exporter\ExcelExporter; |
| 5 | -use Distilleries\Expendable\Exporter\PdfExporter; |
|
| 6 | 5 | use Distilleries\Expendable\Importer\CsvImporter; |
| 7 | 6 | use Distilleries\Expendable\Importer\XlsImporter; |
| 8 | 7 | use Distilleries\Expendable\Layouts\LayoutManager; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Distilleries\Expendable\Contracts\LockableContract; |
| 4 | 4 | use Distilleries\Expendable\Helpers\UserUtils; |
| 5 | -use Distilleries\Expendable\Models\User; |
|
| 6 | 5 | |
| 7 | 6 | class UserListener extends BaseListener |
| 8 | 7 | { |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | { |
| 36 | 36 | |
| 37 | 37 | |
| 38 | - if($model->email != ''){ |
|
| 38 | + if ($model->email != '') { |
|
| 39 | 39 | $model->unlock(); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | |
| 56 | - public function postUnLock(Request $request){ |
|
| 56 | + public function postUnLock(Request $request) { |
|
| 57 | 57 | |
| 58 | 58 | $model = $this->model->findOrFail($request->get('id')); |
| 59 | 59 | $model->nb_of_try = 0; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | |
| 66 | - public function postLock(Request $request){ |
|
| 66 | + public function postLock(Request $request) { |
|
| 67 | 67 | |
| 68 | 68 | $model = $this->model->findOrFail($request->get('id')); |
| 69 | 69 | $model->nb_of_try = config('expendable.auth.nb_of_try'); |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | 'token' |
| 206 | 206 | ); |
| 207 | 207 | |
| 208 | - $response = $this->passwords->reset($credentials, function ($user, $password) |
|
| 208 | + $response = $this->passwords->reset($credentials, function($user, $password) |
|
| 209 | 209 | { |
| 210 | 210 | $user->password = bcrypt($password); |
| 211 | 211 | $user->save(); |