public function extendBubble($message)
    {
        $characterLength = $this->getMaxLineLength($this->character);
        $exploded_message = explode("\n", $message);
        $padded_message = array_map( function ($line) use ($characterLength) {
            return str_pad($line, $characterLength, ' ');
        },$exploded_message);

        return implode("\n",$padded_message);
    }
public function extendBubble($message)
    {
        $characterLength = $this->getMaxLineLength($this->character);
        $exploded_message = explode("\n", $message);
        $padded_message = array_map( function ($line) use ($characterLength) {
            return str_pad($line, $characterLength, ' ');
        },$exploded_message);

        return implode("\n",$padded_message);
    }
public function extendBubble ( $ message ) { $ characterLength = $ this -> getMaxLineLength ( $ this -> character ) ; $ exploded_message = explode ( "\n" , $ message ) ; $ padded_message = array_map ( function ( $ line ) use ( $ characterLength ) { return str_pad ( $ line , $ characterLength , ' ' ) ; } , $ exploded_message ) ; return implode ( "\n" , $ padded_message ) ; }
Used to pad the bubble to fit at least the size of the animal with empty spaces.
@param $message
@return string
Used to pad the bubble to fit at least the size of the animal with empty spaces .