@@ -3427,13 +3427,13 @@ public function testNoChangeUpdateDocumentWithRelationWithoutPermission(): void
34273427 Permission::create (Role::any ()),
34283428 Permission::delete (Role::any ()),
34293429 ];
3430- for ($ i= 1 ; $ i < 6 ; $ i ++) {
3430+ for ($ i = 1 ; $ i < 6 ; $ i ++) {
34313431 static ::getDatabase ()->createCollection ("level {$ i }" , [$ attribute ], [], $ permissions );
34323432 }
34333433
34343434 for ($ i = 1 ; $ i < 5 ; $ i ++) {
34353435 $ collectionId = $ i ;
3436- $ relatedCollectionId = $ i+ 1 ;
3436+ $ relatedCollectionId = $ i + 1 ;
34373437 static ::getDatabase ()->createRelationship (
34383438 collection: "level {$ collectionId }" ,
34393439 relatedCollection: "level {$ relatedCollectionId }" ,
@@ -3495,7 +3495,7 @@ public function testNoChangeUpdateDocumentWithRelationWithoutPermission(): void
34953495 $ level1 = static ::getDatabase ()->updateDocument ('level1 ' , $ level1 ->getId (), $ level1 );
34963496 $ this ->assertEquals ('updated value ' , $ level1 ['level2 ' ]['level3 ' ]['name ' ]);
34973497
3498- for ($ i= 1 ; $ i < 6 ; $ i ++) {
3498+ for ($ i = 1 ; $ i < 6 ; $ i ++) {
34993499 static ::getDatabase ()->deleteCollection ("level {$ i }" );
35003500 }
35013501 }
@@ -3661,7 +3661,7 @@ public function testExceptionWidthLimit(int $key, int $stringSize, int $stringCo
36613661 */
36623662 public function testCheckAttributeWidthLimit (int $ key , int $ stringSize , int $ stringCount , int $ intCount , int $ floatCount , int $ boolCount ): void
36633663 {
3664- if (static ::getDatabase ()->getAdapter ()::getDocumentSizeLimit ()> 0 ) {
3664+ if (static ::getDatabase ()->getAdapter ()::getDocumentSizeLimit () > 0 ) {
36653665 $ collection = static ::getDatabase ()->getCollection ("widthLimit {$ key }" );
36663666
36673667 // create same attribute in testExceptionWidthLimit
@@ -4116,7 +4116,7 @@ public function testUpdateAttributeStructure(): void
41164116 $ this ->assertEquals (false , $ attribute ['array ' ]);
41174117 $ this ->assertEquals (false , $ attribute ['required ' ]);
41184118 $ this ->assertEquals ('priceRange ' , $ attribute ['format ' ]);
4119- $ this ->assertEquals (['min ' => 1 , 'max ' => 10000 ], $ attribute ['formatOptions ' ]);
4119+ $ this ->assertEquals (['min ' => 1 , 'max ' => 10000 ], $ attribute ['formatOptions ' ]);
41204120
41214121 $ database ->updateAttribute ('flowers ' , 'price ' , default: 100 );
41224122 $ collection = $ database ->getCollection ('flowers ' );
@@ -4128,7 +4128,7 @@ public function testUpdateAttributeStructure(): void
41284128 $ this ->assertEquals (false , $ attribute ['array ' ]);
41294129 $ this ->assertEquals (false , $ attribute ['required ' ]);
41304130 $ this ->assertEquals ('priceRange ' , $ attribute ['format ' ]);
4131- $ this ->assertEquals (['min ' => 1 , 'max ' => 10000 ], $ attribute ['formatOptions ' ]);
4131+ $ this ->assertEquals (['min ' => 1 , 'max ' => 10000 ], $ attribute ['formatOptions ' ]);
41324132
41334133 $ database ->updateAttribute ('flowers ' , 'price ' , format: 'priceRangeNew ' );
41344134 $ collection = $ database ->getCollection ('flowers ' );
@@ -4140,7 +4140,7 @@ public function testUpdateAttributeStructure(): void
41404140 $ this ->assertEquals (false , $ attribute ['array ' ]);
41414141 $ this ->assertEquals (false , $ attribute ['required ' ]);
41424142 $ this ->assertEquals ('priceRangeNew ' , $ attribute ['format ' ]);
4143- $ this ->assertEquals (['min ' => 1 , 'max ' => 10000 ], $ attribute ['formatOptions ' ]);
4143+ $ this ->assertEquals (['min ' => 1 , 'max ' => 10000 ], $ attribute ['formatOptions ' ]);
41444144
41454145 $ database ->updateAttribute ('flowers ' , 'price ' , format: '' );
41464146 $ collection = $ database ->getCollection ('flowers ' );
@@ -4152,7 +4152,7 @@ public function testUpdateAttributeStructure(): void
41524152 $ this ->assertEquals (false , $ attribute ['array ' ]);
41534153 $ this ->assertEquals (false , $ attribute ['required ' ]);
41544154 $ this ->assertEquals ('' , $ attribute ['format ' ]);
4155- $ this ->assertEquals (['min ' => 1 , 'max ' => 10000 ], $ attribute ['formatOptions ' ]);
4155+ $ this ->assertEquals (['min ' => 1 , 'max ' => 10000 ], $ attribute ['formatOptions ' ]);
41564156
41574157 $ database ->updateAttribute ('flowers ' , 'price ' , formatOptions: ['min ' => 1 , 'max ' => 999 ]);
41584158 $ collection = $ database ->getCollection ('flowers ' );
@@ -4164,7 +4164,7 @@ public function testUpdateAttributeStructure(): void
41644164 $ this ->assertEquals (false , $ attribute ['array ' ]);
41654165 $ this ->assertEquals (false , $ attribute ['required ' ]);
41664166 $ this ->assertEquals ('' , $ attribute ['format ' ]);
4167- $ this ->assertEquals (['min ' => 1 , 'max ' => 999 ], $ attribute ['formatOptions ' ]);
4167+ $ this ->assertEquals (['min ' => 1 , 'max ' => 999 ], $ attribute ['formatOptions ' ]);
41684168
41694169 $ database ->updateAttribute ('flowers ' , 'price ' , formatOptions: []);
41704170 $ collection = $ database ->getCollection ('flowers ' );
0 commit comments