original_string: protected static function readWord(\Jstewmc\Stream\Stream $stream) 
  	{
  		$word = '';
  				
  		// if the current character is an alphabetic character
  		if (ctype_alpha($stream->current())) {
  			// loop through the alphabetic characters and build the word
  			while (ctype_alpha($stream->current())) {
  				$word .= $stream->current();
  				$stream->next();
  			}
  		} else {
  			throw new \InvalidArgumentException(
  				__METHOD__."() expects the current element in parameter one, characters, "
  					. "to be an alphabetic character"	
  			);
  		}
  		
  		return $word;
  	}
code: protected static function readWord(\Jstewmc\Stream\Stream $stream) 
  	{
  		$word = '';
  				
  		// if the current character is an alphabetic character
  		if (ctype_alpha($stream->current())) {
  			// loop through the alphabetic characters and build the word
  			while (ctype_alpha($stream->current())) {
  				$word .= $stream->current();
  				$stream->next();
  			}
  		} else {
  			throw new \InvalidArgumentException(
  				__METHOD__."() expects the current element in parameter one, characters, "
  					. "to be an alphabetic character"	
  			);
  		}
  		
  		return $word;
  	}
code_tokens: protected static function readWord ( \ Jstewmc \ Stream \ Stream $ stream ) { $ word = '' ; // if the current character is an alphabetic character if ( ctype_alpha ( $ stream -> current ( ) ) ) { // loop through the alphabetic characters and build the word while ( ctype_alpha ( $ stream -> current ( ) ) ) { $ word .= $ stream -> current ( ) ; $ stream -> next ( ) ; } } else { throw new \ InvalidArgumentException ( __METHOD__ . "() expects the current element in parameter one, characters, " . "to be an alphabetic character" ) ; } return $ word ; }
docstring: Reads a control word's word from the character stream
  
  @param  Jstewmc\Stream  $stream  a stream of characters (the current character
  must be a alphabetic character)
  @return  string
  @throws  InvalidArgumentException  if the current element in $stream is not
  an alphabetic character
  @since  0.1.0
  @since  0.2.0  replace argument $characters, an array of characters, with $stream
  an instance of Jstewmc\Stream
docstring_tokens: Reads a control word s word from the character stream