Skip to content

Commit 3609112

Browse files
committed
Avoid excessive "multi-lining"
1 parent fe884fe commit 3609112

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

utils/maintenance/GitHub.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)