Skip to content

Commit c293fd9

Browse files
authored
Merge pull request #2875 from phil-davis/doc-review
Doc typos and grammar
2 parents 7e16187 + 3558e3b commit c293fd9

12 files changed

+34
-34
lines changed

docs/en/reference/caching.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require this instance, while the later has this instance as a required parameter
2424
$stmt = $conn->executeQuery($query, $params, $types, new QueryCacheProfile(0, "some key"));
2525
$stmt = $conn->executeCacheQuery($query, $params, $types, new QueryCacheProfile(0, "some key"));
2626

27-
It is also possible to pass in a the ``Doctrine\Common\Cache\Cache`` instance into the
27+
It is also possible to pass in a ``Doctrine\Common\Cache\Cache`` instance into the
2828
constructor of ``Doctrine\DBAL\Cache\QueryCacheProfile`` in which case it overrides
2929
the default cache instance:
3030

@@ -35,7 +35,7 @@ the default cache instance:
3535
new QueryCacheProfile(0, "some key", $cache);
3636

3737
In order for the data to actually be cached its necessary to ensure that the entire
38-
result set is read (easiest way to ensure this is to use ``fetchAll``) and the statement
38+
result set is read (the easiest way to ensure this is to use ``fetchAll``) and the statement
3939
object is closed:
4040

4141
::

docs/en/reference/configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ If you wanted to use the ``drizzle_pdo__mysql`` driver instead::
7777

7878
drizzle-pdo-mysql://localhost:4486/foo?charset=UTF-8
7979

80-
In the two last example above, mind the dashes instead of the
80+
In the last two examples above, mind the dashes instead of the
8181
underscores in the URL schemes.
8282

8383
For connecting to an SQLite database, the authority portion of the
@@ -155,8 +155,8 @@ Wrapper Class
155155
~~~~~~~~~~~~~
156156

157157
By default a ``Doctrine\DBAL\Connection`` is wrapped around a
158-
driver ``Connection``. The ``wrapperClass`` option allows to
159-
specify a custom wrapper implementation to use, however, a custom
158+
driver ``Connection``. The ``wrapperClass`` option allows
159+
specifying a custom wrapper implementation to use, however, a custom
160160
wrapper class must be a subclass of ``Doctrine\DBAL\Connection``.
161161

162162
Connection Details
@@ -208,7 +208,7 @@ drizzle\_pdo\_mysql
208208

209209
**Requires** drizzle plugin ``mysql_protocol`` or ``mysql_unix_socket_protocol`` to be enabled.
210210
On Ubuntu this can be done by editing ``/etc/drizzle/conf.d/mysql-protocol.cnf``
211-
or ``/etc/drizzle/conf.d/mysql-unix-socket-protocol.cnf`` and restart drizzled daemon.
211+
or ``/etc/drizzle/conf.d/mysql-unix-socket-protocol.cnf`` and restarting the drizzled daemon.
212212

213213
- ``user`` (string): Username to use when connecting to the
214214
database. Only needed if authentication is configured for drizzled.

docs/en/reference/data-retrieval-and-manipulation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ several drawbacks:
5959
you will trigger the optimization process over and over again, although
6060
it could re-use this information easily using a technique called **prepared statements**.
6161

62-
This three arguments and some more technical details hopefully convinced you to investigate
62+
These three arguments and some more technical details hopefully convinced you to investigate
6363
prepared statements for accessing your database.
6464

6565
Dynamic Parameters and Prepared Statements
@@ -179,7 +179,7 @@ on the Connection, which are all described in the API section below.
179179
Binding Types
180180
-------------
181181

182-
Doctrine DBAL extends PDOs handling of binding types in prepared statement
182+
Doctrine DBAL extends PDOs handling of binding types in prepared statements
183183
considerably. Besides the well known ``\PDO::PARAM_*`` constants you
184184
can make use of two very powerful additional features.
185185

@@ -202,7 +202,7 @@ to the appropriate vendors database format:
202202
$stmt->execute();
203203
204204
If you take a look at ``Doctrine\DBAL\Types\DateTimeType`` you will see that
205-
parts of the conversion is delegated to a method on the current database platform,
205+
parts of the conversion are delegated to a method on the current database platform,
206206
which means this code works independent of the database you are using.
207207

208208
.. note::
@@ -250,7 +250,7 @@ There are two special binding types that describe a list of integers or strings:
250250
- ``\Doctrine\DBAL\Connection::PARAM_INT_ARRAY``
251251
- ``\Doctrine\DBAL\Connection::PARAM_STR_ARRAY``
252252

253-
Using one of this constants as a type you can activate the SQLParser inside Doctrine that rewrites
253+
Using one of these constants as a type you can activate the SQLParser inside Doctrine that rewrites
254254
the SQL and flattens the specified values into the set of parameters. Consider our previous example:
255255

256256
.. code-block:: php

docs/en/reference/events.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Schema Events
4444

4545
There are multiple events in Doctrine DBAL that are triggered on schema changes
4646
of the database. It is possible to add your own event listener to be able to run
47-
your own code before changes to the database are commited. An instance of
47+
your own code before changes to the database are committed. An instance of
4848
``Doctrine\Common\EventManager`` can also be added to :doc:`platforms`.
4949

5050
A event listener class can contain one or more methods to schema events. These

docs/en/reference/known-vendor-issues.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ DateTime, DateTimeTz and Time Types
1212

1313
Postgres has a variable return format for the datatype TIMESTAMP(n)
1414
and TIME(n) if microseconds are allowed (n > 0). Whenever you save
15-
a value with microseconds = 0. PostgreSQL will return this value in
15+
a value with microseconds = 0, PostgreSQL will return this value in
1616
the format:
1717

1818
::
@@ -72,15 +72,15 @@ DateTimeTz
7272
~~~~~~~~~~
7373

7474
MySQL does not support saving timezones or offsets. The DateTimeTz
75-
type therefore behave like the DateTime type.
75+
type therefore behaves like the DateTime type.
7676

7777
Sqlite
7878
------
7979

8080
Buffered Queries and Isolation
8181
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8282

83-
Careful if you execute a ``SELECT`` query and do not iterate over the
83+
Be careful if you execute a ``SELECT`` query and do not iterate over the
8484
statements results immediately. ``UPDATE`` statements executed before iteration
8585
affect only the rows that have not been buffered into PHP memory yet. This
8686
breaks the SERIALIZABLE transaction isolation property that SQLite supposedly
@@ -106,7 +106,7 @@ DateTimeTz
106106
~~~~~~~~~~
107107

108108
Sqlite does not support saving timezones or offsets. The DateTimeTz
109-
type therefore behave like the DateTime type.
109+
type therefore behaves like the DateTime type.
110110

111111
Reverse engineering primary key order
112112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

docs/en/reference/schema-representation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ system this allows you to generate SQL code that makes your Domain
1313
model work.
1414

1515
You will be pleased to hear, that Schema representation is
16-
completly decoupled from the Doctrine ORM though, that is you can
16+
completely decoupled from the Doctrine ORM though, that is you can
1717
also use it in any other project to implement database migrations
1818
or for SQL schema generation for any metadata model that your
1919
application has. You can easily generate a Schema, as a simple
@@ -53,13 +53,13 @@ foreign key, sequence and index changes.
5353
$saveQueries = $schemaDiff->toSaveSql($myPlatform);
5454
5555
The Save Diff mode is a specific mode that prevents the deletion of
56-
tables and sequences that might occour when making a diff of your
56+
tables and sequences that might occur when making a diff of your
5757
schema. This is often necessary when your target schema is not
5858
complete but only describes a subset of your application.
5959

6060
All methods that generate SQL queries for you make much effort to
6161
get the order of generation correct, so that no problems will ever
62-
occour with missing links of foreign keys.
62+
occur with missing links of foreign keys.
6363

6464
Schema Assets
6565
-------------

docs/en/reference/security.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ to prevent them.
1919
SQL Injection: Safe and Unsafe APIs for User Input
2020
--------------------------------------------------
2121

22-
A database library naturally falls touches the class of SQL injection security
22+
A database library naturally touches the class of SQL injection security
2323
vulnerabilities. You should read the following information carefully to
2424
understand how Doctrine can and cannot help you to prevent SQL injection.
2525

@@ -48,8 +48,8 @@ To escape user input in those scenarios use the ``Connection#quote()`` method.
4848
User input in your queries
4949
--------------------------
5050

51-
A database application necessarily requires user-input to passed to your queries.
52-
There are wrong and right ways to do this and is very important to be very strict about this:
51+
A database application necessarily requires user-input to be passed to your queries.
52+
There are wrong and right ways to do this and it is very important to be very strict about this:
5353

5454
Wrong: String Concatenation
5555
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -65,7 +65,7 @@ SQL or DQL query. For Example:
6565
6666
An attacker could inject any value into the GET variable "username" to modify the query to his needs.
6767

68-
Although DQL is a wrapper around SQL that can prevent you from some security implications, the previous
68+
Although DQL is a wrapper around SQL that can prevent some security implications, the previous
6969
example is also a threat to DQL queries.
7070

7171
.. code-block:: php
@@ -83,11 +83,11 @@ Right: Prepared Statements
8383
~~~~~~~~~~~~~~~~~~~~~~~~~~
8484

8585
You should always use prepared statements to execute your queries. Prepared statements is a two-step
86-
procedure, separating SQL query from the parameters. They are supported (and encouraged) for both
86+
procedure, separating the SQL query from the parameters. They are supported (and encouraged) for both
8787
DBAL SQL queries and for ORM DQL queries.
8888

8989
Instead of using string concatenation to insert user-input into your SQL/DQL statements you just specify
90-
either placeholders instead and then explain to the database driver which variable should be bound to
90+
placeholders and then explain to the database driver which variable should be bound to
9191
which placeholder. Each database vendor supports different placeholder styles:
9292

9393
- All PDO Drivers support positional (using question marks) and named placeholders (:param1, :foo, :bar).
@@ -153,5 +153,5 @@ the ``Connection#quote`` method:
153153
// Parameter quoting
154154
$sql = "SELECT * FROM users WHERE name = " . $connection->quote($_GET['username'], \PDO::PARAM_STR);
155155
156-
This method is only available for SQL, not for DQL. For DQL it is always encouraged to use prepared
156+
This method is only available for SQL, not for DQL. For DQL you are always encouraged to use prepared
157157
statements not only for security, but also for caching reasons.

docs/en/reference/sharding.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Sharding
33

44
.. note::
55

6-
The sharding extension is currently in transition from a seperate Project
6+
The sharding extension is currently in transition from a separate Project
77
into DBAL. Class names may differ.
88

99
Starting with 2.3 Doctrine DBAL contains some functionality to simplify the

docs/en/reference/sharding_azure_tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SQLAzure Sharding Tutorial
33

44
.. note::
55

6-
The sharding extension is currently in transition from a seperate Project
6+
The sharding extension is currently in transition from a separate Project
77
into DBAL. Class names may differ.
88

99
This tutorial builds upon the `Brian Swans tutorial
@@ -89,7 +89,7 @@ to create the database schema and then have Doctrine turn it into DDL
8989
statements.
9090

9191
We will recreate Brians example schema with Doctrine DBAL. Instead of having to
92-
create federations and schema seperately as in his example, Doctrine will do it
92+
create federations and schema separately as in his example, Doctrine will do it
9393
all in one step:
9494

9595
.. code-block:: php

docs/en/reference/supporting-other-databases.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ Implementation Steps in Detail
3434
2. Make a copy of tests/dbproperties.xml.dev and adjust the values to your driver shortcut and testdatabase.
3535
3. Create three new classes implementing ``\Doctrine\DBAL\Driver\Connection``, ``\Doctrine\DBAL\Driver\Statement``
3636
and ``Doctrine\DBAL\Driver``. You can take a look at the ``Doctrine\DBAL\Driver\OCI8`` driver.
37-
4. You can run the testsuite of your new database driver by calling "phpunit -c .". You can set your own settings in phpunit.xml file.
38-
5. Start implementing AbstractPlatform and AbstractSchemaManager. Other implementations should serve as good example.
37+
4. You can run the testsuite of your new database driver by calling "phpunit -c .". You can set your own settings in the phpunit.xml file.
38+
5. Start implementing AbstractPlatform and AbstractSchemaManager. Other implementations should serve as good examples.

0 commit comments

Comments
 (0)