Code Duplication    Length = 5-5 lines in 2 locations

src/Extensions/SmokeReporter/Reporter/KoalamonReporter.php 2 locations

@@ 171-175 (lines=5) @@
168
                foreach ($result->getMessages() as $ruleLKey => $message) {
169
                    $identifier = 'smoke_' . $ruleLKey . '_' . $result->getUrl();
170
171
                    if ($this->system === '') {
172
                        $system = str_replace('http://', '', $result->getUrl());
173
                    } else {
174
                        $system = $this->system;
175
                    }
176
                    $this->send($identifier, $system, 'smoke', $message, self::STATUS_FAILURE, (string)$result->getUrl());
177
                    $failedTests[] = $ruleLKey;
178
                }
@@ 186-190 (lines=5) @@
183
184
                    if ($this->systemUseRetriever) {
185
                        $system = $this->retriever->getSystem($result->getUrl());
186
                    } else if ($this->system === '') {
187
                        $system = str_replace('http://', '', $result->getUrl());
188
                    } else {
189
                        $system = $this->system;
190
                    }
191
                    $this->send($identifier, $system, 'smoke_' . $rule . '_' . $result->getUrl(), self::STATUS_SUCCESS, (string)$result->getUrl());
192
                }
193
            }