mirror of
https://github.com/shufflingpixels/php-io.git
synced 2026-10-16 05:06:45 +02:00
Minor style fix.
This commit is contained in:
parent
424714bbba
commit
a27c0a87ea
1 changed files with 9 additions and 2 deletions
11
src/File.php
11
src/File.php
|
|
@ -7,7 +7,9 @@ namespace Shufflingpixels\IO;
|
|||
|
||||
use Shufflingpixels\IO\Exception\IOException;
|
||||
|
||||
/** A PSR-7 stream backed by a file on disk, opened via {@see FileMode}. */
|
||||
/**
|
||||
* A PSR-7 stream backed by a file on disk, opened via {@see FileMode}.
|
||||
*/
|
||||
class File extends Resource
|
||||
{
|
||||
/**
|
||||
|
|
@ -29,6 +31,11 @@ class File extends Resource
|
|||
throw new IOException("Unable to open file");
|
||||
}
|
||||
|
||||
return new self($fd, $mode->seekable(), $mode->readable(), $mode->writable());
|
||||
return new self(
|
||||
$fd,
|
||||
$mode->seekable(),
|
||||
$mode->readable(),
|
||||
$mode->writable()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue