From ef5c063b09e0751d2fcd85dbc0b989843565ac7e Mon Sep 17 00:00:00 2001 From: IceToast Date: Mon, 6 Feb 2023 11:32:19 +0100 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=F0=9F=90=9B=20getCsrfIgnoredRoutes?= =?UTF-8?q?=20map=20all=20routes=20just=20once?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Helpers/ExtensionHelper.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Helpers/ExtensionHelper.php b/app/Helpers/ExtensionHelper.php index fdf880ab..7e1bbda3 100644 --- a/app/Helpers/ExtensionHelper.php +++ b/app/Helpers/ExtensionHelper.php @@ -51,13 +51,11 @@ class ExtensionHelper $routes = array_merge($routes, $config['RoutesIgnoreCsrf']); } - // add extension/ infront of every route - foreach ($routes as $key => $route) { - $routes[$key] = 'extensions/' . $route; - } + // map over the routes and add the extension name as prefix + $result = array_map(fn ($item) => "extensions/{$item}", $routes); } - return $routes; + return $result; } /** From 308d1775bf4c96e51ac4e6eae20ed1c03ca0feec Mon Sep 17 00:00:00 2001 From: IceToast Date: Mon, 6 Feb 2023 11:57:14 +0100 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Wrong=20class=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/CleanupOpenPayments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/CleanupOpenPayments.php b/app/Console/Commands/CleanupOpenPayments.php index 31510b6a..6fd96a7a 100644 --- a/app/Console/Commands/CleanupOpenPayments.php +++ b/app/Console/Commands/CleanupOpenPayments.php @@ -5,7 +5,7 @@ namespace App\Console\Commands; use App\Models\Payment; use Illuminate\Console\Command; -class CleanupPayments extends Command +class CleanupOpenPayments extends Command { /** * The name and signature of the console command. From bb6d99cb74162ccc75ced47cc309f2a89e6b95cc Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 6 Feb 2023 12:53:57 +0100 Subject: [PATCH 3/3] Update versionnumber --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 093ddd41..5f16a82c 100644 --- a/config/app.php +++ b/config/app.php @@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Facade; return [ - 'version' => '0.9.1', + 'version' => '0.9.2', /* |--------------------------------------------------------------------------