@@ -30,8 +30,7 @@ discard block |
||
30 | 30 | if ($format != "xml" && $format != "json" && $format != "yaml" && $format != "simplexml") { |
31 | 31 | error_log("set_format requires that the format is xml, json, yaml or simplexml"); |
32 | 32 | return; |
33 | - } |
|
34 | - else { |
|
33 | + } else { |
|
35 | 34 | $this->format = $format; |
36 | 35 | } |
37 | 36 | } |
@@ -62,8 +61,7 @@ discard block |
||
62 | 61 | $result = $result[str_replace('.cgi', '', $function)]; |
63 | 62 | $result = $this->format_result($result); |
64 | 63 | return $result; |
65 | - } |
|
66 | - else { |
|
64 | + } else { |
|
67 | 65 | return $result; |
68 | 66 | } |
69 | 67 | } |
@@ -86,8 +84,7 @@ discard block |
||
86 | 84 | private function validateID ($id) { |
87 | 85 | if (preg_match("/^(L|P|G)?\d*$/", $id)) { |
88 | 86 | return 1; |
89 | - } |
|
90 | - else { |
|
87 | + } else { |
|
91 | 88 | return 0; |
92 | 89 | } |
93 | 90 | } |
@@ -271,11 +268,9 @@ discard block |
||
271 | 268 | $xml_obj = (array) $xml_obj; |
272 | 269 | if (array_key_exists("packages", $xml_obj)) { |
273 | 270 | $type = "packages"; |
274 | - } |
|
275 | - else if (array_key_exists("groups", $xml_obj)) { |
|
271 | + } else if (array_key_exists("groups", $xml_obj)) { |
|
276 | 272 | $type = "groups"; |
277 | - } |
|
278 | - else { |
|
273 | + } else { |
|
279 | 274 | error_log("cPanelLicensing::findKey with an object that is not groups or packages"); |
280 | 275 | return; |
281 | 276 | } |