@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | protected function commands() |
| 37 | 37 | { |
| 38 | - $this->load(__DIR__.'/Commands'); |
|
| 38 | + $this->load(__DIR__ . '/Commands'); |
|
| 39 | 39 | |
| 40 | 40 | require base_path('routes/console.php'); |
| 41 | 41 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | $this->table($headers, $tasks); |
| 49 | 49 | } catch (exception $e) { |
| 50 | - $this->error('Error: '.$e); |
|
| 50 | + $this->error('Error: ' . $e); |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | 'name'=> $this->argument('name') ? $this->argument('name') : $this->ask('Event name?'), |
| 50 | 50 | ]); |
| 51 | 51 | } catch (Exception $e) { |
| 52 | - $this->error('error'.$e); |
|
| 52 | + $this->error('error' . $e); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | $this->info('Task has been added to database succesfully'); |
@@ -48,11 +48,11 @@ |
||
| 48 | 48 | // |
| 49 | 49 | // ]); |
| 50 | 50 | } catch (Exception $e) { |
| 51 | - $this->error('error'.$e); |
|
| 51 | + $this->error('error' . $e); |
|
| 52 | 52 | } |
| 53 | 53 | if ($count == 0) { |
| 54 | 54 | $this->alert('Task does not exist'); |
| 55 | - } else { |
|
| 55 | + }else { |
|
| 56 | 56 | $this->info('Task has been deleted to database succesfully'); |
| 57 | 57 | } |
| 58 | 58 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | if ($this->username() === 'email') { |
| 73 | 73 | return $this->attemptLoginAtAuthenticatesUsers($request); |
| 74 | 74 | } |
| 75 | - if (!$this->attemptLoginAtAuthenticatesUsers($request)) { |
|
| 75 | + if ( ! $this->attemptLoginAtAuthenticatesUsers($request)) { |
|
| 76 | 76 | return $this->attempLoginUsingUsernameAsAnEmail($request); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | // will update the password on an actual user model and persist it to the |
| 39 | 39 | // database. Otherwise we will parse the error and return the response. |
| 40 | 40 | $response = $this->broker()->reset( |
| 41 | - $this->credentials($request), function ($user, $password) { |
|
| 41 | + $this->credentials($request), function($user, $password) { |
|
| 42 | 42 | $this->resetPassword($user, $password); |
| 43 | 43 | } |
| 44 | 44 | ); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function authorize() |
| 21 | 21 | { |
| 22 | - if($this->HasPermissionTo('list-tasks')) return true; |
|
| 22 | + if ($this->HasPermissionTo('list-tasks')) return true; |
|
| 23 | 23 | if ($this->owns('tasks')) return true; |
| 24 | 24 | return false; |
| 25 | 25 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function authorize() |
| 19 | 19 | { |
| 20 | - if($this->HasPermissionTo('update-tasks')) return true; |
|
| 20 | + if ($this->HasPermissionTo('update-tasks')) return true; |
|
| 21 | 21 | if ($this->owns('tasks')) return true; |
| 22 | 22 | return false; |
| 23 | 23 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function authorize() |
| 18 | 18 | { |
| 19 | - if($this->HasPermissionTo('show-tasks')) return true; |
|
| 19 | + if ($this->HasPermissionTo('show-tasks')) return true; |
|
| 20 | 20 | if ($this->owns('tasks')) return true; |
| 21 | 21 | return false; |
| 22 | 22 | //return Auth::user()->HasPermissionTo('show-tasks'); |