private function convertEnvValue($value, $environmentVariable)
    {
        $value = trim(trim(trim($value, '\''), '"'));

        if ($this->isBoolean($value)) {
            $value = $this->convertBoolean($value);
        } elseif ($this->isInteger($value)) {
            $value = $this->convertInteger($value);
        } elseif ($this->isJson($value)) {
            $value = $this->convertJson($value, $environmentVariable);
        }

        return $value;
    }
private function convertEnvValue($value, $environmentVariable)
    {
        $value = trim(trim(trim($value, '\''), '"'));

        if ($this->isBoolean($value)) {
            $value = $this->convertBoolean($value);
        } elseif ($this->isInteger($value)) {
            $value = $this->convertInteger($value);
        } elseif ($this->isJson($value)) {
            $value = $this->convertJson($value, $environmentVariable);
        }

        return $value;
    }
private function convertEnvValue ( $ value , $ environmentVariable ) { $ value = trim ( trim ( trim ( $ value , '\'' ) , '"' ) ) ; if ( $ this -> isBoolean ( $ value ) ) { $ value = $ this -> convertBoolean ( $ value ) ; } elseif ( $ this -> isInteger ( $ value ) ) { $ value = $ this -> convertInteger ( $ value ) ; } elseif ( $ this -> isJson ( $ value ) ) { $ value = $ this -> convertJson ( $ value , $ environmentVariable ) ; } return $ value ; }
Convert the value of environment variable into php variable.

@param string $value               The value of environment variable
@param string $environmentVariable The environment variable name

@return array|bool|int|string
Convert the value of environment variable into php variable .