Clean up PSR-2 coding styles

This commit is contained in:
Zach Borboa
2017-05-02 07:56:45 -07:00
parent a0802b309d
commit eeaf3f9534
7 changed files with 14 additions and 6 deletions
+4 -2
View File
@@ -13,7 +13,8 @@ class Decoder
* @param $depth
* @param $options
*/
public static function decodeJson() {
public static function decodeJson()
{
$args = func_get_args();
// Call json_decode() without the $options parameter in PHP
@@ -36,7 +37,8 @@ class Decoder
* @access public
* @param $response
*/
public static function decodeXml($response) {
public static function decodeXml($response)
{
$xml_obj = @simplexml_load_string($response);
if (!($xml_obj === false)) {
$response = $xml_obj;