Skip to content

Commit

Permalink
psr2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Apr 21, 2017
1 parent e7d4968 commit 6b55704
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/traits/LfmHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 6b55704

Please sign in to comment.