From 3cd7b8c95130a2658fcdeda00333080779d85c3b Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sat, 26 Nov 2016 05:23:04 +0100 Subject: [PATCH] #5987 CS: spacing after `!` (not) operator --- lib/Doctrine/ORM/Tools/EntityGenerator.php | 2 +- tests/Doctrine/Tests/ORM/Functional/Locking/LockTest.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index fa6cbf12d..e48e8535b 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -371,7 +371,7 @@ public function __construct() mkdir($dir, 0775, true); } - $this->isNew = !file_exists($path) || $this->regenerateEntityIfExists; + $this->isNew = ! file_exists($path) || $this->regenerateEntityIfExists; if ( ! $this->isNew) { $this->parseTokensInEntityFile(file_get_contents($path)); diff --git a/tests/Doctrine/Tests/ORM/Functional/Locking/LockTest.php b/tests/Doctrine/Tests/ORM/Functional/Locking/LockTest.php index 980cf35e3..8ac9bfefc 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Locking/LockTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/Locking/LockTest.php @@ -126,7 +126,8 @@ class LockTest extends OrmFunctionalTestCase public function testLockPessimisticWrite() { $writeLockSql = $this->_em->getConnection()->getDatabasePlatform()->getWriteLockSQL(); - if (!$writeLockSql) { + + if (! $writeLockSql) { $this->markTestSkipped('Database Driver has no Write Lock support.'); } @@ -157,7 +158,8 @@ class LockTest extends OrmFunctionalTestCase public function testLockPessimisticRead() { $readLockSql = $this->_em->getConnection()->getDatabasePlatform()->getReadLockSQL(); - if (!$readLockSql) { + + if (! $readLockSql) { $this->markTestSkipped('Database Driver has no Write Lock support.'); }