Failed Conditions
Pull Request — master (#7242)
by Gabriel
08:46
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2996Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         $em  = $event->getEntityManager();
75 75
         $uow = $em->getUnitOfWork();
76 76
 
77
-        if (! $uow->getOriginalEntityData($this->user)) {
77
+        if ( ! $uow->getOriginalEntityData($this->user)) {
78 78
             return;
79 79
         }
80 80
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/NotifyPolicyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
     protected function onPropertyChanged($propName, $oldValue, $newValue)
104 104
     {
105
-        if (! $this->listeners) {
105
+        if ( ! $this->listeners) {
106 106
             return;
107 107
         }
108 108
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     {
202 202
         $listener = new ListenerSecondLevelCacheTest(
203 203
             [
204
-                Events::postFlush => function () {
204
+                Events::postFlush => function() {
205 205
                     throw new \RuntimeException('post flush failure');
206 206
                 },
207 207
             ]
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
         $listener = new ListenerSecondLevelCacheTest(
235 235
             [
236
-                Events::postUpdate => function () {
236
+                Events::postUpdate => function() {
237 237
                     throw new \RuntimeException('post update failure');
238 238
                 },
239 239
             ]
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         self::assertInstanceOf(State::class, $state);
253 253
         self::assertEquals($stateName, $state->getName());
254 254
 
255
-        $state->setName($stateName . uniqid());
255
+        $state->setName($stateName.uniqid());
256 256
 
257 257
         $this->em->persist($state);
258 258
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         $this->em->clear();
280 280
 
281 281
         $listener = new ListenerSecondLevelCacheTest([
282
-            Events::postRemove => function () {
282
+            Events::postRemove => function() {
283 283
                 throw new \RuntimeException('post remove failure');
284 284
             },
285 285
         ]);
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 
343 343
     private function dispatch($eventName, $args)
344 344
     {
345
-        if (! isset($this->callbacks[$eventName])) {
345
+        if ( ! isset($this->callbacks[$eventName])) {
346 346
             return;
347 347
         }
348 348
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/SingleScalarHydratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             return;
84 84
         }
85 85
 
86
-        if (! in_array($name, ['result3', 'result4'], true)) {
86
+        if ( ! in_array($name, ['result3', 'result4'], true)) {
87 87
             return;
88 88
         }
89 89
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/CMS/CmsUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
 
194 194
         $this->email = $email;
195 195
 
196
-        if (! $email) {
196
+        if ( ! $email) {
197 197
             return;
198 198
         }
199 199
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/ECommerce/ECommerceCategory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     public function removeProduct(ECommerceProduct $product)
78 78
     {
79 79
         $removed = $this->products->removeElement($product);
80
-        if (! $removed) {
80
+        if ( ! $removed) {
81 81
             return;
82 82
         }
83 83
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     public function removeChild(ECommerceCategory $child)
121 121
     {
122 122
         $removed = $this->children->removeElement($child);
123
-        if (! $removed) {
123
+        if ( ! $removed) {
124 124
             return;
125 125
         }
126 126
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/ECommerce/ECommerceProduct.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     public function removeCategory(ECommerceCategory $category)
143 143
     {
144 144
         $removed = $this->categories->removeElement($category);
145
-        if (! $removed) {
145
+        if ( ! $removed) {
146 146
             return;
147 147
         }
148 148
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     public function removeRelated(ECommerceProduct $related)
178 178
     {
179 179
         $removed = $this->related->removeElement($related);
180
-        if (! $removed) {
180
+        if ( ! $removed) {
181 181
             return;
182 182
         }
183 183
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     public function __clone()
188 188
     {
189 189
         $this->isCloned = true;
190
-        if (! $this->categories) {
190
+        if ( ! $this->categories) {
191 191
             return;
192 192
         }
193 193
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/ConcurrentRegionMock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     private function throwException($method)
41 41
     {
42
-        if (! isset($this->exceptions[$method]) || empty($this->exceptions[$method])) {
42
+        if ( ! isset($this->exceptions[$method]) || empty($this->exceptions[$method])) {
43 43
             return;
44 44
         }
45 45
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
         $this->throwException(__FUNCTION__);
196 196
 
197
-        if (! isset($this->locks[$key->hash])) {
197
+        if ( ! isset($this->locks[$key->hash])) {
198 198
             return;
199 199
         }
200 200
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/EntityPersisterMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     {
45 45
         $this->inserts[] = $entity;
46 46
 
47
-        if (! $this->class->getValueGenerationPlan()->containsDeferred()) {
47
+        if ( ! $this->class->getValueGenerationPlan()->containsDeferred()) {
48 48
             return;
49 49
         }
50 50
 
Please login to merge, or discard this patch.