Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
| Helpers | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
| flash | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| csrf | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| uri | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celemas\Session; |
| 6 | |
| 7 | /** @api */ |
| 8 | final class Helpers implements Contract\Helpers |
| 9 | { |
| 10 | #[\Override] |
| 11 | public function flash(Session $session): Flash |
| 12 | { |
| 13 | return new Flash($session); |
| 14 | } |
| 15 | |
| 16 | #[\Override] |
| 17 | public function csrf(Session $session): Csrf |
| 18 | { |
| 19 | return new Csrf($session); |
| 20 | } |
| 21 | |
| 22 | #[\Override] |
| 23 | public function uri(Session $session): Uri |
| 24 | { |
| 25 | return new Uri($session); |
| 26 | } |
| 27 | } |
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.
| 17 | public function csrf(Session $session): Csrf |
| 18 | { |
| 19 | return new Csrf($session); |
| 20 | } |
| 11 | public function flash(Session $session): Flash |
| 12 | { |
| 13 | return new Flash($session); |
| 14 | } |
| 23 | public function uri(Session $session): Uri |
| 24 | { |
| 25 | return new Uri($session); |
| 26 | } |