@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | if ($throwException) { |
| 61 | - throw new Exception("The given object must be an instance of: " . implode(",", $haystack)); |
|
| 61 | + throw new Exception("The given object must be an instance of: ".implode(",", $haystack)); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | return false; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | } catch (InvalidParamException $e) { |
| 228 | 228 | }; |
| 229 | 229 | |
| 230 | - $staticPath = $module::staticBasePath() . DIRECTORY_SEPARATOR . 'controllers'; |
|
| 230 | + $staticPath = $module::staticBasePath().DIRECTORY_SEPARATOR.'controllers'; |
|
| 231 | 231 | if (is_dir($staticPath)) { |
| 232 | 232 | foreach (FileHelper::findFiles($staticPath) as $file) { |
| 233 | 233 | $files[self::fileToName($staticPath, $file)] = $file; |
@@ -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 |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | * If a message is not a string, it will return var export to generate |
| 47 | 47 | * a returnable string from a message. |
| 48 | 48 | * |
| 49 | - * @param mixed $message |
|
| 49 | + * @param string $message |
|
| 50 | 50 | * @return string |
| 51 | 51 | * @since 1.0.22 |
| 52 | 52 | */ |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | if ($this->verbose) { |
| 42 | 42 | $message = $this->printableMessage($message); |
| 43 | - $this->output(!empty($section) ? $section . ': ' . $message : $message); |
|
| 43 | + $this->output(!empty($section) ? $section.': '.$message : $message); |
|
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $name = substr($name, 0, -(strlen($suffix))); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - return $name . $suffix; |
|
| 121 | + return $name.$suffix; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |