public static function validateTrimmed($string)
    {
        if (SetupHelper::trim($string) === $string) {
            return (string)$string;
        }

        throw new InvalidArgumentException(
            sprintf(
                'Provided string "%1$s" was not trimmed.',
                $string
            )
        );
    }
public static function validateTrimmed($string)
    {
        if (SetupHelper::trim($string) === $string) {
            return (string)$string;
        }

        throw new InvalidArgumentException(
            sprintf(
                'Provided string "%1$s" was not trimmed.',
                $string
            )
        );
    }
public static function validateTrimmed ( $ string ) { if ( SetupHelper :: trim ( $ string ) === $ string ) { return ( string ) $ string ; } throw new InvalidArgumentException ( sprintf ( 'Provided string "%1$s" was not trimmed.' , $ string ) ) ; }
Verify that a string is trimmed or throw an Exception.

@since 0.1.0

@param string $string The string to validate.

@return string The validated string.
@throws InvalidArgumentException If the string is not trimmed.
Verify that a string is trimmed or throw an Exception .