@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | private function chooseJsonPrefix($parse) |
| 50 | 50 | { |
| 51 | 51 | $decode = json_decode($parse); |
| 52 | - if ( isset($decode->{$this->jsonPrefix}->{$this->jsonPrefixWord}) ) |
|
| 52 | + if (isset($decode->{$this->jsonPrefix}->{$this->jsonPrefixWord})) |
|
| 53 | 53 | { |
| 54 | 54 | return $decode->{$this->jsonPrefix}->{$this->jsonPrefixWord}; |
| 55 | 55 | } else { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function checkIntegrity($response) |
| 65 | 65 | { |
| 66 | - return isset( json_decode($response)->{$this->jsonPrefix} ); |
|
| 66 | + return isset(json_decode($response)->{$this->jsonPrefix} ); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | public function create(array $data) |
| 91 | 91 | { |
| 92 | - if ( empty($data)){ |
|
| 92 | + if (empty($data)) { |
|
| 93 | 93 | return $this->buildJson = '{}'; |
| 94 | 94 | } |
| 95 | 95 | return $this->buildJson = json_encode($data); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | if (gettype($value) == 'object') |
| 104 | 104 | { |
| 105 | 105 | $result[$key] = $this->objectToArray($value); |
| 106 | - } else{ |
|
| 106 | + } else { |
|
| 107 | 107 | if (gettype($value) != 'object') |
| 108 | 108 | { |
| 109 | 109 | $result[$key] = $value; |