]> git.openstreetmap.org Git - rails.git/blobdiff - lib/rich_text.rb
Changed close buttons of banner and other leaflet sidebars to Bootstrap
[rails.git] / lib / rich_text.rb
index 8950c68888bafd65f2f61355164838ef29d39508..a0c4d9c8debc70fb3a39c6a32d7ffecf7b9aa867 100644 (file)
@@ -44,9 +44,9 @@ module RichText
         doc.content.include?(phrase)
       end
 
         doc.content.include?(phrase)
       end
 
-      [link_proportion - 0.2, 0.0].max * 200 +
-        link_count * 40 +
-        spammy_phrases * 40
+      ([link_proportion - 0.2, 0.0].max * 200) +
+        (link_count * 40) +
+        (spammy_phrases * 40)
     end
 
     protected
     end
 
     protected