@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | // proxy for Y is in identity map |
| 46 | 46 | |
| 47 | - $z2 = $this->_em->createQuery('select z,y from ' . get_class($z) . ' z join z.y y where z.id = ?1') |
|
| 47 | + $z2 = $this->_em->createQuery('select z,y from '.get_class($z).' z join z.y y where z.id = ?1') |
|
| 48 | 48 | ->setParameter(1, $z->id) |
| 49 | 49 | ->getSingleResult(); |
| 50 | 50 | $this->assertInstanceOf(Proxy::class, $z2->y); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $this->_em->clear(); |
| 37 | 37 | |
| 38 | 38 | $history = $this->_em->createQuery('SELECT h FROM ' . __NAMESPACE__ . '\\DDC1250ClientHistory h WHERE h.id = ?1') |
| 39 | - ->setParameter(1, $c2->id)->getSingleResult(); |
|
| 39 | + ->setParameter(1, $c2->id)->getSingleResult(); |
|
| 40 | 40 | |
| 41 | 41 | $this->assertInstanceOf(DDC1250ClientHistory::class, $history); |
| 42 | 42 | } |
@@ -88,6 +88,4 @@ discard block |
||
| 88 | 88 | mappedBy: declinedClientsHistory |
| 89 | 89 | lifecycleCallbacks: { } |
| 90 | 90 | repositoryClass: Entities\ClientsHistoryRepository |
| 91 | - |
|
| 92 | - |
|
| 93 | 91 | */ |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $this->_em->getClassMetadata(DDC1250ClientHistory::class), |
| 17 | 17 | ] |
| 18 | 18 | ); |
| 19 | - } catch(\PDOException $e) { |
|
| 19 | + } catch (\PDOException $e) { |
|
| 20 | 20 | |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -28,14 +28,14 @@ discard block |
||
| 28 | 28 | $c1->declinedClientsHistory = $c2; |
| 29 | 29 | $c1->declinedBy = $c2; |
| 30 | 30 | $c2->declinedBy = $c1; |
| 31 | - $c2->declinedClientsHistory= $c1; |
|
| 31 | + $c2->declinedClientsHistory = $c1; |
|
| 32 | 32 | |
| 33 | 33 | $this->_em->persist($c1); |
| 34 | 34 | $this->_em->persist($c2); |
| 35 | 35 | $this->_em->flush(); |
| 36 | 36 | $this->_em->clear(); |
| 37 | 37 | |
| 38 | - $history = $this->_em->createQuery('SELECT h FROM ' . __NAMESPACE__ . '\\DDC1250ClientHistory h WHERE h.id = ?1') |
|
| 38 | + $history = $this->_em->createQuery('SELECT h FROM '.__NAMESPACE__.'\\DDC1250ClientHistory h WHERE h.id = ?1') |
|
| 39 | 39 | ->setParameter(1, $c2->id)->getSingleResult(); |
| 40 | 40 | |
| 41 | 41 | $this->assertInstanceOf(DDC1250ClientHistory::class, $history); |
@@ -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 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | $this->_em->getClassMetadata(DDC992Child::class), |
| 21 | 21 | ] |
| 22 | 22 | ); |
| 23 | - } catch(\Exception $e) { |
|
| 23 | + } catch (\Exception $e) { |
|
| 24 | 24 | |
| 25 | 25 | } |
| 26 | 26 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | $this->_em->flush(); |
| 66 | 66 | $this->_em->commit(); |
| 67 | - } catch(\Exception $e) { |
|
| 67 | + } catch (\Exception $e) { |
|
| 68 | 68 | $this->_em->rollback(); |
| 69 | 69 | } |
| 70 | 70 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @Entity |
| 31 | - */ |
|
| 31 | + */ |
|
| 32 | 32 | class DDC513OfferItem extends DDC513Item |
| 33 | 33 | { |
| 34 | 34 | } |
@@ -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()) |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $listener |
| 36 | 36 | ->expects($this->once()) |
| 37 | 37 | ->method(Events::postFlush) |
| 38 | - ->will($this->returnCallback(function () use ($uow, $test) { |
|
| 38 | + ->will($this->returnCallback(function() use ($uow, $test) { |
|
| 39 | 39 | $test->assertAttributeEmpty('extraUpdates', $uow, 'ExtraUpdates are reset before postFlush'); |
| 40 | 40 | })); |
| 41 | 41 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | $this->_em->getClassMetadata(DDC2895::class), |
| 19 | 19 | ] |
| 20 | 20 | ); |
| 21 | - } catch(\Exception $e) { |
|
| 21 | + } catch (\Exception $e) { |
|
| 22 | 22 | |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | /** |
| 74 | 74 | * @param \DateTime $lastModified |
| 75 | 75 | */ |
| 76 | - public function setLastModified( $lastModified ) |
|
| 76 | + public function setLastModified($lastModified) |
|
| 77 | 77 | { |
| 78 | 78 | $this->lastModified = $lastModified; |
| 79 | 79 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * @param mixed $id |
| 101 | 101 | */ |
| 102 | - public function setId( $id ) |
|
| 102 | + public function setId($id) |
|
| 103 | 103 | { |
| 104 | 104 | $this->id = $id; |
| 105 | 105 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | ->_em |
| 73 | 73 | ->createQuery( |
| 74 | 74 | 'SELECT e, p, c FROM ' |
| 75 | - . __NAMESPACE__ . '\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id' |
|
| 75 | + . __NAMESPACE__.'\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id' |
|
| 76 | 76 | ) |
| 77 | 77 | ->setParameter('id', $second) |
| 78 | 78 | ->setHint(Query::HINT_REFRESH, true) |