Code Duplication    Length = 6-6 lines in 2 locations

module/Core/src/Core/Log/Formatter/ErrorAndExceptionHandler.php 1 location

@@ 43-48 (lines=6) @@
40
            $options
41
        );
42
        
43
        foreach ($options as $key => $val) {
44
            $method = "set$key";
45
            if (method_exists($this, $method)) {
46
                $this->$method($val);
47
            }
48
        }
49
    }
50
    
51
    /** {@inheritdoc} */

module/Core/src/Core/Mail/Message.php 1 location

@@ 39-44 (lines=6) @@
36
            );
37
        }
38
        
39
        foreach ($options as $key => $value) {
40
            $method = "set$key";
41
            if (method_exists($this, $method)) {
42
                $this->$method($value);
43
            }
44
        }
45
        return $this;
46
    }
47