Completed
Push — master ( 343c0b...ad806c )
by Sebastian
08:09
created
src/Backup/Sync/AmazonS3v3.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     {
113 113
         // remove leading slash
114 114
         return (substr($this->path, 0, 1) == '/' ? substr($this->path, 1) : $this->path)
115
-               . (substr($this->path, -1, 1) == '/' ? '' : '/')
116
-               . $target->getFilename();
115
+                . (substr($this->path, -1, 1) == '/' ? '' : '/')
116
+                . $target->getFilename();
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $s3->registerStreamWrapper();
64 64
         $source = $this->getFileHandle($target->getPathname(), 'r');
65
-        $stream = $this->getFileHandle('s3://' . $this->bucket . '/' . $this->getUploadPath($target), 'w');
66
-        while(!feof($source)) {
65
+        $stream = $this->getFileHandle('s3://'.$this->bucket.'/'.$this->getUploadPath($target), 'w');
66
+        while (!feof($source)) {
67 67
             fwrite($stream, fread($source, 4096));
68 68
         }
69 69
         fclose($stream);
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         $handle = fopen($path, $mode);
99 99
         if (!is_resource($handle)) {
100
-            throw new Exception('fopen failed: could not open stream ' . $path);
100
+            throw new Exception('fopen failed: could not open stream '.$path);
101 101
         }
102 102
         return $handle;
103 103
     }
Please login to merge, or discard this patch.