| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | private static function getLowestPointsDimension($from, $to) |
||
| 30 | { |
||
| 31 | $fromDimension = self::getDimensionNumber($from); |
||
| 32 | $toDimension = self::getDimensionNumber($to); |
||
| 33 | |||
| 34 | switch (true) { |
||
| 35 | case $fromDimension <= $toDimension: |
||
| 36 | return $fromDimension; |
||
| 37 | case $fromDimension > $toDimension: |
||
| 38 | return $toDimension; |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 66 |
It seems like you are relying on a variable being defined by an iteration: