Skip to content

Commit da1d707

Browse files
committed
coding style
1 parent 0cdf196 commit da1d707

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

Program.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public static function main(array $args = [])
1212
self::createWebHostBuilder($args)->build()->run();
1313
}
1414

15-
public static function createWebHostBuilder(array $args) : IWebHostBuilder
15+
public static function createWebHostBuilder(array $args): IWebHostBuilder
1616
{
1717
return WebHost::createBuilder($args)
1818
->useStartup(Startup::class);
1919
}
20-
}
20+
}

Startup.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ public function configure(IApplicationBuilder $app)
2929
$app->UseExceptionHandler();
3030

3131
$app->useRouter();
32-
33-
$app->useEndpoint(function($routes)
34-
{
35-
$routes->mapGet("/", function(HttpContext $context) : Task
36-
{
37-
$context->Response->Body->write("Hello World!");
38-
return Task::completedTask();
32+
33+
$app->useEndpoint(function ($routes) {
34+
$routes->mapGet("/", function (HttpContext $context): Task {
35+
$context->Response->Body->write("Hello World!");
36+
return Task::completedTask();
3937
});
40-
});
38+
});
4139
}
4240
}

0 commit comments

Comments
 (0)