Code Duplication    Length = 3-5 lines in 2 locations

PHPDaemon/Thread/IPC.php 1 location

@@ 162-166 (lines=5) @@
159
            }
160
        }
161
162
        if (Daemon::$config->cwd->value !== '.') {
163
            if (!@chdir(Daemon::$config->cwd->value)) {
164
                $this->log('Couldn\'t change directory to \'' . Daemon::$config->cwd->value . '.');
165
            }
166
        }
167
    }
168
169
    /**

PHPDaemon/Thread/Worker.php 1 location

@@ 408-410 (lines=3) @@
405
            clearstatcache(true);
406
        }
407
        if (Daemon::$config->cwd->value !== '.') {
408
            if (!@chdir(Daemon::$config->cwd->value)) {
409
                Daemon::log('Couldn\'t change directory to \'' . Daemon::$config->cwd->value . '.');
410
            }
411
            clearstatcache(true);
412
        }
413
    }