Completed
Pull Request — master (#1808)
by Tobias
05:20
created
tests/ClientConfigurationTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     {
74 74
         $configuration = ClientConfiguration::fromDsn('pool(http://[email protected] http://127.0.0.2/bar?timeout=4)?extra=abc&username=tobias');
75 75
         $expected = [
76
-             'host' => null,
76
+                'host' => null,
77 77
             'port' => null,
78 78
             'path' => null,
79 79
             'url' => null,
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.