Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 00f4506

Browse files

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function setOptions($options = array())
174174
* Load the connection adapter
175175
*
176176
* While this method is not called more than one for a client, it is
177-
* seperated from ->request() to preserve logic and readability
177+
* separated from ->request() to preserve logic and readability
178178
*
179179
* @param Client\Adapter\AdapterInterface|string $adapter
180180
* @return Client

src/Client/Adapter/StreamInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* An interface description for Zend_Http_Client_Adapter_Stream classes.
1515
*
16-
* This interface decribes Zend_Http_Client_Adapter which supports streaming.
16+
* This interface describes Zend_Http_Client_Adapter which supports streaming.
1717
*
1818
* @category Zend
1919
* @package Zend_Http

src/Client/Adapter/Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Test implements AdapterInterface
5151
protected $responseIndex = 0;
5252

5353
/**
54-
* Wether or not the next request will fail with an exception
54+
* Whether or not the next request will fail with an exception
5555
*
5656
* @var boolean
5757
*/

src/Client/Cookies.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function getMatchingCookies($uri, $matchSessionCookies = true,
180180
$cookies = $this->_matchPath($cookies, $uri->getPath());
181181
$cookies = $this->_flattenCookiesArray($cookies, self::COOKIE_OBJECT);
182182

183-
// Next, run Cookie->match on all cookies to check secure, time and session mathcing
183+
// Next, run Cookie->match on all cookies to check secure, time and session matching
184184
$ret = array();
185185
foreach ($cookies as $cookie)
186186
if ($cookie->match($uri, $matchSessionCookies, $now))
@@ -241,7 +241,7 @@ public function getCookie($uri, $cookie_name, $ret_as = self::COOKIE_OBJECT)
241241
}
242242

243243
/**
244-
* Helper function to recursivly flatten an array. Shoud be used when exporting the
244+
* Helper function to recursively flatten an array. Should be used when exporting the
245245
* cookies array (or parts of it)
246246
*
247247
* @param \Zend\Http\Header\Cookie|array $ptr

src/Cookies.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function getMatchingCookies($uri, $matchSessionCookies = true,
157157
$cookies = $this->_matchPath($cookies, $uri->getPath());
158158
$cookies = $this->_flattenCookiesArray($cookies, self::COOKIE_OBJECT);
159159

160-
// Next, run Cookie->match on all cookies to check secure, time and session mathcing
160+
// Next, run Cookie->match on all cookies to check secure, time and session matching
161161
$ret = array();
162162
foreach ($cookies as $cookie)
163163
if ($cookie->match($uri, $matchSessionCookies, $now))
@@ -218,7 +218,7 @@ public function getCookie($uri, $cookie_name, $ret_as = self::COOKIE_OBJECT)
218218
}
219219

220220
/**
221-
* Helper function to recursivly flatten an array. Shoud be used when exporting the
221+
* Helper function to recursively flatten an array. Should be used when exporting the
222222
* cookies array (or parts of it)
223223
*
224224
* @param \Zend\Http\Header\Cookie|array $ptr

src/Header/AbstractAccept.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function getFieldValue($values = null)
203203

204204

205205
/**
206-
* Assemble and escape the field value parameters based on RFC 2616 secion 2.1
206+
* Assemble and escape the field value parameters based on RFC 2616 section 2.1
207207
*
208208
* @todo someone should review this thoroughly
209209
* @param string value

src/Header/CacheControl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function removeDirective($key)
118118
}
119119

120120
/**
121-
* Assembles the directives into a comma-delimeted string
121+
* Assembles the directives into a comma-delimited string
122122
*
123123
* @return string
124124
*/

src/Header/SetCookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static function fromString($headerLine, $bypassHeaderFieldName = false)
111111
continue;
112112
}
113113

114-
// Process the remanining elements
114+
// Process the remaining elements
115115
switch (str_replace(array('-', '_'), '', strtolower($headerKey))) {
116116
case 'expires' : $header->setExpires($headerValue); break;
117117
case 'domain' : $header->setDomain($headerValue); break;

src/Headers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public function next()
299299
}
300300

301301
/**
302-
* Return the current key for this object as an interator
302+
* Return the current key for this object as an iterator
303303
*
304304
* @return mixed
305305
*/

src/Response/Stream.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Stream extends Response
6262
/**
6363
* Get the response as stream
6464
*
65-
* @return resourse
65+
* @return resource
6666
*/
6767
public function getStream()
6868
{
@@ -72,7 +72,7 @@ public function getStream()
7272
/**
7373
* Set the response stream
7474
*
75-
* @param resourse $stream
75+
* @param resource $stream
7676
* @return Stream
7777
*/
7878
public function setStream($stream)
@@ -204,7 +204,7 @@ public static function fromStream($responseString, $stream)
204204
* should be in it's readable version - that is, after decoding it (if it
205205
* was decoded), deflating it (if it was gzip compressed), etc.
206206
*
207-
* If you want to get the raw body (as transfered on wire) use
207+
* If you want to get the raw body (as transferred on wire) use
208208
* $this->getRawBody() instead.
209209
*
210210
* @return string
@@ -218,7 +218,7 @@ public function getBody()
218218
}
219219

220220
/**
221-
* Get the raw response body (as transfered "on wire") as string
221+
* Get the raw response body (as transferred "on wire") as string
222222
*
223223
* If the body is encoded (with Transfer-Encoding, not content-encoding -
224224
* IE "chunked" body), gzip compressed, etc. it will not be decoded.

0 commit comments

Comments
 (0)