Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Apr 16, 2024
1 parent e715a5e commit 399fad0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down Expand Up @@ -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!'];
Expand Down

0 comments on commit 399fad0

Please sign in to comment.