Showing 5,566 of 7,504 total issues
Method get_site_by_path
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_site_by_path( $domain, $path, $segments = null ) {
global $wpdb;
$path_segments = array_filter( explode( '/', trim( $path, '/' ) ) );
Method apply_filters
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function apply_filters($tag, $value) {
global $wp_filter, $merged_filters, $wp_current_filter;
$args = array();
$wp_current_filter[] = $tag;
Method setup_postdata
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setup_postdata($post) {
global $id, $authordata, $day, $currentmonth, $page, $pages, $multipage, $more, $numpages;
$id = (int) $post->ID;
Method BackupTable
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public string BackupTable(string typeName)
{
var originalTable = GetTableFor(typeName);
TableContinuationToken token = null;
Method graceful_fail
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function graceful_fail( $message ) {
_deprecated_function( __FUNCTION__, '3.0', 'wp_die()' );
$message = apply_filters( 'graceful_fail', $message );
$message_template = apply_filters( 'graceful_fail_template',
'<!DOCTYPE html>
Function ngOnChanges
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ngOnChanges(changes: any): void {
if (!(changes?.stat || changes?.year || changes?.game || changes?.division)) {
return;
}
Method Handle
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Handle(RoomTypeChanged e)
{
var tournament = GetTournamentFromContingentId(e.Id);
var contingentRooms = tournament.ContingentRooms.FirstOrDefault(x => x.Id == e.Id);
Function serialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function serialize(object) {
var out;
if (angular.isElement(object)) {
object = angular.element(object);
Function dataURLtoBlob
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.ArrayBuffer && window.Uint8Array && function (dataURI) {
var byteString,
arrayBuffer,
intArray,
i,
Function getRenderer
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getRenderer(attrs, scope) {
var statics = function() {
return {
enter: function (element, target, cb) { target.after(element); cb(); },
leave: function (element, cb) { element.remove(); cb(); }
Function $ExceptionHandlerProvider
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
angular.mock.$ExceptionHandlerProvider = function() {
var handler;
/**
* @ngdoc method
Function hide
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide : function( elem, speed, callback ) {
callback = callback || F;
var $elem = $(elem);
Function _playCheck
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_playCheck : function() {
var self = this,
played = 0,
interval = 20,
now = Utils.timestamp(),
Function participantController
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var participantController = function ($scope, $http, $q, $location, modalFactory, dataService) {
var url = $location.absUrl();
var lastSlash = url.lastIndexOf('/');
var province = url.slice(lastSlash + 1);
var year = url.slice(lastSlash - 4, lastSlash);
Function wait
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
wait : function(options) {
Galleria._waiters = Galleria._waiters || [];
options = $.extend({
Function flash
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
flash: function(params, complete) {
$(params.next).css({
opacity: 0,
left: 0
});
Function scale
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var scale = function() {
// set stagewidth
self._stageWidth = width || self.$( 'stage' ).width();
self._stageHeight = height || self.$( 'stage' ).height();
Function getElementsByClassName
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){
function iter(name) {
return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]";
}
Function ready
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ready: function() {
this.top = this.$el.offset().top;
this.window = $(window);
this.window.on( 'scroll.wp.revisions', {controls: this}, function(e) {
var controls = e.data.controls,
Function _processPosition
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_processPosition: function( position ) {
var opposite = {
top: 'bottom',
bottom: 'top',
left: 'right',