Code Duplication    Length = 6-6 lines in 2 locations

PHPDaemon/Thread/Worker.php 2 locations

@@ 528-533 (lines=6) @@
525
	 * Graceful restart
526
	 * @return void
527
	 */
528
	public function gracefulRestart() {
529
		$this->reload     = true;
530
		$this->graceful = true;
531
		$this->reloadTime = microtime(true) + $this->reloadDelay;
532
		$this->setState($this->state);
533
	}
534
535
	/**
536
	 * Graceful stop
@@ 539-544 (lines=6) @@
536
	 * Graceful stop
537
	 * @return void
538
	 */
539
	public function gracefulStop() {
540
		$this->breakMainLoop = true;
541
		$this->graceful = true;
542
		$this->reloadTime = microtime(true) + $this->reloadDelay;
543
		$this->setState($this->state);
544
	}
545
546
	/**
547
	 * Asks the running applications the whether we can go to shutdown current (old) worker.