Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 7dd5a4d

Browse files
committed
lint source code
1 parent ff66a82 commit 7dd5a4d

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

examples/simpleclient/main.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,23 @@
66
$client = new NatsClient();
77
$client->connect();
88

9-
printf("Connected to NATS." . PHP_EOL);
10-
11-
// Publish Subscribe.
9+
printf('Connected to NATS.'.PHP_EOL);
1210

1311
// Simple Subscriber.
1412
$client->subscribe(
1513
'foo',
1614
function ($message) {
17-
printf("Data: %s\r\n" . PHP_EOL, $message->getBody());
15+
printf("Data: %s\r\n".PHP_EOL, $message->getBody());
1816
}
1917
);
20-
printf("Subscribed to 'foo' messages." . PHP_EOL);
18+
printf('Subscribed to "foo" messages.'.PHP_EOL);
2119

2220
// Wait for messages.
23-
printf("Wait for messages on %s subscriptions" . PHP_EOL, $client->subscriptionsCount());
21+
printf('Wait for messages on %s subscriptions'.PHP_EOL, $client->subscriptionsCount());
2422
while (true) {
2523
$client->wait();
2624

27-
printf("Reconnecting ..." . PHP_EOL);
25+
printf('Reconnecting ...'.PHP_EOL);
2826
$client->reconnect();
29-
printf("Reconnected %s subscriptions" . PHP_EOL, $client->subscriptionsCount());
27+
printf('Reconnected %s subscriptions'.PHP_EOL, $client->subscriptionsCount());
3028
}

0 commit comments

Comments
 (0)