Showing 5,566 of 7,504 total issues
Method TeachingMen
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void TeachingMen(ICommandQueries commandQueries, MessageDispatcher dispatcher)
{
var division = "Teaching Men";
var isPoa = true;
var game = 0;
Consider simplifying this complex logical expression. Open
Open
if (k.arrows == 'resize' || (k.shift == 'resize' && event.shiftKey) ||
(k.ctrl == 'resize' && event.ctrlKey) ||
(k.alt == 'resize' && (event.altKey || event.originalEvent.altKey)))
{
switch (key) {
Consider simplifying this complex logical expression. Open
Open
if ( result.edge == 'top' || result.edge == 'bottom' ) {
result.align = result.align || 'left';
result.at = result.at || result.align + ' ' + opposite[ result.edge ];
result.my = result.my || result.align + ' ' + result.edge;
Consider simplifying this complex logical expression. Open
Open
if (this.popupWindow == null || this.popupWindow.closed) {
// If the popup window will go off-screen, move it so it doesn't
if (this.x<0) { this.x=0; }
if (this.y<0) { this.y=0; }
if (screen && screen.availHeight) {
Consider simplifying this complex logical expression. Open
Open
if ( is_multisite() && ! $screen->in_admin( 'network' ) && is_network_only_plugin( $plugin_file ) && ! is_plugin_active( $plugin_file ) ) {
// On the non-network screen, filter out network-only plugins as long as they're not individually activated
unset( $plugins['all'][ $plugin_file ] );
} elseif ( ! $screen->in_admin( 'network' ) && is_plugin_active_for_network( $plugin_file ) ) {
// On the non-network screen, filter out network activated plugins
Consider simplifying this complex logical expression. Open
Open
if (
! empty( $menu_item_data['menu_item_parent'] ) &&
in_array( $menu_item_data['menu_item_parent'], array_keys( $dbids_to_orders ) ) &&
isset( $orders_to_dbids[$dbids_to_orders[$menu_item_id] - 1] ) &&
( $menu_item_data['menu_item_parent'] == $orders_to_dbids[$dbids_to_orders[$menu_item_id] - 1] )
Consider simplifying this complex logical expression. Open
Open
if ($this->ipath !== '' &&
(
$isauthority && (
$this->ipath[0] !== '/' ||
substr($this->ipath, 0, 2) === '//'
Consider simplifying this complex logical expression. Open
Open
if ( ! empty( $current_object->post_type )
&& ( $post_type_object = get_post_type_object( $current_object->post_type ) )
&& current_user_can( 'edit_post', $current_object->ID )
&& $post_type_object->show_ui && $post_type_object->show_in_admin_bar )
{
Consider simplifying this complex logical expression. Open
Open
if ((end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_03 && in_array(end($this->element), array('title', 'tagline', 'copyright', 'info', 'summary', 'content')) && isset($attribs['']['mode']) && $attribs['']['mode'] === 'xml')
|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_10 && in_array(end($this->element), array('rights', 'subtitle', 'summary', 'info', 'title', 'content')) && isset($attribs['']['type']) && $attribs['']['type'] === 'xhtml'))
{
$this->current_xhtml_construct = 0;
}
Consider simplifying this complex logical expression. Open
Open
if ( !empty($this->query_vars['withcomments'])
|| ( empty($this->query_vars['withoutcomments'])
&& ( !empty($this->query_vars['p'])
|| !empty($this->query_vars['name'])
|| !empty($this->query_vars['page_id'])
Function resolveState
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolveState(state, params, paramsAreFiltered, inherited, dst, options) {
// Make a restricted $stateParams with only the parameters that apply to this state if
// necessary. In addition to being available to the controller and onEnter/onExit callbacks,
// we also need $stateParams to be available for any $injector calls we make during the
// dependency resolution process.
Function transition
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var transition = $state.transition = resolved.then(function () {
var l, entering, exiting;
if ($state.transition !== transition) return TransitionSuperseded;
Function load
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function (url, fn){
var xhr = api.getXHR();
if( xhr ){
xhr.open('GET', url, true);
Function controller
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
var states = [], activeClass;
// There probably isn't much point in $observing this
// uiSrefActive and uiSrefActiveEq share the same directive object with some
Function _getFilesDataArray
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getFilesDataArray: function (data){
var files = [], oFiles = {};
if( isInputFile(data) ){
var tmp = api.getFiles(data);
Function _convertFile
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _convertFile(file, fn, useBinaryString){
var blob = file.blob, filename = file.file;
if( filename ){
if( !blob.toDataURL ){
Function _track
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
TelemetryContext.prototype._track = function (envelope) {
if (this.session) {
if (typeof this.session.id === "string") {
this._applySessionContext(envelope, this.session);
}
Function complete
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
complete: function( thumb ) {
// shrink thumbnails to fit
var top = ['left', 'top'],
arr = ['Width', 'Height'],
Function loop
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loop: function() {
var distance = this.to - this.pos,
factor = 1;
Function parse
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
JSON.parse = function (text, reviver) {
// The parse method takes a text and an optional reviver function, and returns
// a JavaScript value if the text is a valid JSON text.