Code Duplication    Length = 4-4 lines in 2 locations

src/MetaData/BaseMetaData.php 2 locations

@@ 18-21 (lines=4) @@
15
        if (substr($name, 0, 3) === 'get') {
16
            $propertyName = $this->createPropertyName(str_replace('get', '', $name));
17
            return $this->get($propertyName);
18
        } elseif (substr($name, 0, 3) == 'set') {
19
            $propertyName = $this->createPropertyName(str_replace('set', '', $name));
20
            return $this->set($propertyName, $arguments[0]);
21
        } elseif (substr($name, 0, 3) == 'add') {
22
            $propertyName = $this->createPropertyName(str_replace('add', '', $name));
23
            return $this->add($propertyName, $arguments[0]);
24
        } elseif (substr($name, 0, 5) == 'reset') {
@@ 24-27 (lines=4) @@
21
        } elseif (substr($name, 0, 3) == 'add') {
22
            $propertyName = $this->createPropertyName(str_replace('add', '', $name));
23
            return $this->add($propertyName, $arguments[0]);
24
        } elseif (substr($name, 0, 5) == 'reset') {
25
            $propertyName = $this->createPropertyName(str_replace('reset', '', $name));
26
            return $this->reset($propertyName, isset($arguments[0]) ? $arguments[0] : null);
27
        }
28
        throw new InvalidArgumentException("Method '$name' not found");
29
    }
30