From 6b5570484c0efb3d38313278cef0049e1c372543 Mon Sep 17 00:00:00 2001 From: Stream Date: Fri, 21 Apr 2017 10:09:04 +0800 Subject: [PATCH] psr2 fix --- src/traits/LfmHelpers.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/traits/LfmHelpers.php b/src/traits/LfmHelpers.php index 575090fc..88e7bc79 100644 --- a/src/traits/LfmHelpers.php +++ b/src/traits/LfmHelpers.php @@ -235,11 +235,17 @@ public function enabledShareFolder() { return config('lfm.allow_share_folder') === true; } - + public function applyIniOverrides() { + if (count(config('lfm.php_ini_overrides')) == 0) { + return; + } + foreach (config('lfm.php_ini_overrides') as $key => $value) { - if ($value && $value != 'false') ini_set($key, $value); + if ($value && $value != 'false') { + ini_set($key, $value); + } } }