Skip to content

Commit fff63cc

Browse files
authored
Fix typos (#361)
1 parent 2883842 commit fff63cc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ you need dedicated 1:1 support, check out the options available on
8888
- Only 64bit Architecture is supported.
8989
- The class `ZipStream\Option\Method` has been replaced with the enum
9090
`ZipStream\CompressionMethod`.
91-
- Most clases have been flagged as `@internal` and should not be used from the
91+
- Most classes have been flagged as `@internal` and should not be used from the
9292
outside.
9393
If you're using internal resources to extend this library, please open an
9494
issue so that a clean interface can be added & published.
@@ -100,7 +100,7 @@ you need dedicated 1:1 support, check out the options available on
100100
### Archive Options
101101

102102
- The class `ZipStream\Option\Archive` has been replaced in favor of named
103-
arguments in the `ZipStream\ZipStream` constuctor.
103+
arguments in the `ZipStream\ZipStream` constructor.
104104
- The archive options `largeFileSize` & `largeFileMethod` has been removed. If
105105
you want different `compressionMethods` based on the file size, you'll have to
106106
implement this yourself.
@@ -113,7 +113,7 @@ you need dedicated 1:1 support, check out the options available on
113113
filesizes this way.
114114
- The archive option `deflateLevel` has been replaced with the option
115115
`defaultDeflateLevel` and can be overridden for every file.
116-
- The first argument (`name`) of the `ZipStream\ZipStream` constuctor has been
116+
- The first argument (`name`) of the `ZipStream\ZipStream` constructor has been
117117
replaced with the named argument `outputName`.
118118
- Headers are now also sent if the `outputName` is empty. If you do not want to
119119
automatically send http headers, set `sendHttpHeaders` to `false`.

guides/ContentLength.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using the options ``SIMULATION_STRICT`` or ``SIMULATION_LAX`` in the
77

88
In the ``SIMULATION_STRICT`` mode, ``ZipStream`` will not allow to calculate the
99
size based on reading the whole file. ``SIMULATION_LAX`` will read the whole
10-
file if neccessary.
10+
file if necessary.
1111

1212
``SIMULATION_STRICT`` is therefore useful to make sure that the size can be
1313
calculated efficiently.

guides/Options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Here is the full list of options available to you. You can also have a look at
1212
1313
$zip = new ZipStream(
1414
// Define output stream
15-
// (argument is eiter a resource or implementing
15+
// (argument is either a resource or implementing
1616
// `Psr\Http\Message\StreamInterface`)
1717
//
1818
// Setup with `psr/http-message` & `guzzlehttp/psr7` dependencies

guides/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ as well:
3939
If ``composer install`` yields the following error, your installation is missing
4040
the `mbstring extension <https://www.php.net/manual/en/book.mbstring.php>`_,
4141
either `install it <https://www.php.net/manual/en/mbstring.installation.php>`_
42-
or run the follwoing command:
42+
or run the following command:
4343

4444
.. code-block::
4545
Your requirements could not be resolved to an installable set of packages.
@@ -120,7 +120,7 @@ It is recommended to extract with another tool like
120120
`7-zip <https://www.7-zip.org/>`_.
121121
See `#146 <https://github.com/maennchen/ZipStream-PHP/issues/146>`_.
122122

123-
It is the responsability of the client code to make sure that files are not
123+
It is the responsibility of the client code to make sure that files are not
124124
saved with the same path, as it is not possible for the library to figure it out
125125
while streaming a zip.
126126
See `#154 <https://github.com/maennchen/ZipStream-PHP/issues/154>`_.

src/ZipStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ public function executeSimulation(): void
693693
/**
694694
* Write zip footer to stream.
695695
*
696-
* The clase is left in an unusable state after `finish`.
696+
* The class is left in an unusable state after `finish`.
697697
*
698698
* ##### Example
699699
*

0 commit comments

Comments
 (0)