@@ -121,14 +121,14 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @param mixed $offset |
123 | 123 | */ |
124 | - public function offsetExists($offset){} |
|
124 | + public function offsetExists($offset) {} |
|
125 | 125 | |
126 | 126 | /** |
127 | 127 | * \ArrayAccess unused method |
128 | 128 | * |
129 | 129 | * @param mixed $offset |
130 | 130 | */ |
131 | - public function offsetUnset($offset){} |
|
131 | + public function offsetUnset($offset) {} |
|
132 | 132 | |
133 | 133 | /** |
134 | 134 | * \ArrayAccess - get array value from object |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | */ |
179 | 179 | public function getPath() |
180 | 180 | { |
181 | - return $this->path = $this->getStorage() . '/' . $this->getName() . '.' . $this->getMime(); |
|
181 | + return $this->path = $this->getStorage().'/'.$this->getName().'.'.$this->getMime(); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
@@ -300,8 +300,8 @@ discard block |
||
300 | 300 | { |
301 | 301 | if ($isNameProvided) { |
302 | 302 | $this->name = filter_var($isNameProvided, FILTER_SANITIZE_STRING); |
303 | - }else{ |
|
304 | - $this->name = uniqid('', true) . '_' . str_shuffle(implode(range('e', 'q'))); |
|
303 | + } else { |
|
304 | + $this->name = uniqid('', true).'_'.str_shuffle(implode(range('e', 'q'))); |
|
305 | 305 | } |
306 | 306 | |
307 | 307 | return $this; |
@@ -382,10 +382,10 @@ discard block |
||
382 | 382 | return false; |
383 | 383 | } |
384 | 384 | |
385 | - $create = !is_dir($dir) ? @mkdir('' . $dir, (int) $permission, true) : true; |
|
385 | + $create = !is_dir($dir) ? @mkdir(''.$dir, (int) $permission, true) : true; |
|
386 | 386 | |
387 | 387 | if (!$create) { |
388 | - $this->error = 'Error! directory \'' . $dir . '\' could not be created'; |
|
388 | + $this->error = 'Error! directory \''.$dir.'\' could not be created'; |
|
389 | 389 | return false; |
390 | 390 | } |
391 | 391 | |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | $this->height = $this->getHeight(); |
430 | 430 | |
431 | 431 | if ($this->height > $maxHeight || $this->width > $maxWidth) { |
432 | - $this->error = 'Image should be smaller than ' . $maxHeight . 'px in height, and smaller than ' . $maxWidth . 'px in width'; |
|
432 | + $this->error = 'Image should be smaller than '.$maxHeight.'px in height, and smaller than '.$maxWidth.'px in width'; |
|
433 | 433 | return false; |
434 | 434 | } |
435 | 435 |