Code Duplication    Length = 11-11 lines in 3 locations

PHPDaemon/Thread/IPC.php 1 location

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

PHPDaemon/Thread/Worker.php 1 location

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

PHPDaemon/Thread/Master.php 1 location

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