original_string: protected function extractHeaders($data)
  	{
  		$headers = array_keys($data[0]);
  
  		// Remove hidden fields from headers if supplied
  		foreach ($this->options['hiddenFields'] as $hiddenField) {
  			if (in_array($hiddenField, $headers)) {
  				array_splice($headers, array_search($hiddenField, $headers), 1);
  			}
  		}
  
  		if (!empty($this->options['actions'])) {
  			$headers[] = 'Actions';
  		}
  
  		return $headers;
  	}
code: protected function extractHeaders($data)
  	{
  		$headers = array_keys($data[0]);
  
  		// Remove hidden fields from headers if supplied
  		foreach ($this->options['hiddenFields'] as $hiddenField) {
  			if (in_array($hiddenField, $headers)) {
  				array_splice($headers, array_search($hiddenField, $headers), 1);
  			}
  		}
  
  		if (!empty($this->options['actions'])) {
  			$headers[] = 'Actions';
  		}
  
  		return $headers;
  	}
code_tokens: protected function extractHeaders ( $ data ) { $ headers = array_keys ( $ data [ 0 ] ) ; // Remove hidden fields from headers if supplied foreach ( $ this -> options [ 'hiddenFields' ] as $ hiddenField ) { if ( in_array ( $ hiddenField , $ headers ) ) { array_splice ( $ headers , array_search ( $ hiddenField , $ headers ) , 1 ) ; } } if ( ! empty ( $ this -> options [ 'actions' ] ) ) { $ headers [ ] = 'Actions' ; } return $ headers ; }
docstring: Get Table headers from data
docstring_tokens: Get Table headers from data