@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | if ($fs->isAbsolutePath($tmp_base_path)) { |
| 55 | 55 | $this->base_path = $tmp_base_path; |
| 56 | 56 | } else { |
| 57 | - $this->base_path = realpath($kernel->getProjectDir() . $tmp_base_path); |
|
| 57 | + $this->base_path = realpath($kernel->getProjectDir().$tmp_base_path); |
|
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | $sz = 'BKMGTP'; |
| 126 | 126 | $factor = (int) floor((strlen($bytes) - 1) / 3); |
| 127 | - return sprintf("%.{$decimals}f", $bytes / 1024 ** $factor) . @$sz[$factor]; |
|
| 127 | + return sprintf("%.{$decimals}f", $bytes / 1024 ** $factor).@$sz[$factor]; |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | } |
| 131 | 131 | \ No newline at end of file |
@@ -221,7 +221,7 @@ |
||
| 221 | 221 | if ($only_http) { //Check if scheme is HTTPS or HTTP |
| 222 | 222 | $scheme = parse_url($string, PHP_URL_SCHEME); |
| 223 | 223 | if ($scheme !== 'http' && $scheme !== 'https') { |
| 224 | - return false; //All other schemes are not valid. |
|
| 224 | + return false; //All other schemes are not valid. |
|
| 225 | 225 | } |
| 226 | 226 | } |
| 227 | 227 | if ($path_required) { |