Code Duplication    Length = 3-5 lines in 2 locations

PHPDaemon/Thread/IPC.php 1 location

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

PHPDaemon/Thread/Worker.php 1 location

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