Showing 481 of 922 total issues
Function parseConfiguration
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
public function parseConfiguration($importConfiguration)
{
if (!property_exists($importConfiguration, "importBehaviour")) {
return false;
- 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 getMatchingMetaParts
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getMatchingMetaParts(Part $metaPart)
{
$paramCount = 0;
$paramPrefix = ":param";
$results = [];
`` has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Ext.define("PartKeepr.ThemeTester", {
extend: "Ext.panel.Panel",
scrollable: true,
initComponent: function () {
Function createGlobalStores
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
createGlobalStores: function ()
{
this.footprintStore = Ext.create("Ext.data.Store",
{
model: 'PartKeepr.FootprintBundle.Entity.Footprint',
File FilterExpression.js
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Ext.define("PartKeepr.Widgets.FilterExpression", {
extend: "Ext.form.Panel",
xtype: "partkeepr.filterexpression",
layout: {
Function initComponent
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.store = Ext.create("Ext.data.Store", {
model: 'PartKeepr.PartBundle.Entity.PartManufacturer',
proxy: {
Method parseConfiguration
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function parseConfiguration($importConfiguration)
{
if (property_exists($importConfiguration, "fields")) {
foreach ($importConfiguration->fields as $field => $configuration) {
if ($this->classMetadata->hasField($field)) {
Function exportGrid
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
exportGrid: function ()
{
var columns = this.gridPanel.getColumns();
var store = this.gridPanel.getStore();
- 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 getDatabaseAssociationMappings
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
protected function getDatabaseAssociationMappings(ClassMetadata $cm, $bTree = false)
{
$associations = $cm->getAssociationMappings();
$byReferenceMappings = $this->getByReferenceMappings($cm);
- 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 get
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
get: function (fieldName)
{
var ret, role, item, openingBracket, closingBracket, subEntity, index, subEntityStore;
ret = this.callParent(arguments);
- 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 initComponent
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.editor = Ext.create("PartKeepr.PartEditor", {
border: false,
partMode: this.partMode,
Method getDatabaseAssociationMappings
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getDatabaseAssociationMappings(ClassMetadata $cm, $bTree = false)
{
$associations = $cm->getAssociationMappings();
$byReferenceMappings = $this->getByReferenceMappings($cm);
Function onAddMatchField
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
onAddMatchField: function ()
{
var excludeFields = [];
for (var j = 0; j < this.store.getCount(); j++) {
Function initComponent
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function () {
this.cardTitle = this.title;
this.title = (this.showTitle ? '<span style="' + this.titleStyle + '" class="' + this.titleCls + '" >' + this.title + '</span>' : '');
Function initComponent
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
// Create the filter fields
this.createFilterFields();
Function initComponent
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
this.fieldSelector = Ext.create("PartKeepr.Components.Widgets.FieldSelector", {
height: 150,
Function defineColumns
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
defineColumns: function () {
this.columns = [
{
header: "",
xtype: 'actioncolumn',
Function initComponent
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
initComponent: function ()
{
/**
* Create the template
*/
Function getAssociatedData
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
getAssociatedData: function (result, options)
{
var me = this,
associations = me.associations,
deep, i, item, items, itemData, length,
Method intCacheWarmupAction
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function intCacheWarmupAction(Request $request)
{
if (!$this->ensureAuthKey($request)) {
return $this->getAuthKeyErrorResponse();
}