From 399fad0e8af160f92d497dd34c6556015f1722fe Mon Sep 17 00:00:00 2001 From: Marcel Hernandez Date: Tue, 16 Apr 2024 16:32:09 +0200 Subject: [PATCH] lint --- frontend/web/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/web/index.php b/frontend/web/index.php index 4a29c57..7628a95 100644 --- a/frontend/web/index.php +++ b/frontend/web/index.php @@ -32,7 +32,7 @@ return $twig->render(new Response(), 'index.html.twig', ['alert' => ['class' => 'alert-warning', 'message' => 'Service down, try again later.']]); } - $twig->getEnvironment()->addGlobal('chain', $chain = stream_get_line($fh, 16, "\n")); + $twig->getEnvironment()->addGlobal('chain', stream_get_line($fh, 16, "\n")); $response = $handler->handle($request->withAttribute('grouphug_conn', $fh)); @@ -64,8 +64,8 @@ function processTx(mixed $form, $conn): array $reply = stream_get_line($conn, 128, "\n"); - if ($reply != 'Ok') { - return ['class' => 'alert-warning', 'message' => 'Transaction rejected. ' . $reply]; + if ('Ok' != $reply) { + return ['class' => 'alert-warning', 'message' => 'Transaction rejected. '.$reply]; } return ['class' => 'alert-success', 'message' => 'Transaction accepted!'];