From 645e45c1188785b52db82226c8e198aef428220d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Parafi=C5=84ski?= Date: Tue, 5 Mar 2019 10:06:25 +0100 Subject: [PATCH] CS fix --- AdminUi/Component/EzInfoTwigComponent.php | 2 +- DependencyInjection/EzSystemsEzSupportToolsExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AdminUi/Component/EzInfoTwigComponent.php b/AdminUi/Component/EzInfoTwigComponent.php index 9b465f92..5f9261cd 100644 --- a/AdminUi/Component/EzInfoTwigComponent.php +++ b/AdminUi/Component/EzInfoTwigComponent.php @@ -73,7 +73,7 @@ private function replaceUrlPlaceholders(): array $urls = $this->urlList; foreach ($this->urlList as $urlName => $url) { foreach ($this->ezSystemInfo as $attribute => $value) { - if (is_string($value) && strpos($url,'{ez.' . $attribute . '}') !== false) { + if (\is_string($value) && strpos($url,'{ez.' . $attribute . '}') !== false) { $urls[$urlName] = str_replace('{ez.' . $attribute . '}', $value, $url); } } diff --git a/DependencyInjection/EzSystemsEzSupportToolsExtension.php b/DependencyInjection/EzSystemsEzSupportToolsExtension.php index 7dabfe2e..3a32ee66 100644 --- a/DependencyInjection/EzSystemsEzSupportToolsExtension.php +++ b/DependencyInjection/EzSystemsEzSupportToolsExtension.php @@ -37,7 +37,7 @@ public function load(array $configs, ContainerBuilder $container) private function isAdminUiBundleEnabled(ContainerBuilder $container) { return $container->hasParameter('kernel.bundles') - && array_key_exists( + && \array_key_exists( 'EzPlatformAdminUiBundle', $container->getParameter('kernel.bundles') );