From f9062734f82691cfb5ac5a474a9399e3a6ad8513 Mon Sep 17 00:00:00 2001 From: emmachughes Date: Mon, 13 Nov 2023 13:22:29 +0000 Subject: [PATCH] Run php-cs-fixer --- sourcecode/hub/app/Http/Controllers/LtiController.php | 1 + sourcecode/hub/app/Lti/SessionScopeAwareRouteUrlGenerator.php | 1 + sourcecode/hub/app/Policies/ContentPolicy.php | 1 - sourcecode/hub/app/Providers/AppServiceProvider.php | 1 - sourcecode/hub/app/Support/SessionScope.php | 1 + 5 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sourcecode/hub/app/Http/Controllers/LtiController.php b/sourcecode/hub/app/Http/Controllers/LtiController.php index 4a14135dd8..def06e83eb 100644 --- a/sourcecode/hub/app/Http/Controllers/LtiController.php +++ b/sourcecode/hub/app/Http/Controllers/LtiController.php @@ -7,6 +7,7 @@ use App\Support\SessionScope; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; + use function to_route; final readonly class LtiController diff --git a/sourcecode/hub/app/Lti/SessionScopeAwareRouteUrlGenerator.php b/sourcecode/hub/app/Lti/SessionScopeAwareRouteUrlGenerator.php index 3340f975ee..649aa032f2 100644 --- a/sourcecode/hub/app/Lti/SessionScopeAwareRouteUrlGenerator.php +++ b/sourcecode/hub/app/Lti/SessionScopeAwareRouteUrlGenerator.php @@ -6,6 +6,7 @@ use App\Support\SessionScope; use Illuminate\Routing\RouteUrlGenerator; + use function array_key_exists; /** diff --git a/sourcecode/hub/app/Policies/ContentPolicy.php b/sourcecode/hub/app/Policies/ContentPolicy.php index c11ae175c0..5349fe8916 100644 --- a/sourcecode/hub/app/Policies/ContentPolicy.php +++ b/sourcecode/hub/app/Policies/ContentPolicy.php @@ -6,7 +6,6 @@ use App\Models\Content; use App\Models\User; -use Illuminate\Http\Request; use function request; diff --git a/sourcecode/hub/app/Providers/AppServiceProvider.php b/sourcecode/hub/app/Providers/AppServiceProvider.php index 72611d96fb..139bfde250 100644 --- a/sourcecode/hub/app/Providers/AppServiceProvider.php +++ b/sourcecode/hub/app/Providers/AppServiceProvider.php @@ -9,7 +9,6 @@ use App\Lti\Serializer\ContentItemsSerializer; use App\Lti\Serializer\LtiContentSerializer; use App\Support\CarbonToPsrClockAdapter; -use App\Support\SessionScope; use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider; use Cerpus\EdlibResourceKit\Lti\Lti11\Serializer\DeepLinking\ContentItemsSerializerInterface; use Cerpus\EdlibResourceKit\Lti\Lti11\Serializer\DeepLinking\LtiLinkItemSerializerInterface; diff --git a/sourcecode/hub/app/Support/SessionScope.php b/sourcecode/hub/app/Support/SessionScope.php index 347638e24e..69efb25b1f 100644 --- a/sourcecode/hub/app/Support/SessionScope.php +++ b/sourcecode/hub/app/Support/SessionScope.php @@ -10,6 +10,7 @@ use Illuminate\Session\SessionManager; use Illuminate\Session\Store; use Random\Randomizer; + use function bin2hex; use function is_string;