Completed
Pull Request — master (#104)
by Thibaud
03:23
created
src/Parser/ZipOutputParser.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,9 +71,9 @@
 block discarded – undo
71 71
         return $members;
72 72
     }
73 73
 
74
-      /**
75
-     * @inheritdoc
76
-     */
74
+        /**
75
+         * @inheritdoc
76
+         */
77 77
     public function parseInflatorVersion($output)
78 78
     {
79 79
         $lines = array_values(array_filter(explode("\n", $output, 3)));
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
             $matches = array();
45 45
 
46 46
             // 785  2012-10-24 10:39  file
47
-            if (!preg_match_all("#".
48
-                self::LENGTH    . "\s+" . // match (785)
49
-                self::ISO_DATE  . "\s+" . // match (2012-10-24 10:39)
50
-                self::FILENAME  .         // match (file)
47
+            if (!preg_match_all("#" .
48
+                self::LENGTH . "\s+" . // match (785)
49
+                self::ISO_DATE . "\s+" . // match (2012-10-24 10:39)
50
+                self::FILENAME . // match (file)
51 51
                 "#",
52 52
                 $line, $matches, PREG_SET_ORDER
53 53
             )) {
Please login to merge, or discard this patch.
src/ProcessBuilder/ProcessBuilderFactoryInterface.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
 
17 17
 interface ProcessBuilderFactoryInterface
18 18
 {
19
-     /**
20
-     * Returns a new instance of Symfony ProcessBuilder
21
-     *
22
-     * @return ProcessBuilder
23
-     *
24
-     * @throws InvalidArgumentException
25
-     */
19
+        /**
20
+         * Returns a new instance of Symfony ProcessBuilder
21
+         *
22
+         * @return ProcessBuilder
23
+         *
24
+         * @throws InvalidArgumentException
25
+         */
26 26
     public function create();
27 27
 
28 28
     /**
Please login to merge, or discard this patch.
src/Resource/ResourceCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function __construct($context, array $elements, $temporary)
29 29
     {
30
-        array_walk($elements, function ($element) {
30
+        array_walk($elements, function($element) {
31 31
             if (!$element instanceof Resource) {
32 32
                 throw new InvalidArgumentException('ResourceCollection only accept Resource elements');
33 33
             }
Please login to merge, or discard this patch.
src/Resource/Teleporter/AbstractTeleporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         $target = $this->getTarget($context, $resource);
33 33
 
34
-        if (! file_exists(dirname($target)) && false === mkdir(dirname($target))) {
34
+        if (!file_exists(dirname($target)) && false === mkdir(dirname($target))) {
35 35
             throw new IOException(sprintf('Could not create parent directory %s', dirname($target)));
36 36
         }
37 37
 
Please login to merge, or discard this patch.
src/Adapter/AbstractAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,6 +247,6 @@
 block discarded – undo
247 247
             throw new InvalidArgumentException(sprintf('Target path %s is not writeable.', $directory));
248 248
         }
249 249
 
250
-        return realpath($directory).'/'.PathUtil::basename($path);
250
+        return realpath($directory) . '/' . PathUtil::basename($path);
251 251
     }
252 252
 }
Please login to merge, or discard this patch.
src/Resource/Resource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             return null;
88 88
         }
89 89
 
90
-        if (PathUtil::basename($this->original)  === $this->target) {
90
+        if (PathUtil::basename($this->original) === $this->target) {
91 91
             return dirname($this->original);
92 92
         }
93 93
     }
Please login to merge, or discard this patch.
src/Resource/Teleporter/LocalTeleporter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Alchemy\Zippy\Exception\IOException;
16 16
 use Alchemy\Zippy\Exception\InvalidArgumentException;
17 17
 use Alchemy\Zippy\Resource\ResourceLocator;
18
-use Alchemy\Zippy\Resource\TargetLocator;
19 18
 use Symfony\Component\Filesystem\Filesystem;
20 19
 use Symfony\Component\Filesystem\Exception\IOException as SfIOException;
21 20
 
Please login to merge, or discard this patch.
src/Resource/Reader/Stream/StreamReader.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
34 34
     public function getContentsAsStream()
35 35
     {
36 36
         $stream = is_resource($this->resource->getOriginal()) ?
37
-            $this->resource->getOriginal() :
38
-            @fopen($this->resource->getOriginal(), 'rb');
37
+            $this->resource->getOriginal() : @fopen($this->resource->getOriginal(), 'rb');
39 38
 
40 39
         return $stream;
41 40
     }
Please login to merge, or discard this patch.
src/Resource/Reader/Guzzle/LegacyGuzzleReaderFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
     {
22 22
         $this->client = $client;
23 23
 
24
-        if (! $this->client) {
24
+        if (!$this->client) {
25 25
             $this->client = new Client();
26 26
 
27
-            $this->client->getEventDispatcher()->addListener('request.error', function (Event $event) {
27
+            $this->client->getEventDispatcher()->addListener('request.error', function(Event $event) {
28 28
                 // override guzzle default behavior of throwing exceptions
29 29
                 // when 4xx & 5xx responses are encountered
30 30
                 $event->stopPropagation();
Please login to merge, or discard this patch.