Showing 5,566 of 7,504 total issues
Method take_action
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function take_action() {
if ( empty($_POST) )
return;
Method wp_getPosts
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getPosts( $args ) {
if ( ! $this->minimum_args( $args, 3 ) )
return $this->error;
$this->escape( $args );
Method get_theme_data
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_theme_data( $theme_file ) {
$default_headers = array(
'Name' => 'Theme Name',
'URI' => 'Theme URI',
'Description' => 'Description',
Method wp_set_object_terms
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_set_object_terms($object_id, $terms, $taxonomy, $append = false) {
global $wpdb;
$object_id = (int) $object_id;
Method import_from_reader
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function import_from_reader($reader) {
$endian_string = MO::get_byteorder($reader->readint32());
if (false === $endian_string) {
return false;
}
Consider simplifying this complex logical expression. Open
Open
if ( 'post' == $current_screen->base
&& 'add' != $current_screen->action
&& ( $post_type_object = get_post_type_object( $post->post_type ) )
&& current_user_can( 'read_post', $post->ID )
&& ( $post_type_object->public )
Consider simplifying this complex logical expression. Open
Open
if ($integer >= 0x41 && $integer <= 0x5A || $integer >= 0x61 && $integer <= 0x7A || $integer >= 0x30 && $integer <= 0x39 || $integer === 0x2D || $integer === 0x2E || $integer === 0x5F || $integer === 0x7E)
{
return chr($integer);
}
else
Method print_header_image_template
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function print_header_image_template() {
?>
<script type="text/template" id="tmpl-header-choice">
<# if (data.random) { #>
<button type="button" class="button display-options random">
Method render
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render($diff)
{
$xi = $yi = 1;
$block = false;
$context = array();
Consider simplifying this complex logical expression. Open
Open
if ( isset( $hour ) && ! isset( $minute ) && ! isset( $second ) && false !== ( $value = $this->build_value( $compare, $hour ) ) ) {
return "HOUR( $column ) $compare $value";
} elseif ( ! isset( $hour ) && isset( $minute ) && ! isset( $second ) && false !== ( $value = $this->build_value( $compare, $minute ) ) ) {
return "MINUTE( $column ) $compare $value";
} elseif ( ! isset( $hour ) && ! isset( $minute ) && isset( $second ) && false !== ( $value = $this->build_value( $compare, $second ) ) ) {
Consider simplifying this complex logical expression. Open
Open
if ($integer >= 0x41 && $integer <= 0x5A || $integer >= 0x61 && $integer <= 0x7A || $integer >= 0x30 && $integer <= 0x39 || $integer === 0x2D || $integer === 0x2E || $integer === 0x5F || $integer === 0x7E)
{
return chr($integer);
}
else
Function addTheme
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Galleria.addTheme = function( theme ) {
// make sure we have a name
if ( !theme.name ) {
Galleria.raise('No theme name specified');
Function modalParticipantController
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var modalParticipantController = function ($scope, $q, $modalInstance, dataService, participant, team, year, guestpackages) {
$scope.model = {};
$scope.model.title = team.Name;
$scope.model.participant = participant || { Package: {} };
Function _setupWideWidget
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupWideWidget: function() {
var self = this, $widgetInside, $widgetForm, $customizeSidebar,
$themeControlsContainer, positionWidget;
if ( ! this.params.is_wide ) {
Function sync
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sync: function( method, model, options ) {
// If the attachment does not yet have an `id`, return an instantly
// rejected promise. Otherwise, all of our requests will fail.
if ( _.isUndefined( this.id ) ) {
return $.Deferred().rejectWith( this ).promise();
Function show
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function show() {
var parent = $('#wp-auth-check'),
form = $('#wp-auth-check-form'),
noframe = wrap.find('.wp-auth-fallback-expired'),
frame, loaded = false;
Function connect
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function connect() {
var ajaxData, heartbeatData;
// If the connection to the server is slower than the interval,
// heartbeat connects as soon as the previous connection's response is received.
Function addTheme
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Galleria.addTheme = function( theme ) {
// make sure we have a name
if ( !theme.name ) {
Galleria.raise('No theme name specified');
Method privReadCentralFileHeader
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privReadCentralFileHeader(&$p_header)
{
$v_result=1;
// ----- Read the 4 bytes signature
Method update_core
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_core($from, $to) {
global $wp_filesystem, $_old_files, $wpdb;
@set_time_limit( 300 );