propelorm/Propel2

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Builder/Om/ObjectBuilder.php - About 1 mo to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Runtime/ActiveQuery/Criteria.php - About 1 wk to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Runtime/ActiveQuery/ModelCriteria.php - About 1 wk to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Model/Table.php - About 1 wk to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Builder/Om/QueryBuilder.php - About 1 wk to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Model/Column.php - About 5 days to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Platform/DefaultPlatform.php - About 4 days to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Builder/Om/TableMapBuilder.php - About 4 days to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Model/Diff/TableDiff.php - About 3 days to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Builder/Om/AbstractOMBuilder.php - About 3 days to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Model/ForeignKey.php - About 2 days to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Model/Database.php - About 2 days to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Runtime/Map/TableMap.php - About 1 day to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Platform/MysqlPlatform.php - About 1 day to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Runtime/ActiveQuery/Join.php - About 1 day to fix

Class Table contains too many public methods

class Table extends ScopedMappingModel implements IdMethod
{
    use BehaviorableTrait;

    /**
Severity: Minor
Found in src/Propel/Generator/Model/Table.php - About 1 day to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Platform/PgsqlPlatform.php - About 1 day to fix

Class Criteria contains too many public methods

class Criteria
{

    /** Comparison type. */
    const EQUAL = '=';
Severity: Minor
Found in src/Propel/Runtime/ActiveQuery/Criteria.php - About 1 day to fix

Class Column contains too many public methods

class Column extends MappingModel
{
    const DEFAULT_TYPE       = 'VARCHAR';
    const DEFAULT_VISIBILITY = 'public';
    const CONSTANT_PREFIX    = 'COL_';
Severity: Minor
Found in src/Propel/Generator/Model/Column.php - About 1 day to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Runtime/Connection/ConnectionWrapper.php - About 7 hrs to fix

Method addFilterByCol is too long

    protected function addFilterByCol(&$script, Column $col)
    {
        $colPhpName = $col->getPhpName();
        $colName = $col->getName();
        $variableName = $col->getCamelCaseName();
Severity: Minor
Found in src/Propel/Generator/Builder/Om/QueryBuilder.php - About 7 hrs to fix

Method createSelectSql is too long

    public function createSelectSql(&$params)
    {
        $adapter = Propel::getServiceContainer()->getAdapter($this->getDbName());
        $dbMap = Propel::getServiceContainer()->getDatabaseMap($this->getDbName());

Severity: Minor
Found in src/Propel/Runtime/ActiveQuery/Criteria.php - About 6 hrs to fix

Method startElement is too long

    public function startElement($parser, $name, $attributes)
    {
        $parentTag = $this->peekCurrentSchemaTag();
        if (false === $parentTag) {
            switch ($name) {
Severity: Minor
Found in src/Propel/Generator/Builder/Util/SchemaReader.php - About 6 hrs to fix

Method addCrossFKGet is too long

    protected function addCrossFKGet(&$script, CrossForeignKeys $crossFKs)
    {
        $refFK = $crossFKs->getIncomingForeignKey();
        $selfRelationName = $this->getFKPhpNameAffix($refFK, $plural = false);
        $crossRefTableName = $crossFKs->getMiddleTable()->getName();
Severity: Minor
Found in src/Propel/Generator/Builder/Om/ObjectBuilder.php - About 6 hrs to fix

Cyclomatic complexity for function startElement is too high

    public function startElement($parser, $name, $attributes)
    {
        $parentTag = $this->peekCurrentSchemaTag();
        if (false === $parentTag) {
            switch ($name) {
Severity: Minor
Found in src/Propel/Generator/Builder/Util/SchemaReader.php - About 6 hrs to fix

Class DefaultPlatform contains too many public methods

class DefaultPlatform implements PlatformInterface
{

    /**
     * Mapping from Propel types to Domain objects.
Severity: Minor
Found in src/Propel/Generator/Platform/DefaultPlatform.php - About 5 hrs to fix

Method execute is too long

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $configOptions = [];

        if ($this->hasInputOption('connection', $input)) {
Severity: Minor
Found in src/Propel/Generator/Command/MigrationDiffCommand.php - About 5 hrs to fix

Class TableDiff contains too many public methods

class TableDiff
{
    /**
     * The first Table object.
     *
Severity: Minor
Found in src/Propel/Generator/Model/Diff/TableDiff.php - About 5 hrs to fix

Class ModelCriteria contains too many public methods

class ModelCriteria extends BaseModelCriteria
{
    const FORMAT_STATEMENT  = '\Propel\Runtime\Formatter\StatementFormatter';
    const FORMAT_ARRAY      = '\Propel\Runtime\Formatter\ArrayFormatter';
    const FORMAT_OBJECT     = '\Propel\Runtime\Formatter\ObjectFormatter';
Severity: Minor
Found in src/Propel/Runtime/ActiveQuery/ModelCriteria.php - About 5 hrs to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Runtime/Collection/Collection.php - About 5 hrs to fix

Class ForeignKey contains too many public methods

class ForeignKey extends MappingModel
{
    /**
     * These constants are the uppercase equivalents of the onDelete / onUpdate
     * values in the schema definition.
Severity: Minor
Found in src/Propel/Generator/Model/ForeignKey.php - About 4 hrs to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Runtime/Adapter/Pdo/PdoAdapter.php - About 4 hrs to fix

Method addCrossFkScheduledForDeletion is too long

    protected function addCrossFkScheduledForDeletion(&$script, CrossForeignKeys $crossFKs)
    {
        $multipleFks = 1 < count($crossFKs->getCrossForeignKeys()) || !!$crossFKs->getUnclassifiedPrimaryKeys();
        $scheduledForDeletionVarName = $this->getCrossScheduledForDeletionVarName($crossFKs);
        $queryClassName = $this->getNewStubQueryBuilder($crossFKs->getMiddleTable())->getClassname();
Severity: Minor
Found in src/Propel/Generator/Builder/Om/ObjectBuilder.php - About 4 hrs to fix

Method addDoSave is too long

    protected function addDoSave(&$script)
    {
        $table = $this->getTable();

        $reloadOnUpdate = $table->isReloadOnUpdate();
Severity: Minor
Found in src/Propel/Generator/Builder/Om/ObjectBuilder.php - About 4 hrs to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE

Method execute is too long

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $configOptions = [];

        if ($this->hasInputOption('output-dir', $input)) {
Severity: Minor
Found in src/Propel/Generator/Command/MigrationUpCommand.php - About 4 hrs to fix

Method addClassOpen is too long

    protected function addClassOpen(&$script)
    {
        $table = $this->getTable();
        $tableName = $table->getName();
        $tableDesc = $table->getDescription();
Severity: Minor
Found in src/Propel/Generator/Builder/Om/QueryBuilder.php - About 4 hrs to fix

Method execute is too long

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $configOptions = [];

        if ($this->hasInputOption('output-dir', $input)) {
Severity: Minor
Found in src/Propel/Generator/Command/MigrationMigrateCommand.php - About 4 hrs to fix

Class Database contains too many public methods

class Database extends ScopedMappingModel
{

    use BehaviorableTrait;

Severity: Minor
Found in src/Propel/Generator/Model/Database.php - About 4 hrs to fix

Method execute is too long

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $configOptions = [];

        if ($this->hasInputOption('output-dir', $input)) {
Severity: Minor
Found in src/Propel/Generator/Command/MigrationDownCommand.php - About 4 hrs to fix

Method addDoInsertBodyRaw is too long

    protected function addDoInsertBodyRaw()
    {
        $this->declareClasses(
            '\Propel\Runtime\Propel',
            '\PDO'
Severity: Minor
Found in src/Propel/Generator/Builder/Om/ObjectBuilder.php - About 3 hrs to fix

Cyclomatic complexity for function createSelectSql is too high

    public function createSelectSql(&$params)
    {
        $adapter = Propel::getServiceContainer()->getAdapter($this->getDbName());
        $dbMap = Propel::getServiceContainer()->getDatabaseMap($this->getDbName());

Severity: Minor
Found in src/Propel/Runtime/ActiveQuery/Criteria.php - About 3 hrs to fix

Cyclomatic complexity for function getColumnDDL is too high

    public function getColumnDDL(Column $col)
    {
        $domain = $col->getDomain();
        $sqlType = $domain->getSqlType();
        $notNullString = $this->getNullString($col->isNotNull());
Severity: Minor
Found in src/Propel/Generator/Platform/MysqlPlatform.php - About 3 hrs to fix

File is too long

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
Severity: Minor
Found in src/Propel/Generator/Reverse/PgsqlSchemaParser.php - About 3 hrs to fix

Class Join contains too many public methods

class Join
{
    // default comparison type
    const EQUAL = '=';
    const INNER_JOIN = 'INNER JOIN';
Severity: Minor
Found in src/Propel/Runtime/ActiveQuery/Join.php - About 3 hrs to fix

Method appendTableNode is too long

    private function appendTableNode(Table $table, \DOMNode $parentNode)
    {
        $tableNode = $parentNode->appendChild($this->document->createElement('table'));
        $tableNode->setAttribute('name', $table->getCommonName());

Severity: Minor
Found in src/Propel/Generator/Schema/Dumper/XmlDumper.php - About 3 hrs to fix