Passed
Push — master ( 586424...ee650e )
by
unknown
04:09
created
src/Manticoresearch/Connection/ConnectionPool.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.