Code Duplication    Length = 9-9 lines in 2 locations

src/Cloudlinux.php 2 locations

@@ 317-325 (lines=9) @@
314
	 * 	TYPE(int) ­ license type
315
	 * 	REGISTERED(boolean) ­ True if server was registered in CLN with this license
316
	 */
317
	public function reconcile() {
318
		try {
319
			return $this->response = $this->xmlClient->reconcile($this->authToken());
320
		} catch (Exception $e) {
321
			$this->log('error', 'Caught exception code: ' . $e->getCode());
322
			$this->log('error', 'Caught exception message: ' . $e->getMessage());
323
			return false;
324
		}
325
	}
326
327
	/*
328
	public function getKeyInfo($Key) {
@@ 285-293 (lines=9) @@
282
	 * @throws XmlRpcException for critical errors
283
	 * @return array (list<int>): List of registered license types or empty list if no license found
284
	 */
285
	public function xmlIsLicensed($ipAddress, $checkAll = true) {
286
		try {
287
			return $this->response = $this->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 bool|mixed