original_string: protected function prepareTags($tags)
      {
          if (is_string($tags) && mb_strpos($tags, static::getTagsDelimiter()) !== false) {
              $delimiter = preg_quote(static::getTagsDelimiter(), '#');
              $tags = array_map('trim', preg_split("#[{$delimiter}]#", $tags, -1, PREG_SPLIT_NO_EMPTY));
          }
  
          return $tags;
      }
code: protected function prepareTags($tags)
      {
          if (is_string($tags) && mb_strpos($tags, static::getTagsDelimiter()) !== false) {
              $delimiter = preg_quote(static::getTagsDelimiter(), '#');
              $tags = array_map('trim', preg_split("#[{$delimiter}]#", $tags, -1, PREG_SPLIT_NO_EMPTY));
          }
  
          return $tags;
      }
code_tokens: protected function prepareTags ( $ tags ) { if ( is_string ( $ tags ) && mb_strpos ( $ tags , static :: getTagsDelimiter ( ) ) !== false ) { $ delimiter = preg_quote ( static :: getTagsDelimiter ( ) , '#' ) ; $ tags = array_map ( 'trim' , preg_split ( "#[{$delimiter}]#" , $ tags , - 1 , PREG_SPLIT_NO_EMPTY ) ) ; } return $ tags ; }
docstring: Prepare tag list.
  
  @param int|string|array|\ArrayAccess|\Rinvex\Taggable\Tag $tags
  
  @return mixed
docstring_tokens: Prepare tag list .