private static function createPointerString(string $string, int $padding): string
    {
        $pointer = str_repeat(" ", $padding) . "^";

        return $string . "\n" . $pointer;
    }
private static function createPointerString(string $string, int $padding): string
    {
        $pointer = str_repeat(" ", $padding) . "^";

        return $string . "\n" . $pointer;
    }
private static function createPointerString ( string $ string , int $ padding ) : string { $ pointer = str_repeat ( " " , $ padding ) . "^" ; return $ string . "\n" . $ pointer ; }
Creates a string with an arrow pointing to the character after padding.

@param string $string
@param int $padding
@return string
Creates a string with an arrow pointing to the character after padding .