Code Duplication    Length = 5-5 lines in 2 locations

src/SecurityTxtHelper.php 2 locations

@@ 106-110 (lines=5) @@
103
                is_bool($mapping['self']) &&
104
                $mapping['self'] === true)
105
            {
106
                if (!method_exists($this, $mapping['setter']))
107
                {
108
                    $this->addLogEntry('"' . __CLASS__ . '" cannot find mapping "setter" method on object "' . get_class($this) . '" named "' . $mapping['setter'] . '".', 'error');
109
                    continue;
110
                }
111
112
                $this->{$mapping['setter']}(config($key));
113
            }
@@ 116-120 (lines=5) @@
113
            }
114
            else
115
            {
116
                if (!method_exists($this->writer, $mapping['setter']))
117
                {
118
                    $this->addLogEntry('"' . __CLASS__ . '" cannot find mapping "setter" method on object "' . get_class($this->writer) . '" named "' . $mapping['setter'] . '".', 'error');
119
                    continue;
120
                }
121
122
                $this->writer->{$mapping['setter']}(config($key));
123
            }