Commit 903e101
authored
PHPLIB-674 Revise documentation for installing coding standard (#838)
* Remove workaround due to doctrine/coding-standard being incompatible
* Update to doctrine/coding-standard 9.0 and phpcs 3.6
* phpcbf: fix SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
tests/Operation/FunctionalTestCase.php 2 0
src/Operation/ListCollectionNames.php 1 0
tests/GridFS/FunctionalTestCase.php 1 0
tests/Operation/DeleteFunctionalTest.php 1 0
tests/ClientFunctionalTest.php 1 0
tests/UnifiedSpecTests/Util.php 4 0
src/GridFS/Exception/StreamException.php 3 0
tests/Operation/InsertManyFunctionalTest.php 1 0
tests/UnifiedSpecTests/EventCollector.php 2 0
tests/Operation/InsertOneFunctionalTest.php 1 0
tests/Database/FunctionalTestCase.php 1 0
tests/Model/ChangeStreamIteratorTest.php 1 0
tests/UnifiedSpecTests/UnifiedTestCase.php 2 0
tests/SpecTests/AtlasDataLakeSpecTest.php 2 0
tests/SpecTests/PrimaryStepDownSpecTest.php 1 0
tests/Operation/UpdateFunctionalTest.php 1 0
src/Model/ChangeStreamIterator.php 1 0
tests/UnifiedSpecTests/EventObserver.php 1 0
src/Operation/ListDatabaseNames.php 1 0
src/Operation/FindAndModify.php 2 0
tests/UnifiedSpecTests/RunOnRequirement.php 1 0
tests/UnifiedSpecTests/EntityMap.php 7 0
tests/TestCase.php 1 0
src/GridFS/CollectionWrapper.php 1 0
tests/SpecTests/FunctionalTestCase.php 2 0
tests/Operation/BulkWriteFunctionalTest.php 1 0
tests/Model/IndexInfoFunctionalTest.php 2 0
tests/UnifiedSpecTests/UnifiedSpecTest.php 3 0
src/Operation/Aggregate.php 3 0
tests/GridFS/WritableStreamFunctionalTest.php 1 0
tests/UnifiedSpecTests/UnifiedTestRunner.php 8 0
tests/Operation/MapReduceFunctionalTest.php 2 0
src/Client.php 3 0
tests/SpecTests/Context.php 3 0
src/Operation/EstimatedDocumentCount.php 2 0
tests/UnifiedSpecTests/Context.php 14 0
tests/SpecTests/TransactionsSpecTest.php 2 0
src/Database.php 1 0
tests/UnifiedSpecTests/DirtySessionObserver.php 1 0
tests/Collection/CrudSpecFunctionalTest.php 1 0
tests/Collection/FunctionalTestCase.php 2 0
tests/GridFS/ReadableStreamFunctionalTest.php 1 0
tests/UnifiedSpecTests/Operation.php 4 0
tests/UnifiedSpecTests/Constraint/Matches.php 3 0
tests/FunctionalTestCase.php 5 0
tests/UnifiedSpecTests/Loop.php 1 0
tests/UnifiedSpecTests/Constraint/IsBsonType.php 7 0
tests/SpecTests/ClientSideEncryptionSpecTest.php 1 0
tests/DocumentationExamplesTest.php 2 0
tests/Operation/WatchFunctionalTest.php 1 0
tests/PHPUnit/Functions.php 58 0
tests/GridFS/StreamWrapperFunctionalTest.php 1 0
----------------------------------------------------------------------
A TOTAL OF 175 ERRORS WERE FIXED IN 52 FILES
----------------------------------------------------------------------
Time: 9.53 secs; Memory: 10MB
* phpcbf: fix SlevomatCodingStandard.Namespaces.UseSpacing
PHPCBF RESULT SUMMARY
--------------------------------------------------------------------------
FILE FIXED REMAINING
--------------------------------------------------------------------------
tests/Operation/DatabaseCommandFunctionalTest.php 1 0
src/Exception/BadMethodCallException.php 1 0
src/GridFS/Exception/FileNotFoundException.php 1 0
tests/Operation/ModifyCollectionFunctionalTest.php 1 0
src/Model/IndexInfoIteratorIterator.php 1 0
tests/Operation/DeleteTest.php 1 0
src/Exception/InvalidArgumentException.php 1 0
tests/CommandObserver.php 1 0
tests/Operation/CreateCollectionFunctionalTest.php 1 0
src/MapReduceResult.php 1 0
tests/GridFS/FunctionalTestCase.php 1 0
src/Operation/WithTransaction.php 1 0
src/Operation/ReplaceOne.php 1 0
src/Operation/FindOneAndDelete.php 1 0
src/Model/DatabaseInfo.php 1 0
src/Operation/DatabaseCommand.php 1 0
src/Operation/UpdateMany.php 1 0
tests/UnifiedSpecTests/CollectionData.php 1 0
src/Operation/UpdateOne.php 1 0
tests/Operation/ListDatabasesFunctionalTest.php 1 0
tests/Operation/CountFunctionalTest.php 1 0
tests/Operation/DropDatabaseFunctionalTest.php 1 0
src/Operation/DropDatabase.php 1 0
tests/Operation/ListDatabaseNamesFunctionalTest.php 1 0
tests/Operation/DropCollectionFunctionalTest.php 1 0
tests/Operation/ListCollectionsFunctionalTest.php 1 0
src/Model/CachingIterator.php 1 0
tests/GridFS/UnusableStream.php 1 0
tests/Operation/DeleteFunctionalTest.php 1 0
tests/UnifiedSpecTests/Util.php 1 0
tests/ClientFunctionalTest.php 1 0
src/Operation/CountDocuments.php 1 0
src/Operation/DropCollection.php 1 0
tests/Model/BSONArrayTest.php 1 0
tests/Database/CollectionManagementFunctionalTest.php 1 0
src/Model/CollectionInfo.php 1 0
src/Model/BSONDocument.php 1 0
src/Model/IndexInfo.php 1 0
tests/Operation/DistinctFunctionalTest.php 1 0
tests/UnifiedSpecTests/EventCollector.php 1 0
tests/Operation/InsertManyFunctionalTest.php 1 0
tests/Operation/InsertOneFunctionalTest.php 1 0
src/Operation/FindOne.php 1 0
tests/Model/BSONIteratorTest.php 1 0
src/Operation/Delete.php 1 0
tests/Model/ChangeStreamIteratorTest.php 1 0
tests/FunctionsTest.php 1 0
tests/SpecTests/CommandExpectations.php 1 0
tests/PedantryTest.php 2 0
tests/SpecTests/DocumentsMatchConstraintTest.php 2 0
src/Operation/ListIndexes.php 1 0
src/Model/IndexInput.php 1 0
tests/SpecTests/AtlasDataLakeSpecTest.php 1 0
tests/UnifiedSpecTests/UnifiedTestCase.php 1 0
src/Model/BSONIterator.php 1 0
tests/Operation/FindFunctionalTest.php 1 0
src/GridFS/WritableStream.php 1 0
tests/SpecTests/PrimaryStepDownSpecTest.php 1 0
tests/Model/BSONDocumentTest.php 1 0
src/Operation/FindOneAndUpdate.php 1 0
src/GridFS/StreamWrapper.php 2 0
tests/SpecTests/ChangeStreamsSpecTest.php 1 0
tests/Operation/UpdateFunctionalTest.php 1 0
tests/UnifiedSpecTests/EventObserver.php 1 0
tests/Operation/DropIndexesFunctionalTest.php 1 0
src/Operation/DropIndexes.php 1 0
src/Model/ChangeStreamIterator.php 1 0
src/GridFS/Exception/CorruptFileException.php 1 0
src/Operation/Count.php 1 0
src/Operation/Distinct.php 1 0
src/Model/BSONArray.php 1 0
tests/Operation/FindAndModifyFunctionalTest.php 1 0
src/functions.php 1 0
tests/Operation/ListCollectionNamesFunctionalTest.php 1 0
tests/UnifiedSpecTests/RunOnRequirement.php 1 0
src/Operation/FindAndModify.php 1 0
tests/SpecTests/ReadWriteConcernSpecTest.php 1 0
tests/TestCase.php 2 0
tests/SpecTests/RetryableReadsSpecTest.php 1 0
tests/UnifiedSpecTests/Constraint/MatchesTest.php 1 0
tests/UnifiedSpecTests/EntityMap.php 1 0
src/GridFS/Exception/StreamException.php 1 0
tests/Model/CachingIteratorTest.php 1 0
tests/Operation/CreateIndexesFunctionalTest.php 1 0
src/GridFS/CollectionWrapper.php 1 0
src/Operation/Update.php 1 0
tests/Model/IndexInfoFunctionalTest.php 1 0
src/Operation/CreateCollection.php 2 0
tests/Operation/BulkWriteFunctionalTest.php 1 0
tests/Operation/ListIndexesFunctionalTest.php 1 0
src/Operation/Aggregate.php 1 0
tests/UnifiedSpecTests/FailPointObserver.php 1 0
src/Operation/Find.php 2 0
src/Operation/CreateIndexes.php 1 0
tests/UnifiedSpecTests/UnifiedTestRunner.php 1 0
src/Client.php 1 0
tests/Operation/MapReduceFunctionalTest.php 1 0
src/Operation/InsertOne.php 1 0
src/Operation/InsertMany.php 1 0
tests/SpecTests/Context.php 1 0
tests/SpecTests/ResultExpectation.php 1 0
src/Operation/EstimatedDocumentCount.php 1 0
tests/UnifiedSpecTests/Context.php 2 0
src/Operation/FindOneAndReplace.php 1 0
src/Operation/Explain.php 1 0
tests/Database/DatabaseFunctionalTest.php 1 0
src/GridFS/ReadableStream.php 1 0
tests/SpecTests/FunctionalTestCase.php 1 0
tests/UnifiedSpecTests/Constraint/IsBsonTypeTest.php 2 0
tests/UnifiedSpecTests/ExpectedResult.php 1 0
tests/Operation/ExplainFunctionalTest.php 1 0
tests/Collection/CollectionFunctionalTest.php 1 0
src/Operation/ModifyCollection.php 1 0
tests/Operation/AggregateFunctionalTest.php 1 0
tests/SpecTests/TransactionsSpecTest.php 1 0
src/Database.php 1 0
tests/UnifiedSpecTests/Constraint/Matches.php 2 0
tests/UnifiedSpecTests/ExpectedError.php 1 0
tests/SpecTests/ErrorExpectation.php 1 0
src/Operation/Watch.php 1 0
src/Operation/MapReduce.php 2 0
tests/UnifiedSpecTests/UnifiedSpecTest.php 1 0
tests/UnifiedSpecTests/Operation.php 1 0
tests/UnifiedSpecTests/DirtySessionObserver.php 1 0
tests/SpecTests/RetryableWritesSpecTest.php 1 0
tests/FunctionalTestCase.php 2 0
src/Operation/BulkWrite.php 1 0
tests/GridFS/BucketFunctionalTest.php 2 0
src/ChangeStream.php 1 0
src/Operation/ListDatabaseNames.php 1 0
tests/UnifiedSpecTests/Constraint/IsBsonType.php 2 0
tests/UnifiedSpecTests/Loop.php 1 0
tests/GridFS/WritableStreamFunctionalTest.php 1 0
tests/SpecTests/DocumentsMatchConstraint.php 2 0
tests/Collection/CrudSpecFunctionalTest.php 1 0
tests/SpecTests/ClientSideEncryptionSpecTest.php 1 0
tests/SpecTests/Operation.php 1 0
tests/GridFS/ReadableStreamFunctionalTest.php 1 0
src/GridFS/Bucket.php 1 0
tests/SpecTests/CommandMonitoringSpecTest.php 1 0
tests/Operation/WatchFunctionalTest.php 1 0
tests/DocumentationExamplesTest.php 1 0
src/Collection.php 1 0
src/Command/ListCollections.php 1 0
src/Command/ListDatabases.php 1 0
tests/PHPUnit/Functions.php 1 0
tests/GridFS/StreamWrapperFunctionalTest.php 2 0
--------------------------------------------------------------------------
A TOTAL OF 162 ERRORS WERE FIXED IN 147 FILES
--------------------------------------------------------------------------
Time: 11.55 secs; Memory: 10MB
* phpcbf: fix PSR12.ControlStructures.ControlStructureSpacing
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
src/Operation/WithTransaction.php 3 0
src/Operation/DropCollection.php 2 0
src/Operation/FindOneAndUpdate.php 2 0
src/Operation/InsertOne.php 1 0
tests/UnifiedSpecTests/ExpectedResult.php 2 0
src/Operation/Update.php 2 0
src/Operation/FindAndModify.php 1 0
src/Operation/InsertMany.php 1 0
src/Operation/Aggregate.php 1 0
src/Operation/FindOneAndReplace.php 2 0
src/Operation/Find.php 2 0
src/Operation/Watch.php 4 0
tests/SpecTests/DocumentsMatchConstraint.php 2 0
src/Database.php 3 0
src/Operation/MapReduce.php 1 0
src/Operation/BulkWrite.php 1 0
src/Collection.php 3 0
----------------------------------------------------------------------
A TOTAL OF 33 ERRORS WERE FIXED IN 17 FILES
----------------------------------------------------------------------
Time: 6.46 secs; Memory: 10MB
* phpcbf: fix SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
src/Model/ChangeStreamIterator.php 2 0
tests/SpecTests/ChangeStreamsSpecTest.php 3 0
tests/UnifiedSpecTests/EventObserver.php 3 0
tests/UnifiedSpecTests/Constraint/IsBsonType.php 21 0
tests/Collection/CrudSpecFunctionalTest.php 14 0
tests/UnifiedSpecTests/Operation.php 42 0
tests/SpecTests/DocumentsMatchConstraint.php 19 0
src/GridFS/Bucket.php 1 0
tests/SpecTests/Operation.php 79 0
tests/DocumentationExamplesTest.php 8 0
----------------------------------------------------------------------
A TOTAL OF 192 ERRORS WERE FIXED IN 10 FILES
----------------------------------------------------------------------
Time: 5.07 secs; Memory: 10MB
* phpcbf: fix SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
tests/ClientFunctionalTest.php 1 0
tests/PedantryTest.php 2 0
src/functions.php 1 0
tests/SpecTests/ResultExpectation.php 7 0
tests/UnifiedSpecTests/UnifiedSpecTest.php 1 0
src/Operation/Aggregate.php 1 0
tests/SpecTests/TransactionsSpecTest.php 1 0
src/Operation/Find.php 2 0
tests/SpecTests/ErrorExpectation.php 5 0
src/Operation/MapReduce.php 1 0
tests/FunctionalTestCase.php 8 0
tests/Collection/CrudSpecFunctionalTest.php 8 0
tests/UnifiedSpecTests/Operation.php 2 0
tests/SpecTests/Operation.php 4 0
tests/DocumentationExamplesTest.php 17 0
----------------------------------------------------------------------
A TOTAL OF 61 ERRORS WERE FIXED IN 15 FILES
----------------------------------------------------------------------
Time: 5.32 secs; Memory: 10MB
* phpcbf: fix PSR12.Operators.OperatorSpacing
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
tests/FunctionalTestCase.php 2 0
tests/UnifiedSpecTests/Operation.php 1 0
----------------------------------------------------------------------
A TOTAL OF 3 ERRORS WERE FIXED IN 2 FILES
----------------------------------------------------------------------
Time: 4.97 secs; Memory: 10MB
* phpcbf: fix SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
tests/Collection/CrudSpecFunctionalTest.php 3 0
tests/DocumentationExamplesTest.php 30 0
tests/UnifiedSpecTests/Operation.php 2 0
tests/SpecTests/Operation.php 3 0
tests/Operation/WatchFunctionalTest.php 3 0
----------------------------------------------------------------------
A TOTAL OF 41 ERRORS WERE FIXED IN 5 FILES
----------------------------------------------------------------------
Time: 4.96 secs; Memory: 10MB
* phpcbf: fix remaining fixable errors
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
src/Model/BSONIterator.php 2 0
src/GridFS/ReadableStream.php 1 0
tests/Operation/WatchFunctionalTest.php 1 0
tests/PHPUnit/Functions.php 1 0
----------------------------------------------------------------------
A TOTAL OF 5 ERRORS WERE FIXED IN 4 FILES
----------------------------------------------------------------------
Time: 9.68 secs; Memory: 10MB
* manual: fix Squiz.NamingConventions.ValidVariableName
* phpcbf: use native type hints in tests
PHPCBF RESULT SUMMARY
--------------------------------------------------------------------------
FILE FIXED REMAINING
--------------------------------------------------------------------------
tests/Operation/DatabaseCommandFunctionalTest.php 3 0
tests/Operation/DropDatabaseTest.php 1 0
tests/Operation/ExplainTest.php 1 0
tests/Operation/ModifyCollectionTest.php 2 0
tests/Operation/ModifyCollectionFunctionalTest.php 1 0
tests/CommandObserver.php 4 0
tests/Operation/DeleteTest.php 3 0
tests/Operation/CountDocumentsTest.php 2 0
tests/Operation/UpdateManyTest.php 4 0
tests/Operation/CountTest.php 2 0
tests/Model/DatabaseInfoTest.php 7 0
tests/Operation/CreateIndexesTest.php 4 0
tests/GridFS/FunctionalTestCase.php 3 0
tests/Operation/InsertManyTest.php 4 0
tests/Model/IndexInputTest.php 6 0
tests/Operation/FindAndModifyTest.php 2 0
tests/Operation/ListIndexesTest.php 1 0
tests/UnifiedSpecTests/CollectionData.php 2 0
tests/Operation/ListDatabasesFunctionalTest.php 10 0
tests/Operation/DropDatabaseFunctionalTest.php 10 0
tests/Operation/CreateCollectionFunctionalTest.php 6 0
tests/Operation/FindOneAndUpdateTest.php 5 0
tests/Operation/CountFunctionalTest.php 7 0
tests/Operation/DeleteFunctionalTest.php 8 0
tests/GridFS/UnusableStream.php 2 0
tests/ClientFunctionalTest.php 9 0
tests/UnifiedSpecTests/Util.php 1 0
tests/Database/CollectionManagementFunctionalTest.php 10 0
tests/Operation/UpdateOneTest.php 4 0
tests/Operation/DropIndexesTest.php 2 0
tests/Operation/ListCollectionsFunctionalTest.php 6 0
tests/Operation/FindTest.php 8 0
tests/Operation/DistinctTest.php 2 0
tests/Operation/ListDatabaseNamesFunctionalTest.php 10 0
tests/Operation/FindOneAndReplaceTest.php 5 0
tests/Operation/DropCollectionFunctionalTest.php 10 0
tests/UnifiedSpecTests/EventCollector.php 6 0
tests/Operation/InsertManyFunctionalTest.php 12 0
tests/Operation/MapReduceTest.php 2 0
tests/Model/BSONArrayTest.php 7 0
tests/Operation/InsertOneTest.php 2 0
tests/Operation/DropCollectionTest.php 1 0
tests/Operation/EstimatedDocumentCountTest.php 1 0
tests/FunctionsTest.php 8 0
tests/Model/IndexInfoTest.php 11 0
tests/SpecTests/DocumentsMatchConstraintTest.php 6 0
tests/PedantryTest.php 1 0
tests/SpecTests/CommandExpectations.php 6 0
tests/Operation/ReplaceOneTest.php 4 0
tests/Operation/InsertOneFunctionalTest.php 13 0
tests/Operation/WatchTest.php 3 0
tests/SpecTests/AtlasDataLakeSpecTest.php 10 0
tests/Operation/FindFunctionalTest.php 12 0
tests/Command/ListDatabasesTest.php 1 0
tests/SpecTests/PrimaryStepDownSpecTest.php 9 0
tests/Operation/UpdateTest.php 3 0
tests/Model/ChangeStreamIteratorTest.php 12 0
tests/Operation/DistinctFunctionalTest.php 7 0
tests/Operation/UpdateFunctionalTest.php 19 0
tests/Operation/DatabaseCommandTest.php 2 0
tests/SpecTests/ChangeStreamsSpecTest.php 14 0
tests/UnifiedSpecTests/EventObserver.php 10 0
tests/Command/ListCollectionsTest.php 1 0
tests/Model/BSONDocumentTest.php 8 0
tests/Operation/ListCollectionNamesFunctionalTest.php 4 0
tests/Operation/DropIndexesFunctionalTest.php 11 0
tests/SpecTests/ReadWriteConcernSpecTest.php 4 0
tests/Model/BSONIteratorTest.php 5 0
tests/Model/CollectionInfoTest.php 7 0
tests/UnifiedSpecTests/Constraint/MatchesTest.php 12 0
tests/UnifiedSpecTests/EntityMap.php 3 0
tests/TestCase.php 28 0
tests/SpecTests/RetryableReadsSpecTest.php 5 0
tests/Operation/CountDocumentsFunctionalTest.php 2 0
tests/Operation/AggregateTest.php 3 0
tests/Operation/CreateIndexesFunctionalTest.php 27 0
tests/Operation/BulkWriteFunctionalTest.php 22 0
tests/Model/CachingIteratorTest.php 12 0
tests/UnifiedSpecTests/FailPointObserver.php 6 0
tests/Operation/FindOneAndDeleteTest.php 2 0
tests/Model/IndexInfoFunctionalTest.php 3 0
tests/Operation/BulkWriteTest.php 36 0
tests/UnifiedSpecTests/UnifiedTestRunner.php 10 0
tests/Operation/MapReduceFunctionalTest.php 23 0
tests/SpecTests/ResultExpectation.php 3 0
tests/UnifiedSpecTests/Context.php 16 0
tests/Database/DatabaseFunctionalTest.php 18 0
tests/Operation/CreateCollectionTest.php 4 0
tests/SpecTests/FunctionalTestCase.php 18 0
tests/UnifiedSpecTests/Constraint/IsBsonTypeTest.php 10 0
tests/UnifiedSpecTests/ExpectedResult.php 1 0
tests/Collection/CollectionFunctionalTest.php 44 0
tests/Operation/AggregateFunctionalTest.php 32 0
tests/Operation/FindAndModifyFunctionalTest.php 18 0
tests/SpecTests/Context.php 8 0
tests/SpecTests/TransactionsSpecTest.php 9 0
tests/Operation/FindOneFunctionalTest.php 3 0
tests/Operation/ListIndexesFunctionalTest.php 5 0
tests/Operation/ExplainFunctionalTest.php 31 0
tests/UnifiedSpecTests/ExpectedError.php 2 0
tests/UnifiedSpecTests/Constraint/Matches.php 6 0
tests/UnifiedSpecTests/UnifiedSpecTest.php 8 0
tests/UnifiedSpecTests/Operation.php 2 0
tests/UnifiedSpecTests/DirtySessionObserver.php 5 0
tests/GridFS/BucketFunctionalTest.php 65 0
tests/SpecTests/ErrorExpectation.php 2 0
tests/UnifiedSpecTests/Loop.php 5 0
tests/SpecTests/RetryableWritesSpecTest.php 1 0
tests/GridFS/WritableStreamFunctionalTest.php 5 0
tests/SpecTests/DocumentsMatchConstraint.php 9 0
tests/FunctionalTestCase.php 16 0
tests/Collection/CrudSpecFunctionalTest.php 11 0
tests/SpecTests/ClientSideEncryptionSpecTest.php 35 0
tests/SpecTests/Operation.php 8 0
tests/ClientTest.php 13 0
tests/GridFS/ReadableStreamFunctionalTest.php 19 0
tests/SpecTests/CommandMonitoringSpecTest.php 6 0
tests/DocumentationExamplesTest.php 35 0
tests/Operation/WatchFunctionalTest.php 80 0
tests/PHPUnit/Functions.php 141 0
tests/GridFS/StreamWrapperFunctionalTest.php 13 0
--------------------------------------------------------------------------
A TOTAL OF 1290 ERRORS WERE FIXED IN 121 FILES
--------------------------------------------------------------------------
Time: 23.19 secs; Memory: 10MB
* phpcbf: fix SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue
Despite the method signatures changing, this change is acceptable as it does not create a BC break: https://3v4l.org/vN1M9
PHPCBF RESULT SUMMARY
--------------------------------------------------------------------------
FILE FIXED REMAINING
--------------------------------------------------------------------------
tests/ClientFunctionalTest.php 1 0
tests/Database/CollectionManagementFunctionalTest.php 1 0
tests/UnifiedSpecTests/UnifiedTestCase.php 3 0
tests/SpecTests/ReadWriteConcernSpecTest.php 3 0
tests/Model/BSONIteratorTest.php 1 0
tests/Operation/DropIndexesFunctionalTest.php 1 0
tests/SpecTests/AtlasDataLakeSpecTest.php 3 0
tests/UnifiedSpecTests/EntityMap.php 2 0
tests/SpecTests/PrimaryStepDownSpecTest.php 1 0
tests/SpecTests/ChangeStreamsSpecTest.php 4 0
tests/Operation/CreateIndexesFunctionalTest.php 1 0
tests/Operation/FindAndModifyFunctionalTest.php 1 0
tests/SpecTests/RetryableReadsSpecTest.php 1 0
tests/Operation/MapReduceFunctionalTest.php 2 0
tests/UnifiedSpecTests/UnifiedTestRunner.php 3 0
tests/SpecTests/ErrorExpectation.php 2 0
tests/Operation/AggregateFunctionalTest.php 2 0
tests/SpecTests/RetryableWritesSpecTest.php 1 0
tests/UnifiedSpecTests/Context.php 1 0
tests/UnifiedSpecTests/ExpectedResult.php 2 0
tests/UnifiedSpecTests/Constraint/Matches.php 1 0
tests/SpecTests/FunctionalTestCase.php 1 0
tests/FunctionalTestCase.php 6 0
tests/SpecTests/TransactionsSpecTest.php 3 0
tests/Collection/CrudSpecFunctionalTest.php 2 0
tests/UnifiedSpecTests/ExpectedError.php 2 0
tests/GridFS/BucketFunctionalTest.php 1 0
tests/SpecTests/ClientSideEncryptionSpecTest.php 5 0
tests/SpecTests/CommandMonitoringSpecTest.php 2 0
tests/PHPUnit/Functions.php 2 0
--------------------------------------------------------------------------
A TOTAL OF 61 ERRORS WERE FIXED IN 30 FILES
--------------------------------------------------------------------------
Time: 19.24 secs; Memory: 10MB
* phpcbf: fix SlevomatCodingStandard.PHP.ShortList
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
tests/UnifiedSpecTests/CollectionData.php 1 0
src/Model/BSONIterator.php 1 0
tests/UnifiedSpecTests/FailPointObserver.php 1 0
tests/SpecTests/CommandExpectations.php 2 0
tests/SpecTests/AtlasDataLakeSpecTest.php 1 0
tests/SpecTests/ChangeStreamsSpecTest.php 1 0
tests/UnifiedSpecTests/EventObserver.php 1 0
src/GridFS/CollectionWrapper.php 2 0
tests/UnifiedSpecTests/Context.php 1 0
tests/SpecTests/FunctionalTestCase.php 1 0
tests/FunctionalTestCase.php 2 0
tests/Collection/CrudSpecFunctionalTest.php 1 0
----------------------------------------------------------------------
A TOTAL OF 15 ERRORS WERE FIXED IN 12 FILES
----------------------------------------------------------------------
Time: 10.33 secs; Memory: 10MB
* phpcbf: fix SlevomatCodingStandard.Classes.ClassConstantVisibility
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
tests/UnifiedSpecTests/RunOnRequirement.php 5 0
src/Operation/FindOneAndUpdate.php 2 0
src/Operation/FindOneAndReplace.php 2 0
tests/SpecTests/PrimaryStepDownSpecTest.php 3 0
src/Operation/CreateCollection.php 2 0
tests/SpecTests/FunctionalTestCase.php 3 0
tests/SpecTests/ResultExpectation.php 13 0
tests/UnifiedSpecTests/UnifiedTestRunner.php 5 0
tests/SpecTests/TransactionsSpecTest.php 1 0
src/Operation/Find.php 3 0
src/ChangeStream.php 1 0
src/Operation/Explain.php 3 0
src/Operation/Watch.php 2 0
tests/UnifiedSpecTests/Operation.php 1 0
src/Operation/BulkWrite.php 6 0
tests/SpecTests/Operation.php 9 0
tests/SpecTests/ClientSideEncryptionSpecTest.php 1 0
tests/Operation/WatchFunctionalTest.php 2 0
----------------------------------------------------------------------
A TOTAL OF 64 ERRORS WERE FIXED IN 18 FILES
----------------------------------------------------------------------
Time: 11.12 secs; Memory: 10MB
* Sort php version specific sniffs to the top
* phpcbf: fix SlevomatCodingStandard.Namespaces.NamespaceSpacing
PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
tests/PHPUnit/Functions.php 1 0
----------------------------------------------------------------------
A TOTAL OF 1 ERROR WERE FIXED IN 1 FILE
----------------------------------------------------------------------
Time: 17.97 secs; Memory: 10MB
* manual: fix SlevomatCodingStandard.TypeHints.*TypeHint.MissingAnyTypeHint
* Remove obsolete configuration
This is now enabled by default in doctrine/coding-standard
* Clean up and document phpcs configuration file
* Fix wrong method signature for inherited method
* Remove wrong return type
* manual: Use native typehints for internal functions
* Make collectionName argument nullable
Some tests don't have a collection name, which the previous documentation didn't cover for.1 parent fca066e commit 903e101
File tree
196 files changed
+2303
-1653
lines changed- .github/workflows
- .phpcs
- src
- Command
- Exception
- GridFS
- Exception
- Model
- Operation
- tests
- Collection
- Command
- Database
- GridFS
- Model
- Operation
- PHPUnit
- SpecTests
- UnifiedSpecTests
- Constraint
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
196 files changed
+2303
-1653
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 50 | + | |
| 51 | + | |
60 | 52 | | |
61 | 53 | | |
62 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
24 | 22 | | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
27 | 25 | | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
30 | 28 | | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
45 | | - | |
46 | | - | |
47 | 53 | | |
48 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | | - | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
58 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
59 | 69 | | |
60 | 70 | | |
61 | 71 | | |
62 | | - | |
63 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
64 | 76 | | |
65 | 77 | | |
66 | 78 | | |
67 | | - | |
68 | 79 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
75 | 83 | | |
| 84 | + | |
| 85 | + | |
76 | 86 | | |
| 87 | + | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| |||
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 102 | | |
99 | | - | |
100 | | - | |
101 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
102 | 133 | | |
| 134 | + | |
103 | 135 | | |
104 | | - | |
105 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
106 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
107 | 148 | | |
108 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
109 | 182 | | |
110 | 183 | | |
111 | 184 | | |
112 | 185 | | |
113 | 186 | | |
114 | | - | |
115 | 187 | | |
116 | 188 | | |
117 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | | - | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
387 | | - | |
| 388 | + | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| |||
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
400 | | - | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
237 | | - | |
| 238 | + | |
| 239 | + | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
| |||
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | | - | |
| 251 | + | |
| 252 | + | |
250 | 253 | | |
251 | 254 | | |
252 | | - | |
| 255 | + | |
| 256 | + | |
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments