Code Duplication    Length = 13-13 lines in 2 locations

src/Comodojo/Extender/Task/Tracker.php 2 locations

@@ 123-135 (lines=13) @@
120
121
    }
122
123
    public function setCompleted($uid, Result $result) {
124
125
        $request = $this->running[$uid];
126
127
        $this->logger->debug("Task ".$request->getName()." (uid $uid) completed with ".($result->success ? 'success' : 'error'));
128
129
        $this->completed[$uid] = $result;
130
131
        unset($this->running[$uid]);
132
133
        return $this;
134
135
    }
136
137
    public function setAborted($uid, Result $result) {
138
@@ 137-149 (lines=13) @@
134
135
    }
136
137
    public function setAborted($uid, Result $result) {
138
139
        $request = $this->queued[$uid];
140
141
        $this->logger->debug("Task ".$request->getName()." (uid $uid) aborted: ".$result->message);
142
143
        $this->completed[$uid] = $result;
144
145
        unset($this->queued[$uid]);
146
147
        return $this;
148
149
    }
150
151
    public function getSucceeded() {
152