Fix issues found by phpcs

This commit is contained in:
Jonny Barnes 2017-03-02 16:01:48 +00:00
parent dd48adf243
commit 1a9efbac72
2 changed files with 20 additions and 4 deletions

View file

@ -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;