Code Duplication    Length = 12-12 lines in 2 locations

src/LiteSpeed.php 2 locations

@@ 196-207 (lines=12) @@
193
	 * @param mixed $reason optional reason for suspend/unsuspend
194
	 * @return mixed
195
	 */
196
	public function suspend($serial = FALSE, $ipAddress = FALSE, $reason = FALSE) {
197
		if ($serial !== FALSE) {
198
			$this->params['license_serial'] = $serial;
199
		}
200
		if ($ipAddress !== FALSE) {
201
			$this->params['server_ip'] = $ipAddress;
202
		}
203
		if ($reason !== FALSE) {
204
			$this->params['reason'] = $reason;
205
		}
206
		return $this->req('Suspend');
207
	}
208
209
	/**
210
	 * Unsuspend a license.
@@ 217-228 (lines=12) @@
214
	 * @param mixed $reason optional reason for suspend/unsuspend
215
	 * @return mixed
216
	 */
217
	public function unsuspend($serial = FALSE, $ipAddress = FALSE, $reason = FALSE) {
218
		if ($serial !== FALSE) {
219
			$this->params['license_serial'] = $serial;
220
		}
221
		if ($ipAddress !== FALSE) {
222
			$this->params['server_ip'] = $ipAddress;
223
		}
224
		if ($reason !== FALSE) {
225
			$this->params['reason'] = $reason;
226
		}
227
		return $this->req('Unsuspend');
228
	}
229
230
	/**
231
	 * @param bool   $serial