Code Duplication    Length = 10-10 lines in 2 locations

src/Cloudlinux.php 2 locations

@@ 284-293 (lines=10) @@
281
	 * @param bool $checkAll True will search for any type of license. False ­ only for types 1 or 2
282
	 * @return false|array (list<int>): List of registered license types or empty list if no license found
283
	 */
284
	public function xmlIsLicensed($ipAddress, $checkAll = true) {
285
		$xmlClient = $this->xmlClient;
286
		try {
287
			return $this->response = $xmlClient->isLicensed($this->authToken(), $ipAddress, $checkAll);
288
		} catch (\Exception $e) {
289
			$this->log('error', 'Caught exception code: ' . $e->getCode());
290
			$this->log('error', 'Caught exception message: ' . $e->getMessage());
291
			return false;
292
		}
293
	}
294
295
	/**
296
	 * @return false|array
@@ 314-323 (lines=10) @@
311
	 * @throws XmlRpcException for critical errors
312
	 * @return false|array (list<structure>): List of structures or empty list. Each structure contains keys:  IP(string)   TYPE(int) ­ license type  REGISTERED(boolean) ­ True if server was registered in CLN with this license
313
	 */
314
	public function reconcile() {
315
		$xmlClient = $this->xmlClient;
316
		try {
317
			return $this->response = $xmlClient->reconcile($this->authToken());
318
		} catch (\Exception $e) {
319
			$this->log('error', 'Caught exception code: ' . $e->getCode());
320
			$this->log('error', 'Caught exception message: ' . $e->getMessage());
321
			return false;
322
		}
323
	}
324
}
325
326