Skip to content

Commit fc4c086

Browse files
committed
Refactor
1 parent 662fd4e commit fc4c086

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/OPCacheResetCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ public function handle()
1515
{
1616
$route = (version_compare(app()->version(), '5.6.12') >= 0) ? \Illuminate\Support\Facades\URL::signedRoute('opcache-reset') : route('opcache-reset');
1717

18-
$response = new Client([
18+
$guzzle = new Client([
1919
'http_errors' => false,
2020
'verify' => false,
21-
])->get($route);
21+
]);
22+
23+
$response = $guzzle->get($route);
2224

2325
if ($response->getStatusCode() === 200) {
2426
return json_decode($response->getBody()->getContents());

0 commit comments

Comments
 (0)