@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | foreach ($props as $name => $prop) { |
75 | 75 | $ident += 4; |
76 | 76 | $str .= str_repeat(' ', $ident) . '"' . $name . '": ' |
77 | - . $this->dump($prop) . ',' . PHP_EOL; |
|
77 | + . $this->dump($prop) . ',' . PHP_EOL; |
|
78 | 78 | $ident -= 4; |
79 | 79 | } |
80 | 80 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | foreach ($obj as $k => $v) { |
88 | 88 | $str .= PHP_EOL . str_repeat(' ', $ident) . '"' |
89 | - . $k . '" => ' . $this->dump($v) . ','; |
|
89 | + . $k . '" => ' . $this->dump($v) . ','; |
|
90 | 90 | $some = true; |
91 | 91 | } |
92 | 92 |
@@ -138,8 +138,8 @@ |
||
138 | 138 | public function __toString() |
139 | 139 | { |
140 | 140 | return strtoupper($this->joinType) . ' JOIN ' . $this->join |
141 | - . ($this->alias ? ' ' . $this->alias : '') |
|
142 | - . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') |
|
143 | - . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); |
|
141 | + . ($this->alias ? ' ' . $this->alias : '') |
|
142 | + . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') |
|
143 | + . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); |
|
144 | 144 | } |
145 | 145 | } |
@@ -58,8 +58,8 @@ |
||
58 | 58 | $entityManager = $this->getHelper('em')->getEntityManager(); |
59 | 59 | |
60 | 60 | $entityClassNames = $entityManager->getConfiguration() |
61 | - ->getMetadataDriverImpl() |
|
62 | - ->getAllClassNames(); |
|
61 | + ->getMetadataDriverImpl() |
|
62 | + ->getAllClassNames(); |
|
63 | 63 | |
64 | 64 | if (!$entityClassNames) { |
65 | 65 | throw new \Exception( |
@@ -67,7 +67,7 @@ |
||
67 | 67 | public function resolve($className) |
68 | 68 | { |
69 | 69 | if (isset($this->instances[$className = trim($className, '\\')])) { |
70 | - return $this->instances[$className]; |
|
70 | + return $this->instances[$className]; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | return $this->instances[$className] = new $className(); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function getCacheLogger() |
75 | 75 | { |
76 | - return $this->cacheLogger; |
|
76 | + return $this->cacheLogger; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | ); |
116 | 116 | } |
117 | 117 | |
118 | - return $this->queryValidator; |
|
118 | + return $this->queryValidator; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
@@ -32,8 +32,8 @@ |
||
32 | 32 | public function testIsListenerCalledOnlyOnceOnPreFlush() |
33 | 33 | { |
34 | 34 | $listener = $this->getMockBuilder(DDC2692Listener::class) |
35 | - ->setMethods(['preFlush']) |
|
36 | - ->getMock(); |
|
35 | + ->setMethods(['preFlush']) |
|
36 | + ->getMock(); |
|
37 | 37 | |
38 | 38 | $listener->expects($this->once())->method('preFlush'); |
39 | 39 |
@@ -32,8 +32,8 @@ |
||
32 | 32 | ->getMock(); |
33 | 33 | |
34 | 34 | $configuration = $this->getMockBuilder(Configuration::class) |
35 | - ->setMethods(['getMetadataDriverImpl']) |
|
36 | - ->getMock(); |
|
35 | + ->setMethods(['getMetadataDriverImpl']) |
|
36 | + ->getMock(); |
|
37 | 37 | |
38 | 38 | $connection = $this->createMock(Connection::class); |
39 | 39 |
@@ -29,8 +29,8 @@ |
||
29 | 29 | $uow->scheduleExtraUpdate($user, ['name' => 'changed name']); |
30 | 30 | |
31 | 31 | $listener = $this->getMockBuilder(\stdClass::class) |
32 | - ->setMethods([Events::postFlush]) |
|
33 | - ->getMock(); |
|
32 | + ->setMethods([Events::postFlush]) |
|
33 | + ->getMock(); |
|
34 | 34 | |
35 | 35 | $listener |
36 | 36 | ->expects($this->once()) |
@@ -136,24 +136,24 @@ |
||
136 | 136 | ->will($this->returnValue( 10 )); |
137 | 137 | |
138 | 138 | $parserResultMock = $this->getMockBuilder(ParserResult::class) |
139 | - ->setMethods(['getSqlExecutor']) |
|
140 | - ->getMock(); |
|
139 | + ->setMethods(['getSqlExecutor']) |
|
140 | + ->getMock(); |
|
141 | 141 | $parserResultMock->expects($this->once()) |
142 | - ->method('getSqlExecutor') |
|
143 | - ->will($this->returnValue($sqlExecMock)); |
|
142 | + ->method('getSqlExecutor') |
|
143 | + ->will($this->returnValue($sqlExecMock)); |
|
144 | 144 | |
145 | 145 | $cache = $this->getMockBuilder(CacheProvider::class) |
146 | - ->setMethods(['doFetch', 'doContains', 'doSave', 'doDelete', 'doFlush', 'doGetStats']) |
|
147 | - ->getMock(); |
|
146 | + ->setMethods(['doFetch', 'doContains', 'doSave', 'doDelete', 'doFlush', 'doGetStats']) |
|
147 | + ->getMock(); |
|
148 | 148 | |
149 | 149 | $cache->expects($this->at(0))->method('doFetch')->will($this->returnValue(1)); |
150 | 150 | $cache->expects($this->at(1)) |
151 | - ->method('doFetch') |
|
152 | - ->with($this->isType('string')) |
|
153 | - ->will($this->returnValue($parserResultMock)); |
|
151 | + ->method('doFetch') |
|
152 | + ->with($this->isType('string')) |
|
153 | + ->will($this->returnValue($parserResultMock)); |
|
154 | 154 | |
155 | 155 | $cache->expects($this->never()) |
156 | - ->method('doSave'); |
|
156 | + ->method('doSave'); |
|
157 | 157 | |
158 | 158 | $query->setQueryCacheDriver($cache); |
159 | 159 |