Completed
Branch full-rewrite (3b3ffb)
by Thibaud
03:12
created
src/Resource/Resolver/ProtocolBasedWriterResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()];
Please login to merge, or discard this patch.
src/Resource/Resolver/ProtocolBasedReaderResolver.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 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
 block discarded – undo
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()];
Please login to merge, or discard this patch.
src/Package/Resolver/ProtocolBasedIteratorResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.