Skip to content

Commit

Permalink
Boyscouting
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Mar 19, 2018
1 parent 89898df commit 5a093db
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 7 deletions.
11 changes: 11 additions & 0 deletions src/Parsing/PasetoMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ final class PasetoMessage
/** @var string */
private $footer;

/**
* PasetoMessage constructor.
*
* @param Header $header
* @param string $payload
* @param string $footer
*/
public function __construct(Header $header, string $payload, string $footer)
{
$this->header = $header;
Expand Down Expand Up @@ -74,6 +81,10 @@ public function footer(): string
return $this->footer;
}

/**
* @return string
* @throws \TypeError
*/
public function toString(): string
{
$message = $this->header->toString()
Expand Down
1 change: 0 additions & 1 deletion src/ProtocolCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
Version1,
Version2
};

use ParagonIE\Paseto\Exception\InvalidVersionException;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/ForAudience.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
declare(strict_types=1);
namespace ParagonIE\Paseto\Rules;

use ParagonIE\Paseto\Exception\PasetoException;
use ParagonIE\Paseto\{
JsonToken,
ValidationRuleInterface
};
use ParagonIE\Paseto\Exception\PasetoException;

/**
* Class ForAudience
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/IdentifiedBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
declare(strict_types=1);
namespace ParagonIE\Paseto\Rules;

use ParagonIE\Paseto\Exception\PasetoException;
use ParagonIE\Paseto\{
JsonToken,
ValidationRuleInterface
};
use ParagonIE\Paseto\Exception\PasetoException;

/**
* Class IdentifiedBy
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/IssuedBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
declare(strict_types=1);
namespace ParagonIE\Paseto\Rules;

use ParagonIE\Paseto\Exception\PasetoException;
use ParagonIE\Paseto\{
JsonToken,
ValidationRuleInterface
};
use ParagonIE\Paseto\Exception\PasetoException;

/**
* Class IssuedBy
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/NotExpired.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
declare(strict_types=1);
namespace ParagonIE\Paseto\Rules;

use ParagonIE\Paseto\Exception\PasetoException;
use ParagonIE\Paseto\{
JsonToken,
ValidationRuleInterface
};
use ParagonIE\Paseto\Exception\PasetoException;

/**
* Class NotExpired
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/Subject.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
declare(strict_types=1);
namespace ParagonIE\Paseto\Rules;

use ParagonIE\Paseto\Exception\PasetoException;
use ParagonIE\Paseto\{
JsonToken,
ValidationRuleInterface
};
use ParagonIE\Paseto\Exception\PasetoException;

/**
* Class Subject
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/ValidAt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
declare(strict_types=1);
namespace ParagonIE\Paseto\Rules;

use ParagonIE\Paseto\Exception\PasetoException;
use ParagonIE\Paseto\{
JsonToken,
ValidationRuleInterface
};
use ParagonIE\Paseto\Exception\PasetoException;

/**
* Class ValidAt
Expand Down

0 comments on commit 5a093db

Please sign in to comment.