original_string: public static function findByName($tags, string $group = null, string $locale = null): Collection
      {
          $locale = $locale ?? app()->getLocale();
  
          return collect(Taggable::parseDelimitedTags($tags))->map(function (string $tag) use ($group, $locale) {
              return ($exists = static::firstByName($tag, $group, $locale)) ? $exists->getKey() : null;
          })->filter()->unique();
      }
code: public static function findByName($tags, string $group = null, string $locale = null): Collection
      {
          $locale = $locale ?? app()->getLocale();
  
          return collect(Taggable::parseDelimitedTags($tags))->map(function (string $tag) use ($group, $locale) {
              return ($exists = static::firstByName($tag, $group, $locale)) ? $exists->getKey() : null;
          })->filter()->unique();
      }
code_tokens: public static function findByName ( $ tags , string $ group = null , string $ locale = null ) : Collection { $ locale = $ locale ?? app ( ) -> getLocale ( ) ; return collect ( Taggable :: parseDelimitedTags ( $ tags ) ) -> map ( function ( string $ tag ) use ( $ group , $ locale ) { return ( $ exists = static :: firstByName ( $ tag , $ group , $ locale ) ) ? $ exists -> getKey ( ) : null ; } ) -> filter ( ) -> unique ( ) ; }
docstring: Find tag by name.
  
  @param mixed       $tags
  @param string|null $group
  @param string|null $locale
  
  @return \Illuminate\Support\Collection
docstring_tokens: Find tag by name .