Showing 1,528 of 2,291 total issues
Function doMerge
has a Cognitive Complexity of 128 (exceeds 5 allowed). Consider refactoring. Open
private function doMerge($entity, array &$visited, $prevManagedCopy = null, $assoc = null)
{
$oid = spl_object_hash($entity);
if (isset($visited[$oid])) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File BasicEntityPersister.php
has 994 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
ClassMetadataInfo
has 125 functions (exceeds 20 allowed). Consider refactoring. Open
class ClassMetadataInfo implements ClassMetadata
{
/* The inheritance mapping types */
/**
* NONE means the class does not participate in an inheritance hierarchy
Function init
has 470 lines of code (exceeds 25 allowed). Consider refactoring. Open
function init(plot) {
var canvas = null,
target = null,
options = null,
Function validateClass
has a Cognitive Complexity of 112 (exceeds 5 allowed). Consider refactoring. Open
public function validateClass(ClassMetadataInfo $class)
{
$ce = array();
$cmf = $this->em->getMetadataFactory();
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Parser
has 113 functions (exceeds 20 allowed). Consider refactoring. Open
class Parser
{
/**
* READ-ONLY: Maps BUILT-IN string function names to AST class names.
*
File SQLAnywherePlatform.php
has 891 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
File SQLServerPlatform.php
has 881 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Method loadMetadataForClass
has 415 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function loadMetadataForClass($className, ClassMetadata $metadata)
{
/* @var $metadata \Doctrine\ORM\Mapping\ClassMetadataInfo */
$element = $this->getElement($className);
Function computeChangeSet
has a Cognitive Complexity of 102 (exceeds 5 allowed). Consider refactoring. Open
public function computeChangeSet(ClassMetadata $class, $entity)
{
$oid = spl_object_hash($entity);
if (isset($this->readOnlyObjects[$oid])) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method loadMetadataForClass
has 408 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function loadMetadataForClass($className, ClassMetadata $metadata)
{
/* @var $metadata \Doctrine\ORM\Mapping\ClassMetadataInfo */
/* @var $xmlRoot SimpleXMLElement */
$xmlRoot = $this->getElement($className);
File EntityGenerator.php
has 836 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Method getKeywords
has 396 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getKeywords()
{
return array(
'ACTIVATE',
'ADD',
PHPMailer
has 94 functions (exceeds 20 allowed). Consider refactoring. Open
class PHPMailer
{
/**
* The PHPMailer Version number.
* @type string
Function init
has 349 lines of code (exceeds 25 allowed). Consider refactoring. Open
init : function( options ) {
var settings = $.extend(true, {}, defaults);
settings.options = $.extend(true, settings.options, options);
Function tln_sanitize
has a Cognitive Complexity of 87 (exceeds 5 allowed). Consider refactoring. Open
function tln_sanitize(
$body,
$tag_list,
$rm_tags_with_content,
$self_closing_tags,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function hydrateRowData
has a Cognitive Complexity of 87 (exceeds 5 allowed). Consider refactoring. Open
protected function hydrateRowData(array $row, array &$cache, array &$result)
{
// 1) Initialize
$id = $this->_idTemplate; // initialize the id-memory
$nonemptyComponents = array();
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
SQLServerPlatform
has 90 functions (exceeds 20 allowed). Consider refactoring. Open
class SQLServerPlatform extends AbstractPlatform
{
/**
* {@inheritdoc}
*/
File jqBootstrapValidation.js
has 731 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* jqBootstrapValidation
* A plugin for automating validation on Twitter Bootstrap formatted forms.
*
* v1.3.6
*
File Connection.php
has 729 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR