src/Console/Drawing/Geometry.php
protected function getSpacesByWord($word)
	{
		$length = $this->getSideBordersLength() + static::SPACE_FROM_ARROW + static::ARROW_WIDTH;

		$extra = $this->getHalfWidth(true) - $length - strlen($word);

		return $extra > 0 ? str_repeat(' ', $extra) : '';
	}
protected function getSpacesByWord($word)
	{
		$length = $this->getSideBordersLength() + static::SPACE_FROM_ARROW + static::ARROW_WIDTH;

		$extra = $this->getHalfWidth(true) - $length - strlen($word);

		return $extra > 0 ? str_repeat(' ', $extra) : '';
	}
protected function getSpacesByWord ( $ word ) { $ length = $ this -> getSideBordersLength ( ) + static :: SPACE_FROM_ARROW + static :: ARROW_WIDTH ; $ extra = $ this -> getHalfWidth ( true ) - $ length - strlen ( $ word ) ; return $ extra > 0 ? str_repeat ( ' ' , $ extra ) : '' ; }
Retrieve the blank spaces close to a word.

@author	Andrea Marco Sartori
@param	string	$word
@return	string
Retrieve the blank spaces close to a word .