Code Duplication    Length = 3-5 lines in 2 locations

PHPDaemon/Thread/IPC.php 1 location

@@ 178-182 (lines=5) @@
175
			}
176
		}
177
178
		if (Daemon::$config->cwd->value !== '.') {
179
			if (!@chdir(Daemon::$config->cwd->value)) {
180
				$this->log('Couldn\'t change directory to \'' . Daemon::$config->cwd->value . '.');
181
			}
182
		}
183
	}
184
185
	/**

PHPDaemon/Thread/Worker.php 1 location

@@ 437-439 (lines=3) @@
434
			clearstatcache(true);
435
		}
436
		if (Daemon::$config->cwd->value !== '.') {
437
			if (!@chdir(Daemon::$config->cwd->value)) {
438
				Daemon::log('Couldn\'t change directory to \'' . Daemon::$config->cwd->value . '.');
439
			}
440
			clearstatcache(true);
441
		}
442
	}