original_string: protected static function convertToTags($values)
      {
          return collect($values)->map(function ($value) {
              if ($value instanceof Tag) {
                  return $value;
              }
  
              return Tag::where('slug', '=', $value)->first();
          });
      }
code: protected static function convertToTags($values)
      {
          return collect($values)->map(function ($value) {
              if ($value instanceof Tag) {
                  return $value;
              }
  
              return Tag::where('slug', '=', $value)->first();
          });
      }
code_tokens: protected static function convertToTags ( $ values ) { return collect ( $ values ) -> map ( function ( $ value ) { if ( $ value instanceof Tag ) { return $ value ; } return Tag :: where ( 'slug' , '=' , $ value ) -> first ( ) ; } ) ; }
docstring: Convert a list of tags into a collection of \CachetHQ\Cachet\Models\Tag.
  
  @param array|\ArrayAccess $values
  
  @return \Illuminate\Support\Collection
docstring_tokens: Convert a list of tags into a collection of \ CachetHQ \ Cachet \ Models \ Tag .