From 12d33c9400c9c4cfd35282c153c8fcf9f1068c23 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 12 Dec 2016 21:11:53 +0300 Subject: [PATCH] Service/AbstractApi code quality fix. --- src/Skobkin/Bundle/PointToolsBundle/Service/AbstractApi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/AbstractApi.php b/src/Skobkin/Bundle/PointToolsBundle/Service/AbstractApi.php index 7affc4f..f8f2594 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Service/AbstractApi.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/AbstractApi.php @@ -7,7 +7,7 @@ use Guzzle\Http\Message\Request as GuzzleRequest; use Guzzle\Http\Message\Response as GuzzleResponse; /** - * @todo Implement commands + * @todo Refactor to Guzzle and DTO * @see https://github.com/misd-service-development/guzzle-bundle/blob/master/Resources/doc/serialization.md * @see https://github.com/misd-service-development/guzzle-bundle/blob/master/Resources/doc/clients.md * @see https://github.com/misd-service-development/guzzle-bundle/blob/master/Resources/doc/param_converter.md @@ -44,7 +44,7 @@ class AbstractApi $this->client = $httpClient; $this->useHttps = ($https) ? true : false; - if ($baseUrl) { + if (null !== $baseUrl) { $this->setBaseUrl($baseUrl); } }