From 4e9c55632010030ae6ad82e0630873eb0845f9f5 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 6 Jan 2017 00:54:19 +0300 Subject: [PATCH] Small quality fixes in UserApi. --- src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php b/src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php index a7166e0..be1d450 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php @@ -62,7 +62,7 @@ class UserApi extends AbstractApi { $auth = $this->authenticate($login, $password); - if (!$auth->getError() && $auth->getToken()) { + if (null === $auth->getError() && null !== $auth->getToken()) { $this->logout($auth); return true;