Code Duplication    Length = 5-5 lines in 2 locations

src/SecurityTxtHelper.php 2 locations

@@ 100-104 (lines=5) @@
97
            if (array_key_exists('self', $mapping) &&
98
                is_bool($mapping['self']) &&
99
                $mapping['self'] === true) {
100
                if (!method_exists($this, $mapping['setter'])) {
101
                    $this->addLogEntry('"'.__CLASS__.'" cannot find mapping "setter" method on object "'.get_class($this).'" named "'.$mapping['setter'].'".', 'error');
102
                    continue;
103
                }
104
105
                $this->{$mapping['setter']}(config($key));
106
            } else {
107
                if (!method_exists($this->writer, $mapping['setter'])) {
@@ 107-111 (lines=5) @@
104
105
                $this->{$mapping['setter']}(config($key));
106
            } else {
107
                if (!method_exists($this->writer, $mapping['setter'])) {
108
                    $this->addLogEntry('"'.__CLASS__.'" cannot find mapping "setter" method on object "'.get_class($this->writer).'" named "'.$mapping['setter'].'".', 'error');
109
                    continue;
110
                }
111
112
                $this->writer->{$mapping['setter']}(config($key));
113
            }
114
        }