Skip to content

Commit a28a874

Browse files
Bizleysamdark
Bizley
authored andcommitted
few grammar fixes (#97) [skip ci]
1 parent af8624d commit a28a874

8 files changed

+18
-18
lines changed

docs/guide/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ Getting Started
1313
Usage
1414
-----
1515

16-
* [Data formats](usage-data-formats.md)
16+
* [Data Formats](usage-data-formats.md)
1717
* [Transports](usage-transports.md)
18-
* [Request options](usage-request-options.md)
19-
* [Multi-part content](usage-multi-part-content.md)
20-
* [Batch request sending](usage-batch-request-sending.md)
18+
* [Request Options](usage-request-options.md)
19+
* [Multi-part Content](usage-multi-part-content.md)
20+
* [Batch Request Sending](usage-batch-request-sending.md)
2121
* [Events](usage-events.md)
22-
* [Logging and profiling](usage-logging.md)
23-
* [Setup Client instance](usage-setup-client-instance.md)
22+
* [Logging and Profiling](usage-logging.md)
23+
* [Setup Client Instance](usage-setup-client-instance.md)
2424

2525
Additional topics
2626
-----------------

docs/guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Installation
22
============
33

4-
## Installing an extension
4+
## Installing the extension
55

66
In order to install extension use Composer. Either run
77

docs/guide/topics-debug.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Using the HTTP Client DebugPanel
22
================================
33

4-
The yii2 HTTP Client extension provides a debug panel that can be integrated with the yii debug module
4+
The Yii 2 HTTP Client extension provides a debug panel that can be integrated with the Yii 2 Debug Module
55
and shows the executed HTTP requests.
66

7-
Add the following to you application config to enable it (if you already have the debug module
7+
Add the following to you application config to enable it (if you already have the Debug Module
88
enabled, it is sufficient to just add the panels configuration):
99

1010
```php

docs/guide/usage-batch-request-sending.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Batch request sending
1+
Batch Request Sending
22
=====================
33

44
HTTP Client allows sending multiple requests at once using [[\yii\httpclient\Client::batchSend()]] method:
@@ -23,7 +23,7 @@ which saves the program execution time.
2323
benefit. By default transport just sends them one by one without any error or warning thrown. Make sure you have
2424
configured correct transport for the client, if you wish to achieve performance boost.
2525

26-
`batchSend()` method returns the array of the responses, which keys correspond the ones from array of requests.
26+
`batchSend()` method returns the array of the responses, which keys correspond to the ones from array of requests.
2727
This allows you to process particular request response in easy way:
2828

2929
```php

docs/guide/usage-data-formats.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Following formats are supported by default:
1111
- [[\yii\httpclient\Client::FORMAT_RAW_URLENCODED]] - urlencoded by PHP_QUERY_RFC3986 query string
1212
- [[\yii\httpclient\Client::FORMAT_XML]] - XML format
1313

14-
Each format is covered by 2 entities: 'formatter' and 'parser'. Formatter determines the way content of the
14+
Each format is covered by two entities: 'formatter' and 'parser'. Formatter determines the way content of the
1515
request should be composed from data. Parser determines how raw response content should be parsed into data.
1616

1717
[[\yii\httpclient\Client]] automatically chooses corresponding formatter and parser for all format mentioned above.
@@ -50,9 +50,9 @@ class FormatterIni implements FormatterInterface
5050
{
5151
public function format(Request $request)
5252
{
53-
$request->getHeaders()->set('Content-Type', 'text/ini ; charset=UTF-8');
53+
$request->getHeaders()->set('Content-Type', 'text/ini; charset=UTF-8');
5454

55-
$pairs = []
55+
$pairs = [];
5656
foreach ($request->data as $name => $value) {
5757
$pairs[] = "$name=$value";
5858
}

docs/guide/usage-logging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ return [
2727

2828
You may also use [HTTP client DebugPanel](topics-debug.md) to see all related logs.
2929

30-
> Attention: since content of the some HTTP requests may be very long, saving it in full inside the logs
31-
may lead to certain problems. Thus there is a restriction on the maximum length of the request content,
30+
> Attention: since the content of some HTTP requests may be very long, saving it in full inside the logs
31+
may lead to certain problems. Thus there is the restriction on the maximum length of the request content,
3232
which will be placed in log. It is controlled by [[\yii\httpclient\Client::contentLoggingMaxSize]].
3333
Any exceeding content will be trimmed before logging.

docs/guide/usage-request-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $response = $client->createRequest()
3737

3838
You may as well pass options, which are specific for particular request transport. Usually it comes to this
3939
in case of using [[\yii\httpclient\CurlTransport]]. For example: you may want to specify separated timeout
40-
for connection and receiving data, which supported by PHP cURL library. You can do this in following way:
40+
for connection and receiving data, which is supported by PHP cURL library. You can do this in following way:
4141

4242
```php
4343
use yii\httpclient\Client;

docs/guide/usage-setup-client-instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Setup Client instance
1+
Setup Client Instance
22
=====================
33

44
Using of this extension starts from instantiating [[\yii\httpclient\Client]] object. There are several ways

0 commit comments

Comments
 (0)