Update codestyle based on updated Symfony rules (#229)
This commit is contained in:
parent
e485fde727
commit
c081b90d74
1 changed files with 165 additions and 168 deletions
|
|
@ -23,7 +23,7 @@ $server = Server::builder()
|
|||
->setSession(new FileSessionStore(__DIR__.'/sessions'))
|
||||
->setDiscovery(__DIR__)
|
||||
->addTool(
|
||||
function (float $a, float $b, string $operation = 'add'): array {
|
||||
static function (float $a, float $b, string $operation = 'add'): array {
|
||||
$result = match ($operation) {
|
||||
'add' => $a + $b,
|
||||
'subtract' => $a - $b,
|
||||
|
|
@ -42,7 +42,7 @@ $server = Server::builder()
|
|||
description: 'Perform basic math operations (add, subtract, multiply, divide)'
|
||||
)
|
||||
->addResource(
|
||||
function (): array {
|
||||
static function (): array {
|
||||
$memoryUsage = memory_get_usage(true);
|
||||
$memoryPeak = memory_get_peak_usage(true);
|
||||
$uptime = time() - ($_SERVER['REQUEST_TIME_FLOAT'] ?? time());
|
||||
|
|
|
|||
Loading…
Reference in a new issue