Skip to content

Commit

Permalink
Fix docblocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Sep 16, 2017
1 parent 8bf9583 commit a499b64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/KeyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public static function loadSignatureKeyPair(string $filePath): SignatureKeyPair
/**
* Export a cryptography key to a string (with a checksum)
*
* @param $key
* @param Key|KeyPair $key
* @return HiddenString
* @throws \TypeError
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Stream/MutableFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ class MutableFile implements StreamInterface

/**
* MutableFile constructor.
* @param $file
* @param string|resource $file
* @throws CryptoException\InvalidType
* @throws CryptoException\FileAccessDenied
*/
public function __construct($file)
{
if (is_string($file)) {
if (\is_string($file)) {
$fp = \fopen($file, 'wb');
if (!\is_resource($fp)) {
throw new CryptoException\FileAccessDenied(
Expand All @@ -61,7 +61,7 @@ public function __construct($file)
$this->closeAfter = true;
$this->pos = 0;
$this->stat = \fstat($this->fp);
} elseif (is_resource($file)) {
} elseif (\is_resource($file)) {
$this->fp = $file;
$this->pos = \ftell($this->fp);
$this->stat = \fstat($this->fp);
Expand Down
2 changes: 1 addition & 1 deletion src/Stream/ReadOnlyFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ReadOnlyFile implements StreamInterface
/**
* ReadOnlyFile constructor
*
* @param $file
* @param string|resource $file
* @param Key|null $key
* @throws CryptoException\InvalidType
* @throws CryptoException\FileAccessDenied
Expand Down

0 comments on commit a499b64

Please sign in to comment.