Code Duplication    Length = 5-6 lines in 2 locations

PHPDaemon/Core/Daemon.php 2 locations

@@ 647-652 (lines=6) @@
644
					// shutdown
645
					++$stat['shutdown'];
646
				}
647
				elseif ($code === Daemon::WSTATE_PREINIT) {
648
					// pre-init
649
					++$stat['alive'];
650
					++$stat['preinit'];
651
					++$stat['idle'];
652
				}
653
				elseif ($code === Daemon::WSTATE_INIT) { // init
654
					++$stat['alive'];
655
					++$stat['init'];
@@ 653-657 (lines=5) @@
650
					++$stat['preinit'];
651
					++$stat['idle'];
652
				}
653
				elseif ($code === Daemon::WSTATE_INIT) { // init
654
					++$stat['alive'];
655
					++$stat['init'];
656
					++$stat['idle'];
657
				}
658
			}
659
		}
660
		//Daemon::log('readedStr: '.Debug::exportBytes($readedStr, true));