@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | $app = new \Slim\App(); |
6 | 6 | |
7 | -$app->get('/hello/{name}', function ($request, $response, $args) { |
|
8 | - $response->write("Hello, " . $args['name']); |
|
7 | +$app->get('/hello/{name}', function($request, $response, $args) { |
|
8 | + $response->write("Hello, ".$args['name']); |
|
9 | 9 | return $response; |
10 | 10 | }); |
11 | 11 |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | $app = new \Slim\App(); |
15 | 15 | |
16 | - $app->get('/hello/{name}', function ($request, $response, $args) { |
|
17 | - $response->write("Hello, " . $args['name']); |
|
16 | + $app->get('/hello/{name}', function($request, $response, $args) { |
|
17 | + $response->write("Hello, ".$args['name']); |
|
18 | 18 | return $response; |
19 | 19 | }); |
20 | 20 |
@@ -7,7 +7,7 @@ |
||
7 | 7 | { |
8 | 8 | public function __invoke(SlimRouter $app) |
9 | 9 | { |
10 | - $app->get('/hello', function ($request, $response) { |
|
10 | + $app->get('/hello', function($request, $response) { |
|
11 | 11 | $response->write("Hello"); |
12 | 12 | return $response; |
13 | 13 | }); |