Showing 5,566 of 7,504 total issues
Method redirect_page
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function redirect_page($page_ID) {
global $action;
$referredby = '';
if ( !empty($_POST['referredby']) ) {
Method do_item
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function do_item( $handle ) {
if ( !parent::do_item($handle) )
return false;
$ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version;
Method get_term
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function &get_term($term, $taxonomy, $output = OBJECT, $filter = 'raw') {
global $wpdb;
$null = null;
if ( empty($term) ) {
Method ChannelsBitratePlaytimeCalculations
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ChannelsBitratePlaytimeCalculations() {
// set channelmode on audio
if (!empty($this->info['audio']['channelmode']) || !isset($this->info['audio']['channels'])) {
// ignore
Method ETCOEventLookup
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function ETCOEventLookup($index) {
if (($index >= 0x17) && ($index <= 0xDF)) {
return 'reserved for future use';
}
if (($index >= 0xE0) && ($index <= 0xEF)) {
Method set_host
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function set_host($ihost)
{
if ($ihost === null)
{
$this->ihost = null;
Method safecss_filter_attr
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function safecss_filter_attr( $css, $deprecated = '' ) {
$css = wp_kses_no_null($css);
$css = str_replace(array("\n","\r","\t"), '', $css);
if ( preg_match( '%[\\(&]|/\*%', $css ) ) // remove any inline css containing \ ( & or comments
Method get_the_content
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_the_content($more_link_text = null, $stripteaser = 0) {
global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;
if ( null === $more_link_text )
$more_link_text = __( '(more...)' );
Method render_content
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function render_content() {
$src = $this->value();
if ( isset( $this->get_url ) )
$src = call_user_func( $this->get_url, $src );
Method array_unique
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function array_unique($array)
{
if (version_compare(PHP_VERSION, '5.2', '>='))
{
return array_unique($array);
Method switch_to_blog
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function switch_to_blog( $new_blog, $deprecated = null ) {
global $wpdb, $wp_roles;
if ( empty( $new_blog ) )
$new_blog = $GLOBALS['blog_id'];
Method restore_current_blog
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function restore_current_blog() {
global $wpdb, $wp_roles;
if ( empty( $GLOBALS['_wp_switched_stack'] ) )
return false;
Method _changed
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _changed( $orig, $final ) {
$r = '';
// Does the aforementioned additional processing
// *_matches tell what rows are "the same" in orig and final. Those pairs will be diffed to get word changes
Method Handle
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Handle(ParticipantGameCompleted e)
{
var divisionName = SimplifyDivision(e.Division);
var year = "2014";
if (MatchYearLookup.ContainsKey(e.Id))
Function $get
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = function() {
var $log = {
log: function() { $log.log.logs.push(concat([], arguments, 0)); },
warn: function() { $log.warn.logs.push(concat([], arguments, 0)); },
info: function() { $log.info.logs.push(concat([], arguments, 0)); },
Function _readEntryAsFiles
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _readEntryAsFiles(entry, callback){
if( !entry ){
// error
callback('invalid entry');
}
Function AppInsights
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AppInsights(config) {
var _this = this;
this.config = config || {};
var defaults = AppInsights.defaultConfig;
if (defaults !== undefined) {
Function _setupRemoveUI
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupRemoveUI: function() {
var self = this, $removeBtn, replaceDeleteWithRemove;
// Configure remove button
$removeBtn = this.container.find( 'a.widget-control-remove' );
Function createStates
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createStates: function() {
this.states.add([
new media.controller.VideoDetails({
media: this.media
}),
Function getAnchorPosition
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getAnchorPosition(anchorname) {
// This function will return an Object with x and y properties
var useWindow=false;
var coordinates=new Object();
var x=0,y=0;