Code Duplication    Length = 9-9 lines in 2 locations

src/Cloudlinux.php 2 locations

@@ 284-292 (lines=9) @@
281
	 * @throws XmlRpcException for critical errors
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
		try {
286
			return $this->response = $this->xmlClient->isLicensed($this->authToken(), $ipAddress, $checkAll);
287
		} catch (\Exception $e) {
288
			$this->log('error', 'Caught exception code: ' . $e->getCode());
289
			$this->log('error', 'Caught exception message: ' . $e->getMessage());
290
			return false;
291
		}
292
	}
293
294
	/**
295
	 * @return false|array
@@ 316-324 (lines=9) @@
313
	 * 	TYPE(int) ­ license type
314
	 * 	REGISTERED(boolean) ­ True if server was registered in CLN with this license
315
	 */
316
	public function reconcile() {
317
		try {
318
			return $this->response = $this->xmlClient->reconcile($this->authToken());
319
		} catch (\Exception $e) {
320
			$this->log('error', 'Caught exception code: ' . $e->getCode());
321
			$this->log('error', 'Caught exception message: ' . $e->getMessage());
322
			return false;
323
		}
324
	}
325
}
326
327