Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
35 | public function countTrade(Trade $trade): Trade |
||
36 | { |
||
37 | if ($this->pair !== $trade->pair) { |
||
38 | throw new \RuntimeException('DataInconsistency'); // todo update message |
||
39 | } |
||
40 | foreach (PERIODS as $length => $groupBy) { |
||
41 | $this->counters[$length]->addEvent($trade->timestamp); |
||
42 | } |
||
43 | // $this->counters[static::VOLUME]->addTrade($trade); |
||
44 | |||
45 | return $trade; |
||
46 | } |
||
63 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.