From 3372dd1fc89d6943aa58d65031e930afbf83bcc5 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 4 Jul 2016 16:23:54 +0100 Subject: [PATCH 1/3] Some StyleCI fixes --- app/Http/Controllers/MicropubController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/MicropubController.php b/app/Http/Controllers/MicropubController.php index 175e9b79..0ce97e91 100644 --- a/app/Http/Controllers/MicropubController.php +++ b/app/Http/Controllers/MicropubController.php @@ -85,7 +85,7 @@ EOD; } } } - $content = <<header('Content-Type', 'application/json'); } - $content = <<tokenService->validateToken($token); if ($valid === null) { - $content = <<json([ 'response' => 'places', - 'places' => $places + 'places' => $places, ]); } //nope, ho about a config query? @@ -199,7 +199,7 @@ EOD; ]); } $content = 'No OAuth token sent with request.'; - $content = << Date: Mon, 4 Jul 2016 16:26:23 +0100 Subject: [PATCH 2/3] Missing space --- app/Http/Controllers/MicropubController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/MicropubController.php b/app/Http/Controllers/MicropubController.php index 0ce97e91..ad1b3314 100644 --- a/app/Http/Controllers/MicropubController.php +++ b/app/Http/Controllers/MicropubController.php @@ -133,6 +133,7 @@ EOD; "error_description": "The provided token did not pass validation" } EOD; + return (new Response($content, 400)) ->header('Content-Type', 'application/json'); } From e49e04232b444c6009f85400587cdd336b7ae05d Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 4 Jul 2016 16:29:13 +0100 Subject: [PATCH 3/3] Bump version --- changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index 43366152..a7b4d042 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version 0.0.7.1 (2016-07-04) + - Minor style fixes + ## Version 0.0.7 (2016-07-04) - Use JSON for syndication endpoint query response - Use JSON for all micropub requests