Passed
Push — test ( 5d7f0b...366354 )
by Tom
03:55
created
src/PharBuild/Timestamps.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             $this->contents = substr_replace($this->contents, pack('L', $timestamp), $pos, 4);
98 98
 
99 99
             // skip timestamp, compressed file size and crc32 checksum
100
-            $pos += 3*4;
100
+            $pos += 3 * 4;
101 101
 
102 102
             // update or skip file flags - see Bug #77022, use 0644 over 0666
103 103
             //                           - see Bug #79082, use 0644 over 0664
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         );
144 144
 
145 145
         if (!isset($algos[$signatureAlgo])) {
146
-            throw new \UnexpectedValueException('Invalid hash algorithm given: '.$signatureAlgo.' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore
146
+            throw new \UnexpectedValueException('Invalid hash algorithm given: ' . $signatureAlgo . ' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore
147 147
         }
148 148
         $algo = $algos[$signatureAlgo];
149 149
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         $this->contents = substr($this->contents, 0, $pos) . $signature;
159 159
 
160
-        return (bool) file_put_contents($path, $this->contents);
160
+        return (bool)file_put_contents($path, $this->contents);
161 161
     }
162 162
 
163 163
     /**
@@ -211,11 +211,11 @@  discard block
 block discarded – undo
211 211
             $pos += 4 + $filenameLength;
212 212
 
213 213
             // skip filesize and timestamp
214
-            $pos += 2*4;
214
+            $pos += 2 * 4;
215 215
 
216 216
             $compressedSizes += $this->readUint($pos, 4);
217 217
             // skip compressed file size, crc32 checksum and file flags
218
-            $pos += 3*4;
218
+            $pos += 3 * 4;
219 219
 
220 220
             $metadataLength = $this->readUint($pos, 4);
221 221
             $pos += 4 + $metadataLength;
Please login to merge, or discard this patch.
test/unit/Runner/EnvTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@
 block discarded – undo
249 249
     {
250 250
         $env = Env::createEx();
251 251
         $env->collect(new ArgsTester(), array());
252
-        $expected = array (
252
+        $expected = array(
253 253
             0 => 'e',
254 254
             1 => 'BITBUCKET_BUILD_NUMBER=0',
255 255
             2 => 'e',
Please login to merge, or discard this patch.
test/unit/Runner/Docker/Binary/UnpackagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
         $unpackager->getLocalBinary($package);
159 159
         $this->addToAssertionCount(1);
160 160
 
161
-        $package['binary_sha256']  = '42';
161
+        $package['binary_sha256'] = '42';
162 162
 
163 163
         try {
164 164
             $unpackager->getLocalBinary($package);
Please login to merge, or discard this patch.