@@ -187,14 +187,14 @@ discard block |
||
187 | 187 | { |
188 | 188 | $bar = m::mock(testType::class); |
189 | 189 | // closure needs to return true to match the matcher and thus trip the andReturn(false) bit |
190 | - $bar->shouldReceive('isOK')->with(m::on(function (&$msg) { |
|
190 | + $bar->shouldReceive('isOK')->with(m::on(function(&$msg) { |
|
191 | 191 | $msg = 'OH NOES!'; |
192 | 192 | return true; |
193 | 193 | }))->andReturn(false); |
194 | 194 | |
195 | 195 | $msg = null; |
196 | 196 | $expected = 'OH NOES!'; |
197 | - $arr = [ $bar ]; |
|
197 | + $arr = [$bar]; |
|
198 | 198 | |
199 | 199 | $foo = new testType(); |
200 | 200 | $this->assertFalse($foo->isChildArrayOK($arr, $msg), $msg); |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $msg = null; |
247 | 247 | $obj = m::mock(testType::class); |
248 | 248 | // closure needs to return true to match the matcher and thus trip the andReturn(false) bit |
249 | - $obj->shouldReceive('isOK')->with(m::on(function (&$msg) { |
|
249 | + $obj->shouldReceive('isOK')->with(m::on(function(&$msg) { |
|
250 | 250 | $msg = null; |
251 | 251 | return true; |
252 | 252 | }))->andReturn(true); |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | $msg = null; |
260 | 260 | $obj = m::mock(testType::class); |
261 | 261 | // closure needs to return true to match the matcher and thus trip the andReturn(false) bit |
262 | - $obj->shouldReceive('isOK')->with(m::on(function (&$msg) { |
|
262 | + $obj->shouldReceive('isOK')->with(m::on(function(&$msg) { |
|
263 | 263 | $msg = 'OH NOES!'; |
264 | 264 | return true; |
265 | 265 | }))->andReturn(false); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | { |
286 | 286 | $foo = m::mock(testType::class)->makePartial(); |
287 | 287 | $foo->shouldReceive('isValidArray')->withAnyArgs()->andReturn(true); |
288 | - $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function (&$msg) { |
|
288 | + $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function(&$msg) { |
|
289 | 289 | $msg = 'OH NOES!'; |
290 | 290 | return true; |
291 | 291 | }))->andReturn(false); |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | { |
300 | 300 | $foo = m::mock(testType::class)->makePartial(); |
301 | 301 | $foo->shouldReceive('isValidArray')->withAnyArgs()->andReturn(true); |
302 | - $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function (&$msg) { |
|
302 | + $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function(&$msg) { |
|
303 | 303 | $msg = null; |
304 | 304 | return true; |
305 | 305 | }))->andReturn(true); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $result = null; |
28 | 28 | |
29 | 29 | list($CategoryType, $result) = $metadataManager->addEntityType('Category'); |
30 | - $this->assertNotFalse($CategoryType, 'Etype is false not type ' . $metadataManager->getLastError()); |
|
30 | + $this->assertNotFalse($CategoryType, 'Etype is false not type '.$metadataManager->getLastError()); |
|
31 | 31 | $metadataManager->addPropertyToEntityType($CategoryType, 'CategoryID', 'Int32', null, false, true, 'Identity'); |
32 | 32 | $metadataManager->addPropertyToEntityType($CategoryType, 'CategoryName', 'String'); |
33 | 33 | $metadataManager->addPropertyToEntityType($CategoryType, 'Description', 'String'); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $this->assertTrue($metadataManager->getEdmx()->isOK($msg), $msg); |
114 | 114 | |
115 | 115 | $expectedRelation = 'Data.Category_Products_Product_Category'; |
116 | - list($principalNav, ) = $metadataManager->addNavigationPropertyToEntityType( |
|
116 | + list($principalNav,) = $metadataManager->addNavigationPropertyToEntityType( |
|
117 | 117 | $CategoryType, '*', 'Products', $ProductType, '1', 'Category', ['CategoryID'], ['CategoryID'] |
118 | 118 | ); |
119 | 119 | $this->assertEquals($expectedRelation, $principalNav->getRelationship()); |