Completed
Push — master ( 7a0385...8c7052 )
by Marco
38:42 queued 29:58
created
tests/Doctrine/Performance/Hydration/SimpleInsertPerformanceBench.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
         for ($i = 1; $i <= 10000; ++$i) {
44 44
             $user           = new CMS\CmsUser;
45 45
             $user->status   = 'user';
46
-            $user->username = 'user' . $i;
47
-            $user->name     = 'Mr.Smith-' . $i;
46
+            $user->username = 'user'.$i;
47
+            $user->name     = 'Mr.Smith-'.$i;
48 48
 
49 49
             $this->users[$i] = $user;
50 50
         }
@@ -57,12 +57,12 @@  discard block
 block discarded – undo
57 57
         // Yes, this is a lot of overhead, but I have no better solution other than
58 58
         // completely mocking out the DB, which would be silly (query impact is
59 59
         // necessarily part of our benchmarks)
60
-        $this->entityManager->getConnection()->executeQuery('DELETE FROM ' . $this->tableName)->execute();
60
+        $this->entityManager->getConnection()->executeQuery('DELETE FROM '.$this->tableName)->execute();
61 61
 
62 62
         foreach ($this->users as $key => $user) {
63 63
             $this->entityManager->persist($user);
64 64
 
65
-            if (! ($key % 20)) {
65
+            if ( ! ($key % 20)) {
66 66
                 $this->entityManager->flush();
67 67
                 $this->entityManager->clear();
68 68
             }
Please login to merge, or discard this patch.