| @@ -78,7 +78,7 @@ discard block | ||
| 78 | 78 | */ | 
| 79 | 79 |  	public function authToken() { | 
| 80 | 80 | $time = time(); | 
| 81 | - return $this->login . '|' . $time . '|' . sha1($this->key . $time); | |
| 81 | + return $this->login.'|'.$time.'|'.sha1($this->key.$time); | |
| 82 | 82 | } | 
| 83 | 83 | |
| 84 | 84 | /** | 
| @@ -169,8 +169,8 @@ discard block | ||
| 169 | 169 |  		try { | 
| 170 | 170 | return $this->response = $xmlClient->is_licensed($this->authToken(), $ipAddress, $checkAll); | 
| 171 | 171 |  		} catch (\Exception $e) { | 
| 172 | -			$this->log('error', 'Caught exception code: ' . $e->getCode()); | |
| 173 | -			$this->log('error', 'Caught exception message: ' . $e->getMessage()); | |
| 172 | +			$this->log('error', 'Caught exception code: '.$e->getCode()); | |
| 173 | +			$this->log('error', 'Caught exception message: '.$e->getMessage()); | |
| 174 | 174 | return false; | 
| 175 | 175 | } | 
| 176 | 176 | } | 
| @@ -229,8 +229,8 @@ discard block | ||
| 229 | 229 |  		try { | 
| 230 | 230 | return $this->response = $this->xmlClient->remove_license($this->authToken(), $ipAddress, $type); | 
| 231 | 231 |  		} catch (\Exception $e) { | 
| 232 | -			$this->log('error', 'Caught exception code: ' . $e->getCode()); | |
| 233 | -			$this->log('error', 'Caught exception message: ' . $e->getMessage()); | |
| 232 | +			$this->log('error', 'Caught exception code: '.$e->getCode()); | |
| 233 | +			$this->log('error', 'Caught exception message: '.$e->getMessage()); | |
| 234 | 234 | return false; | 
| 235 | 235 | } | 
| 236 | 236 | } | 
| @@ -258,7 +258,7 @@ discard block | ||
| 258 | 258 | * @return false|array an array of licenses each one containing these fields: ip(string) ype(int)  license type (1,2,16) registered(boolean)  true if server was registered in CLN with this license (CLN licenses only). created(string)  license creation time | 
| 259 | 259 | */ | 
| 260 | 260 |  	public function restList() { | 
| 261 | - $this->response = $this->getcurlpage($this->restUrl.'ipl/list.json?token=' . $this->authToken()); | |
| 261 | + $this->response = $this->getcurlpage($this->restUrl.'ipl/list.json?token='.$this->authToken()); | |
| 262 | 262 | return json_decode($this->response, true); | 
| 263 | 263 | } | 
| 264 | 264 | |
| @@ -294,14 +294,14 @@ discard block | ||
| 294 | 294 | * @return false|integer 0 on success, -1 on error | 
| 295 | 295 | */ | 
| 296 | 296 |  	public function license($ipAddress, $type) { | 
| 297 | - $type = (int)$type; | |
| 297 | + $type = (int) $type; | |
| 298 | 298 | $xmlClient = $this->xmlClient; | 
| 299 | 299 |  		try { | 
| 300 | -			$this->log('error', 'Calling License(' . $this->authToken() . ',' . $ipAddress . ',' . $type . ')'); | |
| 300 | +			$this->log('error', 'Calling License('.$this->authToken().','.$ipAddress.','.$type.')'); | |
| 301 | 301 | return $this->response = $xmlClient->license($this->authToken(), $ipAddress, $type); | 
| 302 | 302 |  		} catch (\Exception $e) { | 
| 303 | -			$this->log('error', 'Caught exception code: ' . $e->getCode()); | |
| 304 | -			$this->log('error', 'Caught exception message: ' . $e->getMessage()); | |
| 303 | +			$this->log('error', 'Caught exception code: '.$e->getCode()); | |
| 304 | +			$this->log('error', 'Caught exception message: '.$e->getMessage()); | |
| 305 | 305 | return false; | 
| 306 | 306 | } | 
| 307 | 307 | } |