Code Duplication    Length = 3-3 lines in 2 locations

src/Domain/LineKey.php 1 location

@@ 61-63 (lines=3) @@
58
59
    private function validateKey($key)
60
    {
61
        if (!$key || !is_string($key) || false === strpos($key, '.')) {
62
            throw new InvalidLineKeyException('Invalid LineKey format ['.$key.', type: '.gettype($key).'] given. Must be a string containing at least two dot separated segments. E.g. about.title');
63
        }
64
    }
65
66
}

src/Domain/PageKey.php 1 location

@@ 59-61 (lines=3) @@
56
57
    private function validateKey($key)
58
    {
59
        if (!$key || !is_string($key) || false !== strpos($key, '.')) {
60
            throw new InvalidPageKeyException('Invalid PageKey format ['.$key.', type: '.gettype($key).'] given. Must be a string without dot separated segments. E.g. about and not about.title');
61
        }
62
    }
63
64
    private function getExcludedSources()