@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | public function getPathURI($path = '',$print = ''){ |
41 | 41 | //remove last slash from firebaseURI |
42 | 42 | $template = '/'; |
43 | - $this->firebaseURI = rtrim($this->firebaseURI,$template); |
|
44 | - $path = rtrim($path,$template); |
|
45 | - $path = ltrim($path,$template); |
|
43 | + $this->firebaseURI = rtrim($this->firebaseURI,$template); |
|
44 | + $path = rtrim($path,$template); |
|
45 | + $path = ltrim($path,$template); |
|
46 | 46 | |
47 | 47 | //check https |
48 | 48 | if(strpos($this->firebaseURI, 'http://') !== false){ |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | if(strpos($this->firebaseDefaultPath,"/") !== 0){ |
58 | - throw new \Exception("firebase default path must contain /"); |
|
58 | + throw new \Exception("firebase default path must contain /"); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | $pathURI = $this->firebaseURI.$this->firebaseDefaultPath.$path.".json"; |
@@ -87,8 +87,7 @@ |
||
87 | 87 | public function get($path = '',$options = array()){ |
88 | 88 | if(isset($options['settings'])) { |
89 | 89 | $requestOptions = array_merge($options['settings'],$this->requestOptions); |
90 | - } |
|
91 | - else{ |
|
90 | + } else{ |
|
92 | 91 | $requestOptions = $this->requestOptions; |
93 | 92 | } |
94 | 93 |