original_string: public static function init($data_directory = null)
  	{
  		$coverage_tool = new self($data_directory);
  		$mode = isset($_GET['rct_mode']) ? $_GET['rct_mode'] : '';
  
  		if ( $mode == 'output' ) {
  			echo $coverage_tool->aggregateCoverageInformation();
  		}
  		else {
  			$coverage_tool->startCollection();
  			register_shutdown_function(array($coverage_tool, 'stopCollection'));
  		}
  	}
code: public static function init($data_directory = null)
  	{
  		$coverage_tool = new self($data_directory);
  		$mode = isset($_GET['rct_mode']) ? $_GET['rct_mode'] : '';
  
  		if ( $mode == 'output' ) {
  			echo $coverage_tool->aggregateCoverageInformation();
  		}
  		else {
  			$coverage_tool->startCollection();
  			register_shutdown_function(array($coverage_tool, 'stopCollection'));
  		}
  	}
code_tokens: public static function init ( $ data_directory = null ) { $ coverage_tool = new self ( $ data_directory ) ; $ mode = isset ( $ _GET [ 'rct_mode' ] ) ? $ _GET [ 'rct_mode' ] : '' ; if ( $ mode == 'output' ) { echo $ coverage_tool -> aggregateCoverageInformation ( ) ; } else { $ coverage_tool -> startCollection ( ) ; register_shutdown_function ( array ( $ coverage_tool , 'stopCollection' ) ) ; } }
docstring: Collects & reports coverage information.
  
  @param string|null $data_directory Directory for coverage information collection.
  
  @return void
docstring_tokens: Collects & reports coverage information .