original_string: protected function getMessagesForWildcardKey($key, $format)
      {
          return collect($this->messages)
                  ->filter(function ($messages, $messageKey) use ($key) {
                      return Str::is($key, $messageKey);
                  })
                  ->map(function ($messages, $messageKey) use ($format) {
                      return $this->transform(
                          $messages, $this->checkFormat($format), $messageKey
                      );
                  })->all();
      }
code: protected function getMessagesForWildcardKey($key, $format)
      {
          return collect($this->messages)
                  ->filter(function ($messages, $messageKey) use ($key) {
                      return Str::is($key, $messageKey);
                  })
                  ->map(function ($messages, $messageKey) use ($format) {
                      return $this->transform(
                          $messages, $this->checkFormat($format), $messageKey
                      );
                  })->all();
      }
code_tokens: protected function getMessagesForWildcardKey ( $ key , $ format ) { return collect ( $ this -> messages ) -> filter ( function ( $ messages , $ messageKey ) use ( $ key ) { return Str :: is ( $ key , $ messageKey ) ; } ) -> map ( function ( $ messages , $ messageKey ) use ( $ format ) { return $ this -> transform ( $ messages , $ this -> checkFormat ( $ format ) , $ messageKey ) ; } ) -> all ( ) ; }
docstring: Get the messages for a wildcard key.
  
  @param  string  $key
  @param  string|null  $format
  @return array
docstring_tokens: Get the messages for a wildcard key .