@@ -43,8 +43,8 @@ discard block |
||
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 |
||
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 | } |