Code Duplication    Length = 5-5 lines in 2 locations

src/Notifications/Metrics/LogWritten.php 2 locations

@@ 92-96 (lines=5) @@
89
        }
90
91
        $status = 'success';
92
        foreach($this->notificationLevels as $triggerLevel => $childLevels) {
93
            if(in_array($this->requestInfo['level'], $childLevels)) {
94
                $status = $triggerLevel;
95
            }
96
        }
97
98
        $fields = array(
99
            'Level' => $this->requestInfo['level'],
@@ 137-141 (lines=5) @@
134
        }
135
136
        $status = 'success';
137
        foreach($this->notificationLevels as $triggerLevel => $childLevels) {
138
            if(in_array($this->requestInfo['level'], $childLevels)) {
139
                $status = $triggerLevel;
140
            }
141
        }
142
143
        $fields = array(
144
            'Level' => $this->requestInfo['level'],