Skip to content

Commit 35fd481

Browse files
committed
Fix PHPCS sniffs.
1 parent 0277678 commit 35fd481

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/RestApi/RestDispatch.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ protected function preDispatch($result, WP_REST_Server $server, WP_REST_Request
7979
$key = $this->getCacheKey($request_uri, $server, $request);
8080

8181
// Return the result if it's a non-readable (GET) method or it's been cached.
82-
if (
83-
$request->get_method() !== WP_REST_Server::READABLE ||
82+
if ($request->get_method() !== WP_REST_Server::READABLE ||
8483
(! empty(self::$cached[$this->cleanKey($key)]) && self::$cached[$this->cleanKey($key)] === true)
8584
) {
8685
return $result;
@@ -235,7 +234,10 @@ protected function getCachedResult(
235234
$options[Settings::EXPIRATION]
236235
);
237236
self::$cached[$this->cleanKey($key)] = \wp_cache_set(
238-
$this->cleanKey($key), $result, $group, \absint($expire)
237+
$this->cleanKey($key),
238+
$result,
239+
$group,
240+
\absint($expire)
239241
);
240242

241243
return $result;

0 commit comments

Comments
 (0)