From a3cd5d470e2c6653ff0e9080d14425338d2f25bb Mon Sep 17 00:00:00 2001 From: manaf Date: Tue, 10 May 2022 11:40:38 +0530 Subject: [PATCH] Fix phpstan and phpcs errors --- Block/Yotpo.php | 2 +- Controller/Adminhtml/External/Analytics.php | 3 ++- Controller/Adminhtml/External/Reviews.php | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Block/Yotpo.php b/Block/Yotpo.php index 7457341..3ff1f3b 100644 --- a/Block/Yotpo.php +++ b/Block/Yotpo.php @@ -215,7 +215,7 @@ public function isRenderBottomlineQna() /** * Escape tags from string * - * @param string $str + * @param string|null $str * @return array|string */ public function escapeString($str) diff --git a/Controller/Adminhtml/External/Analytics.php b/Controller/Adminhtml/External/Analytics.php index be61cd9..5d962d9 100644 --- a/Controller/Adminhtml/External/Analytics.php +++ b/Controller/Adminhtml/External/Analytics.php @@ -47,7 +47,8 @@ public function execute() // phpcs:ignore $url = 'https://yap.yotpo.com/?utm_source=MagentoAdmin_ReportingAnalytics#/tools/conversions_dashboard/engagement'; } else { - $url = 'https://www.yotpo.com/integrations/adobe-commerce-magento/?utm_source=MagentoAdmin_ReportingAnalytics'; + $url = 'https://www.yotpo.com/integrations/ + adobe-commerce-magento/?utm_source=MagentoAdmin_ReportingAnalytics'; } /** @var Redirect $resultRedirect */ diff --git a/Controller/Adminhtml/External/Reviews.php b/Controller/Adminhtml/External/Reviews.php index 42491ed..8a7345a 100644 --- a/Controller/Adminhtml/External/Reviews.php +++ b/Controller/Adminhtml/External/Reviews.php @@ -47,7 +47,8 @@ public function execute() if ($appKey) { $url = 'https://yap.yotpo.com/?utm_source=MagentoAdmin_ReportingReviews#/moderation/reviews'; } else { - $url = 'https://www.yotpo.com/integrations/adobe-commerce-magento/?utm_source=MagentoAdmin_ReportingReviews'; + $url = 'https://www.yotpo.com/integrations/ + adobe-commerce-magento/?utm_source=MagentoAdmin_ReportingReviews'; } /** @var Redirect $resultRedirect */