@@ -123,7 +123,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -17,7 +17,7 @@ |
||
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 |
@@ -31,7 +31,7 @@ |
||
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)); |