File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,7 @@ public static function remove_label(
109109
110110 $ headers ['http_verb ' ] = 'DELETE ' ;
111111
112- list ( $ body , $ headers ) = self ::request (
113- $ request_url ,
114- $ args ,
115- $ headers
116- );
112+ list ( $ body , $ headers ) = self ::request ( $ request_url , $ args , $ headers );
117113
118114 return $ body ;
119115 }
@@ -145,11 +141,7 @@ public static function add_label(
145141
146142 $ args = [ $ label ];
147143
148- list ( $ body , $ headers ) = self ::request (
149- $ request_url ,
150- $ args ,
151- $ headers
152- );
144+ list ( $ body , $ headers ) = self ::request ( $ request_url , $ args , $ headers );
153145
154146 return $ body ;
155147 }
@@ -289,7 +281,7 @@ public static function request(
289281
290282 $ response = Utils \http_request ( $ verb , $ url , $ args , $ headers );
291283
292- if ( 20 !== absint ( substr ( $ response ->status_code , 0 , 2 ) ) ) {
284+ if ( 20 !== ( int ) substr ( $ response ->status_code , 0 , 2 ) ) {
293285 if ( isset ( $ args ['throw_errors ' ] ) && false === $ args ['throw_errors ' ] ) {
294286 return false ;
295287 }
You can’t perform that action at this time.
0 commit comments