File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function listPageRules(
6060 string $ order = null ,
6161 string $ direction = null ,
6262 string $ match = null
63- ): \ stdClass {
63+ ): array {
6464 if (is_null ($ status ) && !in_array ($ status , ['active ' , 'disabled ' ])) {
6565 throw new EndpointException ('Page Rules can only be listed by status of active or disabled. ' );
6666 }
@@ -89,11 +89,7 @@ public function listPageRules(
8989 $ user = $ this ->adapter ->get ('zones/ ' . $ zoneID . '/pagerules? ' . $ query , []);
9090 $ body = json_decode ($ user ->getBody ());
9191
92- $ result = new \stdClass ();
93- $ result ->result = $ body ->result ;
94- $ result ->result_info = $ body ->result_info ;
95-
96- return $ result ;
92+ return $ body ->result ;
9793 }
9894
9995 public function getPageRuleDetails (string $ zoneID , string $ ruleID ): \stdClass
You can’t perform that action at this time.
0 commit comments