Passed
Push — master ( cf04e8...110ba8 )
by Petr
02:39
created
php-src/Uploader/TargetSearch.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     public function getTemporaryTargetLocation(): string
124 124
     {
125 125
         $this->checkFileBase();
126
-        return $this->targetDir . $this->fileBase . $this->addExt(). static::FILE_UPLOAD_SUFF;
126
+        return $this->targetDir . $this->fileBase . $this->addExt() . static::FILE_UPLOAD_SUFF;
127 127
     }
128 128
 
129 129
     /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             do {
169 169
                 $location = $this->fileBase . static::FILE_VER_SEP . $i;
170 170
                 $i++;
171
-            } while ( $this->dataStorage->exists($this->targetDir . $location . $ext) );
171
+            } while ($this->dataStorage->exists($this->targetDir . $location . $ext));
172 172
             $this->fileBase = $location;
173 173
         }
174 174
     }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
     protected function addExt(): string
210 210
     {
211
-        return ($this->hasExt() ? static::FILE_EXT_SEP . $this->fileExt : '' );
211
+        return ($this->hasExt() ? static::FILE_EXT_SEP . $this->fileExt : '');
212 212
     }
213 213
 
214 214
     protected function hasExt(): bool
Please login to merge, or discard this patch.
php-src/Uploader/Calculates.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function __construct(int $bytesPerPart = null)
19 19
     {
20
-        $this->bytesPerPart = empty($bytesPerPart) ? static::DEFAULT_BYTES_PER_PART : $bytesPerPart ;
20
+        $this->bytesPerPart = empty($bytesPerPart) ? static::DEFAULT_BYTES_PER_PART : $bytesPerPart;
21 21
     }
22 22
 
23 23
     public function getBytesPerPart(): int
Please login to merge, or discard this patch.
php-src/DataStorage/VolumeObject.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
         if (false === @$file->ftell()) {
32 32
             throw new UploadException($this->lang->uppCannotOpenFile($location));
33 33
         }
34
-        $position = is_null($seek) ? @$file->fseek(0, SEEK_END) : @$file->fseek($seek) ;
34
+        $position = is_null($seek) ? @$file->fseek(0, SEEK_END) : @$file->fseek($seek);
35 35
         if (-1 == $position) {
36 36
             unset($file);
37 37
             throw new UploadException($this->lang->uppCannotSeekFile($location));
Please login to merge, or discard this patch.