Code cleanup

This commit is contained in:
James Cole
2021-03-21 09:15:40 +01:00
parent da1751940e
commit 206845575c
317 changed files with 7418 additions and 7362 deletions

View File

@@ -53,14 +53,6 @@ class Sha3SignatureGenerator implements SignatureGeneratorInterface
{
private int $version = 1;
/**
* @inheritDoc
*/
public function getVersion(): int
{
return $this->version;
}
/**
* @inheritDoc
*/
@@ -89,4 +81,12 @@ class Sha3SignatureGenerator implements SignatureGeneratorInterface
// Schemes start with v, followed by an integer. Currently, the only valid live signature scheme is v1.
return sprintf('t=%s,v%d=%s', $timestamp, $this->getVersion(), $signature);
}
/**
* @inheritDoc
*/
public function getVersion(): int
{
return $this->version;
}
}

View File

@@ -50,17 +50,17 @@ use FireflyIII\Models\WebhookMessage;
*/
interface SignatureGeneratorInterface
{
/**
* Return the version of this signature generator.
*
* @return int
*/
public function getVersion(): int;
/**
* @param WebhookMessage $message
*
* @return string
*/
public function generate(WebhookMessage $message): string;
/**
* Return the version of this signature generator.
*
* @return int
*/
public function getVersion(): int;
}