Completed
Push — master ( 000aae...3730ff )
by Karl
17s
created
routes/web.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // Homepage
4
-Route::get('/', function () {
4
+Route::get('/', function() {
5 5
     return view('users.index');
6 6
 });
7 7
 
8 8
 // Terms page
9
-Route::get('/terms', function () {
9
+Route::get('/terms', function() {
10 10
     return view('static.terms');
11 11
 });
12 12
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 // Current User Account page
23 23
 Route::get('/searches', 'SearchesController@index')->middleware('auth');
24 24
 
25
-Route::group(['prefix' => 'auth'], function () {
25
+Route::group([ 'prefix' => 'auth' ], function() {
26 26
 
27 27
     // Submit login form (part 1 of login)
28 28
     Route::post('/login', 'AuthController@login');
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     Route::get('/confirm/{token}', 'AuthController@confirm');
35 35
 });
36 36
 
37
-Route::group(['prefix' => 'users'], function () {
37
+Route::group([ 'prefix' => 'users' ], function() {
38 38
 
39 39
     // Create new user
40 40
     Route::post('/', 'UsersController@create');
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     Route::get('/{userId}/searches', 'SearchesController@index');
47 47
 });
48 48
 
49
-Route::group(['prefix' => 'searches'], function () {
49
+Route::group([ 'prefix' => 'searches' ], function() {
50 50
 
51 51
     // Unsubscribe by ID
52 52
     Route::get('/{searchId}/unsubscribe', 'SearchesController@unsubscribe');
Please login to merge, or discard this patch.
app/Http/Controllers/AuthController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function login(LoginUser $request)
35 35
     {
36
-        $email = $request->only('email')['email'];
36
+        $email = $request->only('email')[ 'email' ];
37 37
 
38 38
         $message = $this->dispatchNow(new SendLoginMessage($email));
39 39
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function postConfirm(Request $request)
61 61
     {
62
-        return $this->confirm($request, $request->only('token')['token']);
62
+        return $this->confirm($request, $request->only('token')[ 'token' ]);
63 63
     }
64 64
 
65 65
     /**
Please login to merge, or discard this patch.
app/Repositories/Contracts/UserRepositoryInterface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,19 +6,19 @@
 block discarded – undo
6 6
 {
7 7
     public function confirm(User $user);
8 8
 
9
-    public function create($data = []);
9
+    public function create($data = [ ]);
10 10
 
11 11
     public function delete($id = null);
12 12
 
13
-    public function firstOrCreate($data = []);
13
+    public function firstOrCreate($data = [ ]);
14 14
 
15 15
     public function generateToken($user_id = null, $type = 'confirm');
16 16
 
17
-    public function getById($id = null, $options = []);
17
+    public function getById($id = null, $options = [ ]);
18 18
 
19 19
     public function getToken($token = null, $daysToExpire = 30);
20 20
 
21
-    public function getByEmail($email = null, $options = []);
21
+    public function getByEmail($email = null, $options = [ ]);
22 22
 
23
-    public function update($id = null, $data = []);
23
+    public function update($id = null, $data = [ ]);
24 24
 }
Please login to merge, or discard this patch.
app/Repositories/UserRepository.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function confirm(User $user)
39 39
     {
40 40
         if (!$user->confirmed_at) {
41
-            if ($this->update($user->id, ['confirmed_at' => Carbon::now()])) {
41
+            if ($this->update($user->id, [ 'confirmed_at' => Carbon::now() ])) {
42 42
                 return true;
43 43
             }
44 44
         }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @return \JobApis\JobsToMail\Models\User
54 54
      */
55
-    public function create($data = [])
55
+    public function create($data = [ ])
56 56
     {
57 57
         $user = $this->users->create($data);
58 58
 
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @return \JobApis\JobsToMail\Models\User
82 82
      */
83
-    public function firstOrCreate($data = [])
83
+    public function firstOrCreate($data = [ ])
84 84
     {
85
-        if ($user = $this->users->where('email', $data['email'])->first()) {
85
+        if ($user = $this->users->where('email', $data[ 'email' ])->first()) {
86 86
             // Resend the user a confirmation token if they haven't confirmed
87 87
             if (!$user->confirmed_at) {
88 88
                 $this->sendConfirmationToken($user);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      *
119 119
      * @return \JobApis\JobsToMail\Models\User
120 120
      */
121
-    public function getById($id = null, $options = [])
121
+    public function getById($id = null, $options = [ ])
122 122
     {
123 123
         return $this->users->where('id', $id)->first();
124 124
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      *
132 132
      * @return \JobApis\JobsToMail\Models\User
133 133
      */
134
-    public function getByEmail($email = null, $options = [])
134
+    public function getByEmail($email = null, $options = [ ])
135 135
     {
136 136
         return $this->users->where('email', $email)->first();
137 137
     }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      *
160 160
      * @return boolean
161 161
      */
162
-    public function update($id = null, $data = [])
162
+    public function update($id = null, $data = [ ])
163 163
     {
164 164
         return $this->users->where('id', $id)->update($data);
165 165
     }
Please login to merge, or discard this patch.