@@ -42,7 +42,7 @@ |
||
42 | 42 | $this->_em->flush(); |
43 | 43 | |
44 | 44 | $asset->getAttributes() |
45 | - ->removeElement($attribute1); |
|
45 | + ->removeElement($attribute1); |
|
46 | 46 | |
47 | 47 | $idToBeRemoved = $attribute1->id; |
48 | 48 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $this->_em->getClassMetadata(DDC3785_Attribute::class) |
23 | 23 | ] |
24 | 24 | ); |
25 | - } catch(\Exception $e) { |
|
25 | + } catch (\Exception $e) { |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | */ |
153 | 153 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
154 | 154 | { |
155 | - return (string)$value; |
|
155 | + return (string) $value; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $this->_em->persist($user); |
43 | 43 | $this->_em->flush($user); |
44 | 44 | |
45 | - $repository = $this->_em->getRepository(__NAMESPACE__ . "\DDC2984User"); |
|
45 | + $repository = $this->_em->getRepository(__NAMESPACE__."\DDC2984User"); |
|
46 | 46 | |
47 | 47 | $sameUser = $repository->find(new DDC2984DomainUserId('unique_id_within_a_vo')); |
48 | 48 |
@@ -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); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $this->_em->getClassMetadata(DDC656Entity::class) |
14 | 14 | ] |
15 | 15 | ); |
16 | - } catch(\Exception $e) { |
|
16 | + } catch (\Exception $e) { |
|
17 | 17 | |
18 | 18 | } |
19 | 19 | } |
@@ -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 | } |
@@ -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 | } |