class Koji::Plugins::PHPDebugBar
Public Instance Methods
debug_bar()
click to toggle source
# File lib/koji/plugins/php_debugbar.rb, line 10 def debug_bar website.body&.to_s&.include?("debugbar/debugbar.js") && website.body&.to_s&.include?("debugbar/debugbar.css") end
evidence_list()
click to toggle source
# File lib/koji/plugins/php_debugbar.rb, line 14 def evidence_list @evidence_list ||= [].tap do |out| out << "The website contains PHP DebugBar" if debug_bar || js_debug_bar end end
js_debug_bar()
click to toggle source
# File lib/koji/plugins/php_debugbar.rb, line 6 def js_debug_bar website.body&.to_s&.include? "var phpdebugbar = new PhpDebugBar.DebugBar()" end
score()
click to toggle source
# File lib/koji/plugins/php_debugbar.rb, line 20 def score evidence_list.empty? ? 0 : 100 end