@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | * @covers Tight\Router::__construct |
| 41 | 41 | */ |
| 42 | 42 | public function setUp() { |
| 43 | - $dirs = ["models","views","controllers"]; |
|
| 43 | + $dirs = ["models", "views", "controllers"]; |
|
| 44 | 44 | $size = count($dirs); |
| 45 | 45 | for ($index = 0; $index < $size; $index++) { |
| 46 | - if(!is_dir($dirs[$index])){ |
|
| 46 | + if (!is_dir($dirs[$index])) { |
|
| 47 | 47 | mkdir($dirs[$index]); |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -52,13 +52,13 @@ discard block |
||
| 52 | 52 | return "Hello"; |
| 53 | 53 | }); |
| 54 | 54 | $this->router->get("/hello/:id", function($id) { |
| 55 | - return "Hello " . $id; |
|
| 55 | + return "Hello ".$id; |
|
| 56 | 56 | }); |
| 57 | 57 | $this->router->post("/world/", function() { |
| 58 | 58 | return "world"; |
| 59 | 59 | }); |
| 60 | 60 | $this->router->post("/world/:id", function($id) { |
| 61 | - return $id . " world"; |
|
| 61 | + return $id." world"; |
|
| 62 | 62 | }); |
| 63 | 63 | $this->router->map(["get", "post"], "/map/", function() { |
| 64 | 64 | return "map"; |