Skip to content

Commit 9497bf5

Browse files
committed
Update LaravelWpApiServiceProvider.php
1 parent 515483a commit 9497bf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cyberduck/LaravelWpApi/LaravelWpApiServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function register()
3535
$endpoint = $this->app['config']->get('wp-api.endpoint');
3636
$auth = $this->app['config']->get('wp-api.auth');
3737
$client = $this->app->make('GuzzleHttp\Client');
38-
39-
if ($this->app['config']->get('wp-api.curl') && !empty($this->app['config']->get('wp-api.curl'))) {
38+
$curlOpt = $this->app['config']->get('wp-api.curl');
39+
if ($curlOpt && !empty($curlOpt)) {
4040
$client->setDefaultOption('config', ['curl' => $this->app['config']->get('wp-api.curl')]);
4141
}
4242

0 commit comments

Comments
 (0)