Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
34 | 18 | public function stop(InternalRequestInterface $internalRequest) |
|
35 | { |
||
36 | 18 | if ($internalRequest->hasParameter(self::START_TIME) && !$internalRequest->hasParameter(self::TIME)) { |
|
37 | 9 | return $internalRequest->withParameter( |
|
38 | 9 | self::TIME, |
|
39 | 9 | $this->getTime() - $internalRequest->getParameter(self::START_TIME) |
|
40 | 7 | ); |
|
41 | } |
||
42 | |||
43 | 9 | return $internalRequest; |
|
44 | } |
||
45 | |||
54 |