Showing 5,566 of 7,504 total issues
Method Handle
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Handle(TeamGameCompleted e)
{
var teamId = e.TeamId;
//HACK: Old TeamGameCompleted events used teamid instead of bowlerid for POA singles 8'(
Method Handle
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Handle(ParticipantGameCompleted e)
{
var participant = Participants.Single(x => x.Id == e.ParticipantId);
var game = participant.Scores.SingleOrDefault(x => x.MatchId == e.Id);
Function $asArray
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Type.prototype.$asArray = function(mode, isSearch) {
if (!mode) return this;
if (mode === "auto" && !isSearch) throw new Error("'auto' array mode is for query parameters only");
function ArrayType(type, mode) {
Function readAsImage
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
readAsImage: function (file, fn, progress){
if( api.isFile(file) ){
if( apiURL ){
/** @namespace apiURL.createObjectURL */
var data = apiURL.createObjectURL(file);
Function image
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
image: function( props, attachment ) {
var img = {},
options, classes, shortcode, html;
props = wp.media.string.props( props, attachment );
Function on
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
api.on = function() {
var id, $dfwWrap, titleId;
if ( s.visible ) {
return;
Method upgrade_all
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function upgrade_all() {
global $wp_current_db_version, $wp_db_version, $wp_rewrite;
$wp_current_db_version = __get_option('db_version');
// We are up-to-date. Nothing to do.
Method page_rows
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function page_rows($pages, $pagenum = 1, $per_page = 20) {
global $wpdb;
$level = 0;
Method inline_edit_term_row
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function inline_edit_term_row($type) {
if ( ! current_user_can( 'manage_categories' ) )
return;
Method retrieve_widgets
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function retrieve_widgets() {
global $wp_registered_widget_updates, $wp_registered_sidebars, $sidebars_widgets, $wp_registered_widgets;
$_sidebars_widgets = array();
$sidebars = array_keys($wp_registered_sidebars);
Method wp_ajax_find_posts
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_find_posts() {
global $wpdb;
check_ajax_referer( 'find-posts' );
Method get_plugins
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_plugins($plugin_folder = '') {
if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
$cache_plugins = array();
Method links2wp
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function links2wp($links='')
{
// General Housekeeping
global $wpdb;
$count = 0;
Method retrieve_password
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function retrieve_password() {
global $wpdb;
$errors = new WP_Error();
Method _prepare_page
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _prepare_page( $page ) {
// Get all of the page content and link.
$full_page = get_extended( $page->post_content );
$link = post_permalink( $page->ID );
Method CopyTagsToComments
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function CopyTagsToComments(&$ThisFileInfo) {
// Copy all entries from ['tags'] into common ['comments']
if (!empty($ThisFileInfo['tags'])) {
foreach ($ThisFileInfo['tags'] as $tagtype => $tagarray) {
Method uncompress
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function uncompress($ip)
{
$c1 = -1;
$c2 = -1;
if (substr_count($ip, '::') === 1)
Method remove_rfc2822_comments
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function remove_rfc2822_comments($string)
{
$string = (string) $string;
$position = 0;
$length = strlen($string);
Method uncomment_rfc822
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function uncomment_rfc822($string)
{
$string = (string) $string;
$position = 0;
$length = strlen($string);
Method get_favicon
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_favicon()
{
if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'icon'))
{
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0]));