Code Duplication    Length = 11-11 lines in 2 locations

src/Cpanel.php 2 locations

@@ 98-108 (lines=11) @@
95
		return preg_match("/^\d*\.\d*\.\d*\.\d*$/", $ip);
96
	}
97
98
	public function reactivateLicense($args) {
99
		if (!array_key_exists('liscid', $args)) {
100
			error_log("cpanelLicensing::reactivateLicense requires that the argument array contains element liscid");
101
			return;
102
		}
103
		if (!$this->validateID($args['liscid'])) {
104
			error_log("The liscid passed to cpanelLicenseing::reactivateLicense was invalid");
105
			return;
106
		}
107
		return $this->get("XMLlicenseReActivate.cgi", $args);
108
	}
109
110
	public function expireLicense($args) {
111
		if (!array_key_exists("liscid", $args)) {
@@ 110-120 (lines=11) @@
107
		return $this->get("XMLlicenseReActivate.cgi", $args);
108
	}
109
110
	public function expireLicense($args) {
111
		if (!array_key_exists("liscid", $args)) {
112
			error_log("cPanelLicensing::expireLicense requires that liscid elements exists in the array passed to it");
113
			return;
114
		}
115
		if (!$this->validateID($args['liscid'])) {
116
			error_log("the liscense ID passed to cpanelLicensing::expireLiscense was invalid");
117
			return;
118
		}
119
		return $this->get("XMLlicenseExpire.cgi", $args);
120
	}
121
122
	public function extendOnetimeUpdates($args) {
123
		if (!array_key_exists("ip", $args)) {