@@ -57,7 +57,7 @@ |
||
57 | 57 | { |
58 | 58 | if (StringHelper::startsWith($value, '//')) { |
59 | 59 | // its an absolute url |
60 | - $value = StringHelper::replaceFirst('//', Url::base(true) . '/', $value); |
|
60 | + $value = StringHelper::replaceFirst('//', Url::base(true).'/', $value); |
|
61 | 61 | $external = false; |
62 | 62 | } elseif (StringHelper::startsWith($value, '/')) { |
63 | 63 | // its a relative url, keep it like this |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | if ($throwException) { |
51 | - throw new Exception("The given object must be an instance of: " . implode(",", $haystack)); |
|
51 | + throw new Exception("The given object must be an instance of: ".implode(",", $haystack)); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | return false; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | |
219 | 219 | }; |
220 | 220 | |
221 | - $staticPath = $module::staticBasePath() . DIRECTORY_SEPARATOR . 'controllers'; |
|
221 | + $staticPath = $module::staticBasePath().DIRECTORY_SEPARATOR.'controllers'; |
|
222 | 222 | if (is_dir($staticPath)) { |
223 | 223 | foreach (FileHelper::findFiles($staticPath) as $file) { |
224 | 224 | $files[self::fileToName($staticPath, $file)] = $file; |
@@ -148,9 +148,9 @@ discard block |
||
148 | 148 | $_file = $exception->getFile(); |
149 | 149 | $_line = $exception->getLine(); |
150 | 150 | } elseif (is_string($exception)) { |
151 | - $_message = 'exception string: ' . $exception; |
|
151 | + $_message = 'exception string: '.$exception; |
|
152 | 152 | } elseif (is_array($exception)) { |
153 | - $_message = isset($exception['message']) ? $exception['message'] : 'exception array dump: ' . print_r($exception, true); |
|
153 | + $_message = isset($exception['message']) ? $exception['message'] : 'exception array dump: '.print_r($exception, true); |
|
154 | 154 | $_file = isset($exception['file']) ? $exception['file'] : __FILE__; |
155 | 155 | $_line = isset($exception['line']) ? $exception['line'] : __LINE__; |
156 | 156 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | |
216 | 216 | if (!empty($file)) { |
217 | 217 | try { |
218 | - $lineInArray = $line -1; |
|
218 | + $lineInArray = $line - 1; |
|
219 | 219 | // load file from path |
220 | 220 | $fileInfo = file($file, FILE_IGNORE_NEW_LINES); |
221 | 221 | // load file if false from real path |