Showing 5,566 of 7,504 total issues
Method send_through_proxy
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function send_through_proxy( $uri ) {
// parse_url() only handles http, https type URLs, and will emit E_WARNING on failure.
// This will be displayed on blogs, which is not reasonable.
$check = @parse_url($uri);
Method block_request
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function block_request($uri) {
// We don't need to block requests, because nothing is blocked.
if ( ! defined( 'WP_HTTP_BLOCK_EXTERNAL' ) || ! WP_HTTP_BLOCK_EXTERNAL )
return false;
Method BatchImpl
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static IEnumerable<TResult> BatchImpl<TSource, TResult>(this IEnumerable<TSource> source, int size,
Func<IEnumerable<TSource>, TResult> resultSelector)
{
Debug.Assert(source != null);
Debug.Assert(size > 0);
Method start_el
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function start_el(&$output, $page, $depth, $args, $current_page) {
if ( $depth )
$indent = str_repeat("\t", $depth);
else
$indent = '';
Method Handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public IEnumerable Handle(Func<Guid, ContingentAggregate> al, SaveTravelPlans command)
{
var contingentAggregate = al(command.Id);
var travelPlans = command.TravelPlans.Select(x => new TravelPlansChanged.TravelPlan
Method Index
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public ActionResult Index(string year)
{
var connectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
using (var con = new SqlConnection(connectionString))
Function modalParticipantController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var modalParticipantController = function ($scope, $q, $modalInstance, dataService, participant, team, year, guestpackages) {
Consider simplifying this complex logical expression. Open
Open
if(!shift && !ctrl && !alt && !meta) { // No Modifiers
mapPoint = cbMap[special] || cbMap[character]
}
// deals with combinaitons (alt|ctrl|shift+anything)
else{
Consider simplifying this complex logical expression. Open
Open
if (value != null && (element.type != 'submit' || (!submitted &&
submit !== false && (!submit || key == submit) && (submitted = true)))) {
if (key in result) {
// a key is already present; construct an array of values
if (!Object.isArray(result[key])) result[key] = [result[key]];
Consider simplifying this complex logical expression. Open
Open
if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
TB_PrevCaption = "";
TB_PrevURL = "";
TB_PrevHTML = "";
Consider simplifying this complex logical expression. Open
Open
if (value != null && (element.type != 'submit' || (!submitted &&
submit !== false && (!submit || key == submit) && (submitted = true)))) {
if (key in result) {
// a key is already present; construct an array of values
if (!Object.isArray(result[key])) result[key] = [result[key]];
Method get_image_send_to_editor
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') {
Method image_add_caption
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ) {
Method _rows
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0 ) {
Consider simplifying this complex logical expression. Open
Open
if ( ! $error &&
(
( !empty($credentials['password']) && !empty($credentials['username']) && !empty($credentials['hostname']) ) ||
( 'ssh' == $credentials['connection_type'] && !empty($credentials['public_key']) && !empty($credentials['private_key']) )
) ) {
Consider simplifying this complex logical expression. Open
Open
if ( isset( $plugin_page ) &&
($plugin_page == $submenu_array[2] ) &&
(($parent == $pagenow ) || ($parent == $plugin_page ) || ($plugin_page == $hook ) || (($pagenow == 'admin.php' ) && ($parent1 != $submenu_array[2] ) ) )
) {
$title = $submenu_array[3];
Consider simplifying this complex logical expression. Open
Open
<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?> <li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
Consider simplifying this complex logical expression. Open
Open
if ( $show_all || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) :
$link = str_replace('%_%', 1 == $n ? '' : $format, $base);
$link = str_replace('%#%', $n, $link);
if ( $add_args )
$link = add_query_arg( $add_args, $link );
Consider simplifying this complex logical expression. Open
Open
if (!in_array($href, $done) && in_array('feed', $rel) || (in_array('alternate', $rel) && !in_array('stylesheet', $rel) && $link->hasAttribute('type') && in_array(strtolower($this->registry->call('Misc', 'parse_mime', array($link->getAttribute('type')))), array('application/rss+xml', 'application/atom+xml'))) && !isset($feeds[$href]))
{
$this->checked_feeds++;
$headers = array(
'Accept' => 'application/atom+xml, application/rss+xml, application/rdf+xml;q=0.9, application/xml;q=0.8, text/xml;q=0.8, text/html;q=0.7, unknown/unknown;q=0.1, application/unknown;q=0.1, */*;q=0.1',
Consider simplifying this complex logical expression. Open
Open
if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) )
&& $args->fallback_cb && is_callable( $args->fallback_cb ) )
return call_user_func( $args->fallback_cb, (array) $args );