Completed
Pull Request — master (#1808)
by Tobias
05:20
created
tests/Connection/Strategy/RoundRobinTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         ];
77 77
 
78 78
         $count = 0;
79
-        $callback = function ($connection, $exception, $client) use (&$count): void {
79
+        $callback = function($connection, $exception, $client) use (&$count): void {
80 80
             ++$count;
81 81
         };
82 82
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         ];
106 106
 
107 107
         $count = 0;
108
-        $client = $this->_getClient(['roundRobin' => true], function () use (&$count): void {
108
+        $client = $this->_getClient(['roundRobin' => true], function() use (&$count): void {
109 109
             ++$count;
110 110
         });
111 111
 
Please login to merge, or discard this patch.
tests/Connection/Strategy/SimpleTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         ];
64 64
 
65 65
         $count = 0;
66
-        $callback = function ($connection, $exception, $client) use (&$count): void {
66
+        $callback = function($connection, $exception, $client) use (&$count): void {
67 67
             ++$count;
68 68
         };
69 69
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         ];
93 93
 
94 94
         $count = 0;
95
-        $client = $this->_getClient([], function () use (&$count): void {
95
+        $client = $this->_getClient([], function() use (&$count): void {
96 96
             ++$count;
97 97
         });
98 98
 
Please login to merge, or discard this patch.
tests/Connection/Strategy/StrategyFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function testCreateCallbackStrategy(): void
24 24
     {
25
-        $callback = function ($connections): void {
25
+        $callback = function($connections): void {
26 26
         };
27 27
 
28 28
         $strategy = StrategyFactory::create($callback);
Please login to merge, or discard this patch.
src/ClientConfiguration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             } elseif ('true' === $optionValue) {
96 96
                 $optionValue = true;
97 97
             } elseif (\is_numeric($optionValue)) {
98
-                $optionValue = (int)$optionValue;
98
+                $optionValue = (int) $optionValue;
99 99
             }
100 100
 
101 101
             $clientConfiguration->set($optionName, $optionValue);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
     private static function parseDsn(Url $dsn): array
108 108
     {
109
-        $data = ['host' => $dsn->getHost(),];
109
+        $data = ['host' => $dsn->getHost(), ];
110 110
 
111 111
         if (null !== $dsn->getScheme()) {
112 112
             $data['transport'] = $dsn->getScheme();
Please login to merge, or discard this patch.