@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | parse_str(parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY), $queryStr); |
| 107 | 107 | |
| 108 | 108 | // Generic Dispatcher for RestServer |
| 109 | - $dispatcher = simpleDispatcher(function (RouteCollector $r) { |
|
| 109 | + $dispatcher = simpleDispatcher(function(RouteCollector $r) { |
|
| 110 | 110 | |
| 111 | 111 | foreach ($this->getRoutes() as $route) { |
| 112 | 112 | $r->addRoute( |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | // Check if script exists or if is itself |
| 232 | 232 | // -------------------------------------------------------------------------- |
| 233 | 233 | |
| 234 | - $debugBacktrace = debug_backtrace(); |
|
| 234 | + $debugBacktrace = debug_backtrace(); |
|
| 235 | 235 | if (!empty($_SERVER['SCRIPT_FILENAME']) |
| 236 | 236 | && file_exists($_SERVER['SCRIPT_FILENAME']) |
| 237 | 237 | && basename($_SERVER['SCRIPT_FILENAME']) !== basename($debugBacktrace[0]['file']) |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | require_once($file); |
| 242 | 242 | } else { |
| 243 | 243 | if (!defined("RESTSERVER_TEST")) { |
| 244 | - header("Content-Type: " . $this->mimeContentType($file)); |
|
| 244 | + header("Content-Type: ".$this->mimeContentType($file)); |
|
| 245 | 245 | } |
| 246 | 246 | |
| 247 | 247 | echo file_get_contents($file); |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | |
| 380 | 380 | $produces = null; |
| 381 | 381 | if (isset($properties['produces'])) { |
| 382 | - $produces = (array) $properties['produces']; |
|
| 382 | + $produces = (array)$properties['produces']; |
|
| 383 | 383 | } |
| 384 | 384 | if (empty($produces) && isset($properties["responses"]["200"]["content"])) { |
| 385 | 385 | $produces = array_keys($properties["responses"]["200"]["content"]); |