Code Duplication    Length = 13-13 lines in 2 locations

src/Comodojo/Extender/Jobs/Manager.php 1 location

@@ 162-174 (lines=13) @@
159
160
    }
161
162
    private function dump() {
163
164
        $data = array(
165
            'QUEUED' => count($this->queued_jobs),
166
            'RUNNING' => count($this->running_jobs),
167
            'COMPLETED' => count($this->completed_jobs)
168
        );
169
170
        $content = serialize($data);
171
172
        return file_put_contents($this->queue_file, $content);
173
174
    }
175
176
}
177

src/Comodojo/Extender/Task/Locker.php 1 location

@@ 163-175 (lines=13) @@
160
161
    }
162
163
    private function dump() {
164
165
        $data = array(
166
            'QUEUED' => count($this->queued_jobs),
167
            'RUNNING' => count($this->running_jobs),
168
            'COMPLETED' => count($this->completed_jobs)
169
        );
170
171
        $content = serialize($data);
172
173
        return file_put_contents($this->queue_file, $content);
174
175
    }
176
177
}
178