Showing 694 of 741 total issues
File ObjectBuilder.php
has 4082 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
ObjectBuilder
has 209 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ObjectBuilder extends AbstractObjectBuilder
{
/**
* Returns the package for the base object classes.
*
File QueryBuilder.php
has 1254 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
File ModelCriteria.php
has 1184 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
File Table.php
has 1061 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
File Criteria.php
has 1015 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
Table
has 125 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Table extends ScopedMappingModel implements IdMethod
{
use BehaviorableTrait;
/**
File NestedSetBehaviorObjectBuilderModifier.php
has 942 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
File TableMapBuilder.php
has 940 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
Column
has 114 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Column extends MappingModel
{
/**
* @var string
*/
Criteria
has 113 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Criteria
{
/**
* @var string
*/
File DefaultPlatform.php
has 842 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
ModelCriteria
has 96 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ModelCriteria extends BaseModelCriteria
{
/**
* @var string
*/
Function build
has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring. Open
Open
public function build(): void
{
$this->validate();
$totalNbFiles = 0;
- 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 Column.php
has 692 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
DefaultPlatform
has 80 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class DefaultPlatform implements PlatformInterface
{
/**
* Mapping from Propel types to Domain objects.
*
TableDiff
has 79 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class TableDiff
{
/**
* The first Table object.
*
File MysqlPlatform.php
has 643 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
File AbstractOMBuilder.php
has 616 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
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"