Code Duplication    Length = 8-8 lines in 2 locations

PHPDaemon/Thread/IPC.php 1 location

@@ 217-224 (lines=8) @@
214
215
        @ob_flush();
216
217
        if ($this->terminated === true) {
218
            if ($hard) {
219
                posix_kill(getmypid(), SIGKILL);
220
                exit(0);
221
            }
222
223
            return;
224
        }
225
226
        $this->terminated = true;
227
        if ($hard) {

PHPDaemon/Thread/Worker.php 1 location

@@ 562-569 (lines=8) @@
559
560
        @ob_flush();
561
562
        if ($this->terminated === true) {
563
            if ($hard) {
564
                posix_kill(getmypid(), SIGKILL);
565
                exit(0);
566
            }
567
568
            return;
569
        }
570
571
        $this->terminated = true;
572