Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function help(string $topic = null, int $pageNumber = null) |
||
48 | { |
||
49 | $this->commandFormatter->addElement('%s', self::HELP_COMMAND); |
||
50 | |||
51 | if ($topic) { |
||
52 | $this->commandFormatter->addElement('%s', $topic); |
||
53 | } |
||
54 | |||
55 | if ($pageNumber) { |
||
|
|||
56 | $this->commandFormatter->addElement('%u', $pageNumber); |
||
57 | } |
||
58 | |||
59 | return $this->sendCommand($this->commandFormatter->compile()); |
||
60 | } |
||
62 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: