@@ -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 = $isNameProvided; |
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 |