protected function checkBlank($object, string $fieldName)
    {
        if ($object === null || strlen(trim($object)) === 0) {
            throw new \InvalidArgumentException("The \"$fieldName\" argument is required; it cannot be null, empty, nor containing only whitespace");
        }
        return $object;
    }
protected function checkBlank($object, string $fieldName)
    {
        if ($object === null || strlen(trim($object)) === 0) {
            throw new \InvalidArgumentException("The \"$fieldName\" argument is required; it cannot be null, empty, nor containing only whitespace");
        }
        return $object;
    }
protected function checkBlank ( $ object , string $ fieldName ) { if ( $ object === null || strlen ( trim ( $ object ) ) === 0 ) { throw new \ InvalidArgumentException ( "The \"$fieldName\" argument is required; it cannot be null, empty, nor containing only whitespace" ) ; } return $ object ; }
Checks that a string argument isn't null, empty, or just whitespace.

@param string $object The value to check for blankness
@param string $fieldName The name of the parameter (for Exception message)
@return mixed Returns `$object`
@throws \InvalidArgumentException if the value is null, empty, or whitespace
Checks that a string argument isn t null empty or just whitespace .