Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Api/Dimension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ final class Dimension extends HttpApi
* @param string $username
* @param array $params
*
* @return Index|ResponseInterface
*
* @throws Exception
*
* @return Index|ResponseInterface
*/
public function index($lang)
{
Expand Down
7 changes: 3 additions & 4 deletions src/Api/HttpApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

use Happyr\ApiClient\Exception\Domain as DomainExceptions;
use Happyr\ApiClient\Exception\DomainException;
use Happyr\ApiClient\Hydrator\Hydrator;
use Happyr\ApiClient\Hydrator\NoopHydrator;
use Http\Client\HttpClient;
use Happyr\ApiClient\Hydrator\Hydrator;
use Happyr\ApiClient\RequestBuilder;
use Http\Message\RequestFactory;
use Psr\Http\Message\ResponseInterface;

Expand Down Expand Up @@ -49,9 +48,9 @@ public function __construct(HttpClient $httpClient, Hydrator $hydrator, RequestF
* @param ResponseInterface $response
* @param string $class
*
* @return mixed|ResponseInterface
*
* @throws \Exception
*
* @return mixed|ResponseInterface
*/
protected function hydrateResponse(ResponseInterface $response, $class)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Interview.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Happyr\ApiClient\Api;

use Happyr\ApiClient\Assert;
use Psr\Http\Message\ResponseInterface;
use Happyr\ApiClient\Model\Dimension\Interview as InterviewModel;
use Psr\Http\Message\ResponseInterface;

/**
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Happyr\ApiClient\Api;

use Happyr\ApiClient\Assert;
use Psr\Http\Message\ResponseInterface;
use Happyr\ApiClient\Model\Statement\Statement as StatementModel;
use Psr\Http\Message\ResponseInterface;

/**
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
Expand Down
8 changes: 4 additions & 4 deletions src/Api/UserManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ final class UserManagement extends HttpApi
/**
* @param string $user
*
* @return User|ResponseInterface
*
* @throws Exception
*
* @return User|ResponseInterface
*/
public function show($user)
{
Expand All @@ -32,9 +32,9 @@ public function show($user)
* @param string $user
* @param array $param Valid keys are email, name, gender, birthday, country
*
* @return User|ResponseInterface
*
* @throws Exception
*
* @return User|ResponseInterface
*/
public function update($user, $param)
{
Expand Down
2 changes: 1 addition & 1 deletion src/HappyrClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Happyr\ApiClient;

use Happyr\ApiClient\Hydrator\ModelHydrator;
use Happyr\ApiClient\Hydrator\Hydrator;
use Happyr\ApiClient\Hydrator\ModelHydrator;
use Http\Client\HttpClient;
use Http\Discovery\MessageFactoryDiscovery;
use Http\Message\RequestFactory;
Expand Down
4 changes: 2 additions & 2 deletions src/HttpClientConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Happyr\ApiClient;

use Http\Client\HttpClient;
use Http\Client\Common\Plugin;
use Http\Client\Common\PluginClient;
use Http\Client\HttpClient;
use Http\Discovery\HttpClientDiscovery;
use Http\Discovery\UriFactoryDiscovery;
use Http\Message\Authentication;
use Http\Message\UriFactory;
use Http\Client\Common\Plugin;

/**
* Configure an HTTP client.
Expand Down