Minor code style adjustments

This commit is contained in:
FrancescoUK
2017-04-17 21:47:22 +01:00
parent 66a4507525
commit 9d01398a4b
17 changed files with 41 additions and 46 deletions

View File

@@ -81,7 +81,7 @@ class Config extends Secure_Controller
$license[$i]['text'] = '';
$file = file_get_contents('license/composer.LICENSES');
$array = json_decode($file, true);
$array = json_decode($file, TRUE);
foreach($array as $key => $val)
{
@@ -133,7 +133,7 @@ class Config extends Secure_Controller
$license[$i]['text'] = '';
$file = file_get_contents('license/bower.LICENSES');
$array = json_decode($file, true);
$array = json_decode($file, TRUE);
foreach($array as $key => $val)
{
@@ -284,7 +284,7 @@ class Config extends Secure_Controller
$number_locale = $this->input->post('number_locale');
$fmt = new \NumberFormatter($number_locale, \NumberFormatter::CURRENCY);
$currency_symbol = empty($this->input->post('currency_symbol')) ? $fmt->getSymbol(\NumberFormatter::CURRENCY_SYMBOL) : $this->input->post('currency_symbol');
if ($this->input->post('thousands_separator') == "false")
if ($this->input->post('thousands_separator') == 'false')
{
$fmt->setAttribute(\NumberFormatter::GROUPING_SEPARATOR_SYMBOL, '');
}