Test Failed
Push — master ( 30ae6e...55d900 )
by Joe
05:02
created
bin/expire_license.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 $ipAddress = $_SERVER['argv'][3];
6 6
 $cpl->format = 'json';
7
-$lisc = json_decode($cpl->fetchLicenseId(['ip' => $ipAddress]), TRUE);
7
+$lisc = json_decode($cpl->fetchLicenseId(['ip' => $ipAddress]), true);
8 8
 print_r($lisc);
9 9
 $liscid = $lisc['licenseid'][0];
10 10
 
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 			reason => 'Automagic Expiration',
16 16
 			expcode => 'normal'
17 17
 		]
18
-	), TRUE);
18
+	), true);
19 19
 	print $expire['result'].PHP_EOL;
20 20
 } else {
21 21
 	print "There is no valid license for $ipAddress\n";
Please login to merge, or discard this patch.
bin/list_licenses.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 $cpl = new \Detain\Cpanel\Cpanel($_SERVER['argv'][1], $_SERVER['argv'][2]);
6 6
 $cpl->format = 'json';
7
-$licenses = json_decode($cpl->fetchLicenses(), TRUE);
7
+$licenses = json_decode($cpl->fetchLicenses(), true);
8 8
 echo json_encode($licenses, JSON_PRETTY_PRINT);
9 9
 /*
10 10
 foreach ( $licenses->licenses as $lisc ) {
Please login to merge, or discard this patch.
src/Cpanel.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 			curl_setopt($this->curl, $option, $value);
73 73
 		$result = curl_exec($this->curl);
74 74
 		curl_close($this->curl);
75
-		if ($result == FALSE) {
75
+		if ($result == false) {
76 76
 			error_log('cPanelLicensing::get failed: "'.curl_error($this->curl).'"');
77 77
 			return;
78 78
 		}
Please login to merge, or discard this patch.