Code Duplication    Length = 3-3 lines in 2 locations

Moss/Storage/Model/Definition/Relation/AbstractRelation.php 2 locations

@@ 101-103 (lines=3) @@
98
     */
99
    protected function assertTroughKeys($inKeys, $outKeys)
100
    {
101
        if (empty($inKeys) || empty($outKeys)) {
102
            throw new DefinitionException(sprintf('Invalid keys for relation "%s", must be two arrays with key-value pairs', $this->entity, count($inKeys)));
103
        }
104
105
        if (count($inKeys) !== count($outKeys)) {
106
            throw new DefinitionException(sprintf('Both key arrays for relation "%s", must have the same number of elements', $this->entity));
@@ 105-107 (lines=3) @@
102
            throw new DefinitionException(sprintf('Invalid keys for relation "%s", must be two arrays with key-value pairs', $this->entity, count($inKeys)));
103
        }
104
105
        if (count($inKeys) !== count($outKeys)) {
106
            throw new DefinitionException(sprintf('Both key arrays for relation "%s", must have the same number of elements', $this->entity));
107
        }
108
    }
109
110
    /**