protected function serverInfo(Infoset $info) {
		$infoTable = $this->createTable();
		$infoTable->setTitle('Info');
		
		if (! empty($_SERVER['REQUEST_TIME'])) {
			$infoTable[] = ['Request time: ', date(DATE_RFC3339, $_SERVER['REQUEST_TIME'])];
		}
		
		foreach (self::$serverInfo as $groupName => $groupInfo) {
			foreach ($groupInfo as $title => $item) {
				if (empty($_SERVER[$item])) {
					continue;
				}
				
				$value = $_SERVER[$item];
				
				if (strlen($value) > 1024) {
					$value = substr($value, 0, 1024) . '...';
				}
				
				if ($groupName === 'http') {
					$infoTable->pushSuccess([$title . ':', $value]);
					continue;
				}
				
				if ($groupName === 'server') {
					$infoTable->pushInfo([$title . ':', $value]);
					continue;
				}
				
				$infoTable->pushContent([$title . ':', $value]);
			}
		}
		
		$info[] = $infoTable;
	}
protected function serverInfo(Infoset $info) {
		$infoTable = $this->createTable();
		$infoTable->setTitle('Info');
		
		if (! empty($_SERVER['REQUEST_TIME'])) {
			$infoTable[] = ['Request time: ', date(DATE_RFC3339, $_SERVER['REQUEST_TIME'])];
		}
		
		foreach (self::$serverInfo as $groupName => $groupInfo) {
			foreach ($groupInfo as $title => $item) {
				if (empty($_SERVER[$item])) {
					continue;
				}
				
				$value = $_SERVER[$item];
				
				if (strlen($value) > 1024) {
					$value = substr($value, 0, 1024) . '...';
				}
				
				if ($groupName === 'http') {
					$infoTable->pushSuccess([$title . ':', $value]);
					continue;
				}
				
				if ($groupName === 'server') {
					$infoTable->pushInfo([$title . ':', $value]);
					continue;
				}
				
				$infoTable->pushContent([$title . ':', $value]);
			}
		}
		
		$info[] = $infoTable;
	}
protected function serverInfo ( Infoset $ info ) { $ infoTable = $ this -> createTable ( ) ; $ infoTable -> setTitle ( 'Info' ) ; if ( ! empty ( $ _SERVER [ 'REQUEST_TIME' ] ) ) { $ infoTable [ ] = [ 'Request time: ' , date ( DATE_RFC3339 , $ _SERVER [ 'REQUEST_TIME' ] ) ] ; } foreach ( self :: $ serverInfo as $ groupName => $ groupInfo ) { foreach ( $ groupInfo as $ title => $ item ) { if ( empty ( $ _SERVER [ $ item ] ) ) { continue ; } $ value = $ _SERVER [ $ item ] ; if ( strlen ( $ value ) > 1024 ) { $ value = substr ( $ value , 0 , 1024 ) . '...' ; } if ( $ groupName === 'http' ) { $ infoTable -> pushSuccess ( [ $ title . ':' , $ value ] ) ; continue ; } if ( $ groupName === 'server' ) { $ infoTable -> pushInfo ( [ $ title . ':' , $ value ] ) ; continue ; } $ infoTable -> pushContent ( [ $ title . ':' , $ value ] ) ; } } $ info [ ] = $ infoTable ; }
Collect the server information

@param Infoset $info
Collect the server information