Expand tests, do code cleanup.

This commit is contained in:
James Cole
2017-12-17 14:30:53 +01:00
parent b08af77c98
commit 78335e5814
141 changed files with 773 additions and 54 deletions

View File

@@ -38,6 +38,9 @@ abstract class SpectreRequest
{
/** @var string */
protected $clientId = '';
/**
* @var int
*/
protected $expiresAt = 0;
/** @var ServerPublicKey */
protected $serverPublicKey;
@@ -52,6 +55,10 @@ abstract class SpectreRequest
/**
* SpectreRequest constructor.
*
* @param User $user
*
* @throws \Illuminate\Container\EntryNotFoundException
*/
public function __construct(User $user)
{
@@ -279,11 +286,9 @@ abstract class SpectreRequest
/**
* @param string $uri
* @param array $data
* @param array $headers
*
* @return array
*
* @throws Exception
* @throws FireflyException
*/
protected function sendSignedSpectreGet(string $uri, array $data): array
{