wpscanteam/wpscan

View on GitHub
app/views/json/enumeration/db_exports.erb

Summary

Maintainability
Test Coverage
"db_exports": {
<% unless @db_exports.empty? -%>
<% last_index = @db_exports.size - 1 -%>
<% @db_exports.each_with_index do |db_export, index| -%>
  <%= db_export.url.to_json %>: {
    <%= render('@finding', item: db_export) -%>
  }<% unless index == last_index -%>,<% end -%>
<% end -%>
<% end -%>
},