Showing 740 of 740 total issues
File AbstractOMBuilder.php
has 619 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
Function startElement
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
public function startElement($parser, string $tagName, array $attributes): void
{
$parentTag = $this->peekCurrentSchemaTag();
if ($parentTag === false) {
switch ($tagName) {
- 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 NestedSetBehaviorQueryBuilderModifier.php
has 603 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
File PgsqlPlatform.php
has 585 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
ForeignKey
has 68 functions (exceeds 20 allowed). Consider refactoring. Open
class ForeignKey extends MappingModel
{
/**
* These constants are the uppercase equivalents of the onDelete / onUpdate
* values in the schema definition.
Function execute
has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring. Open
protected function execute(InputInterface $input, OutputInterface $output): int
{
$configOptions = [];
if ($this->hasInputOption('output-dir', $input)) {
- 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 TableDiff.php
has 576 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
QueryBuilder
has 59 functions (exceeds 20 allowed). Consider refactoring. Open
class QueryBuilder extends AbstractOMBuilder
{
/**
* Returns the package for the [base] object classes.
*
Database
has 59 functions (exceeds 20 allowed). Consider refactoring. Open
class Database extends ScopedMappingModel
{
use BehaviorableTrait;
/**
File ForeignKey.php
has 520 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
File Database.php
has 514 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
NestedSetBehaviorObjectBuilderModifier
has 58 functions (exceeds 20 allowed). Consider refactoring. Open
class NestedSetBehaviorObjectBuilderModifier
{
/**
* @var \Propel\Generator\Behavior\NestedSet\NestedSetBehavior
*/
File SortableBehaviorObjectBuilderModifier.php
has 512 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
File VersionableBehaviorObjectBuilderModifier.php
has 504 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
Function execute
has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring. Open
protected function execute(InputInterface $input, OutputInterface $output): int
{
$configOptions = [];
if ($this->hasInputOption('connection', $input)) {
- 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
MysqlPlatform
has 55 functions (exceeds 20 allowed). Consider refactoring. Open
class MysqlPlatform extends DefaultPlatform
{
/**
* @var string
*/
AbstractOMBuilder
has 54 functions (exceeds 20 allowed). Consider refactoring. Open
abstract class AbstractOMBuilder extends DataModelBuilder
{
use PathTrait;
/**
File PgsqlSchemaParser.php
has 486 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
Function isUnique
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
public function isUnique(array $keys): bool
{
if (count($keys) === 1) {
$column = $keys[0] instanceof Column ? $keys[0] : $this->getColumn($keys[0]);
if ($column) {
- 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
TableMap
has 52 functions (exceeds 20 allowed). Consider refactoring. Open
class TableMap
{
/**
* phpname type
* e.g. 'AuthorId'