From 26cd1903c010affbead3fde9d838228de41d3c37 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 19 Feb 2020 23:34:34 +0300 Subject: [PATCH] refactor(core): fix code standard for Plugins API #347 --- flextype/core/Plugins.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flextype/core/Plugins.php b/flextype/core/Plugins.php index e57e0818..93c6671a 100755 --- a/flextype/core/Plugins.php +++ b/flextype/core/Plugins.php @@ -122,7 +122,9 @@ class Plugins ! Filesystem::has($site_plugin_settings_dir) and Filesystem::createDir($site_plugin_settings_dir); // Check if default plugin settings file exists - if (! Filesystem::has($default_plugin_settings_file)) throw new RuntimeException('Load ' . $plugin['dirname'] . ' plugin settings - failed!'); + if (! Filesystem::has($default_plugin_settings_file)) { + throw new RuntimeException('Load ' . $plugin['dirname'] . ' plugin settings - failed!'); + } // Get default plugin settings content $default_plugin_settings_file_content = Filesystem::read($default_plugin_settings_file); @@ -140,7 +142,9 @@ class Plugins } // Check if default plugin manifest file exists - if (! Filesystem::has($default_plugin_manifest_file)) RuntimeException('Load ' . $plugin['dirname'] . ' plugin manifest - failed!'); + if (! Filesystem::has($default_plugin_manifest_file)) { + RuntimeException('Load ' . $plugin['dirname'] . ' plugin manifest - failed!'); + } // Get default plugin manifest content $default_plugin_manifest_file_content = Filesystem::read($default_plugin_manifest_file);