| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function getSortingClosure(array $idPos, $identifierPath) |
||
| 44 | { |
||
| 45 | $propertyAccessor = $this->propertyAccessor; |
||
| 46 | |||
| 47 | return function ($a, $b) use ($idPos, $identifierPath, $propertyAccessor) { |
||
| 48 | return $idPos[(string) $propertyAccessor->getValue($a, $identifierPath)] > $idPos[(string) $propertyAccessor->getValue($b, $identifierPath)]; |
||
| 49 | }; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |