propelorm/Propel2

View on GitHub

Use of exit/die() detected

                exit(1);
Severity: Minor
Found in src/Propel/Generator/Command/InitCommand.php - About 30 mins to fix

Use of exit/die() detected

            exit(1);
Severity: Minor
Found in src/Propel/Generator/Command/InitCommand.php - About 30 mins to fix

Avoid using the @-operator for error suppression

            if (!$params = @$connections[$name]) {
Severity: Minor
Found in src/Propel/Generator/Command/MigrationDiffCommand.php - About 15 mins to fix

Avoid using the @-operator for error suppression

        return @$dbs[$name];
Severity: Minor
Found in src/Propel/Generator/Manager/AbstractManager.php - About 15 mins to fix

Avoid using the @-operator for error suppression

        if (false === $lines = @file($file)) {
Severity: Minor
Found in src/Propel/Generator/Manager/AbstractManager.php - About 15 mins to fix

Always omit the closing PHP tag at the end of a file

<?php endif ?>
Severity: Minor
Found in src/Propel/Generator/Behavior/Sortable/templates/tableMapSortable.php - About 5 mins to fix

Always omit the closing PHP tag at the end of a file

<?php endif?>
Severity: Minor
Found in src/Propel/Generator/Builder/Om/templates/baseObjectMethodHook.php - About 5 mins to fix

Always omit the closing PHP tag at the end of a file

; propel.database.connections.default.settings.charset: <?php echo $charset . PHP_EOL ?>
Severity: Minor
Found in src/Propel/Generator/Command/templates/propel.ini.dist.php - About 5 mins to fix

Always omit the closing PHP tag at the end of a file

propel.database.connections.default.settings.charset: <?php echo $charset . PHP_EOL ?>
Severity: Minor
Found in src/Propel/Generator/Command/templates/propel.ini.php - About 5 mins to fix

Always omit the closing PHP tag at the end of a file

#                   charset: <?php echo $charset . PHP_EOL ?>
Severity: Minor
Found in src/Propel/Generator/Command/templates/propel.yml.dist.php - About 5 mins to fix

Always omit the closing PHP tag at the end of a file

                    charset: <?php echo $charset . PHP_EOL ?>
Severity: Minor
Found in src/Propel/Generator/Command/templates/propel.yml.php - About 5 mins to fix

Use the identical (===) operator

                if ($table->guessSchemaName() != $database->getSchema() && false == strpos($ftbl, $database->getPlatform()->getSchemaDelimiter())) {
Severity: Minor
Found in src/Propel/Generator/Reverse/MysqlSchemaParser.php - About 5 mins to fix