Browse Source

Fix typos and grammar.

Mark Story 8 years ago
parent
commit
167ae78b87

+ 3 - 3
src/Core/Retry/CommandRetry.php

@@ -19,21 +19,21 @@ use Exception;
 /**
  * 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
      */

+ 1 - 1
src/Core/Retry/RetryStrategyInterface.php

@@ -17,7 +17,7 @@ namespace Cake\Core\Retry;
 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

+ 2 - 2
src/Database/Connection.php

@@ -185,8 +185,8 @@ class Connection implements ConnectionInterface
     }
 
     /**
-     * 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
      */

+ 3 - 3
src/Database/Retry/ReconnectStrategy.php

@@ -25,9 +25,9 @@ use Exception;
 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
      */