From 75cc5a7e2e1960bac25eec1deff87e6b2fca00a4 Mon Sep 17 00:00:00 2001 From: John in 't Hout Date: Thu, 9 Oct 2014 23:28:45 +0200 Subject: [PATCH 1/3] Added @throws TokenMismatchException Since modern IDE's will expect you to define the @throws attribute, added this to the Docblock. --- app/Http/Middleware/CsrfMiddleware.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Middleware/CsrfMiddleware.php b/app/Http/Middleware/CsrfMiddleware.php index 0b81362e..37b873bb 100644 --- a/app/Http/Middleware/CsrfMiddleware.php +++ b/app/Http/Middleware/CsrfMiddleware.php @@ -11,6 +11,7 @@ class CsrfMiddleware implements Middleware { * * @param \Illuminate\Http\Request $request * @param \Closure $next + * @throws TokenMismatchException * @return mixed */ public function handle($request, Closure $next) From 409fa574fc43b3988f0b2f8026664177c8e9a15e Mon Sep 17 00:00:00 2001 From: John in 't Hout Date: Fri, 10 Oct 2014 22:56:00 +0200 Subject: [PATCH 2/3] Update CsrfMiddleware.php --- app/Http/Middleware/CsrfMiddleware.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Middleware/CsrfMiddleware.php b/app/Http/Middleware/CsrfMiddleware.php index 37b873bb..be2e7a68 100644 --- a/app/Http/Middleware/CsrfMiddleware.php +++ b/app/Http/Middleware/CsrfMiddleware.php @@ -11,8 +11,10 @@ class CsrfMiddleware implements Middleware { * * @param \Illuminate\Http\Request $request * @param \Closure $next - * @throws TokenMismatchException + * * @return mixed + * + * @throws TokenMismatchException */ public function handle($request, Closure $next) { From 6c0b7916a4c480e9814a6d929913ecda636fe3bd Mon Sep 17 00:00:00 2001 From: John in 't Hout Date: Sat, 11 Oct 2014 01:02:23 +0200 Subject: [PATCH 3/3] Update CsrfMiddleware.php --- app/Http/Middleware/CsrfMiddleware.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Http/Middleware/CsrfMiddleware.php b/app/Http/Middleware/CsrfMiddleware.php index be2e7a68..9b467ac6 100644 --- a/app/Http/Middleware/CsrfMiddleware.php +++ b/app/Http/Middleware/CsrfMiddleware.php @@ -11,7 +11,6 @@ class CsrfMiddleware implements Middleware { * * @param \Illuminate\Http\Request $request * @param \Closure $next - * * @return mixed * * @throws TokenMismatchException