Code Duplication    Length = 4-4 lines in 2 locations

Core/Matcher/LocationMatcher.php 2 locations

@@ 52-55 (lines=4) @@
49
        if (count($conditions) === 1) {
50
            $key = array_keys($conditions)[0];
51
            switch ($key) {
52
                case self::MATCH_LOCATION_ID:
53
                    $location = $this->repository->getLocationService()->loadLocation($conditions[$key]);
54
                    return new LocationCollection(array($location));
55
                    break;
56
57
                case self::MATCH_LOCATION_REMOTE_ID:
58
                    $location = $this->repository->getLocationService()->loadLocationByRemoteId($conditions[$key]);
@@ 57-60 (lines=4) @@
54
                    return new LocationCollection(array($location));
55
                    break;
56
57
                case self::MATCH_LOCATION_REMOTE_ID:
58
                    $location = $this->repository->getLocationService()->loadLocationByRemoteId($conditions[$key]);
59
                    return new LocationCollection(array($location));
60
                    break;
61
            }
62
        }
63