Code cleanup.

This commit is contained in:
James Cole
2023-12-20 19:35:52 +01:00
parent c4f6366642
commit 64ec0cf62e
997 changed files with 12908 additions and 28136 deletions

View File

@@ -23,7 +23,6 @@ declare(strict_types=1);
namespace FireflyIII\Http\Middleware;
use Closure;
use FireflyIII\Support\Domain;
use Illuminate\Contracts\Auth\Factory as Auth;
use Illuminate\Http\Request;
@@ -40,6 +39,7 @@ class Binder
* @var Auth
*/
protected $auth;
/**
* The binders.
*
@@ -49,8 +49,6 @@ class Binder
/**
* Binder constructor.
*
* @param Auth $auth
*/
public function __construct(Auth $auth)
{
@@ -62,12 +60,10 @@ class Binder
* Handle an incoming request.
*
* @param Request $request
* @param Closure $next
*
* @return mixed
*
*/
public function handle($request, Closure $next)
public function handle($request, \Closure $next)
{
foreach ($request->route()->parameters() as $key => $value) {
if (array_key_exists($key, $this->binders)) {
@@ -82,10 +78,6 @@ class Binder
/**
* Do the binding.
*
* @param string $key
* @param string $value
* @param Route $route
*
* @return mixed
*/
private function performBinding(string $key, string $value, Route $route)