tests/Commands/AddNotificationByHostTest.php 1 location
|
@@ 31-33 (lines=3) @@
|
| 28 |
|
{ |
| 29 |
|
$result = $this->answers[$this->answer]; |
| 30 |
|
if($multiple) { |
| 31 |
|
if(!is_array($this->answers[$this->answer])) { |
| 32 |
|
$result = [$this->answers[$this->answer]]; |
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
$this->answer ++; |
| 36 |
|
return $result; |
tests/Commands/ListNotificationsTest.php 1 location
|
@@ 34-36 (lines=3) @@
|
| 31 |
|
echo $question . "\n"; |
| 32 |
|
$result = $this->answers[$this->answer]; |
| 33 |
|
if ($multiple) { |
| 34 |
|
if (!is_array($this->answers[$this->answer])) { |
| 35 |
|
$result = [$this->answers[$this->answer]]; |
| 36 |
|
} |
| 37 |
|
} |
| 38 |
|
$this->answer++; |
| 39 |
|
return $result; |