Skip to content

Commit df56c55

Browse files
committed
change var name from data to message
1 parent 3681bbf commit df56c55

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

php-amqp/new_task.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@
3232

3333

3434
//Read from stdin
35-
$data = implode(' ', array_slice($argv,1));
36-
if(empty($data))
37-
$data = "Hello World!";
35+
$message = implode(' ', array_slice($argv,1));
36+
if(empty($message))
37+
$message = "Hello World!";
3838

3939
$exchange = new AMQPExchange($channel);
40-
$exchange->publish($data, $routing_key);
40+
$exchange->publish($message, $routing_key);
4141

4242
echo " [x] Sent {$data}", PHP_EOL;
4343

4444
$connection->disconnect();
45-

0 commit comments

Comments
 (0)