From 33476d8c3402eccf8878eb1d6d926491e0acaf2a Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 30 Nov 2015 17:04:12 +0100 Subject: [PATCH] DDC-4022 minor improvements --- lib/Doctrine/ORM/UnitOfWork.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 1652d4a1e..15e0c9eab 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -3273,16 +3273,18 @@ class UnitOfWork implements PropertyChangedListener $persister->afterTransactionRolledBack(); }); } - + /** * Performs an action after the transaction. + * + * @param callable $callback */ private function doAfterTransaction(callable $callback) { - if (!$this->hasCache) { + if ( ! $this->hasCache) { return; } - + foreach (array_merge($this->persisters, $this->collectionPersisters) as $persister) { if ($persister instanceof CachedPersister) { call_user_func($callback, $persister);