From 637813e2f60b83f99d4d8db525ae81f0a29b3f07 Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Wed, 11 Dec 2024 11:05:59 +0000 Subject: [PATCH] Linting update after check added --- classes/Subscription.php | 2 +- www/docs/api/update-card.php | 2 +- www/includes/easyparliament/templates/html/search/results.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Subscription.php b/classes/Subscription.php index 71ec08dfe3..3eef7ffc37 100644 --- a/classes/Subscription.php +++ b/classes/Subscription.php @@ -122,7 +122,7 @@ private function update_subscription($form_data) { } } - if ($old_price >= $new_price) { + if ($old_price >= $new_price) { if ($this->stripe->schedule) { \Stripe\SubscriptionSchedule::release($this->stripe->schedule); } diff --git a/www/docs/api/update-card.php b/www/docs/api/update-card.php index bcc77e0361..7b887ef1d1 100644 --- a/www/docs/api/update-card.php +++ b/www/docs/api/update-card.php @@ -13,7 +13,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $setup_intent = \Stripe\SetupIntent::create([ - 'automatic_payment_methods' => ["enabled" => True, "allow_redirects" => "never"], + 'automatic_payment_methods' => ["enabled" => true, "allow_redirects" => "never"], ]); header('Content-Type: application/json'); print json_encode([ diff --git a/www/includes/easyparliament/templates/html/search/results.php b/www/includes/easyparliament/templates/html/search/results.php index 88a8f4018a..6edbccdc21 100644 --- a/www/includes/easyparliament/templates/html/search/results.php +++ b/www/includes/easyparliament/templates/html/search/results.php @@ -14,7 +14,7 @@

⭐️ Read the debate on the winter fuel regulations

+ if (preg_match('#budget#i', $searchstring)) { ?>

Read the Budget speech