Completed
Pull Request — master (#19)
by Raí
06:44
created
app/Exceptions/Handler.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param  \Exception  $exception
31 31
      * @return void
32 32
      */
33
-    public function report(Exception $exception)
33
+    public function report (Exception $exception)
34 34
     {
35 35
         parent::report($exception);
36 36
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param  \Exception  $exception
43 43
      * @return \Illuminate\Http\Response
44 44
      */
45
-    public function render($request, Exception $exception)
45
+    public function render ($request, Exception $exception)
46 46
     {
47 47
         return parent::render($request, $exception);
48 48
     }
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
      * @param  \Illuminate\Auth\AuthenticationException  $exception
55 55
      * @return \Illuminate\Http\Response
56 56
      */
57
-    protected function unauthenticated($request, AuthenticationException $exception)
57
+    protected function unauthenticated ($request, AuthenticationException $exception)
58 58
     {
59 59
         if ($request->expectsJson()) {
60
-            return response()->json(['error' => 'Unauthenticated.'], 401);
60
+            return response()->json([ 'error' => 'Unauthenticated.' ], 401);
61 61
         }
62 62
 
63 63
         return redirect()->guest(route('login'));
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
 use Illuminate\Auth\AuthenticationException;
7 7
 use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
8 8
 
9
-class Handler extends ExceptionHandler
10
-{
9
+class Handler extends ExceptionHandler {
11 10
     /**
12 11
      * A list of the exception types that should not be reported.
13 12
      *
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
23 23
      * @return void
24 24
      */
25
-    protected function schedule(Schedule $schedule)
25
+    protected function schedule (Schedule $schedule)
26 26
     {
27 27
         // $schedule->command('inspire')
28 28
         //          ->hourly();
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @return void
35 35
      */
36
-    protected function commands()
36
+    protected function commands ()
37 37
     {
38 38
         require base_path('routes/console.php');
39 39
     }
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 BaseVerifier;
6 6
 
7
-class VerifyCsrfToken extends BaseVerifier
8
-{
7
+class VerifyCsrfToken extends BaseVerifier {
9 8
     /**
10 9
      * The URIs that should be excluded from CSRF verification.
11 10
      *
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      * @param  string|null  $guard
16 16
      * @return mixed
17 17
      */
18
-    public function handle($request, Closure $next, $guard = null)
18
+    public function handle ($request, Closure $next, $guard = null)
19 19
     {
20 20
         if (Auth::guard($guard)->check()) {
21 21
             return redirect('/home');
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      * @param  string|null  $guard
16 16
      * @return mixed
17 17
      */
18
-    public function handle($request, Closure $next, $guard = null)
18
+    public function handle($request, Closure $next, $guard = NULL)
19 19
     {
20 20
         if (Auth::guard($guard)->check()) {
21 21
             return redirect('/home');
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 BaseTrimmer;
6 6
 
7
-class TrimStrings extends BaseTrimmer
8
-{
7
+class TrimStrings extends BaseTrimmer {
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/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 BaseEncrypter;
6 6
 
7
-class EncryptCookies extends BaseEncrypter
8
-{
7
+class EncryptCookies extends BaseEncrypter {
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/Controllers/Controller.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Illuminate\Foundation\Validation\ValidatesRequests;
8 8
 use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
9 9
 
10
-class Controller extends BaseController
11
-{
10
+class Controller extends BaseController {
12 11
     use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
13 12
 }
Please login to merge, or discard this patch.
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
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param  array  $data
46 46
      * @return \Illuminate\Contracts\Validation\Validator
47 47
      */
48
-    protected function validator(array $data)
48
+    protected function validator (array $data)
49 49
     {
50 50
         return Validator::make($data, [
51 51
             'name' => 'required|string|max:255',
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
      * @param  array  $data
61 61
      * @return \LaravelSeed\User
62 62
      */
63
-    protected function create(array $data)
63
+    protected function create (array $data)
64 64
     {
65 65
         return User::create([
66
-            'name' => $data['name'],
67
-            'email' => $data['email'],
68
-            'password' => bcrypt($data['password']),
66
+            'name' => $data[ 'name' ],
67
+            'email' => $data[ 'email' ],
68
+            'password' => bcrypt($data[ 'password' ]),
69 69
         ]);
70 70
     }
71 71
 }
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\Support\Facades\Validator;
8 8
 use Illuminate\Foundation\Auth\RegistersUsers;
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/Providers/AuthServiceProvider.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 Illuminate\Support\Facades\Gate;
6 6
 use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
7 7
 
8
-class AuthServiceProvider extends ServiceProvider
9
-{
8
+class AuthServiceProvider extends ServiceProvider {
10 9
     /**
11 10
      * The policy mappings for the application.
12 11
      *
Please login to merge, or discard this patch.