Completed
Push — master ( cc70d1...92c773 )
by Thibaud
02:31
created
src/Parser/BSDTarOutputParser.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,13 +44,13 @@
 block discarded – undo
44 44
             // drw-rw-r--  0 toto titi     0 Jan  3  1980 practice/
45 45
             // -rw-rw-r--  0 toto titi     10240 Jan 22 13:31 practice/records
46 46
             if (!preg_match_all("#" .
47
-                self::PERMISSIONS   . "\s+" .   // match (drw-r--r--)
48
-                self::HARD_LINK     . "\s+" .   // match (1)
49
-                self::OWNER         . "\s" .    // match (toto)
50
-                self::GROUP         . "\s+" .   // match (titi)
51
-                self::FILESIZE      . "\s+" .   // match (0)
52
-                self::DATE          . "\s+" .   // match (Jan  3  1980)
53
-                self::FILENAME      .           // match (practice)
47
+                self::PERMISSIONS . "\s+" . // match (drw-r--r--)
48
+                self::HARD_LINK . "\s+" . // match (1)
49
+                self::OWNER . "\s" . // match (toto)
50
+                self::GROUP . "\s+" . // match (titi)
51
+                self::FILESIZE . "\s+" . // match (0)
52
+                self::DATE . "\s+" . // match (Jan  3  1980)
53
+                self::FILENAME . // match (practice)
54 54
                 "#", $line, $matches, PREG_SET_ORDER
55 55
             )) {
56 56
                 continue;
Please login to merge, or discard this patch.
src/Parser/GNUTarOutputParser.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
36 36
             $matches = array();
37 37
 
38 38
             // -rw-r--r-- gray/staff    62373 2006-06-09 12:06 apple
39
-            if (!preg_match_all("#".
40
-                self::PERMISSIONS       . "\s+" . // match (-rw-r--r--)
41
-                self::OWNER             . "/"   . // match (gray)
42
-                self::GROUP             . "\s+" . // match (staff)
43
-                self::FILESIZE          . "\s+" . // match (62373)
44
-                self::ISO_DATE          . "\s+" . // match (2006-06-09 12:06)
45
-                self::FILENAME          .         // match (apple)
39
+            if (!preg_match_all("#" .
40
+                self::PERMISSIONS . "\s+" . // match (-rw-r--r--)
41
+                self::OWNER . "/" . // match (gray)
42
+                self::GROUP . "\s+" . // match (staff)
43
+                self::FILESIZE . "\s+" . // match (62373)
44
+                self::ISO_DATE . "\s+" . // match (2006-06-09 12:06)
45
+                self::FILENAME . // match (apple)
46 46
                 "#",
47 47
                 $line, $matches, PREG_SET_ORDER
48 48
             )) {
Please login to merge, or discard this patch.
src/Parser/ZipOutputParser.php 1 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/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/Resource/Teleporter/GuzzleTeleporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     {
62 62
         $client = new Client();
63 63
 
64
-        $client->getEventDispatcher()->addListener('request.error', function (Event $event) {
64
+        $client->getEventDispatcher()->addListener('request.error', function(Event $event) {
65 65
             // override guzzle default behavior of throwing exceptions
66 66
             // when 4xx & 5xx responses are encountered
67 67
             $event->stopPropagation();
Please login to merge, or discard this patch.
src/Resource/TeleporterContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     private function getTeleporter($typeName)
66 66
     {
67
-        if (! isset($this->teleporters[$typeName])) {
67
+        if (!isset($this->teleporters[$typeName])) {
68 68
             $factory = $this->factories[$typeName];
69 69
             $this->teleporters[$typeName] = $factory();
70 70
         }
@@ -81,16 +81,16 @@  discard block
 block discarded – undo
81 81
     {
82 82
         $container = new static();
83 83
 
84
-        $container->factories['stream-teleporter'] = function () {
84
+        $container->factories['stream-teleporter'] = function() {
85 85
             return StreamTeleporter::create();
86 86
         };
87 87
 
88
-        $container->factories['local-teleporter'] = function () {
88
+        $container->factories['local-teleporter'] = function() {
89 89
             return LocalTeleporter::create();
90 90
         };
91 91
 
92 92
         if (class_exists('Guzzle\Http\Client')) {
93
-            $container->factories['guzzle-teleporter'] = function () {
93
+            $container->factories['guzzle-teleporter'] = function() {
94 94
                 return GuzzleTeleporter::create();
95 95
             };
96 96
         }
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.