Completed
Push — master ( d9e81b...095ef1 )
by Raí
13:45 queued 02:05
created
app/Http/Controllers/Auth/RegisterController.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      *
35 35
      * @return void
36 36
      */
37
-    public function __construct()
37
+    public function __construct ()
38 38
     {
39 39
         $this->middleware('guest');
40 40
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @return \Illuminate\Contracts\Validation\Validator
48 48
      */
49
-    protected function validator(array $data)
49
+    protected function validator (array $data)
50 50
     {
51 51
         return Validator::make($data, [
52 52
             'name'     => 'required|string|max:255',
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @return \App\User
64 64
      */
65
-    protected function create(array $data)
65
+    protected function create (array $data)
66 66
     {
67 67
         return User::create([
68
-            'name'     => $data['name'],
69
-            'email'    => $data['email'],
70
-            'password' => bcrypt($data['password']),
68
+            'name'     => $data[ 'name' ],
69
+            'email'    => $data[ 'email' ],
70
+            'password' => bcrypt($data[ 'password' ]),
71 71
         ]);
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
 use Illuminate\Foundation\Auth\RegistersUsers;
8 8
 use Illuminate\Support\Facades\Validator;
9 9
 
10
-class RegisterController extends Controller
11
-{
10
+class RegisterController extends Controller {
12 11
     /*
13 12
     |--------------------------------------------------------------------------
14 13
     | Register Controller
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/ResetPasswordController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      *
33 33
      * @return void
34 34
      */
35
-    public function __construct()
35
+    public function __construct ()
36 36
     {
37 37
         $this->middleware('guest');
38 38
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use App\Http\Controllers\Controller;
6 6
 use Illuminate\Foundation\Auth\ResetsPasswords;
7 7
 
8
-class ResetPasswordController extends Controller
9
-{
8
+class ResetPasswordController extends Controller {
10 9
     /*
11 10
     |--------------------------------------------------------------------------
12 11
     | Password Reset Controller
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      *
33 33
      * @return void
34 34
      */
35
-    public function __construct()
35
+    public function __construct ()
36 36
     {
37 37
         $this->middleware('guest')->except('logout');
38 38
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use App\Http\Controllers\Controller;
6 6
 use Illuminate\Foundation\Auth\AuthenticatesUsers;
7 7
 
8
-class LoginController extends Controller
9
-{
8
+class LoginController extends Controller {
10 9
     /*
11 10
     |--------------------------------------------------------------------------
12 11
     | Login Controller
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/ForgotPasswordController.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use App\Http\Controllers\Controller;
6 6
 use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
7 7
 
8
-class ForgotPasswordController extends Controller
9
-{
8
+class ForgotPasswordController extends Controller {
10 9
     /*
11 10
     |--------------------------------------------------------------------------
12 11
     | Password Reset Controller
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      *
33 33
      * @return void
34 34
      */
35
-    public function __construct()
35
+    public function __construct ()
36 36
     {
37 37
         $this->middleware('guest');
38 38
     }
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      *
17 17
      * @return mixed
18 18
      */
19
-    public function handle($request, Closure $next, $guard = null)
19
+    public function handle ($request, Closure $next, $guard = null)
20 20
     {
21 21
         if (Auth::guard($guard)->check()) {
22 22
             return redirect('/home');
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use Closure;
6 6
 use Illuminate\Support\Facades\Auth;
7 7
 
8
-class RedirectIfAuthenticated
9
-{
8
+class RedirectIfAuthenticated {
10 9
     /**
11 10
      * Handle an incoming request.
12 11
      *
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      *
17 17
      * @return mixed
18 18
      */
19
-    public function handle($request, Closure $next, $guard = null)
19
+    public function handle($request, Closure $next, $guard = NULL)
20 20
     {
21 21
         if (Auth::guard($guard)->check()) {
22 22
             return redirect('/home');
Please login to merge, or discard this patch.
app/Http/Middleware/EncryptCookies.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
6 6
 
7
-class EncryptCookies extends Middleware
8
-{
7
+class EncryptCookies extends Middleware {
9 8
     /**
10 9
      * The names of the cookies that should not be encrypted.
11 10
      *
Please login to merge, or discard this patch.
app/Http/Middleware/TrustProxies.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use Fideloper\Proxy\TrustProxies as Middleware;
6 6
 use Illuminate\Http\Request;
7 7
 
8
-class TrustProxies extends Middleware
9
-{
8
+class TrustProxies extends Middleware {
10 9
     /**
11 10
      * The trusted proxies for this application.
12 11
      *
Please login to merge, or discard this patch.
app/Http/Middleware/TrimStrings.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
6 6
 
7
-class TrimStrings extends Middleware
8
-{
7
+class TrimStrings extends Middleware {
9 8
     /**
10 9
      * The names of the attributes that should not be trimmed.
11 10
      *
Please login to merge, or discard this patch.
app/Http/Middleware/VerifyCsrfToken.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
6 6
 
7
-class VerifyCsrfToken extends Middleware
8
-{
7
+class VerifyCsrfToken extends Middleware {
9 8
     /**
10 9
      * The URIs that should be excluded from CSRF verification.
11 10
      *
Please login to merge, or discard this patch.