Code Duplication    Length = 11-11 lines in 3 locations

PHPDaemon/Thread/Master.php 1 location

@@ 424-434 (lines=11) @@
421
     * Handler for the SIGHUP (reload config) signal in master process
422
     * @return void
423
     */
424
    protected function sighup()
425
    {
426
        if (Daemon::$config->logsignals->value) {
427
            $this->log('Caught SIGHUP (reload config).');
428
        }
429
430
        if (isset(Daemon::$config->configfile)) {
431
            Daemon::loadConfig(Daemon::$config->configfile->value);
432
        }
433
434
        $this->signalToChildren(SIGHUP);
435
    }
436
437
    /**

PHPDaemon/Thread/IPC.php 1 location

@@ 287-297 (lines=11) @@
284
     * Handler of the SIGHUP (reload config) signal in worker process.
285
     * @return void
286
     */
287
    public function sighup()
288
    {
289
        if (Daemon::$config->logsignals->value) {
290
            $this->log('caught SIGHUP (reload config).');
291
        }
292
293
        if (isset(Daemon::$config->configfile->value)) {
294
            Daemon::loadConfig(Daemon::$config->configfile->value);
295
        }
296
297
        $this->update = true;
298
    }
299
300
    /**

PHPDaemon/Thread/Worker.php 1 location

@@ 668-678 (lines=11) @@
665
     * Handler of the SIGHUP (reload config) signal in worker process.
666
     * @return void
667
     */
668
    protected function sighup()
669
    {
670
        if (Daemon::$config->logsignals->value) {
671
            $this->log('caught SIGHUP (reload config).');
672
        }
673
674
        if (isset(Daemon::$config->configfile->value)) {
675
            Daemon::loadConfig(Daemon::$config->configfile->value);
676
        }
677
678
        $this->update = true;
679
    }
680
681
    /**