Code Duplication    Length = 11-11 lines in 3 locations

PHPDaemon/Thread/IPC.php 1 location

@@ 300-310 (lines=11) @@
297
	 * Handler of the SIGHUP (reload config) signal in worker process.
298
	 * @return void
299
	 */
300
	public function sighup() {
301
		if (Daemon::$config->logsignals->value) {
302
			$this->log('caught SIGHUP (reload config).');
303
		}
304
305
		if (isset(Daemon::$config->configfile->value)) {
306
			Daemon::loadConfig(Daemon::$config->configfile->value);
307
		}
308
309
		$this->update = true;
310
	}
311
312
	/**
313
	 * Handler of the SIGUSR1 (re-open log-file) signal in worker process.

PHPDaemon/Thread/Worker.php 1 location

@@ 704-714 (lines=11) @@
701
	 * Handler of the SIGHUP (reload config) signal in worker process.
702
	 * @return void
703
	 */
704
	protected function sighup() {
705
		if (Daemon::$config->logsignals->value) {
706
			$this->log('caught SIGHUP (reload config).');
707
		}
708
709
		if (isset(Daemon::$config->configfile->value)) {
710
			Daemon::loadConfig(Daemon::$config->configfile->value);
711
		}
712
713
		$this->update = true;
714
	}
715
716
	/**
717
	 * Handler of the SIGUSR1 (re-open log-file) signal in worker process.

PHPDaemon/Thread/Master.php 1 location

@@ 417-427 (lines=11) @@
414
	 * Handler for the SIGHUP (reload config) signal in master process
415
	 * @return void
416
	 */
417
	protected function sighup() {
418
		if (Daemon::$config->logsignals->value) {
419
			$this->log('Caught SIGHUP (reload config).');
420
		}
421
422
		if (isset(Daemon::$config->configfile)) {
423
			Daemon::loadConfig(Daemon::$config->configfile->value);
424
		}
425
426
		$this->signalToChildren(SIGHUP);
427
	}
428
429
	/**
430
	 * Handler for the SIGUSR1 (re-open log-file) signal in master process