Code Duplication    Length = 5-5 lines in 2 locations

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'

PHPDaemon/Thread/Worker.php 1 location

@@ 148-152 (lines=5) @@
145
        }
146
147
        if (Daemon::$runworkerMode) {
148
            if (!Daemon::$config->verbosetty->value) {
149
                fclose(STDIN);
150
                fclose(STDOUT);
151
                fclose(STDERR);
152
            }
153
154
            Daemon::$appResolver->preload(true);
155
        }