From 1a9efbac72125e4357a3bd67942e281574f80966 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 2 Mar 2017 16:01:48 +0000 Subject: [PATCH] Fix issues found by phpcs --- app/Http/Controllers/MicropubClientController.php | 10 ++++++++-- app/Http/Controllers/NotesController.php | 14 ++++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index d93612f9..c2ecbc2c 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -104,7 +104,10 @@ class MicropubClientController extends Controller 'query' => ['q' => 'syndicate-to'], ]); } catch (\GuzzleHttp\Exception\BadResponseException $e) { - return redirect(route('micropub-client'))->with('error', 'Bad response when refreshing syndication targets'); + return redirect(route('micropub-client'))->with( + 'error', + 'Bad response when refreshing syndication targets' + ); } $body = (string) $response->getBody(); $syndication = $this->parseSyndicationTargets($body); @@ -178,7 +181,10 @@ class MicropubClientController extends Controller 'headers' => $headers, ]); } catch (\GuzzleHttp\Exception\BadResponseException $e) { - return redirect(route('micropub-client'))->with('error', 'There was a bad response from the micropub endpoint.'); + return redirect(route('micropub-client'))->with( + 'error', + 'There was a bad response from the micropub endpoint.' + ); } return $response; diff --git a/app/Http/Controllers/NotesController.php b/app/Http/Controllers/NotesController.php index bf222430..45915796 100644 --- a/app/Http/Controllers/NotesController.php +++ b/app/Http/Controllers/NotesController.php @@ -51,7 +51,12 @@ class NotesController extends Controller $note->longitude = $lnglat[0]; $note->address = $note->place->name; $note->placeLink = '/places/' . $note->place->slug; - $note->geoJson = $this->getGeoJson($note->longitude, $note->latitude, $note->place->name, $note->place->icon); + $note->geoJson = $this->getGeoJson( + $note->longitude, + $note->latitude, + $note->place->name, + $note->place->icon + ); } $photoURLs = []; $photos = $note->getMedia(); @@ -151,7 +156,12 @@ class NotesController extends Controller $note->longitude = $lnglat[0]; $note->address = $note->place->name; $note->placeLink = '/places/' . $note->place->slug; - $note->geoJson = $this->getGeoJson($note->longitude, $note->latitude, $note->place->name, $note->place->icon); + $note->geoJson = $this->getGeoJson( + $note->longitude, + $note->latitude, + $note->place->name, + $note->place->icon + ); } $photoURLs = [];