Passed
Push — master ( 96a53b...3e41c0 )
by Filippo
01:44
created
src/Surfer/Adapter/AbstractAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     if (preg_match(self::SCHEME_HOST_PORT_URI, $server, $matches)) {
77 77
       $this->scheme = isset($matches['scheme']) ? $matches['scheme'] : "tcp://";
78 78
       $this->host = isset($matches['host']) ? $matches['host'] : self::DEFAULT_HOST;
79
-      $this->port = isset($matches['port']) ? (int) substr($matches['port'], 1) : self::$defaultPorts[$this->scheme];
79
+      $this->port = isset($matches['port']) ? (int)substr($matches['port'], 1) : self::$defaultPorts[$this->scheme];
80 80
     }
81 81
     else // Match attempt failed.
82 82
       throw new \InvalidArgumentException(sprintf("'%s' is not a valid URI.", $server));
Please login to merge, or discard this patch.