1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

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
This commit is contained in:
Awilum
2019-02-01 23:58:39 +03:00
parent 0fca416dec
commit f698739626

View File

@@ -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)) {