Skip to content

Commit 167ae78

Browse files
committed
Fix typos and grammar.
1 parent 624fec4 commit 167ae78

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/Core/Retry/CommandRetry.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@
1919
/**
2020
* Allows any action to be retried in case of an exception.
2121
*
22-
* This class can be parametrized with an strategy, which will be followed
22+
* This class can be parametrized with a strategy, which will be followed
2323
* to determine whether or not the action should be retried.
2424
*/
2525
class CommandRetry
2626
{
2727

2828
/**
29-
* The strategy to follow should the executed action fail
29+
* The strategy to follow should the executed action fail.
3030
*
3131
* @var \Cake\Core\Retry\RetryStrategyInterface
3232
*/
3333
protected $strategy;
3434

3535
/**
36-
* The number of retries to perform in case of failure
36+
* The number of retries to perform in case of failure.
3737
*
3838
* @var int
3939
*/

src/Core/Retry/RetryStrategyInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Exception;
1818

1919
/**
20-
* Used to instruct the CommandRetry object on whether or not a retry
20+
* Used to instruct a CommandRetry object on whether or not a retry
2121
* for an action should be performed
2222
*/
2323
interface RetryStrategyInterface

src/Database/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ public function setDriver($driver, $config = [])
185185
}
186186

187187
/**
188-
* Get the retry wrapper object, that is used to recover from server disconnects
189-
* while performing ceratain database actions, such as executing a query
188+
* Get the retry wrapper object that is allows recovery from server disconnects
189+
* while performing certain database actions, such as executing a query.
190190
*
191191
* @return \Cake\Core\Retry\CommandRetry The retry wrapper
192192
*/

src/Database/Retry/ReconnectStrategy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
class ReconnectStrategy implements RetryStrategyInterface
2626
{
2727
/**
28-
* The list of errors strings to match when looking for disconnection error.
29-
* This is a static variable to avoid holding all the strings in the array can
30-
* be inlined by the opcache.
28+
* The list of error strings to match when looking for a disconnection error.
29+
*
30+
* This is a static variable to enable opcache to inline the values.
3131
*
3232
* @var array
3333
*/

0 commit comments

Comments
 (0)