We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4a7ee7 + d0dfb28 commit 3856dfdCopy full SHA for 3856dfd
src/Signal.php
@@ -71,19 +71,13 @@ public function unregister(): bool
71
/**
72
* Uses a list of phone numbers to determine the statuses of those users.
73
* Shows if they are registered on the Signal Servers or not.
74
- * In json mode this is outputted as a list of objects.
75
* @param array $recipients One or more numbers to check.
76
* @return string
77
*/
78
public function getUserStatus(array $recipients): string
79
{
80
- $formatArg = $this->format == self::FORMAT_JSON ? '--'.self::FORMAT_JSON : '';
81
-
82
$this->command->addArg('getUserStatus', $recipients);
83
84
- if(!empty($formatArg)){
85
- $this->command->addArg($formatArg, null, false);
86
- }
87
$this->command->execute();
88
89
return $this->command->getOutput(false);
0 commit comments