Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Apply fixes from StyleCI #35

Merged
merged 1 commit into from
Apr 11, 2020
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion src/Services/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public function headers(array $headers = []): self
*/
public function response(): JsonResponse
{

return JsonResponse::create($this->getData(), $this->status_code, $this->headers);
}

Expand Down
10 changes: 5 additions & 5 deletions src/Support/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace Helldar\ApiResponse\Support;

use function basename;
use Exception as BaseException;
use function get_class;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Http\Exceptions\HttpResponseException;
use Illuminate\Validation\ValidationException;
use Throwable;

use function basename;
use function get_class;
use Illuminate\Validation\ValidationException;
use function is_object;
use function is_subclass_of;
use function str_replace;
use Throwable;

final class Exception
{
Expand All @@ -32,7 +32,7 @@ public static function isThrowable($value = null): bool
}

/**
* @param \Throwable|\Exception $value
* @param \Exception|\Throwable $value
* @param int $status_code
*
* @return int
Expand Down