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

@@ 400-402 (lines=3) @@
397
            clearstatcache(true);
398
        }
399
        if (Daemon::$config->cwd->value !== '.') {
400
            if (!@chdir(Daemon::$config->cwd->value)) {
401
                Daemon::log('Couldn\'t change directory to \'' . Daemon::$config->cwd->value . '.');
402
            }
403
            clearstatcache(true);
404
        }
405
    }