Skip to content

Commit 5bf18fa

Browse files
committed
Very minor refactoring.
1 parent 7bd68b2 commit 5bf18fa

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/ArchiveHandlerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ interface ArchiveHandlerInterface
2424
* Return the actual entry in the archive at the current entry pointer.
2525
*
2626
* @param int $Bytes Optionally, how many bytes to read from the entry.
27-
* @return string The entry's content or an empty string.
27+
* @return string The entry's content, or an empty string if not available.
2828
*/
29-
public function EntryRead(int $Bytes = -1);
29+
public function EntryRead(int $Bytes = -1): string;
3030

3131
/**
3232
* Return the compressed size of the entry at the current entry pointer.

src/PdfHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function __construct(string $File)
332332
* Return the actual entry in the archive at the current entry pointer.
333333
*
334334
* @param int $Bytes Optionally, how many bytes to read from the entry.
335-
* @return string The entry's content or an empty string.
335+
* @return string The entry's content, or an empty string if not available.
336336
*/
337337
public function EntryRead(int $Bytes = -1): string
338338
{

src/RarHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public function __destruct()
7676
* Return the actual entry in the archive at the current entry pointer.
7777
*
7878
* @param int $Bytes Optionally, how many bytes to read from the entry.
79-
* @return string The entry's content or an empty string.
79+
* @return string The entry's content, or an empty string if not available.
8080
*/
81-
public function EntryRead(int $Bytes = -1)
81+
public function EntryRead(int $Bytes = -1): string
8282
{
8383
$Actual = $this->EntryActualSize();
8484
if ($Bytes < 0 || $Bytes > $Actual) {

src/TarHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public function __construct($File)
6363
* Return the actual entry in the archive at the current entry pointer.
6464
*
6565
* @param int $Bytes Optionally, how many bytes to read from the entry.
66-
* @return string The entry's content or an empty string.
66+
* @return string The entry's content, or an empty string if not available.
6767
*/
68-
public function EntryRead(int $Bytes = -1)
68+
public function EntryRead(int $Bytes = -1): string
6969
{
7070
$Actual = $this->EntryActualSize();
7171
if ($Bytes < 0 || $Bytes > $Actual) {

src/ZipHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public function __destruct()
8080
* Return the actual entry in the archive at the current entry pointer.
8181
*
8282
* @param int $Bytes Optionally, how many bytes to read from the entry.
83-
* @return string The entry's content or an empty string.
83+
* @return string The entry's content, or an empty string if not available.
8484
*/
85-
public function EntryRead(int $Bytes = -1)
85+
public function EntryRead(int $Bytes = -1): string
8686
{
8787
$Actual = $this->EntryActualSize();
8888
if ($Bytes < 0 || $Bytes > $Actual) {

0 commit comments

Comments
 (0)