@@ -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 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | // step 1 |
| 40 | 40 | $page = $this->_em |
| 41 | - ->createQuery('SELECT p, parent FROM ' . __NAMESPACE__ . '\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id') |
|
| 41 | + ->createQuery('SELECT p, parent FROM '.__NAMESPACE__.'\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id') |
|
| 42 | 42 | ->setParameter('id', $id) |
| 43 | 43 | ->getOneOrNullResult(); |
| 44 | 44 | |
@@ -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 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | $id = $this->createAddress(); |
| 36 | 36 | |
| 37 | - $addresses = $this->_em->createQuery('SELECT a FROM ' . Address::class . ' a WHERE a.id = :id') |
|
| 37 | + $addresses = $this->_em->createQuery('SELECT a FROM '.Address::class.' a WHERE a.id = :id') |
|
| 38 | 38 | ->setParameter('id', $id) |
| 39 | 39 | ->getResult(); |
| 40 | 40 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | { |
| 55 | 55 | $id = $this->createFullAddress(); |
| 56 | 56 | |
| 57 | - $addresses = $this->_em->createQuery('SELECT a FROM ' . FullAddress::class . ' a WHERE a.id = :id') |
|
| 57 | + $addresses = $this->_em->createQuery('SELECT a FROM '.FullAddress::class.' a WHERE a.id = :id') |
|
| 58 | 58 | ->setParameter('id', $id) |
| 59 | 59 | ->getResult(); |
| 60 | 60 | |
@@ -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 | } |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | public $listeners = []; |
| 78 | 78 | |
| 79 | 79 | public function addPropertyChangedListener(PropertyChangedListener $listener) { |
| 80 | - if (!in_array($listener, $this->listeners)) { |
|
| 80 | + if ( ! in_array($listener, $this->listeners)) { |
|
| 81 | 81 | $this->listeners[] = $listener; |
| 82 | 82 | } |
| 83 | 83 | } |