src/Helper.php
public static function standardize($value, $toArray = false)
    {
        if (is_array($value) || ((strpos($value, '|') === false) && !$toArray)) {
            return $value;
        }

        return explode('|', $value);
    }
public static function standardize($value, $toArray = false)
    {
        if (is_array($value) || ((strpos($value, '|') === false) && !$toArray)) {
            return $value;
        }

        return explode('|', $value);
    }
public static function standardize ( $ value , $ toArray = false ) { if ( is_array ( $ value ) || ( ( strpos ( $ value , '|' ) === false ) && ! $ toArray ) ) { return $ value ; } return explode ( '|' , $ value ) ; }
Checks if the string passed contains a pipe '|' and explodes the string to an array.
@param  string|array  $value
@return string|array
Checks if the string passed contains a pipe | and explodes the string to an array .