@@ -506,7 +506,7 @@ |
||
506 | 506 | 'empty string, single field' => [$emptyString, ''], |
507 | 507 | 'non-empty string, single field' => [$nonEmptyString, $nonEmptyString->id], |
508 | 508 | 'empty strings, two fields' => [$emptyStrings, ' '], |
509 | - 'non-empty strings, two fields' => [$nonEmptyStrings, $nonEmptyStrings->id1 . ' ' . $nonEmptyStrings->id2], |
|
509 | + 'non-empty strings, two fields' => [$nonEmptyStrings, $nonEmptyStrings->id1.' '.$nonEmptyStrings->id2], |
|
510 | 510 | 'boolean true' => [$booleanTrue, '1'], |
511 | 511 | 'boolean false' => [$booleanFalse, ''], |
512 | 512 | ]; |
@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | public function addInfo(AttractionInfo $info) |
89 | 89 | { |
90 | - if (! $this->infos->contains($info)) { |
|
90 | + if ( ! $this->infos->contains($info)) { |
|
91 | 91 | $this->infos->add($info); |
92 | 92 | } |
93 | 93 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | public function addTravel(Travel $item) |
90 | 90 | { |
91 | - if (! $this->travels->contains($item)) { |
|
91 | + if ( ! $this->travels->contains($item)) { |
|
92 | 92 | $this->travels->add($item); |
93 | 93 | } |
94 | 94 |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | public function addFriend(CompanyPerson $friend) |
86 | 86 | { |
87 | - if (! $this->friends->contains($friend)) { |
|
87 | + if ( ! $this->friends->contains($friend)) { |
|
88 | 88 | $this->friends->add($friend); |
89 | 89 | $friend->addFriend($this); |
90 | 90 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | public function addProduct(ECommerceProduct $product) |
68 | 68 | { |
69 | - if (! $this->products->contains($product)) { |
|
69 | + if ( ! $this->products->contains($product)) { |
|
70 | 70 | $this->products[] = $product; |
71 | 71 | $product->addCategory($this); |
72 | 72 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | |
132 | 132 | public function addCategory(ECommerceCategory $category) |
133 | 133 | { |
134 | - if (! $this->categories->contains($category)) { |
|
134 | + if ( ! $this->categories->contains($category)) { |
|
135 | 135 | $this->categories[] = $category; |
136 | 136 | $category->addProduct($this); |
137 | 137 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | |
163 | 163 | public function addRelated(ECommerceProduct $related) |
164 | 164 | { |
165 | - if (! $this->related->contains($related)) { |
|
165 | + if ( ! $this->related->contains($related)) { |
|
166 | 166 | $this->related[] = $related; |
167 | 167 | $related->addRelated($this); |
168 | 168 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
39 | - if (! isset(self::$sharedConn)) { |
|
39 | + if ( ! isset(self::$sharedConn)) { |
|
40 | 40 | self::$sharedConn = TestUtil::getConnection(); |
41 | 41 | } |
42 | 42 |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $isInitialized = $collection->isInitialized(); |
62 | 62 | $isDirty = $collection->isDirty(); |
63 | 63 | |
64 | - if (! $isInitialized && ! $isDirty) { |
|
64 | + if ( ! $isInitialized && ! $isDirty) { |
|
65 | 65 | return; |
66 | 66 | } |
67 | 67 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function getRepository(EntityManagerInterface $entityManager, $entityName) |
28 | 28 | { |
29 | - $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName() . spl_object_id($entityManager); |
|
29 | + $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName().spl_object_id($entityManager); |
|
30 | 30 | |
31 | 31 | return $this->repositoryList[$repositoryHash] |
32 | 32 | ?? $this->repositoryList[$repositoryHash] = $this->createRepository($entityManager, $entityName); |