@@ -17,7 +17,7 @@ |
||
17 | 17 | protected $keyLength = 64; |
18 | 18 | |
19 | 19 | /** @var string[] */ |
20 | - public static $possibilities = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']; |
|
20 | + public static $possibilities = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; |
|
21 | 21 | |
22 | 22 | public function fromSharedKey(string $key): string |
23 | 23 | { |
@@ -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 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | if (false === @$file->ftell()) { |
32 | 32 | throw new UploadException($this->getUppLang()->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->getUppLang()->uppCannotSeekFile($location)); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function __construct(int $bytesPerPart = null) |
22 | 22 | { |
23 | - $this->bytesPerPart = empty($bytesPerPart) ? static::DEFAULT_BYTES_PER_PART : $bytesPerPart ; |
|
23 | + $this->bytesPerPart = empty($bytesPerPart) ? static::DEFAULT_BYTES_PER_PART : $bytesPerPart; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |