Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Apply fixes from StyleCI #1

Merged
merged 1 commit into from
Feb 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/AjaxRedirectResponse.php
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 0 additions & 2 deletions src/AjaxRedirectServiceProvider.php
Original file line number Diff line number Diff line change
@@ -8,8 +8,6 @@ class AjaxRedirectServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
1 change: 1 addition & 0 deletions src/Redirector.php
Original file line number Diff line number Diff line change
@@ -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)