Test Failed
Push — master ( ff8da5...cc7d24 )
by Joe
02:43
created
src/Cpanel.php 1 patch
Indentation   +227 added lines, -227 removed lines patch added patch discarded remove patch
@@ -7,63 +7,63 @@  discard block
 block discarded – undo
7 7
 	public $curl;
8 8
 	public $opts;
9 9
 
10
-    public function __construct ($user, $pass) {
10
+	public function __construct ($user, $pass) {
11 11
 	$this->opts = [];
12
-        $this->format = "simplexml";
13
-        $this->setCredentials($user, $pass);
14
-        $this->setopt(CURLOPT_RETURNTRANSFER,1);
15
-        $this->setopt(CURLOPT_USERAGENT, 'cPanel Licensing Agent (php) 3.5' );
16
-    }
12
+		$this->format = "simplexml";
13
+		$this->setCredentials($user, $pass);
14
+		$this->setopt(CURLOPT_RETURNTRANSFER,1);
15
+		$this->setopt(CURLOPT_USERAGENT, 'cPanel Licensing Agent (php) 3.5' );
16
+	}
17 17
 
18 18
 	public function setopt($option, $value) {
19 19
 		$this->opts[$option] = $value;
20 20
 	}
21 21
 
22
-    public function setCredentials ($user, $pass) {
23
-        $this->setopt(CURLOPT_USERPWD, $user . ":" . $pass);
24
-    }
22
+	public function setCredentials ($user, $pass) {
23
+		$this->setopt(CURLOPT_USERPWD, $user . ":" . $pass);
24
+	}
25 25
 
26
-    public function set_format ($format) {
27
-        if ($format != "xml" && $format != "json" && $format != "yaml" && $format != "simplexml") {
28
-            error_log("set_format requires that the format is xml, json, yaml or simplexml");
29
-            return;
30
-        }
31
-        else {
32
-            $this->format = $format;
33
-        }
34
-    }
26
+	public function set_format ($format) {
27
+		if ($format != "xml" && $format != "json" && $format != "yaml" && $format != "simplexml") {
28
+			error_log("set_format requires that the format is xml, json, yaml or simplexml");
29
+			return;
30
+		}
31
+		else {
32
+			$this->format = $format;
33
+		}
34
+	}
35 35
 
36
-    private function get ($function, $args = array()) {
37
-        if (!$function) {
38
-            error_log("cPanelLicensing::get requires that a function is defined");
39
-            return;
40
-        }
41
-        if ($this->format != "simplexml") {
42
-            $args['output'] = $this->format;
43
-        }
44
-        $query = "https://manage2.cpanel.net/" . $function . "?" . http_build_query($args);
45
-        $this->setopt(CURLOPT_URL, $query);
36
+	private function get ($function, $args = array()) {
37
+		if (!$function) {
38
+			error_log("cPanelLicensing::get requires that a function is defined");
39
+			return;
40
+		}
41
+		if ($this->format != "simplexml") {
42
+			$args['output'] = $this->format;
43
+		}
44
+		$query = "https://manage2.cpanel.net/" . $function . "?" . http_build_query($args);
45
+		$this->setopt(CURLOPT_URL, $query);
46 46
 		$this->curl = curl_init();
47 47
 		foreach ($this->opts as $option => $value) {
48 48
 			curl_setopt($this->curl, $option, $value);
49 49
 		}
50
-        $result = curl_exec($this->curl);
50
+		$result = curl_exec($this->curl);
51 51
 		curl_close($this->curl);
52
-        if ($result == false) {
53
-            error_log("cPanelLicensing::get failed: \"" . curl_error($this->curl) . "\"");
54
-            return;
55
-        }
56
-        if ($this->format == "simplexml") {
52
+		if ($result == false) {
53
+			error_log("cPanelLicensing::get failed: \"" . curl_error($this->curl) . "\"");
54
+			return;
55
+		}
56
+		if ($this->format == "simplexml") {
57 57
 			function_requirements('xml2array');
58 58
 			$result = xml2array($result, 1, 'attribute');
59 59
 			$result = $result[str_replace('.cgi', '', $function)];
60 60
 			$result = $this->format_result($result);			
61 61
 			return $result;
62
-        }
63
-        else {
64
-            return $result;
65
-        }
66
-    }
62
+		}
63
+		else {
64
+			return $result;
65
+		}
66
+	}
67 67
 
68 68
 	/**
69 69
 	 * formats the response
@@ -85,210 +85,210 @@  discard block
 block discarded – undo
85 85
 		return $result;
86 86
 	}
87 87
 
88
-    private function validateID ($id) {
89
-        if (preg_match("/^(L|P|G)?\d*$/", $id)) {
90
-            return 1;
91
-        }
92
-        else {
93
-            return 0;
94
-        }
95
-    }
88
+	private function validateID ($id) {
89
+		if (preg_match("/^(L|P|G)?\d*$/", $id)) {
90
+			return 1;
91
+		}
92
+		else {
93
+			return 0;
94
+		}
95
+	}
96 96
 
97
-    private function validateIP ($ip) {
98
-        return preg_match("/^\d*\.\d*\.\d*\.\d*$/", $ip);
99
-    }
97
+	private function validateIP ($ip) {
98
+		return preg_match("/^\d*\.\d*\.\d*\.\d*$/", $ip);
99
+	}
100 100
 
101
-    public function reactivateLicense ($args) {
102
-        if (!array_key_exists('liscid', $args)) {
103
-            error_log("cpanelLicensing::reactivateLicense requires that the argument array contains element liscid");
104
-            return;
105
-        }
106
-        if (!$this->validateID($args['liscid'])) {
107
-            error_log("The liscid passed to cpanelLicenseing::reactivateLicense was invalid");
108
-            return;
109
-        }
110
-        return $this->get("XMLlicenseReActivate.cgi", $args);
111
-    }
101
+	public function reactivateLicense ($args) {
102
+		if (!array_key_exists('liscid', $args)) {
103
+			error_log("cpanelLicensing::reactivateLicense requires that the argument array contains element liscid");
104
+			return;
105
+		}
106
+		if (!$this->validateID($args['liscid'])) {
107
+			error_log("The liscid passed to cpanelLicenseing::reactivateLicense was invalid");
108
+			return;
109
+		}
110
+		return $this->get("XMLlicenseReActivate.cgi", $args);
111
+	}
112 112
 
113
-    public function expireLicense ($args) {
114
-        if (!array_key_exists("liscid", $args)) {
115
-            error_log("cPanelLicensing::expireLicense requires that liscid elements exists in the array passed to it");
116
-            return;
117
-        }
118
-        if (!$this->validateID($args['liscid'])) {
119
-            error_log("the liscense ID passed to cpanelLicensing::expireLiscense was invalid");
120
-            return;
121
-        }
122
-        return $this->get("XMLlicenseExpire.cgi", $args);
123
-    }
113
+	public function expireLicense ($args) {
114
+		if (!array_key_exists("liscid", $args)) {
115
+			error_log("cPanelLicensing::expireLicense requires that liscid elements exists in the array passed to it");
116
+			return;
117
+		}
118
+		if (!$this->validateID($args['liscid'])) {
119
+			error_log("the liscense ID passed to cpanelLicensing::expireLiscense was invalid");
120
+			return;
121
+		}
122
+		return $this->get("XMLlicenseExpire.cgi", $args);
123
+	}
124 124
 
125
-    public function extendOnetimeUpdates ($args) {
126
-        if (!array_key_exists("ip", $args)) {
127
-            error_log("cpanelLicensing::extendOnetimeUpdates requires that the element ip exists in the array is passed to it");
128
-            return;
129
-        }
130
-        if (!$this->validateIP($args['ip'])) {
131
-            error_log("cpanelLicensing::extendOnetimeUpdates was passed an invalid ip");
132
-            return;
133
-        }
134
-        return $this->get( "XMLonetimeext.cgi", $args );
135
-    }
125
+	public function extendOnetimeUpdates ($args) {
126
+		if (!array_key_exists("ip", $args)) {
127
+			error_log("cpanelLicensing::extendOnetimeUpdates requires that the element ip exists in the array is passed to it");
128
+			return;
129
+		}
130
+		if (!$this->validateIP($args['ip'])) {
131
+			error_log("cpanelLicensing::extendOnetimeUpdates was passed an invalid ip");
132
+			return;
133
+		}
134
+		return $this->get( "XMLonetimeext.cgi", $args );
135
+	}
136 136
 
137
-    public function changeip ($args) {
138
-        if (!array_key_exists("oldip", $args) || !array_key_exists("newip", $args)) {
139
-            error_log("cpanelLicensing::changeip requires that oldip and newip elements exist in the array passed to it");
140
-            return;
141
-        }
142
-        if (!$this->validateIP($args["newip"])) {
143
-            error_log("the newip passed to cpanelLicensing::changeip was invalid");
144
-            return;
145
-        }
146
-        return $this->get("XMLtransfer.cgi", $args);
147
-    }
137
+	public function changeip ($args) {
138
+		if (!array_key_exists("oldip", $args) || !array_key_exists("newip", $args)) {
139
+			error_log("cpanelLicensing::changeip requires that oldip and newip elements exist in the array passed to it");
140
+			return;
141
+		}
142
+		if (!$this->validateIP($args["newip"])) {
143
+			error_log("the newip passed to cpanelLicensing::changeip was invalid");
144
+			return;
145
+		}
146
+		return $this->get("XMLtransfer.cgi", $args);
147
+	}
148 148
 
149
-    public function requestTransfer ($args) {
150
-        if (!array_key_exists("ip", $args) || !array_key_exists("groupid", $args ) || !array_key_exists("packagegroup", $args)) {
151
-            error_log("cpanelLicensing::requestTransfer requires that ip, groupid and packageid elements exist in the array passed to it");
152
-            return;
153
-        }
154
-        if (!$this->validateID($args["groupid"])) {
155
-            error_log("The groupid passed to cpanelLicensing::requestTransfer is invalid");
156
-            return;
157
-        }
158
-        if (!$this->validateID( $args["packageid"])) {
159
-            error_log("The package id passed to cpanelLicensing::requestTransfer is invalid");
160
-            return;
161
-        }
162
-        if (!$this->validateIP($args['ip'])) {
163
-            error_log("the ip passed to cpanelLicensing::requestTransfer was invalid");
164
-            return;
165
-        }
166
-        return $this->get("XMLtransferRequest.cgi", $args);
167
-    }
149
+	public function requestTransfer ($args) {
150
+		if (!array_key_exists("ip", $args) || !array_key_exists("groupid", $args ) || !array_key_exists("packagegroup", $args)) {
151
+			error_log("cpanelLicensing::requestTransfer requires that ip, groupid and packageid elements exist in the array passed to it");
152
+			return;
153
+		}
154
+		if (!$this->validateID($args["groupid"])) {
155
+			error_log("The groupid passed to cpanelLicensing::requestTransfer is invalid");
156
+			return;
157
+		}
158
+		if (!$this->validateID( $args["packageid"])) {
159
+			error_log("The package id passed to cpanelLicensing::requestTransfer is invalid");
160
+			return;
161
+		}
162
+		if (!$this->validateIP($args['ip'])) {
163
+			error_log("the ip passed to cpanelLicensing::requestTransfer was invalid");
164
+			return;
165
+		}
166
+		return $this->get("XMLtransferRequest.cgi", $args);
167
+	}
168 168
 
169
-    public function activateLicense ($args) {
170
-        if (!array_key_exists("ip", $args) || !array_key_exists("groupid", $args) || !array_key_exists("packageid", $args)) {
171
-            error_log("cpanelLicensing::activateLicense requires that ip, groupid and packageid elements exist in the array passed to it");
172
-            return;
173
-        }
174
-        if (!$this->validateID($args['groupid'])) {
175
-            error_log("cpanelLicensing::acivateLicense was passed an invalid groupid");
176
-            return;
177
-        }
178
-        if (!$this->validateIP($args['ip'])) {
179
-            error_log("cpanelLicensing::activateLicense was passed an invalid IP");
180
-            return;
181
-        }
182
-        if (!$this->validateID($args['packageid'])) {
183
-            error_log("cpanelLicensing::activateLicense was passed an invalid packageid");
184
-            return;
185
-        }
186
-        $args['legal'] = 1;
187
-        return $this->get("XMLlicenseAdd.cgi", $args);
188
-    }
169
+	public function activateLicense ($args) {
170
+		if (!array_key_exists("ip", $args) || !array_key_exists("groupid", $args) || !array_key_exists("packageid", $args)) {
171
+			error_log("cpanelLicensing::activateLicense requires that ip, groupid and packageid elements exist in the array passed to it");
172
+			return;
173
+		}
174
+		if (!$this->validateID($args['groupid'])) {
175
+			error_log("cpanelLicensing::acivateLicense was passed an invalid groupid");
176
+			return;
177
+		}
178
+		if (!$this->validateIP($args['ip'])) {
179
+			error_log("cpanelLicensing::activateLicense was passed an invalid IP");
180
+			return;
181
+		}
182
+		if (!$this->validateID($args['packageid'])) {
183
+			error_log("cpanelLicensing::activateLicense was passed an invalid packageid");
184
+			return;
185
+		}
186
+		$args['legal'] = 1;
187
+		return $this->get("XMLlicenseAdd.cgi", $args);
188
+	}
189 189
 
190
-    public function addPickupPass ($args) {
191
-        if (!array_key_exists("pickup", $args)) {
192
-            error_log("cPanelLicensing::addPickupPass requires a pickup param");
193
-            return;
194
-        }
195
-        return $this->get("XMLaddPickupPass.cgi", $args);
196
-    }
190
+	public function addPickupPass ($args) {
191
+		if (!array_key_exists("pickup", $args)) {
192
+			error_log("cPanelLicensing::addPickupPass requires a pickup param");
193
+			return;
194
+		}
195
+		return $this->get("XMLaddPickupPass.cgi", $args);
196
+	}
197 197
 
198
-    public function registerAuth ($args) {
199
-        if (!array_key_exists("user", $args)) {
200
-            error_log("cPanelLicensing::registerAuth requires a user param");
201
-            return;
202
-        }
203
-        if (!array_key_exists("pickup", $args)) {
204
-            error_log("cPanelLicensing::registerAuth requires a pickup param");
205
-            return;
206
-        }
207
-        if (!array_key_exists("service", $args)) {
208
-            error_log("cPanelLicensing::registerAuth requires a service param");
209
-            return;
210
-        }
211
-        $response = $this->get("XMLregisterAuth.cgi", $args);
212
-        if ($this->format == "simplexml") {
213
-            $this->setCredentials($args["user"], $response["key"]);
214
-        }
215
-        return $response;
216
-    }
198
+	public function registerAuth ($args) {
199
+		if (!array_key_exists("user", $args)) {
200
+			error_log("cPanelLicensing::registerAuth requires a user param");
201
+			return;
202
+		}
203
+		if (!array_key_exists("pickup", $args)) {
204
+			error_log("cPanelLicensing::registerAuth requires a pickup param");
205
+			return;
206
+		}
207
+		if (!array_key_exists("service", $args)) {
208
+			error_log("cPanelLicensing::registerAuth requires a service param");
209
+			return;
210
+		}
211
+		$response = $this->get("XMLregisterAuth.cgi", $args);
212
+		if ($this->format == "simplexml") {
213
+			$this->setCredentials($args["user"], $response["key"]);
214
+		}
215
+		return $response;
216
+	}
217 217
 
218
-    public function fetchGroups () {
219
-        return $this->get("XMLgroupInfo.cgi");
220
-    }
218
+	public function fetchGroups () {
219
+		return $this->get("XMLgroupInfo.cgi");
220
+	}
221 221
 
222
-    public function fetchLicenseRiskData ($args) {
223
-        if (!array_key_exists("ip", $args)) {
224
-            error_log("cpanelLicensing::fetchLicenseRiskData requires that ip exists as an element in the array is passed to it");
225
-            return;
226
-        }
227
-        if (!$this->validateIP($args['ip'])) {
228
-            error_log("cpanelLicensing::fetchLicenseRiskData was passed an invalid ip");
229
-            return;
230
-        }
231
-        return $this->get("XMLsecverify.cgi", $args);
232
-    }
222
+	public function fetchLicenseRiskData ($args) {
223
+		if (!array_key_exists("ip", $args)) {
224
+			error_log("cpanelLicensing::fetchLicenseRiskData requires that ip exists as an element in the array is passed to it");
225
+			return;
226
+		}
227
+		if (!$this->validateIP($args['ip'])) {
228
+			error_log("cpanelLicensing::fetchLicenseRiskData was passed an invalid ip");
229
+			return;
230
+		}
231
+		return $this->get("XMLsecverify.cgi", $args);
232
+	}
233 233
 
234
-    public function fetchLicenseRaw ($args) {
235
-        $args = array_merge(array("all" => 1), $args);
236
-        if (!array_key_exists("ip", $args)) {
237
-            error_log("cpanelLicesning::fetchLicenseRaw requires that ip exists as an element in the array is passed to it");
238
-            return;
239
-        }
240
-        if (!$this->validateIP($args['ip'])) {
241
-            error_log("cpanelLicensing::fetchLicenseRaw was passed an invalid ip");
242
-            return;
243
-        }
244
-        return $this->get("XMLRawlookup.cgi", $args);
245
-    }
234
+	public function fetchLicenseRaw ($args) {
235
+		$args = array_merge(array("all" => 1), $args);
236
+		if (!array_key_exists("ip", $args)) {
237
+			error_log("cpanelLicesning::fetchLicenseRaw requires that ip exists as an element in the array is passed to it");
238
+			return;
239
+		}
240
+		if (!$this->validateIP($args['ip'])) {
241
+			error_log("cpanelLicensing::fetchLicenseRaw was passed an invalid ip");
242
+			return;
243
+		}
244
+		return $this->get("XMLRawlookup.cgi", $args);
245
+	}
246 246
 
247
-    public function fetchLicenseId ($args) {
248
-        $args = array_merge(array("all" => 1), $args);
249
-        if (!array_key_exists('ip', $args)) {
250
-            error_log("cpanelLicensing::getLicenseId requires that an IP is passed to it");
251
-            return;
252
-        }
253
-        if (!$this->validateIP($args['ip'])) {
254
-            error_log("cpanelLicensing::fetchLicenseId was passed an invalid ip");
255
-            return;
256
-        }
257
-        return $this->get("XMLlookup.cgi", $args);
258
-    }
247
+	public function fetchLicenseId ($args) {
248
+		$args = array_merge(array("all" => 1), $args);
249
+		if (!array_key_exists('ip', $args)) {
250
+			error_log("cpanelLicensing::getLicenseId requires that an IP is passed to it");
251
+			return;
252
+		}
253
+		if (!$this->validateIP($args['ip'])) {
254
+			error_log("cpanelLicensing::fetchLicenseId was passed an invalid ip");
255
+			return;
256
+		}
257
+		return $this->get("XMLlookup.cgi", $args);
258
+	}
259 259
 
260
-    public function fetchPackages () {
261
-        return $this->get("XMLpackageInfo.cgi");
262
-    }
260
+	public function fetchPackages () {
261
+		return $this->get("XMLpackageInfo.cgi");
262
+	}
263 263
 
264
-    public function fetchLicenses () {
265
-        return $this->get("XMLlicenseInfo.cgi");
266
-    }
264
+	public function fetchLicenses () {
265
+		return $this->get("XMLlicenseInfo.cgi");
266
+	}
267 267
 
268
-    public function fetchExpiredLicenses () {
269
-        return $this->get("XMLlicenseInfo.cgi", array("expired" => '1'));
270
-    }
268
+	public function fetchExpiredLicenses () {
269
+		return $this->get("XMLlicenseInfo.cgi", array("expired" => '1'));
270
+	}
271 271
 
272
-    public function findKey ($search, $xml_obj) {
273
-        $xml_obj = (array) $xml_obj;
274
-        if (array_key_exists("packages", $xml_obj)) {
275
-            $type = "packages";
276
-        }
277
-        else if (array_key_exists("groups", $xml_obj)) {
278
-            $type = "groups";
279
-        }
280
-        else {
281
-            error_log("cPanelLicensing::findKey with an object that is not groups or packages");
282
-            return;
283
-        }
284
-        foreach ((array) $xml_obj[$type] as $element) {
285
-            foreach ((array) $element as $key => $value) {
286
-                if ((string) $value == $search) {
287
-                    return (string)$key;
288
-                }
289
-            }
290
-        }
291
-        error_log("Could not find $type that matches $search");
292
-    }
272
+	public function findKey ($search, $xml_obj) {
273
+		$xml_obj = (array) $xml_obj;
274
+		if (array_key_exists("packages", $xml_obj)) {
275
+			$type = "packages";
276
+		}
277
+		else if (array_key_exists("groups", $xml_obj)) {
278
+			$type = "groups";
279
+		}
280
+		else {
281
+			error_log("cPanelLicensing::findKey with an object that is not groups or packages");
282
+			return;
283
+		}
284
+		foreach ((array) $xml_obj[$type] as $element) {
285
+			foreach ((array) $element as $key => $value) {
286
+				if ((string) $value == $search) {
287
+					return (string)$key;
288
+				}
289
+			}
290
+		}
291
+		error_log("Could not find $type that matches $search");
292
+	}
293 293
 }
294 294
 
Please login to merge, or discard this patch.
tests/CpanelTest.php 1 patch
Indentation   +228 added lines, -228 removed lines patch added patch discarded remove patch
@@ -4,253 +4,253 @@
 block discarded – undo
4 4
 
5 5
 class CpanelTest extends TestCase {
6 6
 
7
-    /**
8
-     * @var Cpanel
9
-     */
10
-    protected $object;
7
+	/**
8
+	 * @var Cpanel
9
+	 */
10
+	protected $object;
11 11
 
12
-    /**
13
-     * Sets up the fixture, for example, opens a network connection.
14
-     * This method is called before a test is executed.
15
-     */
16
-    protected function setUp()
17
-    {
18
-        $this->object = new Cpanel;
19
-    }
12
+	/**
13
+	 * Sets up the fixture, for example, opens a network connection.
14
+	 * This method is called before a test is executed.
15
+	 */
16
+	protected function setUp()
17
+	{
18
+		$this->object = new Cpanel;
19
+	}
20 20
 
21
-    /**
22
-     * Tears down the fixture, for example, closes a network connection.
23
-     * This method is called after a test is executed.
24
-     */
25
-    protected function tearDown()
26
-    {
27
-    }
21
+	/**
22
+	 * Tears down the fixture, for example, closes a network connection.
23
+	 * This method is called after a test is executed.
24
+	 */
25
+	protected function tearDown()
26
+	{
27
+	}
28 28
 
29
-    /**
30
-     * @covers Detain\Cpanel\Cpanel::setopt
31
-     * @todo   Implement testSetopt().
32
-     */
33
-    public function testSetopt()
34
-    {
35
-        // Remove the following lines when you implement this test.
36
-        $this->markTestIncomplete(
37
-            'This test has not been implemented yet.'
38
-        );
39
-    }
29
+	/**
30
+	 * @covers Detain\Cpanel\Cpanel::setopt
31
+	 * @todo   Implement testSetopt().
32
+	 */
33
+	public function testSetopt()
34
+	{
35
+		// Remove the following lines when you implement this test.
36
+		$this->markTestIncomplete(
37
+			'This test has not been implemented yet.'
38
+		);
39
+	}
40 40
 
41
-    /**
42
-     * @covers Detain\Cpanel\Cpanel::setCredentials
43
-     * @todo   Implement testSetCredentials().
44
-     */
45
-    public function testSetCredentials()
46
-    {
47
-        // Remove the following lines when you implement this test.
48
-        $this->markTestIncomplete(
49
-            'This test has not been implemented yet.'
50
-        );
51
-    }
41
+	/**
42
+	 * @covers Detain\Cpanel\Cpanel::setCredentials
43
+	 * @todo   Implement testSetCredentials().
44
+	 */
45
+	public function testSetCredentials()
46
+	{
47
+		// Remove the following lines when you implement this test.
48
+		$this->markTestIncomplete(
49
+			'This test has not been implemented yet.'
50
+		);
51
+	}
52 52
 
53
-    /**
54
-     * @covers Detain\Cpanel\Cpanel::set_format
55
-     * @todo   Implement testSet_format().
56
-     */
57
-    public function testSet_format()
58
-    {
59
-        // Remove the following lines when you implement this test.
60
-        $this->markTestIncomplete(
61
-            'This test has not been implemented yet.'
62
-        );
63
-    }
53
+	/**
54
+	 * @covers Detain\Cpanel\Cpanel::set_format
55
+	 * @todo   Implement testSet_format().
56
+	 */
57
+	public function testSet_format()
58
+	{
59
+		// Remove the following lines when you implement this test.
60
+		$this->markTestIncomplete(
61
+			'This test has not been implemented yet.'
62
+		);
63
+	}
64 64
 
65
-    /**
66
-     * @covers Detain\Cpanel\Cpanel::reactivateLicense
67
-     * @todo   Implement testReactivateLicense().
68
-     */
69
-    public function testReactivateLicense()
70
-    {
71
-        // Remove the following lines when you implement this test.
72
-        $this->markTestIncomplete(
73
-            'This test has not been implemented yet.'
74
-        );
75
-    }
65
+	/**
66
+	 * @covers Detain\Cpanel\Cpanel::reactivateLicense
67
+	 * @todo   Implement testReactivateLicense().
68
+	 */
69
+	public function testReactivateLicense()
70
+	{
71
+		// Remove the following lines when you implement this test.
72
+		$this->markTestIncomplete(
73
+			'This test has not been implemented yet.'
74
+		);
75
+	}
76 76
 
77
-    /**
78
-     * @covers Detain\Cpanel\Cpanel::expireLicense
79
-     * @todo   Implement testExpireLicense().
80
-     */
81
-    public function testExpireLicense()
82
-    {
83
-        // Remove the following lines when you implement this test.
84
-        $this->markTestIncomplete(
85
-            'This test has not been implemented yet.'
86
-        );
87
-    }
77
+	/**
78
+	 * @covers Detain\Cpanel\Cpanel::expireLicense
79
+	 * @todo   Implement testExpireLicense().
80
+	 */
81
+	public function testExpireLicense()
82
+	{
83
+		// Remove the following lines when you implement this test.
84
+		$this->markTestIncomplete(
85
+			'This test has not been implemented yet.'
86
+		);
87
+	}
88 88
 
89
-    /**
90
-     * @covers Detain\Cpanel\Cpanel::extendOnetimeUpdates
91
-     * @todo   Implement testExtendOnetimeUpdates().
92
-     */
93
-    public function testExtendOnetimeUpdates()
94
-    {
95
-        // Remove the following lines when you implement this test.
96
-        $this->markTestIncomplete(
97
-            'This test has not been implemented yet.'
98
-        );
99
-    }
89
+	/**
90
+	 * @covers Detain\Cpanel\Cpanel::extendOnetimeUpdates
91
+	 * @todo   Implement testExtendOnetimeUpdates().
92
+	 */
93
+	public function testExtendOnetimeUpdates()
94
+	{
95
+		// Remove the following lines when you implement this test.
96
+		$this->markTestIncomplete(
97
+			'This test has not been implemented yet.'
98
+		);
99
+	}
100 100
 
101
-    /**
102
-     * @covers Detain\Cpanel\Cpanel::changeip
103
-     * @todo   Implement testChangeip().
104
-     */
105
-    public function testChangeip()
106
-    {
107
-        // Remove the following lines when you implement this test.
108
-        $this->markTestIncomplete(
109
-            'This test has not been implemented yet.'
110
-        );
111
-    }
101
+	/**
102
+	 * @covers Detain\Cpanel\Cpanel::changeip
103
+	 * @todo   Implement testChangeip().
104
+	 */
105
+	public function testChangeip()
106
+	{
107
+		// Remove the following lines when you implement this test.
108
+		$this->markTestIncomplete(
109
+			'This test has not been implemented yet.'
110
+		);
111
+	}
112 112
 
113
-    /**
114
-     * @covers Detain\Cpanel\Cpanel::requestTransfer
115
-     * @todo   Implement testRequestTransfer().
116
-     */
117
-    public function testRequestTransfer()
118
-    {
119
-        // Remove the following lines when you implement this test.
120
-        $this->markTestIncomplete(
121
-            'This test has not been implemented yet.'
122
-        );
123
-    }
113
+	/**
114
+	 * @covers Detain\Cpanel\Cpanel::requestTransfer
115
+	 * @todo   Implement testRequestTransfer().
116
+	 */
117
+	public function testRequestTransfer()
118
+	{
119
+		// Remove the following lines when you implement this test.
120
+		$this->markTestIncomplete(
121
+			'This test has not been implemented yet.'
122
+		);
123
+	}
124 124
 
125
-    /**
126
-     * @covers Detain\Cpanel\Cpanel::activateLicense
127
-     * @todo   Implement testActivateLicense().
128
-     */
129
-    public function testActivateLicense()
130
-    {
131
-        // Remove the following lines when you implement this test.
132
-        $this->markTestIncomplete(
133
-            'This test has not been implemented yet.'
134
-        );
135
-    }
125
+	/**
126
+	 * @covers Detain\Cpanel\Cpanel::activateLicense
127
+	 * @todo   Implement testActivateLicense().
128
+	 */
129
+	public function testActivateLicense()
130
+	{
131
+		// Remove the following lines when you implement this test.
132
+		$this->markTestIncomplete(
133
+			'This test has not been implemented yet.'
134
+		);
135
+	}
136 136
 
137
-    /**
138
-     * @covers Detain\Cpanel\Cpanel::addPickupPass
139
-     * @todo   Implement testAddPickupPass().
140
-     */
141
-    public function testAddPickupPass()
142
-    {
143
-        // Remove the following lines when you implement this test.
144
-        $this->markTestIncomplete(
145
-            'This test has not been implemented yet.'
146
-        );
147
-    }
137
+	/**
138
+	 * @covers Detain\Cpanel\Cpanel::addPickupPass
139
+	 * @todo   Implement testAddPickupPass().
140
+	 */
141
+	public function testAddPickupPass()
142
+	{
143
+		// Remove the following lines when you implement this test.
144
+		$this->markTestIncomplete(
145
+			'This test has not been implemented yet.'
146
+		);
147
+	}
148 148
 
149
-    /**
150
-     * @covers Detain\Cpanel\Cpanel::registerAuth
151
-     * @todo   Implement testRegisterAuth().
152
-     */
153
-    public function testRegisterAuth()
154
-    {
155
-        // Remove the following lines when you implement this test.
156
-        $this->markTestIncomplete(
157
-            'This test has not been implemented yet.'
158
-        );
159
-    }
149
+	/**
150
+	 * @covers Detain\Cpanel\Cpanel::registerAuth
151
+	 * @todo   Implement testRegisterAuth().
152
+	 */
153
+	public function testRegisterAuth()
154
+	{
155
+		// Remove the following lines when you implement this test.
156
+		$this->markTestIncomplete(
157
+			'This test has not been implemented yet.'
158
+		);
159
+	}
160 160
 
161
-    /**
162
-     * @covers Detain\Cpanel\Cpanel::fetchGroups
163
-     * @todo   Implement testFetchGroups().
164
-     */
165
-    public function testFetchGroups()
166
-    {
167
-        // Remove the following lines when you implement this test.
168
-        $this->markTestIncomplete(
169
-            'This test has not been implemented yet.'
170
-        );
171
-    }
161
+	/**
162
+	 * @covers Detain\Cpanel\Cpanel::fetchGroups
163
+	 * @todo   Implement testFetchGroups().
164
+	 */
165
+	public function testFetchGroups()
166
+	{
167
+		// Remove the following lines when you implement this test.
168
+		$this->markTestIncomplete(
169
+			'This test has not been implemented yet.'
170
+		);
171
+	}
172 172
 
173
-    /**
174
-     * @covers Detain\Cpanel\Cpanel::fetchLicenseRiskData
175
-     * @todo   Implement testFetchLicenseRiskData().
176
-     */
177
-    public function testFetchLicenseRiskData()
178
-    {
179
-        // Remove the following lines when you implement this test.
180
-        $this->markTestIncomplete(
181
-            'This test has not been implemented yet.'
182
-        );
183
-    }
173
+	/**
174
+	 * @covers Detain\Cpanel\Cpanel::fetchLicenseRiskData
175
+	 * @todo   Implement testFetchLicenseRiskData().
176
+	 */
177
+	public function testFetchLicenseRiskData()
178
+	{
179
+		// Remove the following lines when you implement this test.
180
+		$this->markTestIncomplete(
181
+			'This test has not been implemented yet.'
182
+		);
183
+	}
184 184
 
185
-    /**
186
-     * @covers Detain\Cpanel\Cpanel::fetchLicenseRaw
187
-     * @todo   Implement testFetchLicenseRaw().
188
-     */
189
-    public function testFetchLicenseRaw()
190
-    {
191
-        // Remove the following lines when you implement this test.
192
-        $this->markTestIncomplete(
193
-            'This test has not been implemented yet.'
194
-        );
195
-    }
185
+	/**
186
+	 * @covers Detain\Cpanel\Cpanel::fetchLicenseRaw
187
+	 * @todo   Implement testFetchLicenseRaw().
188
+	 */
189
+	public function testFetchLicenseRaw()
190
+	{
191
+		// Remove the following lines when you implement this test.
192
+		$this->markTestIncomplete(
193
+			'This test has not been implemented yet.'
194
+		);
195
+	}
196 196
 
197
-    /**
198
-     * @covers Detain\Cpanel\Cpanel::fetchLicenseId
199
-     * @todo   Implement testFetchLicenseId().
200
-     */
201
-    public function testFetchLicenseId()
202
-    {
203
-        // Remove the following lines when you implement this test.
204
-        $this->markTestIncomplete(
205
-            'This test has not been implemented yet.'
206
-        );
207
-    }
197
+	/**
198
+	 * @covers Detain\Cpanel\Cpanel::fetchLicenseId
199
+	 * @todo   Implement testFetchLicenseId().
200
+	 */
201
+	public function testFetchLicenseId()
202
+	{
203
+		// Remove the following lines when you implement this test.
204
+		$this->markTestIncomplete(
205
+			'This test has not been implemented yet.'
206
+		);
207
+	}
208 208
 
209
-    /**
210
-     * @covers Detain\Cpanel\Cpanel::fetchPackages
211
-     * @todo   Implement testFetchPackages().
212
-     */
213
-    public function testFetchPackages()
214
-    {
215
-        // Remove the following lines when you implement this test.
216
-        $this->markTestIncomplete(
217
-            'This test has not been implemented yet.'
218
-        );
219
-    }
209
+	/**
210
+	 * @covers Detain\Cpanel\Cpanel::fetchPackages
211
+	 * @todo   Implement testFetchPackages().
212
+	 */
213
+	public function testFetchPackages()
214
+	{
215
+		// Remove the following lines when you implement this test.
216
+		$this->markTestIncomplete(
217
+			'This test has not been implemented yet.'
218
+		);
219
+	}
220 220
 
221
-    /**
222
-     * @covers Detain\Cpanel\Cpanel::fetchLicenses
223
-     * @todo   Implement testFetchLicenses().
224
-     */
225
-    public function testFetchLicenses()
226
-    {
227
-        // Remove the following lines when you implement this test.
228
-        $this->markTestIncomplete(
229
-            'This test has not been implemented yet.'
230
-        );
231
-    }
221
+	/**
222
+	 * @covers Detain\Cpanel\Cpanel::fetchLicenses
223
+	 * @todo   Implement testFetchLicenses().
224
+	 */
225
+	public function testFetchLicenses()
226
+	{
227
+		// Remove the following lines when you implement this test.
228
+		$this->markTestIncomplete(
229
+			'This test has not been implemented yet.'
230
+		);
231
+	}
232 232
 
233
-    /**
234
-     * @covers Detain\Cpanel\Cpanel::fetchExpiredLicenses
235
-     * @todo   Implement testFetchExpiredLicenses().
236
-     */
237
-    public function testFetchExpiredLicenses()
238
-    {
239
-        // Remove the following lines when you implement this test.
240
-        $this->markTestIncomplete(
241
-            'This test has not been implemented yet.'
242
-        );
243
-    }
233
+	/**
234
+	 * @covers Detain\Cpanel\Cpanel::fetchExpiredLicenses
235
+	 * @todo   Implement testFetchExpiredLicenses().
236
+	 */
237
+	public function testFetchExpiredLicenses()
238
+	{
239
+		// Remove the following lines when you implement this test.
240
+		$this->markTestIncomplete(
241
+			'This test has not been implemented yet.'
242
+		);
243
+	}
244 244
 
245
-    /**
246
-     * @covers Detain\Cpanel\Cpanel::findKey
247
-     * @todo   Implement testFindKey().
248
-     */
249
-    public function testFindKey()
250
-    {
251
-        // Remove the following lines when you implement this test.
252
-        $this->markTestIncomplete(
253
-            'This test has not been implemented yet.'
254
-        );
255
-    }
245
+	/**
246
+	 * @covers Detain\Cpanel\Cpanel::findKey
247
+	 * @todo   Implement testFindKey().
248
+	 */
249
+	public function testFindKey()
250
+	{
251
+		// Remove the following lines when you implement this test.
252
+		$this->markTestIncomplete(
253
+			'This test has not been implemented yet.'
254
+		);
255
+	}
256 256
 }
Please login to merge, or discard this patch.