Skip to content

Commit 7395856

Browse files
nikophilkbond
authored andcommitted
bot: fix cs [skip ci]
1 parent bf4549c commit 7395856

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Persistence/PersistentObjectFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ static function(object $object, array $parameters, PersistentObjectFactory $fact
542542
foreach (\array_merge(...$factoryUsed->afterPersist) as $afterPersist) {
543543
$afterPersistCallbacks[] = static function() use ($object, $afterPersist, $parameters, $factoryUsed): bool {
544544
// this condition is needed to avoid BC breaks: only avoid flush if the callback explicitly returns false
545-
return !($afterPersist($object, $parameters, $factoryUsed) === false);
545+
return !(false === $afterPersist($object, $parameters, $factoryUsed));
546546
};
547547
}
548548

tests/Integration/ORM/GenericEntityFactoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static function afterPersistDecideFlushProvider(): iterable
8080
function(GenericModel $object) {
8181
$object->setProp1('bar');
8282
},
83-
'bar'
83+
'bar',
8484
];
8585

8686
yield 'return true will flush' => [
@@ -89,7 +89,7 @@ function(GenericModel $object) {
8989

9090
return true;
9191
},
92-
'bar'
92+
'bar',
9393
];
9494

9595
yield 'return something else than false will flush' => [
@@ -98,7 +98,7 @@ function(GenericModel $object) {
9898

9999
return $object;
100100
},
101-
'bar'
101+
'bar',
102102
];
103103

104104
yield 'return false will not flush' => [
@@ -107,7 +107,7 @@ function(GenericModel $object) {
107107

108108
return false;
109109
},
110-
'foo'
110+
'foo',
111111
];
112112
}
113113

0 commit comments

Comments
 (0)