Passed
Pull Request — master (#407)
by Kirill
09:34 queued 04:36
created
src/storage/src/UriResolver.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function resolveAll(iterable $uris): iterable
56 56
     {
57
-        foreach ($uris as $uri) {
57
+        foreach ($uris as $uri){
58 58
             yield $this->resolve($uri);
59 59
         }
60 60
     }
@@ -64,15 +64,15 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function resolve($uri)
66 66
     {
67
-        try {
67
+        try{
68 68
             $uri = $this->parser->parse($uri);
69 69
 
70 70
             return $this->getResolver($uri->getStorage())
71 71
                 ->buildUrl($uri->getPath())
72 72
             ;
73
-        } catch (StorageException $e) {
73
+        }catch (StorageException $e){
74 74
             throw $e;
75
-        } catch (\Throwable $e) {
75
+        }catch (\Throwable $e){
76 76
             throw new ResolveException($e->getMessage(), (int)$e->getCode(), $e);
77 77
         }
78 78
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     protected function getResolver(string $fileSystem): AdapterResolverInterface
90 90
     {
91
-        if (!\array_key_exists($fileSystem, $this->resolvers)) {
91
+        if (!\array_key_exists($fileSystem, $this->resolvers)){
92 92
             $this->resolvers[$fileSystem] = $this->prepareResolverForFileSystem(
93 93
                 $this->config->buildFileSystemInfo($fileSystem)
94 94
             );
Please login to merge, or discard this patch.
Braces   +12 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,8 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function resolveAll(iterable $uris): iterable
56 56
     {
57
-        foreach ($uris as $uri) {
57
+        foreach ($uris as $uri)
58
+        {
58 59
             yield $this->resolve($uri);
59 60
         }
60 61
     }
@@ -64,15 +65,20 @@  discard block
 block discarded – undo
64 65
      */
65 66
     public function resolve($uri)
66 67
     {
67
-        try {
68
+        try
69
+        {
68 70
             $uri = $this->parser->parse($uri);
69 71
 
70 72
             return $this->getResolver($uri->getStorage())
71 73
                 ->buildUrl($uri->getPath())
72 74
             ;
73
-        } catch (StorageException $e) {
75
+        }
76
+        catch (StorageException $e)
77
+        {
74 78
             throw $e;
75
-        } catch (\Throwable $e) {
79
+        }
80
+        catch (\Throwable $e)
81
+        {
76 82
             throw new ResolveException($e->getMessage(), (int)$e->getCode(), $e);
77 83
         }
78 84
     }
@@ -88,7 +94,8 @@  discard block
 block discarded – undo
88 94
      */
89 95
     protected function getResolver(string $fileSystem): AdapterResolverInterface
90 96
     {
91
-        if (!\array_key_exists($fileSystem, $this->resolvers)) {
97
+        if (!\array_key_exists($fileSystem, $this->resolvers))
98
+        {
92 99
             $this->resolvers[$fileSystem] = $this->prepareResolverForFileSystem(
93 100
                 $this->config->buildFileSystemInfo($fileSystem)
94 101
             );
Please login to merge, or discard this patch.