From b1465319850a57f44318d687983f7a50c29fc098 Mon Sep 17 00:00:00 2001 From: Matthew Goslett Date: Mon, 6 Feb 2017 06:54:07 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/AjaxRedirectResponse.php | 8 +++++--- src/AjaxRedirectServiceProvider.php | 2 -- src/Redirector.php | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/AjaxRedirectResponse.php b/src/AjaxRedirectResponse.php index e9fa17c..024978e 100644 --- a/src/AjaxRedirectResponse.php +++ b/src/AjaxRedirectResponse.php @@ -6,13 +6,14 @@ class AjaxRedirectResponse extends RedirectResponse { - /** * Sets the redirect target of this response. * * @param string $url The URL to redirect to - * @return RedirectResponse The current response. + * * @throws \InvalidArgumentException + * + * @return RedirectResponse The current response. */ public function setTargetUrl($url) { @@ -23,7 +24,7 @@ public function setTargetUrl($url) $this->targetUrl = $url; $data = [ - 'redirect_url' => $url + 'redirect_url' => $url, ]; $this->setContent(json_encode($data)); @@ -36,6 +37,7 @@ public function setTargetUrl($url) * Is the response a redirect of some form? * * @param string $location + * * @return bool */ public function isRedirect($location = null) diff --git a/src/AjaxRedirectServiceProvider.php b/src/AjaxRedirectServiceProvider.php index c64543f..f64081e 100644 --- a/src/AjaxRedirectServiceProvider.php +++ b/src/AjaxRedirectServiceProvider.php @@ -8,8 +8,6 @@ class AjaxRedirectServiceProvider extends ServiceProvider { /** * Register any application services. - * - * @return void */ public function register() { diff --git a/src/Redirector.php b/src/Redirector.php index d75662b..8b2e076 100644 --- a/src/Redirector.php +++ b/src/Redirector.php @@ -12,6 +12,7 @@ class Redirector extends BaseRedirector * @param string $path * @param int $status * @param array $headers + * * @return \Illuminate\Http\RedirectResponse */ protected function createRedirect($path, $status, $headers)