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

@@ 207-211 (lines=5) @@
204
205
        posix_setsid();
206
        proc_nice(Daemon::$config->masterpriority->value);
207
        if (!Daemon::$config->verbosetty->value) {
208
            fclose(STDIN);
209
            fclose(STDOUT);
210
            fclose(STDERR);
211
        }
212
213
        $this->setTitle(
214
            Daemon::$runName . ': master process'