@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public $retries; |
| 27 | 27 | |
| 28 | - public $retries_attempts =0; |
|
| 28 | + public $retries_attempts = 0; |
|
| 29 | 29 | |
| 30 | 30 | public function __construct(array $connections, SelectorInterface $strategy, int $retries) |
| 31 | 31 | { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | public function getConnection(): Connection |
| 53 | 53 | { |
| 54 | 54 | $this->retries_attempts++; |
| 55 | - $connection = $this->strategy->getConnection($this->connections); |
|
| 55 | + $connection = $this->strategy->getConnection($this->connections); |
|
| 56 | 56 | if ($connection->isAlive()) { |
| 57 | 57 | return $connection; |
| 58 | 58 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $exMsg = 'After %d retr%s to %d node%s, connection has failed. No more retries left.'; |
| 63 | 63 | $connCount = count($this->connections); |
| 64 | 64 | throw new NoMoreNodesException( |
| 65 | - sprintf($exMsg, $this->retries, $this->retries > 1 ? 'ies' : 'y', $connCount, $connCount > 1 ? 's' : '' ) |
|
| 65 | + sprintf($exMsg, $this->retries, $this->retries > 1 ? 'ies' : 'y', $connCount, $connCount > 1 ? 's' : '') |
|
| 66 | 66 | ); |
| 67 | 67 | } |
| 68 | 68 | |