Skip to content

Commit

Permalink
More precise signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Reynis authored and frankdejonge committed Sep 8, 2020
1 parent 2323c98 commit 53f16fd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions src/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
use League\Flysystem\Util\ContentListingFormatter;

/**
* @method void emptyDir(string $dirname)
* @method array getWithMetadata(string $path, array $metadata)
* @method bool forceCopy(string $path, string $newpath)
* @method bool forceRename(string $path, string $newpath)
* @method array listFiles(string $path = '', boolean $recursive = false)
* @method array listPaths(string $path = '', boolean $recursive = false)
* @method array listWith(array $keys = [], $directory = '', $recursive = false)
* @method void emptyDir(string $dirname)
* @method array|false getWithMetadata(string $path, string[] $metadata)
* @method bool forceCopy(string $path, string $newpath)
* @method bool forceRename(string $path, string $newpath)
* @method array listFiles(string $path = '', boolean $recursive = false)
* @method string[] listPaths(string $path = '', boolean $recursive = false)
* @method array listWith(string[] $keys = [], $directory = '', $recursive = false)
*/
class Filesystem implements FilesystemInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/GetWithMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public function getMethod()
/**
* Get metadata for an object with required metadata.
*
* @param string $path path to file
* @param array $metadata metadata keys
* @param string $path path to file
* @param string[] $metadata metadata keys
*
* @throws InvalidArgumentException
* @throws FileNotFoundException
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/ListPaths.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function getMethod()
* @param string $directory
* @param bool $recursive
*
* @return array paths
* @return string[] paths
*/
public function handle($directory = '', $recursive = false)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Plugin/ListWith.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public function getMethod()
/**
* List contents with metadata.
*
* @param array $keys
* @param string $directory
* @param bool $recursive
* @param string[] $keys
* @param string $directory
* @param bool $recursive
*
* @return array listing with metadata
*/
Expand Down

0 comments on commit 53f16fd

Please sign in to comment.