@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function addWriter(ResourceWriter $writer, $protocols) |
26 | 26 | { |
27 | - $protocols = is_array($protocols) ? $protocols : [ $protocols ]; |
|
27 | + $protocols = is_array($protocols) ? $protocols : [$protocols]; |
|
28 | 28 | $index = count($this->writers); |
29 | 29 | |
30 | 30 | $this->writers[$index] = $writer; |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function resolveWriter(ResourceUri $resource) |
44 | 44 | { |
45 | - if (! array_key_exists($resource->getProtocol(), $this->protocolWriterIndexes)) { |
|
46 | - throw new \RuntimeException('Unsupported protocol: ' . $resource->getProtocol() . '( ' . $resource . ')'); |
|
45 | + if (!array_key_exists($resource->getProtocol(), $this->protocolWriterIndexes)) { |
|
46 | + throw new \RuntimeException('Unsupported protocol: ' . $resource->getProtocol() . '( ' . $resource . ')'); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | $index = $this->protocolWriterIndexes[$resource->getProtocol()]; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function addFactory(ResourceReaderFactory $factory, $protocols) |
27 | 27 | { |
28 | - $protocols = is_array($protocols) ? $protocols : [ $protocols ]; |
|
28 | + $protocols = is_array($protocols) ? $protocols : [$protocols]; |
|
29 | 29 | $index = count($this->factories); |
30 | 30 | |
31 | 31 | $this->factories[$index] = $factory; |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function resolveReader(ResourceUri $resource) |
45 | 45 | { |
46 | - if (! array_key_exists($resource->getProtocol(), $this->protocolFactoryIndexes)) { |
|
47 | - throw new \RuntimeException('Unsupported protocol: ' . $resource->getProtocol() . '( ' . $resource . ')'); |
|
46 | + if (!array_key_exists($resource->getProtocol(), $this->protocolFactoryIndexes)) { |
|
47 | + throw new \RuntimeException('Unsupported protocol: ' . $resource->getProtocol() . '( ' . $resource . ')'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | $index = $this->protocolFactoryIndexes[$resource->getProtocol()]; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | public function getFactory($protocol) |
23 | 23 | { |
24 | - if (! isset($this->factories[$protocol])) { |
|
24 | + if (!isset($this->factories[$protocol])) { |
|
25 | 25 | throw new \RuntimeException('Unsupported protocol: ' . $protocol); |
26 | 26 | } |
27 | 27 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | $iterator = $factory($container); |
38 | 38 | |
39 | - if (! $iterator) { |
|
39 | + if (!$iterator) { |
|
40 | 40 | throw new \RuntimeException('Unsupported protocol: ' . $protocol); |
41 | 41 | } |
42 | 42 |