Skip to content

Commit

Permalink
Fix typos and grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 29, 2018
1 parent 624fec4 commit 167ae78
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Core/Retry/CommandRetry.php
Expand Up @@ -19,21 +19,21 @@
/**
* Allows any action to be retried in case of an exception.
*
* This class can be parametrized with an strategy, which will be followed
* This class can be parametrized with a strategy, which will be followed
* to determine whether or not the action should be retried.
*/
class CommandRetry
{

/**
* The strategy to follow should the executed action fail
* The strategy to follow should the executed action fail.
*
* @var \Cake\Core\Retry\RetryStrategyInterface
*/
protected $strategy;

/**
* The number of retries to perform in case of failure
* The number of retries to perform in case of failure.
*
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Retry/RetryStrategyInterface.php
Expand Up @@ -17,7 +17,7 @@
use Exception;

/**
* Used to instruct the CommandRetry object on whether or not a retry
* Used to instruct a CommandRetry object on whether or not a retry
* for an action should be performed
*/
interface RetryStrategyInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Database/Connection.php
Expand Up @@ -185,8 +185,8 @@ public function setDriver($driver, $config = [])
}

/**
* Get the retry wrapper object, that is used to recover from server disconnects
* while performing ceratain database actions, such as executing a query
* Get the retry wrapper object that is allows recovery from server disconnects
* while performing certain database actions, such as executing a query.
*
* @return \Cake\Core\Retry\CommandRetry The retry wrapper
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Database/Retry/ReconnectStrategy.php
Expand Up @@ -25,9 +25,9 @@
class ReconnectStrategy implements RetryStrategyInterface
{
/**
* The list of errors strings to match when looking for disconnection error.
* This is a static variable to avoid holding all the strings in the array can
* be inlined by the opcache.
* The list of error strings to match when looking for a disconnection error.
*
* This is a static variable to enable opcache to inline the values.
*
* @var array
*/
Expand Down

0 comments on commit 167ae78

Please sign in to comment.