Skip to content

Commit

Permalink
Merge pull request #55 from hughgrigg/analysis-qoPdob
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
hughgrigg authored Jul 25, 2019
2 parents 4b4fddd + 1fd124a commit 87630de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BusinessTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,10 @@ public function diffBusiness(
/** @var Interval $interval */
$interval = Interval::seconds(0);
$interval->seconds = $diffInBusinessTime * $this->precision()->inSeconds();

return $interval;
}

return Interval::seconds(
abs($diffInBusinessTime) * $this->precision()->inSeconds()
);
Expand Down

0 comments on commit 87630de

Please sign in to comment.