@@ -8,9 +8,9 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace JCFirebase; |
| 10 | 10 | |
| 11 | -use Requests; |
|
| 12 | -use JCFirebase\Enums\RequestType; |
|
| 13 | 11 | use JCFirebase\Enums\PrintType; |
| 12 | +use JCFirebase\Enums\RequestType; |
|
| 13 | +use Requests; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Class JCFirebase |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | throw new \Exception("firebase default path must contain /"); |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | - $pathURI = $this->firebaseURI . $this->firebaseDefaultPath . $path . ".json"; |
|
| 116 | + $pathURI = $this->firebaseURI.$this->firebaseDefaultPath.$path.".json"; |
|
| 117 | 117 | |
| 118 | 118 | //set query data |
| 119 | 119 | $queryData = array(); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $queryData[Option::_PRINT] = $print; |
| 122 | 122 | } |
| 123 | 123 | if (!empty($queryData)) { |
| 124 | - $pathURI = $pathURI . '?' . http_build_query($queryData); |
|
| 124 | + $pathURI = $pathURI.'?'.http_build_query($queryData); |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | $this->refreshToken(); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | public function getShallow($path = '', $options = array()) |
| 133 | 133 | { |
| 134 | 134 | return Requests::get( |
| 135 | - $this->getPathURI($path) . '?' . http_build_query(array( |
|
| 135 | + $this->getPathURI($path).'?'.http_build_query(array( |
|
| 136 | 136 | Option::_SHALLOW => 'true' |
| 137 | 137 | )), |
| 138 | 138 | $this->requestHeader, |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | |
| 218 | 218 | protected function refreshToken() |
| 219 | 219 | { |
| 220 | - $this->requestHeader['Authorization'] = 'Bearer ' . $this->auth->getAccessToken(); |
|
| 220 | + $this->requestHeader['Authorization'] = 'Bearer '.$this->auth->getAccessToken(); |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | protected function addDataToPathURI($path = '', $options = array(), $reqType = RequestType::GET) |