Code Duplication    Length = 5-5 lines in 2 locations

PHPDaemon/Thread/Worker.php 1 location

@@ 176-180 (lines=5) @@
173
		}
174
175
		if (Daemon::$runworkerMode) {
176
			if (!Daemon::$config->verbosetty->value) {
177
				fclose(STDIN);
178
				fclose(STDOUT);
179
				fclose(STDERR);
180
			}
181
182
			Daemon::$appResolver->preload(true);
183
		}

PHPDaemon/Thread/Master.php 1 location

@@ 200-204 (lines=5) @@
197
198
		posix_setsid();
199
		proc_nice(Daemon::$config->masterpriority->value);
200
		if (!Daemon::$config->verbosetty->value) {
201
			fclose(STDIN);
202
			fclose(STDOUT);
203
			fclose(STDERR);
204
		}
205
206
		$this->setTitle(
207
			Daemon::$runName . ': master process'