Code Duplication    Length = 11-11 lines in 2 locations

src/Cpanel.php 2 locations

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