From f698739626553e447aa0a40ba606602427eabe64 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 1 Feb 2019 23:58:39 +0300 Subject: [PATCH] Flextype Core: Flextype - code fixes according Scrutinizer Tests. It seems like Flextype\Component\Files...ult_settings_file_path) can also be of type false; however, parameter $input of Flextype\YamlParser::decode() does only seem to accept string, maybe add an additional type check? Fixed --- flextype/Flextype.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/flextype/Flextype.php b/flextype/Flextype.php index 6daefbfe..eef334fb 100755 --- a/flextype/Flextype.php +++ b/flextype/Flextype.php @@ -151,9 +151,6 @@ class Flextype $default_settings_file_path = PATH['config']['default'] . '/settings.yaml'; $site_settings_file_path = PATH['config']['site'] . '/settings.yaml'; - $default_settings = []; - $site_settings = []; - // Set settings if Flextype settings and Site settings config files exist if (Filesystem::has($default_settings_file_path) && Filesystem::has($site_settings_file_path)) {