Showing 5,566 of 7,504 total issues
Consider simplifying this complex logical expression. Open
Open
if (agg.Package == null
|| agg.Package.ManitobaDinner != command.Package.ManitobaDinner
|| agg.Package.ManitobaDance != command.Package.ManitobaDance
|| agg.Package.FinalBanquet != command.Package.FinalBanquet
|| agg.Package.Transportation != command.Package.Transportation
Function ArrayType
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ArrayType(type, mode) {
function bindTo(type, callbackName) {
return function() {
return type[callbackName].apply(type, arguments);
};
Function centresController
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var centresController = function ($http, $q, $location, dataService) {
var url = $location.absUrl();
var lastSlash = url.lastIndexOf('/');
var year = url.slice(lastSlash + 1);
Function editDivisions
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function editDivisions(teams) {
var modalPromise = modalFactory.Divisions(teams);
modalPromise.then(function (data) {
//var currentTeams = $scope.model.Teams;
Function practiceController
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var practiceController = function ($scope, $http, $q, $location, dataService) {
var url = $location.absUrl();
var lastSlash = url.lastIndexOf('/');
var province = url.slice(lastSlash + 1);
var year = url.slice(lastSlash - 4, lastSlash);
Function load
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Galleria.prototype.load = function() {
// pass if no data is provided or flickr option not found
if ( arguments.length || typeof this._options.flickr !== 'string' ) {
load.apply( this, Galleria.utils.array( arguments ) );
Function initialize
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function( options ) {
var self = this;
// Set up parent
this.parent = options.parent;
Function paintElement
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
paintElement: function( $element, colorType ) {
var xml, encoded, color;
if ( ! colorType || ! colorscheme.hasOwnProperty( colorType ) ) {
return;
Function cb
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cb() {
if (cbInvoked++) return;
io.detachEvent ? io.detachEvent('onload', cb) : io.removeEventListener('load', cb, false);
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
var options = _.defaults( this.model.toJSON(), {
orientation: 'landscape',
uploading: false,
type: '',
Function load
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Galleria.prototype.load = function() {
// pass if no data is provided or flickr option not found
if ( arguments.length || typeof this._options.flickr !== 'string' ) {
load.apply( this, Galleria.utils.array( arguments ) );
Function setOptions
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOptions: function(options) {
this.options = Object.extend({
choices: 10,
partialSearch: true,
partialChars: 2,
Method PclZipUtilPathReduction
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PclZipUtilPathReduction($p_dir)
{
$v_result = "";
// ----- Look for not empty path
Method PclZipUtilPathInclusion
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PclZipUtilPathInclusion($p_dir, $p_path)
{
$v_result = 1;
// ----- Look for path beginning by ./
Method privExtractFileUsingTempFile
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privExtractFileUsingTempFile(&$p_entry, &$p_options)
{
$v_result=1;
// ----- Creates a temporary file
Method inline_edit
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function inline_edit() {
$tax = get_taxonomy( $this->screen->taxonomy );
if ( ! current_user_can( $tax->cap->edit_terms ) )
return;
Method make_site_theme_from_default
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function make_site_theme_from_default($theme_name, $template) {
$site_dir = WP_CONTENT_DIR . "/themes/$template";
$default_dir = WP_CONTENT_DIR . '/themes/default';
// Copy files from the default theme to the site theme.
Method wp_iframe
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_iframe($content_func /* ... */) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
<head>
Method link_submit_meta_box
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function link_submit_meta_box($link) {
?>
<div class="submitbox" id="submitlink">
<div id="minor-publishing">
Method wp_getComment
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getComment($args) {
$this->escape($args);
$blog_id = (int) $args[0];
$username = $args[1];