original_string: public function filterByExtension()
  	{
  		// The call back that filters files through the finder
  		$filter = function (\SplFileInfo $file) {
  			
  			return in_array($file->getExtension(), $this->extensions);
  		};
  
  		$this->filter($filter);
  	}
code: public function filterByExtension()
  	{
  		// The call back that filters files through the finder
  		$filter = function (\SplFileInfo $file) {
  			
  			return in_array($file->getExtension(), $this->extensions);
  		};
  
  		$this->filter($filter);
  	}
code_tokens: public function filterByExtension ( ) { // The call back that filters files through the finder $ filter = function ( \ SplFileInfo $ file ) { return in_array ( $ file -> getExtension ( ) , $ this -> extensions ) ; } ; $ this -> filter ( $ filter ) ; }
docstring: Filters file results by their extension
  
  @return void
  @author Dan Cox
docstring_tokens: Filters file results by their extension