Code Duplication    Length = 3-4 lines in 2 locations

src/Type/Config/Config.php 1 location

@@ 116-119 (lines=4) @@
113
114
        if (substr($method, 0, 3) == 'get') {
115
            $propertyName = lcfirst(substr($method, 3));
116
        } elseif (substr($method, 0, 3) == 'set') {
117
            $propertyName = lcfirst(substr($method, 3));
118
            $setter       = true;
119
        } elseif (substr($method, 0, 2) == 'is') {
120
            $propertyName = lcfirst(substr($method, 2));
121
        }
122
        if ($propertyName !== false) {

src/Type/Config/Traits/ConfigCallTrait.php 1 location

@@ 43-45 (lines=3) @@
40
            $this->checkBuild();
41
42
            return call_user_func_array([$this->config, $method], $arguments);
43
        } elseif (substr($method, 0, 3) == 'get') {
44
            $propertyName = lcfirst(substr($method, 3));
45
        } elseif (substr($method, 0, 3) == 'set') {
46
            $propertyName = lcfirst(substr($method, 3));
47
            $this->config->set($propertyName, $arguments[0]);
48