class Koji::Plugins::CakePHP
Public Instance Methods
debug_toolbar()
click to toggle source
# File lib/koji/plugins/cakephp.rb, line 6 def debug_toolbar website.body&.to_s&.include?("js_debug_toolbar.js") && website.body&.to_s&.include?("debug_toolbar.css") end
evidence_list()
click to toggle source
# File lib/koji/plugins/cakephp.rb, line 10 def evidence_list @evidence_list ||= [].tap do |out| out << "The website contains CakePHP's debug toolbar" if debug_toolbar end end
score()
click to toggle source
# File lib/koji/plugins/cakephp.rb, line 16 def score evidence_list.empty? ? 0 : 100 end