| @@ -556,7 +556,7 @@ | ||
| 556 | 556 | } | 
| 557 | 557 | |
| 558 | 558 | /** | 
| 559 | - * @param array|string $ips | |
| 559 | + * @param string $ips | |
| 560 | 560 | * @param array $macs | 
| 561 | 561 | * @return mixed | 
| 562 | 562 | */ | 
| @@ -38,15 +38,15 @@ discard block | ||
| 38 | 38 | * @param NULL|array $xmlOptions array of optoins ot pass to xmlrpc2 client | 
| 39 | 39 | */ | 
| 40 | 40 |  	public function __construct($login = NULL, $password = NULL, $client = NULL, $demo = FALSE, $xmlOptions = NULL) { | 
| 41 | -		if (null === $login && defined('PARALLELS_KA_LOGIN')) | |
| 41 | +		if (NULL === $login && defined('PARALLELS_KA_LOGIN')) | |
| 42 | 42 |  			$this->login = constant('PARALLELS_KA_LOGIN'); | 
| 43 | 43 | else | 
| 44 | 44 | $this->login = $login; | 
| 45 | -		if (null === $password && defined('PARALLELS_KA_PASSWORD')) | |
| 45 | +		if (NULL === $password && defined('PARALLELS_KA_PASSWORD')) | |
| 46 | 46 |  			$this->password = constant('PARALLELS_KA_PASSWORD'); | 
| 47 | 47 | else | 
| 48 | 48 | $this->password = $password; | 
| 49 | - if (null !== $client) | |
| 49 | + if (NULL !== $client) | |
| 50 | 50 | $this->client = $client; | 
| 51 | 51 |  		elseif (defined('PARALLELS_KA_CLIENT')) | 
| 52 | 52 |  			$this->client = constant('PARALLELS_KA_CLIENT'); | 
| @@ -56,7 +56,7 @@ discard block | ||
| 56 | 56 | $this->url = $this->defaultUrl; | 
| 57 | 57 | else | 
| 58 | 58 | $this->url = $demo; | 
| 59 | - if (null !== $xmlOptions) | |
| 59 | + if (NULL !== $xmlOptions) | |
| 60 | 60 | $this->xmlOptions = $xmlOptions; | 
| 61 | 61 | if (!isset($GLOBALS['HTTP_RAW_POST_DATA'])) | 
| 62 | 62 |  			$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents('php://input'); | 
| @@ -150,10 +150,10 @@ | ||
| 150 | 150 | if (!is_array($ips) && $ips != '') | 
| 151 | 151 | $ips = [$ips]; | 
| 152 | 152 |  		$this->response = $this->xml->__call('partner10.createKey', [ | 
| 153 | - $this->authInfo(), | |
| 154 | - $this->serverAddress($ips, $macs), $client === FALSE ? $this->client : $client, | |
| 155 | - $keyType, | |
| 156 | - $upgradePlans, $licenseType === FALSE ? $this->licenseType : $licenseType | |
| 153 | + $this->authInfo(), | |
| 154 | + $this->serverAddress($ips, $macs), $client === FALSE ? $this->client : $client, | |
| 155 | + $keyType, | |
| 156 | + $upgradePlans, $licenseType === FALSE ? $this->licenseType : $licenseType | |
| 157 | 157 | ] | 
| 158 | 158 | ); | 
| 159 | 159 | return $this->response; |