Completed
Branch full-rewrite (3b3ffb)
by Thibaud
03:12
created
src/Zippy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@
 block discarded – undo
72 72
             $this->packagedResourceIteratorResolver
73 73
         );
74 74
 
75
-        if (! is_array($files) && ! $files instanceof \Traversable) {
76
-            $files = [ $files ];
75
+        if (!is_array($files) && !$files instanceof \Traversable) {
76
+            $files = [$files];
77 77
         }
78 78
 
79 79
         foreach ($files as $file) {
Please login to merge, or discard this patch.
src/Resource/Reader/RawStreamReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     public function __construct($resource)
13 13
     {
14
-        if (! is_resource($resource)) {
14
+        if (!is_resource($resource)) {
15 15
             throw new \InvalidArgumentException('Invalid resource.');
16 16
         }
17 17
 
Please login to merge, or discard this patch.
src/Adapter/Pecl/Rar/RarResourceIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     protected  function buildIterator()
38 38
     {
39
-        return new MappingArrayIterator($this->archive->getEntries(), function ($current) {
39
+        return new MappingArrayIterator($this->archive->getEntries(), function($current) {
40 40
             return ResourceUri::fromString($current->getName());
41 41
         });
42 42
     }
Please login to merge, or discard this patch.
src/Adapter/Pecl/RarAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         ProtocolBasedReaderResolver $readerResolver,
22 22
         ProtocolBasedWriterResolver $writerResolver
23 23
     ) {
24
-        $iteratorResolver->addFactory('rar', function ($container) {
24
+        $iteratorResolver->addFactory('rar', function($container) {
25 25
             return new RarResourceIterator($container);
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/Adapter/Pecl/ZipAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         ProtocolBasedReaderResolver $readerResolver,
22 22
         ProtocolBasedWriterResolver $writerResolver
23 23
     ) {
24
-        $iteratorResolver->addFactory('zip', function ($container) {
24
+        $iteratorResolver->addFactory('zip', function($container) {
25 25
             return new ZipResourceIterator($container);
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/Adapter/FileAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         $writerResolver->addWriter(new StreamWriter(), 'file');
27 27
 
28
-        $iteratorResolver->addFactory('file', function (PackagedResource $container) use ($iteratorResolver) {
28
+        $iteratorResolver->addFactory('file', function(PackagedResource $container) use ($iteratorResolver) {
29 29
             $extension = PathUtil::extractExtension($container->getRelativeUri()->getResource());
30 30
             $factory = $iteratorResolver->getFactory($extension);
31 31
 
Please login to merge, or discard this patch.
src/Adapter/Pear/TarAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         ProtocolBasedReaderResolver $readerResolver,
22 22
         ProtocolBasedWriterResolver $writerResolver
23 23
     ) {
24
-        $iteratorResolver->addFactory('tar', function ($container) {
24
+        $iteratorResolver->addFactory('tar', function($container) {
25 25
             return new TarResourceIterator($container);
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/Adapter/Pear/Tar/TarResourceIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     protected function buildIterator()
53 53
     {
54
-        return new MappingArrayIterator($this->archive->listContent(), function ($current) {
54
+        return new MappingArrayIterator($this->archive->listContent(), function($current) {
55 55
             return ResourceUri::fromString($current['filename']);
56 56
         });
57 57
     }
Please login to merge, or discard this patch.
src/Adapter/Guzzle/GuzzleReaderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         $this->client = $client;
21 21
 
22
-        if (! $this->client) {
22
+        if (!$this->client) {
23 23
             $this->client = new Client();
24 24
         }
25 25
     }
Please login to merge, or discard this patch.