@@ -29,8 +29,8 @@ |
||
29 | 29 | $user = new CmsUser(); |
30 | 30 | $user->id = $i; |
31 | 31 | $user->status = 'user'; |
32 | - $user->username = 'user' . $i; |
|
33 | - $user->name = 'Mr.Smith-' . $i; |
|
32 | + $user->username = 'user'.$i; |
|
33 | + $user->name = 'Mr.Smith-'.$i; |
|
34 | 34 | $this->users[] = $user; |
35 | 35 | |
36 | 36 | $this->unitOfWork->registerManaged( |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'u__status' => 'developer', |
49 | 49 | 'u__username' => 'jwage', |
50 | 50 | 'u__name' => 'Jonathan', |
51 | - 'sclr0' => 'JWAGE' . $i, |
|
51 | + 'sclr0' => 'JWAGE'.$i, |
|
52 | 52 | 'p__phonenumber' => '91', |
53 | 53 | 'a__id' => $i, |
54 | 54 | ]; |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | for ($i = 1; $i <= 10000; ++$i) { |
40 | 40 | $user = new CMS\CmsUser(); |
41 | 41 | $user->status = 'user'; |
42 | - $user->username = 'user' . $i; |
|
43 | - $user->name = 'Mr.Smith-' . $i; |
|
42 | + $user->username = 'user'.$i; |
|
43 | + $user->name = 'Mr.Smith-'.$i; |
|
44 | 44 | |
45 | 45 | $this->users[$i] = $user; |
46 | 46 | } |
@@ -53,12 +53,12 @@ discard block |
||
53 | 53 | // Yes, this is a lot of overhead, but I have no better solution other than |
54 | 54 | // completely mocking out the DB, which would be silly (query impact is |
55 | 55 | // necessarily part of our benchmarks) |
56 | - $this->entityManager->getConnection()->executeQuery('DELETE FROM ' . $this->tableName)->execute(); |
|
56 | + $this->entityManager->getConnection()->executeQuery('DELETE FROM '.$this->tableName)->execute(); |
|
57 | 57 | |
58 | 58 | foreach ($this->users as $key => $user) { |
59 | 59 | $this->entityManager->persist($user); |
60 | 60 | |
61 | - if (! ($key % 20)) { |
|
61 | + if ( ! ($key % 20)) { |
|
62 | 62 | $this->entityManager->flush(); |
63 | 63 | $this->entityManager->clear(); |
64 | 64 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | 'u__status' => 'developer', |
64 | 64 | 'u__username' => 'jwage', |
65 | 65 | 'u__name' => 'Jonathan', |
66 | - 'sclr0' => 'JWAGE' . $i, |
|
66 | + 'sclr0' => 'JWAGE'.$i, |
|
67 | 67 | 'p__phonenumber' => '91', |
68 | 68 | ]; |
69 | 69 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | public function fetchColumn($columnNumber = 0) |
44 | 44 | { |
45 | 45 | $row = current($this->resultSet); |
46 | - if (! is_array($row)) { |
|
46 | + if ( ! is_array($row)) { |
|
47 | 47 | return false; |
48 | 48 | } |
49 | 49 | $val = array_shift($row); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function getDatabasePlatform() |
35 | 35 | { |
36 | - if (! $this->platformMock) { |
|
36 | + if ( ! $this->platformMock) { |
|
37 | 37 | $this->platformMock = new DatabasePlatformMock(); |
38 | 38 | } |
39 | 39 | return $this->platformMock; |
@@ -76,7 +76,7 @@ |
||
76 | 76 | if ($config === null) { |
77 | 77 | $config = new Configuration(); |
78 | 78 | |
79 | - $config->setProxyDir(__DIR__ . '/../Proxies'); |
|
79 | + $config->setProxyDir(__DIR__.'/../Proxies'); |
|
80 | 80 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
81 | 81 | $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver()); |
82 | 82 | } |
@@ -192,7 +192,7 @@ |
||
192 | 192 | |
193 | 193 | $this->throwException(__FUNCTION__); |
194 | 194 | |
195 | - if (! isset($this->locks[$key->hash])) { |
|
195 | + if ( ! isset($this->locks[$key->hash])) { |
|
196 | 196 | return; |
197 | 197 | } |
198 | 198 |
@@ -90,7 +90,7 @@ |
||
90 | 90 | { |
91 | 91 | $realDbParams = self::getParamsForMainConnection(); |
92 | 92 | |
93 | - if (! self::$initialized) { |
|
93 | + if ( ! self::$initialized) { |
|
94 | 94 | $tmpDbParams = self::getParamsForTemporaryConnection(); |
95 | 95 | |
96 | 96 | $realConn = DriverManager::getConnection($realDbParams); |