src/AttachableTrait.php
public function prepareAttaches($attaches)
    {
        if (is_null($attaches)) {
            return [];
        }

        if (is_string($attaches)) {
            $delimiter = preg_quote($this->getAttachesDelimiter(), '#');

            $attaches = array_map('trim',
                preg_split("#[{$delimiter}]#", $attaches, null, PREG_SPLIT_NO_EMPTY)
            );
        }

        return array_unique(array_filter($attaches));
    }
public function prepareAttaches($attaches)
    {
        if (is_null($attaches)) {
            return [];
        }

        if (is_string($attaches)) {
            $delimiter = preg_quote($this->getAttachesDelimiter(), '#');

            $attaches = array_map('trim',
                preg_split("#[{$delimiter}]#", $attaches, null, PREG_SPLIT_NO_EMPTY)
            );
        }

        return array_unique(array_filter($attaches));
    }
{@inheritdoc}