From e7526801014a2d0165ddebf0ffdf5ae4a2dcf45c Mon Sep 17 00:00:00 2001 From: mscherer Date: Tue, 4 Aug 2020 11:01:03 +0200 Subject: [PATCH 1/4] Fix more CS. --- config/phpcs.xml | 4 - resources/dtd/database.dtd | 1 - .../Generator/Builder/Util/SchemaReader.php | 15 +- .../Command/Console/Input/ArrayInput.php | 2 +- src/Propel/Generator/Util/BehaviorLocator.php | 2 + src/Propel/Runtime/ActiveQuery/Criteria.php | 30 +- .../Runtime/ActiveQuery/ModelCriteria.php | 8 +- src/Propel/Runtime/ActiveQuery/ModelJoin.php | 4 +- tests/Propel/Tests/CharacterEncodingTest.php | 7 - .../Tests/Common/Config/ConfigTestCase.php | 6 +- .../Config/ConfigurationManagerTest.php | 13 +- .../Tests/Common/Config/DataProviderTrait.php | 2 +- .../Common/Config/Loader/FileLoaderTest.php | 8 +- .../Config/Loader/IniFileLoaderTest.php | 4 +- .../Config/Loader/JsonFileLoaderTest.php | 4 +- .../Config/Loader/PhpFileLoaderTest.php | 6 +- .../Config/Loader/XmlFileLoaderTest.php | 4 +- .../Config/Loader/YamlFileLoaderTest.php | 4 +- .../Archivable/ArchivableBehaviorTest.php | 7 +- ...creteInheritanceBehaviorWithSchemaTest.php | 3 +- .../ConcreteInheritanceParentBehaviorTest.php | 3 +- .../I18nBehaviorObjectBuilderModifierTest.php | 237 ++++--- .../I18nBehaviorQueryBuilderModifierTest.php | 2 +- ...aviorQueryBuilderModifierWithScopeTest.php | 29 +- .../Behavior/QueryCache/QueryCacheTest.php | 2 +- .../Sluggable/SluggableBehaviorTest.php | 9 + ...viorObjectBuilderModifierWithScopeTest.php | 2 +- .../Validate/ValidateBehaviorTest.php | 10 +- ...nableBehaviorObjectBuilderModifierTest.php | 402 ++++++++---- .../Tests/Generator/Builder/NamespaceTest.php | 6 + .../Om/AbstractOMBuilderNamespaceTest.php | 1 - .../Om/AbstractOMBuilderRelatedByTest.php | 1 - .../Builder/Om/AbstractOMBuilderTest.php | 1 - .../GeneratedObjectBooleanColumnTypeTest.php | 6 + .../Builder/Om/GeneratedObjectLobTest.php | 7 +- ...GeneratedObjectM2MRelationThreePKsTest.php | 585 ++++++++++-------- .../Om/GeneratedObjectMoreRelationTest.php | 2 +- ...eratedObjectWithDateImmutableClassTest.php | 17 +- .../Om/GeneratedObjectWithInterfaceTest.php | 2 + .../Generator/Builder/Om/QueryBuilderTest.php | 10 +- .../Builder/Om/QueryBuilderTestClasses.php | 8 +- .../Generator/Command/InitCommandTest.php | 5 + .../Generator/Config/GeneratorConfigTest.php | 16 +- .../Config/QuickGeneratorConfigTest.php | 2 +- .../Generator/Migration/MigrationTestCase.php | 1 + .../Tests/Generator/Model/BehaviorTest.php | 15 +- .../Model/ColumnDefaultValueTest.php | 2 + .../Generator/Model/ConstantNameTest.php | 2 + .../Model/Diff/ColumnComparatorTest.php | 5 +- .../Diff/DatabaseTableComparatorTest.php | 4 +- .../Model/Diff/ForeignKeyComparatorTest.php | 7 +- .../Model/Diff/IndexComparatorTest.php | 5 +- .../Diff/PropelTableColumnComparatorTest.php | 5 +- .../PropelTableForeignKeyComparatorTest.php | 5 +- .../Diff/PropelTableIndexComparatorTest.php | 5 +- .../PropelTablePkColumnComparatorTest.php | 5 +- .../Tests/Generator/Model/ModelTestCase.php | 18 +- .../Tests/Generator/Model/NameFactoryTest.php | 16 +- .../Generator/Model/PhpNameGeneratorTest.php | 2 + .../Tests/Generator/Model/UniqueTest.php | 7 + .../Platform/DefaultPlatformTest.php | 4 +- .../MysqlPlatformMigrationMyISAMTest.php | 2 +- .../Platform/MysqlPlatformMigrationTest.php | 5 +- .../MysqlPlatformMigrationTestProvider.php | 3 + .../Platform/OraclePlatformMigrationTest.php | 2 +- .../Generator/Platform/OraclePlatformTest.php | 2 +- .../Platform/PgsqlPlatformMigrationTest.php | 2 +- .../PlatformMigrationTestProvider.php | 3 + .../Platform/PlatformTestProvider.php | 3 + .../Generator/Platform/SqlitePlatformTest.php | 2 +- .../Generator/Schema/Dumper/XmlDumperTest.php | 5 + .../Propel/Tests/Helpers/MultipleBehavior.php | 3 + tests/Propel/Tests/Issues/Issue1133Test.php | 12 + .../ActiveQuery/CriteriaCombineTest.php | 2 +- .../CriteriaFluidConditionTest.php | 1 - .../Criterion/BasicCriterionTest.php | 2 +- .../Criterion/BasicModelCriterionTest.php | 2 +- .../Criterion/LikeModelCriterionTest.php | 2 +- .../Criterion/RawCriterionTest.php | 2 +- .../Criterion/RawModelCriterionTest.php | 2 +- .../Criterion/SeveralModelCriterionTest.php | 4 +- .../Runtime/ActiveQuery/ModelCriteriaTest.php | 2 +- .../Runtime/Adapter/Pdo/MssqlAdapterTest.php | 12 +- .../Runtime/Adapter/Pdo/MysqlAdapterTest.php | 14 +- .../Collection/CollectionConvertTest.php | 1 - .../Runtime/Exception/PropelExceptionTest.php | 2 + .../StandardServiceContainerTest.php | 6 +- tests/Propel/Tests/Runtime/TypeTest.php | 3 +- .../Util/PropelConditionalProxyTest.php | 1 - .../Propel/Tests/TestCaseFixturesDatabase.php | 3 + 90 files changed, 1068 insertions(+), 644 deletions(-) diff --git a/config/phpcs.xml b/config/phpcs.xml index 771659aa31..492d13a5d3 100644 --- a/config/phpcs.xml +++ b/config/phpcs.xml @@ -30,8 +30,4 @@ 0 - - 0 - - diff --git a/resources/dtd/database.dtd b/resources/dtd/database.dtd index 684ec39d5e..ae83f9169a 100644 --- a/resources/dtd/database.dtd +++ b/resources/dtd/database.dtd @@ -1,6 +1,5 @@