Branches
Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not
necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once.
Please also be aware that some branches may be implicit rather than explicit, e.g. an if
statement
always has an else
as part of its logical flow even if you didn't write one.
4 | public function __construct(int $numerator, int $denominator) |
5 | { |
6 | $this->numerator = $numerator; |
7 | $this->denominator = $denominator; |
8 | } |
10 | public function calculatePercent(): float |
11 | { |
12 | return $this->denominator ? round($this->numerator / $this->denominator * 100, 1) : 0.0; |
12 | return $this->denominator ? round($this->numerator / $this->denominator * 100, 1) : 0.0; |
12 | return $this->denominator ? round($this->numerator / $this->denominator * 100, 1) : 0.0; |
12 | return $this->denominator ? round($this->numerator / $this->denominator * 100, 1) : 0.0; |
13 | } |