Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 93-97 (lines=5) @@
90
                foreach ($result->getMessages() as $ruleLKey => $message) {
91
                    $identifier = 'smoke_' . $ruleLKey . '_' . $result->getUrl();
92
93
                    if ($this->system === '') {
94
                        $system = str_replace('http://', '', $result->getUrl());
95
                    } else {
96
                        $system = $this->system;
97
                    }
98
                    $this->send($identifier, $system, 'smoke', $message, self::STATUS_FAILURE, (string) $result->getUrl());
99
                    $failedTests[] = $ruleLKey;
100
                }
@@ 106-110 (lines=5) @@
103
                if (!in_array($rule, $failedTests, true)) {
104
                    $identifier = 'smoke_' . $rule . '_' . $result->getUrl();
105
106
                    if ($this->system === '') {
107
                        $system = str_replace('http://', '', $result->getUrl());
108
                    } else {
109
                        $system = $this->system;
110
                    }
111
                    $this->send($identifier, $system, 'smoke_' . $rule, '', self::STATUS_SUCCESS, (string) $result->getUrl());
112
                }
113
            }