Code Duplication    Length = 3-5 lines in 2 locations

PHPDaemon/Thread/IPC.php 1 location

@@ 170-174 (lines=5) @@
167
            }
168
        }
169
170
        if (Daemon::$config->cwd->value !== '.') {
171
            if (!@chdir(Daemon::$config->cwd->value)) {
172
                $this->log('Couldn\'t change directory to \'' . Daemon::$config->cwd->value . '.');
173
            }
174
        }
175
    }
176
177
    /**

PHPDaemon/Thread/Worker.php 1 location

@@ 442-444 (lines=3) @@
439
            clearstatcache(true);
440
        }
441
        if (Daemon::$config->cwd->value !== '.') {
442
            if (!@chdir(Daemon::$config->cwd->value)) {
443
                Daemon::log('Couldn\'t change directory to \'' . Daemon::$config->cwd->value . '.');
444
            }
445
            clearstatcache(true);
446
        }
447
    }