@@ -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 |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | { |
140 | 140 | $output = null; |
141 | 141 | foreach ($input as $row) { |
142 | - $output.= self::generateRow($row, $delimiter, '"'); |
|
142 | + $output .= self::generateRow($row, $delimiter, '"'); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | return $output; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | protected static function generateRow(array $row, $delimiter, $enclose) |
158 | 158 | { |
159 | - array_walk($row, function (&$item) use ($enclose) { |
|
159 | + array_walk($row, function(&$item) use ($enclose) { |
|
160 | 160 | if (is_bool($item)) { |
161 | 161 | $item = (int) $item; |
162 | 162 | } elseif (is_null($item)) { |
@@ -171,6 +171,6 @@ discard block |
||
171 | 171 | ], $item).$enclose; |
172 | 172 | }); |
173 | 173 | |
174 | - return implode($delimiter, $row) . PHP_EOL; |
|
174 | + return implode($delimiter, $row).PHP_EOL; |
|
175 | 175 | } |
176 | 176 | } |