@@ -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 | } |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -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 | } |
@@ -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 | } |
@@ -21,17 +21,17 @@ |
||
21 | 21 | public function store(Request $request) |
22 | 22 | { |
23 | 23 | $request->validate([ |
24 | - 'name' => 'required|max:255', |
|
25 | - 'username' => 'sometimes|required|max:255|unique:users', |
|
26 | - 'email' => 'required|email|max:255|unique:users', |
|
27 | - 'password' => 'required|min:6', |
|
24 | + 'name' => 'required|max:255', |
|
25 | + 'username' => 'sometimes|required|max:255|unique:users', |
|
26 | + 'email' => 'required|email|max:255|unique:users', |
|
27 | + 'password' => 'required|min:6', |
|
28 | 28 | ]); |
29 | 29 | |
30 | 30 | $user = User::create([ |
31 | - 'name' => $request->name, |
|
32 | - 'username' => $request->username, |
|
33 | - 'email' => $request->email, |
|
34 | - 'password' => bcrypt($request->password), |
|
31 | + 'name' => $request->name, |
|
32 | + 'username' => $request->username, |
|
33 | + 'email' => $request->email, |
|
34 | + 'password' => bcrypt($request->password), |
|
35 | 35 | ]); |
36 | 36 | |
37 | 37 | return $user; |
@@ -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 | ); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | ]); |
53 | 53 | } catch (Exception $e) { |
54 | - $this->error('error'.$e); |
|
54 | + $this->error('error' . $e); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | $this->info('Task has been added to database succesfully'); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $id = $this->argument('id') ? $this->argument('id') : $this->askForTasks(); |
46 | 46 | $task = Task::findOrFail($id); |
47 | 47 | |
48 | - try{ |
|
48 | + try { |
|
49 | 49 | |
50 | 50 | $headers = ['Key', 'Value']; |
51 | 51 | $info = [ |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | |
58 | 58 | |
59 | 59 | ]; |
60 | - $this->table($headers,$info); |
|
60 | + $this->table($headers, $info); |
|
61 | 61 | |
62 | - }catch(Exception $e){ |
|
62 | + } catch (Exception $e) { |
|
63 | 63 | |
64 | 64 | $this->error('error' . $e); |
65 | 65 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | ]; |
60 | 60 | $this->table($headers,$info); |
61 | 61 | |
62 | - }catch(Exception $e){ |
|
62 | + } catch(Exception $e){ |
|
63 | 63 | |
64 | 64 | $this->error('error' . $e); |
65 | 65 | } |