| @@ -88,7 +88,7 @@ discard block | ||
| 88 | 88 |  			if (is_array($postfields)) { | 
| 89 | 89 | $postdata = []; | 
| 90 | 90 |  				foreach ($postfields as $field => $value) { | 
| 91 | - $postdata[] = $field . '=' . urlencode($value); | |
| 91 | + $postdata[] = $field.'='.urlencode($value); | |
| 92 | 92 | } | 
| 93 | 93 |  				curl_setopt($curl, CURLOPT_POSTFIELDS, implode('&', $postdata)); | 
| 94 | 94 |  			} else { | 
| @@ -207,10 +207,10 @@ discard block | ||
| 207 | 207 |  	public function authToken() { | 
| 208 | 208 | $time = time(); | 
| 209 | 209 |  		try { | 
| 210 | - return $this->login . '|' . $time . '|' . sha1($this->key . $time); | |
| 210 | + return $this->login.'|'.$time.'|'.sha1($this->key.$time); | |
| 211 | 211 |  		} catch (\Exception $e) { | 
| 212 | -			$this->log('error', 'Caught exception code: ' . $e->getCode()); | |
| 213 | -			$this->log('error', 'Caught exception message: ' . $e->getMessage()); | |
| 212 | +			$this->log('error', 'Caught exception code: '.$e->getCode()); | |
| 213 | +			$this->log('error', 'Caught exception message: '.$e->getMessage()); | |
| 214 | 214 | return false; | 
| 215 | 215 | } | 
| 216 | 216 | } | 
| @@ -224,16 +224,16 @@ discard block | ||
| 224 | 224 | * @return false|integer 0 on success, -1 on error | 
| 225 | 225 | */ | 
| 226 | 226 |  	public function license($ipAddress, $type) { | 
| 227 | - $type = (int)$type; | |
| 227 | + $type = (int) $type; | |
| 228 | 228 | $xmlClient = $this->xmlClient; | 
| 229 | 229 |  		try { | 
| 230 | -			$this->log('error', 'Calling License(' . $this->authToken() . ',' . $ipAddress . ',' . $type . ')'); | |
| 230 | +			$this->log('error', 'Calling License('.$this->authToken().','.$ipAddress.','.$type.')'); | |
| 231 | 231 | $this->response = $xmlClient->license($this->authToken(), $ipAddress, $type); | 
| 232 | -			$this->log('error', 'Response: ' . var_export($this->response, true)); | |
| 232 | +			$this->log('error', 'Response: '.var_export($this->response, true)); | |
| 233 | 233 | return $this->response; | 
| 234 | 234 |  		} catch (\Exception $e) { | 
| 235 | -			$this->log('error', 'Caught exception code: ' . $e->getCode()); | |
| 236 | -			$this->log('error', 'Caught exception message: ' . $e->getMessage()); | |
| 235 | +			$this->log('error', 'Caught exception code: '.$e->getCode()); | |
| 236 | +			$this->log('error', 'Caught exception message: '.$e->getMessage()); | |
| 237 | 237 | return false; | 
| 238 | 238 | } | 
| 239 | 239 | } | 
| @@ -251,8 +251,8 @@ discard block | ||
| 251 | 251 |  		try { | 
| 252 | 252 | $this->response = $this->remove($ipAddress, $type); | 
| 253 | 253 |  		} catch (\Exception $e) { | 
| 254 | -			$this->log('error', 'Caught exception code: ' . $e->getCode()); | |
| 255 | -			$this->log('error', 'Caught exception message: ' . $e->getMessage()); | |
| 254 | +			$this->log('error', 'Caught exception code: '.$e->getCode()); | |
| 255 | +			$this->log('error', 'Caught exception message: '.$e->getMessage()); | |
| 256 | 256 | return false; | 
| 257 | 257 | } | 
| 258 | 258 | return $this->response; | 
| @@ -285,8 +285,8 @@ discard block | ||
| 285 | 285 |  		try { | 
| 286 | 286 | $this->response = $xmlClient->isLicensed($this->authToken(), $ipAddress, $checkAll); | 
| 287 | 287 |  		} catch (\Exception $e) { | 
| 288 | -			$this->log('error', 'Caught exception code: ' . $e->getCode()); | |
| 289 | -			$this->log('error', 'Caught exception message: ' . $e->getMessage()); | |
| 288 | +			$this->log('error', 'Caught exception code: '.$e->getCode()); | |
| 289 | +			$this->log('error', 'Caught exception message: '.$e->getMessage()); | |
| 290 | 290 | return false; | 
| 291 | 291 | } | 
| 292 | 292 | return $this->response; | 
| @@ -297,10 +297,10 @@ discard block | ||
| 297 | 297 | */ | 
| 298 | 298 |  	public function licenseList() { | 
| 299 | 299 |  		try { | 
| 300 | - return json_decode($this->getcurlpage($this->restUrl.'ipl/list.json?token=' . $this->authToken())); | |
| 300 | + return json_decode($this->getcurlpage($this->restUrl.'ipl/list.json?token='.$this->authToken())); | |
| 301 | 301 |  		} catch (\Exception $e) { | 
| 302 | -			$this->log('error', 'Caught exception code: ' . $e->getCode()); | |
| 303 | -			$this->log('error', 'Caught exception message: ' . $e->getMessage()); | |
| 302 | +			$this->log('error', 'Caught exception code: '.$e->getCode()); | |
| 303 | +			$this->log('error', 'Caught exception message: '.$e->getMessage()); | |
| 304 | 304 | return false; | 
| 305 | 305 | } | 
| 306 | 306 | } | 
| @@ -316,8 +316,8 @@ discard block | ||
| 316 | 316 |  		try { | 
| 317 | 317 | $this->response = $xmlClient->reconcile($this->authToken()); | 
| 318 | 318 |  		} catch (\Exception $e) { | 
| 319 | -			$this->log('error', 'Caught exception code: ' . $e->getCode()); | |
| 320 | -			$this->log('error', 'Caught exception message: ' . $e->getMessage()); | |
| 319 | +			$this->log('error', 'Caught exception code: '.$e->getCode()); | |
| 320 | +			$this->log('error', 'Caught exception message: '.$e->getMessage()); | |
| 321 | 321 | return false; | 
| 322 | 322 | } | 
| 323 | 323 | return $this->reseponse; |