Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | private function getMoveLength(Board $board, array $operation) |
||
19 | { |
||
20 | if(is_numeric($operation['distance'])) { |
||
21 | $length = $operation['distance']; |
||
22 | $board->debug('Move Length[%s]', $length); |
||
23 | return $length; |
||
24 | } |
||
25 | |||
26 | $length = $board->getVariable($operation['distance']); |
||
27 | $board->debug('Move Variable[%s] Length[%s]', $operation['distance'], $length); |
||
28 | return $length; |
||
29 | } |
||
30 | |||
41 |