Completed
Pull Request — 2.6 (#8015)
by
unknown
06:46
created
tests/Doctrine/Tests/ORM/Functional/AdvancedDqlQueryTest.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     public function testAggregateWithHavingClause()
26 26
     {
27 27
         $dql = 'SELECT p.department, AVG(p.salary) AS avgSalary '.
28
-               'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
29
-               'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
28
+                'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
29
+                'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
30 30
 
31 31
         $result = $this->_em->createQuery($dql)->getScalarResult();
32 32
 
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     public function testUnnamedScalarResultsAreOneBased()
41 41
     {
42 42
         $dql = 'SELECT p.department, AVG(p.salary) '.
43
-               'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
44
-               'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
43
+                'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
44
+                'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
45 45
 
46 46
         $result = $this->_em->createQuery($dql)->getScalarResult();
47 47
 
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
     public function testOrderByResultVariableCollectionSize()
54 54
     {
55 55
         $dql = 'SELECT p.name, size(p.friends) AS friends ' .
56
-               'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' .
57
-               'WHERE p.friends IS NOT EMPTY ' .
58
-               'ORDER BY friends DESC, p.name DESC';
56
+                'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' .
57
+                'WHERE p.friends IS NOT EMPTY ' .
58
+                'ORDER BY friends DESC, p.name DESC';
59 59
 
60 60
         $result = $this->_em->createQuery($dql)->getScalarResult();
61 61
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     public function testIsNullAssociation()
78 78
     {
79 79
         $dql = 'SELECT p FROM Doctrine\Tests\Models\Company\CompanyPerson p '.
80
-               'WHERE p.spouse IS NULL';
80
+                'WHERE p.spouse IS NULL';
81 81
         $result = $this->_em->createQuery($dql)->getResult();
82 82
 
83 83
         $this->assertEquals(2, count($result));
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     public function testSelectSubselect()
92 92
     {
93 93
         $dql = 'SELECT p, (SELECT c.brand FROM Doctrine\Tests\Models\Company\CompanyCar c WHERE p.car = c) brandName '.
94
-               'FROM Doctrine\Tests\Models\Company\CompanyManager p';
94
+                'FROM Doctrine\Tests\Models\Company\CompanyManager p';
95 95
         $result = $this->_em->createQuery($dql)->getArrayResult();
96 96
 
97 97
         $this->assertEquals(1, count($result));
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     public function testInSubselect()
102 102
     {
103 103
         $dql = "SELECT p.name FROM Doctrine\Tests\Models\Company\CompanyPerson p ".
104
-               "WHERE p.name IN (SELECT n.name FROM Doctrine\Tests\Models\Company\CompanyPerson n WHERE n.name = 'Roman B.')";
104
+                "WHERE p.name IN (SELECT n.name FROM Doctrine\Tests\Models\Company\CompanyPerson n WHERE n.name = 'Roman B.')";
105 105
         $result = $this->_em->createQuery($dql)->getScalarResult();
106 106
 
107 107
         $this->assertEquals(1, count($result));
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     public function testGroupByMultipleFields()
112 112
     {
113 113
         $dql = 'SELECT p.department, p.name, count(p.id) FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
114
-               'GROUP BY p.department, p.name';
114
+                'GROUP BY p.department, p.name';
115 115
         $result = $this->_em->createQuery($dql)->getResult();
116 116
 
117 117
         $this->assertEquals(4, count($result));
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@
 block discarded – undo
52 52
 
53 53
     public function testOrderByResultVariableCollectionSize()
54 54
     {
55
-        $dql = 'SELECT p.name, size(p.friends) AS friends ' .
56
-               'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' .
57
-               'WHERE p.friends IS NOT EMPTY ' .
55
+        $dql = 'SELECT p.name, size(p.friends) AS friends '.
56
+               'FROM Doctrine\Tests\Models\Company\CompanyPerson p '.
57
+               'WHERE p.friends IS NOT EMPTY '.
58 58
                'ORDER BY friends DESC, p.name DESC';
59 59
 
60 60
         $result = $this->_em->createQuery($dql)->getScalarResult();
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Functional/OneToManyUnidirectionalAssociationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         try {
77 77
             // exception depending on the underlying Database Driver
78 78
             $this->_em->flush();
79
-        } catch(\Exception $e) {
79
+        } catch (\Exception $e) {
80 80
             $exceptionThrown = true;
81 81
         }
82 82
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/EntityListenersTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
         $fix = new CompanyFixContract();
36 36
         $fix->setFixPrice(2000);
37 37
 
38
-        $this->listener->preFlushCalls  = [];
38
+        $this->listener->preFlushCalls = [];
39 39
 
40 40
         $this->_em->persist($fix);
41 41
         $this->_em->flush();
42 42
 
43
-        $this->assertCount(1,$this->listener->preFlushCalls);
43
+        $this->assertCount(1, $this->listener->preFlushCalls);
44 44
         $this->assertSame($fix, $this->listener->preFlushCalls[0][0]);
45 45
         $this->assertInstanceOf(CompanyFixContract::class, $this->listener->preFlushCalls[0][0]);
46 46
         $this->assertInstanceOf(PreFlushEventArgs::class, $this->listener->preFlushCalls[0][1]);
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
         $this->_em->flush();
56 56
         $this->_em->clear();
57 57
 
58
-        $this->listener->postLoadCalls  = [];
58
+        $this->listener->postLoadCalls = [];
59 59
 
60 60
         $dql = "SELECT f FROM Doctrine\Tests\Models\Company\CompanyFixContract f WHERE f.id = ?1";
61 61
         $fix = $this->_em->createQuery($dql)->setParameter(1, $fix->getId())->getSingleResult();
62 62
 
63
-        $this->assertCount(1,$this->listener->postLoadCalls);
63
+        $this->assertCount(1, $this->listener->postLoadCalls);
64 64
         $this->assertSame($fix, $this->listener->postLoadCalls[0][0]);
65 65
         $this->assertInstanceOf(CompanyFixContract::class, $this->listener->postLoadCalls[0][0]);
66 66
         $this->assertInstanceOf(LifecycleEventArgs::class, $this->listener->postLoadCalls[0][1]);
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
         $fix = new CompanyFixContract();
72 72
         $fix->setFixPrice(2000);
73 73
 
74
-        $this->listener->prePersistCalls  = [];
74
+        $this->listener->prePersistCalls = [];
75 75
 
76 76
         $this->_em->persist($fix);
77 77
         $this->_em->flush();
78 78
 
79
-        $this->assertCount(1,$this->listener->prePersistCalls);
79
+        $this->assertCount(1, $this->listener->prePersistCalls);
80 80
         $this->assertSame($fix, $this->listener->prePersistCalls[0][0]);
81 81
         $this->assertInstanceOf(CompanyFixContract::class, $this->listener->prePersistCalls[0][0]);
82 82
         $this->assertInstanceOf(LifecycleEventArgs::class, $this->listener->prePersistCalls[0][1]);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $this->_em->persist($fix);
93 93
         $this->_em->flush();
94 94
 
95
-        $this->assertCount(1,$this->listener->postPersistCalls);
95
+        $this->assertCount(1, $this->listener->postPersistCalls);
96 96
         $this->assertSame($fix, $this->listener->postPersistCalls[0][0]);
97 97
         $this->assertInstanceOf(CompanyFixContract::class, $this->listener->postPersistCalls[0][0]);
98 98
         $this->assertInstanceOf(LifecycleEventArgs::class, $this->listener->postPersistCalls[0][1]);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $this->_em->persist($fix);
114 114
         $this->_em->flush();
115 115
 
116
-        $this->assertCount(1,$this->listener->preUpdateCalls);
116
+        $this->assertCount(1, $this->listener->preUpdateCalls);
117 117
         $this->assertSame($fix, $this->listener->preUpdateCalls[0][0]);
118 118
         $this->assertInstanceOf(CompanyFixContract::class, $this->listener->preUpdateCalls[0][0]);
119 119
         $this->assertInstanceOf(PreUpdateEventArgs::class, $this->listener->preUpdateCalls[0][1]);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $this->_em->persist($fix);
135 135
         $this->_em->flush();
136 136
 
137
-        $this->assertCount(1,$this->listener->postUpdateCalls);
137
+        $this->assertCount(1, $this->listener->postUpdateCalls);
138 138
         $this->assertSame($fix, $this->listener->postUpdateCalls[0][0]);
139 139
         $this->assertInstanceOf(CompanyFixContract::class, $this->listener->postUpdateCalls[0][0]);
140 140
         $this->assertInstanceOf(LifecycleEventArgs::class, $this->listener->postUpdateCalls[0][1]);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         $this->_em->remove($fix);
154 154
         $this->_em->flush();
155 155
 
156
-        $this->assertCount(1,$this->listener->preRemoveCalls);
156
+        $this->assertCount(1, $this->listener->preRemoveCalls);
157 157
         $this->assertSame($fix, $this->listener->preRemoveCalls[0][0]);
158 158
         $this->assertInstanceOf(CompanyFixContract::class, $this->listener->preRemoveCalls[0][0]);
159 159
         $this->assertInstanceOf(LifecycleEventArgs::class, $this->listener->preRemoveCalls[0][1]);
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         $this->_em->remove($fix);
173 173
         $this->_em->flush();
174 174
 
175
-        $this->assertCount(1,$this->listener->postRemoveCalls);
175
+        $this->assertCount(1, $this->listener->postRemoveCalls);
176 176
         $this->assertSame($fix, $this->listener->postRemoveCalls[0][0]);
177 177
         $this->assertInstanceOf(CompanyFixContract::class, $this->listener->postRemoveCalls[0][0]);
178 178
         $this->assertInstanceOf(LifecycleEventArgs::class, $this->listener->postRemoveCalls[0][1]);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/AdvancedAssociationTest.php 2 patches
Indentation   +170 added lines, -170 removed lines patch added patch discarded remove patch
@@ -131,65 +131,65 @@  discard block
 block discarded – undo
131 131
  */
132 132
 class Lemma {
133 133
 
134
-	const CLASS_NAME = __CLASS__;
135
-
136
-	/**
137
-	 * @var int
138
-	 * @Id
139
-	 * @Column(type="integer", name="lemma_id")
140
-	 * @GeneratedValue(strategy="AUTO")
141
-	 */
142
-	private $id;
143
-
144
-	/**
145
-	 *
146
-	 * @var string
147
-	 * @Column(type="string", name="lemma_name", unique=true, length=255)
148
-	 */
149
-	private $lemma;
150
-
151
-	/**
152
-	 * @var kateglo\application\utilities\collections\ArrayCollection
153
-	 * @ManyToMany(targetEntity="Type", mappedBy="lemmas", cascade={"persist"})
154
-	 */
155
-	private $types;
156
-
157
-	public function __construct() {
158
-		$this->types = new ArrayCollection();
159
-	}
160
-
161
-
162
-	/**
163
-	 *
164
-	 * @return int
165
-	 */
166
-	public function getId(){
167
-		return $this->id;
168
-	}
169
-
170
-	/**
171
-	 *
172
-	 * @param string $lemma
173
-	 * @return void
174
-	 */
175
-	public function setLemma($lemma){
176
-		$this->lemma = $lemma;
177
-	}
178
-
179
-	/**
180
-	 *
181
-	 * @return string
182
-	 */
183
-	public function getLemma(){
184
-		return $this->lemma;
185
-	}
186
-
187
-	/**
134
+    const CLASS_NAME = __CLASS__;
135
+
136
+    /**
137
+     * @var int
138
+     * @Id
139
+     * @Column(type="integer", name="lemma_id")
140
+     * @GeneratedValue(strategy="AUTO")
141
+     */
142
+    private $id;
143
+
144
+    /**
145
+     *
146
+     * @var string
147
+     * @Column(type="string", name="lemma_name", unique=true, length=255)
148
+     */
149
+    private $lemma;
150
+
151
+    /**
152
+     * @var kateglo\application\utilities\collections\ArrayCollection
153
+     * @ManyToMany(targetEntity="Type", mappedBy="lemmas", cascade={"persist"})
154
+     */
155
+    private $types;
156
+
157
+    public function __construct() {
158
+        $this->types = new ArrayCollection();
159
+    }
160
+
161
+
162
+    /**
163
+     *
164
+     * @return int
165
+     */
166
+    public function getId(){
167
+        return $this->id;
168
+    }
169
+
170
+    /**
171
+     *
172
+     * @param string $lemma
173
+     * @return void
174
+     */
175
+    public function setLemma($lemma){
176
+        $this->lemma = $lemma;
177
+    }
178
+
179
+    /**
180
+     *
181
+     * @return string
182
+     */
183
+    public function getLemma(){
184
+        return $this->lemma;
185
+    }
186
+
187
+    /**
188 188
      *
189 189
      * @param kateglo\application\models\Type $type
190 190
      * @return void
191 191
      */
192
-	public function addType(Type $type){
192
+    public function addType(Type $type){
193 193
         if (!$this->types->contains($type)) {
194 194
             $this->types[] = $type;
195 195
             $type->addLemma($this);
@@ -225,121 +225,121 @@  discard block
 block discarded – undo
225 225
  */
226 226
 class Type {
227 227
 
228
-	const CLASS_NAME = __CLASS__;
229
-
230
-	/**
231
-	 *
232
-	 * @var int
233
-	 * @Id
234
-	 * @Column(type="integer", name="type_id")
235
-	 * @GeneratedValue(strategy="AUTO")
236
-	 */
237
-	private $id;
238
-
239
-	/**
240
-	 *
241
-	 * @var string
242
-	 * @Column(type="string", name="type_name", unique=true)
243
-	 */
244
-	private $type;
245
-
246
-	/**
247
-	 *
248
-	 * @var string
249
-	 * @Column(type="string", name="type_abbreviation", unique=true)
250
-	 */
251
-	private $abbreviation;
252
-
253
-	/**
254
-	 * @var kateglo\application\helpers\collections\ArrayCollection
255
-	 * @ManyToMany(targetEntity="Lemma")
256
-	 * @JoinTable(name="lemma_type",
257
-	 * 		joinColumns={@JoinColumn(name="type_id", referencedColumnName="type_id")},
258
-	 * 		inverseJoinColumns={@JoinColumn(name="lemma_id", referencedColumnName="lemma_id")}
259
-	 * )
260
-	 */
261
-	private $lemmas;
262
-
263
-	public function __construct(){
264
-		$this->lemmas = new ArrayCollection();
265
-	}
266
-
267
-	/**
268
-	 *
269
-	 * @return int
270
-	 */
271
-	public function getId(){
272
-		return $this->id;
273
-	}
274
-
275
-	/**
276
-	 *
277
-	 * @param string $type
278
-	 * @return void
279
-	 */
280
-	public function setType($type){
281
-		$this->type = $type;
282
-	}
283
-
284
-	/**
285
-	 *
286
-	 * @return string
287
-	 */
288
-	public function getType(){
289
-		return $this->type;
290
-	}
291
-
292
-	/**
293
-	 *
294
-	 * @param string $abbreviation
295
-	 * @return void
296
-	 */
297
-	public function setAbbreviation($abbreviation){
298
-		$this->abbreviation = $abbreviation;
299
-	}
300
-
301
-	/**
302
-	 *
303
-	 * @return string
304
-	 */
305
-	public function getAbbreviation(){
306
-		return $this->abbreviation;
307
-	}
308
-
309
-	/**
310
-	 *
311
-	 * @param kateglo\application\models\Lemma $lemma
312
-	 * @return void
313
-	 */
314
-	public function addLemma(Lemma $lemma)
315
-	{
316
-		if (!$this->lemmas->contains($lemma)) {
317
-			$this->lemmas[] = $lemma;
318
-			$lemma->addType($this);
319
-		}
320
-	}
321
-
322
-	/**
323
-	 *
324
-	 * @param kateglo\application\models\Lemma $lemma
325
-	 * @return void
326
-	 */
327
-	public function removeLEmma(Lemma $lemma)
328
-	{
329
-		$removed = $this->lemmas->removeElement($lemma);
330
-		if ($removed !== null) {
331
-			$removed->removeType($this);
332
-		}
333
-	}
334
-
335
-	/**
336
-	 *
337
-	 * @return kateglo\application\helpers\collections\ArrayCollection
338
-	 */
339
-	public function getCategories()
340
-	{
341
-		return $this->categories;
342
-	}
228
+    const CLASS_NAME = __CLASS__;
229
+
230
+    /**
231
+     *
232
+     * @var int
233
+     * @Id
234
+     * @Column(type="integer", name="type_id")
235
+     * @GeneratedValue(strategy="AUTO")
236
+     */
237
+    private $id;
238
+
239
+    /**
240
+     *
241
+     * @var string
242
+     * @Column(type="string", name="type_name", unique=true)
243
+     */
244
+    private $type;
245
+
246
+    /**
247
+     *
248
+     * @var string
249
+     * @Column(type="string", name="type_abbreviation", unique=true)
250
+     */
251
+    private $abbreviation;
252
+
253
+    /**
254
+     * @var kateglo\application\helpers\collections\ArrayCollection
255
+     * @ManyToMany(targetEntity="Lemma")
256
+     * @JoinTable(name="lemma_type",
257
+     * 		joinColumns={@JoinColumn(name="type_id", referencedColumnName="type_id")},
258
+     * 		inverseJoinColumns={@JoinColumn(name="lemma_id", referencedColumnName="lemma_id")}
259
+     * )
260
+     */
261
+    private $lemmas;
262
+
263
+    public function __construct(){
264
+        $this->lemmas = new ArrayCollection();
265
+    }
266
+
267
+    /**
268
+     *
269
+     * @return int
270
+     */
271
+    public function getId(){
272
+        return $this->id;
273
+    }
274
+
275
+    /**
276
+     *
277
+     * @param string $type
278
+     * @return void
279
+     */
280
+    public function setType($type){
281
+        $this->type = $type;
282
+    }
283
+
284
+    /**
285
+     *
286
+     * @return string
287
+     */
288
+    public function getType(){
289
+        return $this->type;
290
+    }
291
+
292
+    /**
293
+     *
294
+     * @param string $abbreviation
295
+     * @return void
296
+     */
297
+    public function setAbbreviation($abbreviation){
298
+        $this->abbreviation = $abbreviation;
299
+    }
300
+
301
+    /**
302
+     *
303
+     * @return string
304
+     */
305
+    public function getAbbreviation(){
306
+        return $this->abbreviation;
307
+    }
308
+
309
+    /**
310
+     *
311
+     * @param kateglo\application\models\Lemma $lemma
312
+     * @return void
313
+     */
314
+    public function addLemma(Lemma $lemma)
315
+    {
316
+        if (!$this->lemmas->contains($lemma)) {
317
+            $this->lemmas[] = $lemma;
318
+            $lemma->addType($this);
319
+        }
320
+    }
321
+
322
+    /**
323
+     *
324
+     * @param kateglo\application\models\Lemma $lemma
325
+     * @return void
326
+     */
327
+    public function removeLEmma(Lemma $lemma)
328
+    {
329
+        $removed = $this->lemmas->removeElement($lemma);
330
+        if ($removed !== null) {
331
+            $removed->removeType($this);
332
+        }
333
+    }
334
+
335
+    /**
336
+     *
337
+     * @return kateglo\application\helpers\collections\ArrayCollection
338
+     */
339
+    public function getCategories()
340
+    {
341
+        return $this->categories;
342
+    }
343 343
 
344 344
 }
345 345
 
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	 *
164 164
 	 * @return int
165 165
 	 */
166
-	public function getId(){
166
+	public function getId() {
167 167
 		return $this->id;
168 168
 	}
169 169
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 	 * @param string $lemma
173 173
 	 * @return void
174 174
 	 */
175
-	public function setLemma($lemma){
175
+	public function setLemma($lemma) {
176 176
 		$this->lemma = $lemma;
177 177
 	}
178 178
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 	 *
181 181
 	 * @return string
182 182
 	 */
183
-	public function getLemma(){
183
+	public function getLemma() {
184 184
 		return $this->lemma;
185 185
 	}
186 186
 
@@ -189,8 +189,8 @@  discard block
 block discarded – undo
189 189
      * @param kateglo\application\models\Type $type
190 190
      * @return void
191 191
      */
192
-	public function addType(Type $type){
193
-        if (!$this->types->contains($type)) {
192
+	public function addType(Type $type) {
193
+        if ( ! $this->types->contains($type)) {
194 194
             $this->types[] = $type;
195 195
             $type->addLemma($this);
196 196
         }
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	 */
261 261
 	private $lemmas;
262 262
 
263
-	public function __construct(){
263
+	public function __construct() {
264 264
 		$this->lemmas = new ArrayCollection();
265 265
 	}
266 266
 
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 	 *
269 269
 	 * @return int
270 270
 	 */
271
-	public function getId(){
271
+	public function getId() {
272 272
 		return $this->id;
273 273
 	}
274 274
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 	 * @param string $type
278 278
 	 * @return void
279 279
 	 */
280
-	public function setType($type){
280
+	public function setType($type) {
281 281
 		$this->type = $type;
282 282
 	}
283 283
 
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 	 *
286 286
 	 * @return string
287 287
 	 */
288
-	public function getType(){
288
+	public function getType() {
289 289
 		return $this->type;
290 290
 	}
291 291
 
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 	 * @param string $abbreviation
295 295
 	 * @return void
296 296
 	 */
297
-	public function setAbbreviation($abbreviation){
297
+	public function setAbbreviation($abbreviation) {
298 298
 		$this->abbreviation = $abbreviation;
299 299
 	}
300 300
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 	 *
303 303
 	 * @return string
304 304
 	 */
305
-	public function getAbbreviation(){
305
+	public function getAbbreviation() {
306 306
 		return $this->abbreviation;
307 307
 	}
308 308
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 	 */
314 314
 	public function addLemma(Lemma $lemma)
315 315
 	{
316
-		if (!$this->lemmas->contains($lemma)) {
316
+		if ( ! $this->lemmas->contains($lemma)) {
317 317
 			$this->lemmas[] = $lemma;
318 318
 			$lemma->addType($this);
319 319
 		}
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
      * @param Definition $definition
385 385
      * @return void
386 386
      */
387
-    public function addDefinition(Definition $definition){
387
+    public function addDefinition(Definition $definition) {
388 388
         $this->definitions[] = $definition;
389 389
         $definition->setPhrase($this);
390 390
     }
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     /**
393 393
      * @return int
394 394
      */
395
-    public function getId(){
395
+    public function getId() {
396 396
         return $this->id;
397 397
     }
398 398
 
@@ -400,14 +400,14 @@  discard block
 block discarded – undo
400 400
      * @param string $phrase
401 401
      * @return void
402 402
      */
403
-    public function setPhrase($phrase){
403
+    public function setPhrase($phrase) {
404 404
         $this->phrase = $phrase;
405 405
     }
406 406
 
407 407
     /**
408 408
      * @return string
409 409
      */
410
-    public function getPhrase(){
410
+    public function getPhrase() {
411 411
         return $this->phrase;
412 412
     }
413 413
 
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
      * @param PhraseType $type
417 417
      * @return void
418 418
      */
419
-    public function setType(PhraseType $type){
419
+    public function setType(PhraseType $type) {
420 420
         $this->type = $type;
421 421
     }
422 422
 
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
      *
425 425
      * @return PhraseType
426 426
      */
427
-    public function getType(){
427
+    public function getType() {
428 428
         return $this->type;
429 429
     }
430 430
 
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
      *
433 433
      * @return ArrayCollection
434 434
      */
435
-    public function getDefinitions(){
435
+    public function getDefinitions() {
436 436
         return $this->definitions;
437 437
     }
438 438
 }
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
     /**
475 475
      * @return int
476 476
      */
477
-    public function getId(){
477
+    public function getId() {
478 478
         return $this->id;
479 479
     }
480 480
 
@@ -482,14 +482,14 @@  discard block
 block discarded – undo
482 482
      * @param string $type
483 483
      * @return void
484 484
      */
485
-    public function setType($type){
485
+    public function setType($type) {
486 486
         $this->type = $type;
487 487
     }
488 488
 
489 489
     /**
490 490
      * @return string
491 491
      */
492
-    public function getType(){
492
+    public function getType() {
493 493
         return $this->type;
494 494
     }
495 495
 
@@ -497,14 +497,14 @@  discard block
 block discarded – undo
497 497
      * @param string $abbreviation
498 498
      * @return void
499 499
      */
500
-    public function setAbbreviation($abbreviation){
500
+    public function setAbbreviation($abbreviation) {
501 501
         $this->abbreviation = $abbreviation;
502 502
     }
503 503
 
504 504
     /**
505 505
      * @return string
506 506
      */
507
-    public function getAbbreviation(){
507
+    public function getAbbreviation() {
508 508
         return $this->abbreviation;
509 509
     }
510 510
 
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
      * @param ArrayCollection $phrases
513 513
      * @return void
514 514
      */
515
-    public function setPhrases($phrases){
515
+    public function setPhrases($phrases) {
516 516
         $this->phrases = $phrases;
517 517
     }
518 518
 
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
      *
521 521
      * @return ArrayCollection
522 522
      */
523
-    public function getPhrases(){
523
+    public function getPhrases() {
524 524
         return $this->phrases;
525 525
     }
526 526
 
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
     /**
556 556
      * @return int
557 557
      */
558
-    public function getId(){
558
+    public function getId() {
559 559
         return $this->id;
560 560
     }
561 561
 
@@ -563,14 +563,14 @@  discard block
 block discarded – undo
563 563
      * @param Phrase $phrase
564 564
      * @return void
565 565
      */
566
-    public function setPhrase(Phrase $phrase){
566
+    public function setPhrase(Phrase $phrase) {
567 567
         $this->phrase = $phrase;
568 568
     }
569 569
 
570 570
     /**
571 571
      * @return Phrase
572 572
      */
573
-    public function getPhrase(){
573
+    public function getPhrase() {
574 574
         return $this->phrase;
575 575
     }
576 576
 
@@ -587,14 +587,14 @@  discard block
 block discarded – undo
587 587
      * @param string $definition
588 588
      * @return void
589 589
      */
590
-    public function setDefinition($definition){
590
+    public function setDefinition($definition) {
591 591
         $this->definition = $definition;
592 592
     }
593 593
 
594 594
     /**
595 595
      * @return string
596 596
      */
597
-    public function getDefinition(){
597
+    public function getDefinition() {
598 598
         return $this->definition;
599 599
     }
600 600
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/CompositePrimaryKeyTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $this->putTripAroundEurope();
110 110
 
111 111
         $dql = 'SELECT t, p, c FROM Doctrine\Tests\Models\Navigation\NavTour t ' .
112
-               'INNER JOIN t.pois p INNER JOIN p.country c';
112
+                'INNER JOIN t.pois p INNER JOIN p.country c';
113 113
         $tours = $this->_em->createQuery($dql)->getResult();
114 114
 
115 115
         $this->assertEquals(1, count($tours));
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
         $this->putTripAroundEurope();
129 129
 
130 130
         $dql = 'SELECT t FROM Doctrine\Tests\Models\Navigation\NavTour t, Doctrine\Tests\Models\Navigation\NavPointOfInterest p ' .
131
-               'WHERE p MEMBER OF t.pois';
131
+                'WHERE p MEMBER OF t.pois';
132 132
         $tours = $this->_em->createQuery($dql)
133
-                           ->getResult();
133
+                            ->getResult();
134 134
 
135 135
         $this->assertEquals(1, count($tours));
136 136
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $this->putGermanysBrandenburderTor();
109 109
         $this->putTripAroundEurope();
110 110
 
111
-        $dql = 'SELECT t, p, c FROM Doctrine\Tests\Models\Navigation\NavTour t ' .
111
+        $dql = 'SELECT t, p, c FROM Doctrine\Tests\Models\Navigation\NavTour t '.
112 112
                'INNER JOIN t.pois p INNER JOIN p.country c';
113 113
         $tours = $this->_em->createQuery($dql)->getResult();
114 114
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $this->putGermanysBrandenburderTor();
128 128
         $this->putTripAroundEurope();
129 129
 
130
-        $dql = 'SELECT t FROM Doctrine\Tests\Models\Navigation\NavTour t, Doctrine\Tests\Models\Navigation\NavPointOfInterest p ' .
130
+        $dql = 'SELECT t FROM Doctrine\Tests\Models\Navigation\NavTour t, Doctrine\Tests\Models\Navigation\NavPointOfInterest p '.
131 131
                'WHERE p MEMBER OF t.pois';
132 132
         $tours = $this->_em->createQuery($dql)
133 133
                            ->getResult();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/QueryDqlFunctionTest.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public function testAggregateSum()
24 24
     {
25 25
         $salarySum = $this->_em->createQuery('SELECT SUM(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
26
-                               ->getSingleResult();
26
+                                ->getSingleResult();
27 27
 
28 28
         $this->assertEquals(1500000, $salarySum['salary']);
29 29
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function testAggregateAvg()
32 32
     {
33 33
         $salaryAvg = $this->_em->createQuery('SELECT AVG(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
34
-                               ->getSingleResult();
34
+                                ->getSingleResult();
35 35
 
36 36
         $this->assertEquals(375000, round($salaryAvg['salary'], 0));
37 37
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function testAggregateMin()
40 40
     {
41 41
         $salary = $this->_em->createQuery('SELECT MIN(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
42
-                               ->getSingleResult();
42
+                                ->getSingleResult();
43 43
 
44 44
         $this->assertEquals(100000, $salary['salary']);
45 45
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function testAggregateMax()
48 48
     {
49 49
         $salary = $this->_em->createQuery('SELECT MAX(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
50
-                               ->getSingleResult();
50
+                                ->getSingleResult();
51 51
 
52 52
         $this->assertEquals(800000, $salary['salary']);
53 53
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function testAggregateCount()
56 56
     {
57 57
         $managerCount = $this->_em->createQuery('SELECT COUNT(m.id) AS managers FROM Doctrine\Tests\Models\Company\CompanyManager m')
58
-                               ->getSingleResult();
58
+                                ->getSingleResult();
59 59
 
60 60
         $this->assertEquals(4, $managerCount['managers']);
61 61
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function testFunctionAbs()
64 64
     {
65 65
         $result = $this->_em->createQuery('SELECT m, ABS(m.salary * -1) AS abs FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
66
-                         ->getResult();
66
+                            ->getResult();
67 67
 
68 68
         $this->assertEquals(4, count($result));
69 69
         $this->assertEquals(100000, $result[0]['abs']);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function testFunctionConcat()
76 76
     {
77 77
         $arg = $this->_em->createQuery('SELECT m, CONCAT(m.name, m.department) AS namedep FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
78
-                         ->getArrayResult();
78
+                            ->getArrayResult();
79 79
 
80 80
         $this->assertEquals(4, count($arg));
81 81
         $this->assertEquals('Roman B.IT', $arg[0]['namedep']);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function testFunctionLength()
88 88
     {
89 89
         $result = $this->_em->createQuery('SELECT m, LENGTH(CONCAT(m.name, m.department)) AS namedeplength FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
90
-                         ->getArrayResult();
90
+                            ->getArrayResult();
91 91
 
92 92
         $this->assertEquals(4, count($result));
93 93
         $this->assertEquals(10, $result[0]['namedeplength']);
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
     public function testFunctionLocate()
100 100
     {
101 101
         $dql = "SELECT m, LOCATE('e', LOWER(m.name)) AS loc, LOCATE('e', LOWER(m.name), 7) AS loc2 ".
102
-               "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
102
+                "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
103 103
 
104 104
         $result = $this->_em->createQuery($dql)
105
-                         ->getArrayResult();
105
+                            ->getArrayResult();
106 106
 
107 107
         $this->assertEquals(4, count($result));
108 108
         $this->assertEquals(0, $result[0]['loc']);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     public function testFunctionLower()
119 119
     {
120 120
         $result = $this->_em->createQuery("SELECT m, LOWER(m.name) AS lowername FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
121
-                         ->getArrayResult();
121
+                            ->getArrayResult();
122 122
 
123 123
         $this->assertEquals(4, count($result));
124 124
         $this->assertEquals('roman b.', $result[0]['lowername']);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     public function testFunctionMod()
131 131
     {
132 132
         $result = $this->_em->createQuery("SELECT m, MOD(m.salary, 3500) AS amod FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
133
-                         ->getArrayResult();
133
+                            ->getArrayResult();
134 134
 
135 135
         $this->assertEquals(4, count($result));
136 136
         $this->assertEquals(2000, $result[0]['amod']);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     public function testFunctionSqrt()
143 143
     {
144 144
         $result = $this->_em->createQuery("SELECT m, SQRT(m.salary) AS sqrtsalary FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
145
-                         ->getArrayResult();
145
+                            ->getArrayResult();
146 146
 
147 147
         $this->assertEquals(4, count($result));
148 148
         $this->assertEquals(316, round($result[0]['sqrtsalary']));
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     public function testFunctionUpper()
155 155
     {
156 156
         $result = $this->_em->createQuery("SELECT m, UPPER(m.name) AS uppername FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
157
-                         ->getArrayResult();
157
+                            ->getArrayResult();
158 158
 
159 159
         $this->assertEquals(4, count($result));
160 160
         $this->assertEquals('ROMAN B.', $result[0]['uppername']);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                 "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.name";
170 170
 
171 171
         $result = $this->_em->createQuery($dql)
172
-                         ->getArrayResult();
172
+                            ->getArrayResult();
173 173
 
174 174
         $this->assertEquals(4, count($result));
175 175
         $this->assertEquals('Ben', $result[0]['str1']);
@@ -186,8 +186,8 @@  discard block
 block discarded – undo
186 186
     public function testFunctionTrim()
187 187
     {
188 188
         $dql = "SELECT m, TRIM(TRAILING '.' FROM m.name) AS str1, ".
189
-               " TRIM(LEADING '.' FROM m.name) AS str2, TRIM(CONCAT(' ', CONCAT(m.name, ' '))) AS str3 ".
190
-               "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
189
+                " TRIM(LEADING '.' FROM m.name) AS str2, TRIM(CONCAT(' ', CONCAT(m.name, ' '))) AS str3 ".
190
+                "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
191 191
 
192 192
         $result = $this->_em->createQuery($dql)->getArrayResult();
193 193
 
@@ -359,8 +359,8 @@  discard block
 block discarded – undo
359 359
     }
360 360
 
361 361
     /**
362
-    * @group DDC-1213
363
-    */
362
+     * @group DDC-1213
363
+     */
364 364
     public function testBitAndComparison()
365 365
     {
366 366
         $dql    = 'SELECT m, ' .
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
         $this->assertEquals(4, count($result));
148 148
         $this->assertEquals(316, round($result[0]['sqrtsalary']));
149
-        $this->assertEquals(447,  round($result[1]['sqrtsalary']));
149
+        $this->assertEquals(447, round($result[1]['sqrtsalary']));
150 150
         $this->assertEquals(632, round($result[2]['sqrtsalary']));
151 151
         $this->assertEquals(894, round($result[3]['sqrtsalary']));
152 152
     }
@@ -339,12 +339,12 @@  discard block
 block discarded – undo
339 339
      */
340 340
     public function testBitOrComparison()
341 341
     {
342
-        $dql    = 'SELECT m, ' .
343
-                    'BIT_OR(4, 2) AS bit_or,' .
344
-                    'BIT_OR( (m.salary/100000) , 2 ) AS salary_bit_or ' .
345
-                    'FROM Doctrine\Tests\Models\Company\CompanyManager m ' .
346
-                'ORDER BY ' .
347
-                    'm.id ' ;
342
+        $dql = 'SELECT m, '.
343
+                    'BIT_OR(4, 2) AS bit_or,'.
344
+                    'BIT_OR( (m.salary/100000) , 2 ) AS salary_bit_or '.
345
+                    'FROM Doctrine\Tests\Models\Company\CompanyManager m '.
346
+                'ORDER BY '.
347
+                    'm.id ';
348 348
         $result = $this->_em->createQuery($dql)->getArrayResult();
349 349
 
350 350
         $this->assertEquals(4 | 2, $result[0]['bit_or']);
@@ -352,10 +352,10 @@  discard block
 block discarded – undo
352 352
         $this->assertEquals(4 | 2, $result[2]['bit_or']);
353 353
         $this->assertEquals(4 | 2, $result[3]['bit_or']);
354 354
 
355
-        $this->assertEquals(($result[0][0]['salary']/100000) | 2, $result[0]['salary_bit_or']);
356
-        $this->assertEquals(($result[1][0]['salary']/100000) | 2, $result[1]['salary_bit_or']);
357
-        $this->assertEquals(($result[2][0]['salary']/100000) | 2, $result[2]['salary_bit_or']);
358
-        $this->assertEquals(($result[3][0]['salary']/100000) | 2, $result[3]['salary_bit_or']);
355
+        $this->assertEquals(($result[0][0]['salary'] / 100000) | 2, $result[0]['salary_bit_or']);
356
+        $this->assertEquals(($result[1][0]['salary'] / 100000) | 2, $result[1]['salary_bit_or']);
357
+        $this->assertEquals(($result[2][0]['salary'] / 100000) | 2, $result[2]['salary_bit_or']);
358
+        $this->assertEquals(($result[3][0]['salary'] / 100000) | 2, $result[3]['salary_bit_or']);
359 359
     }
360 360
 
361 361
     /**
@@ -363,12 +363,12 @@  discard block
 block discarded – undo
363 363
     */
364 364
     public function testBitAndComparison()
365 365
     {
366
-        $dql    = 'SELECT m, ' .
367
-                    'BIT_AND(4, 2) AS bit_and,' .
368
-                    'BIT_AND( (m.salary/100000) , 2 ) AS salary_bit_and ' .
369
-                    'FROM Doctrine\Tests\Models\Company\CompanyManager m ' .
370
-                'ORDER BY ' .
371
-                    'm.id ' ;
366
+        $dql = 'SELECT m, '.
367
+                    'BIT_AND(4, 2) AS bit_and,'.
368
+                    'BIT_AND( (m.salary/100000) , 2 ) AS salary_bit_and '.
369
+                    'FROM Doctrine\Tests\Models\Company\CompanyManager m '.
370
+                'ORDER BY '.
371
+                    'm.id ';
372 372
         $result = $this->_em->createQuery($dql)->getArrayResult();
373 373
 
374 374
         $this->assertEquals(4 & 2, $result[0]['bit_and']);
@@ -376,10 +376,10 @@  discard block
 block discarded – undo
376 376
         $this->assertEquals(4 & 2, $result[2]['bit_and']);
377 377
         $this->assertEquals(4 & 2, $result[3]['bit_and']);
378 378
 
379
-        $this->assertEquals(($result[0][0]['salary']/100000) & 2, $result[0]['salary_bit_and']);
380
-        $this->assertEquals(($result[1][0]['salary']/100000) & 2, $result[1]['salary_bit_and']);
381
-        $this->assertEquals(($result[2][0]['salary']/100000) & 2, $result[2]['salary_bit_and']);
382
-        $this->assertEquals(($result[3][0]['salary']/100000) & 2, $result[3]['salary_bit_and']);
379
+        $this->assertEquals(($result[0][0]['salary'] / 100000) & 2, $result[0]['salary_bit_and']);
380
+        $this->assertEquals(($result[1][0]['salary'] / 100000) & 2, $result[1]['salary_bit_and']);
381
+        $this->assertEquals(($result[2][0]['salary'] / 100000) & 2, $result[2]['salary_bit_and']);
382
+        $this->assertEquals(($result[3][0]['salary'] / 100000) & 2, $result[3]['salary_bit_and']);
383 383
     }
384 384
 
385 385
     protected function generateFixture()
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/NativeQueryTest.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -207,13 +207,13 @@
 block discarded – undo
207 207
 
208 208
         $q = $this->_em->createNativeQuery('SELECT id, name, status, phonenumber FROM cms_users INNER JOIN cms_phonenumbers ON id = user_id WHERE username = ?', $rsm);
209 209
         $q2 = $q->setSQL('foo')
210
-          ->setResultSetMapping($rsm)
211
-          ->expireResultCache(true)
212
-          ->setHint('foo', 'bar')
213
-          ->setParameter(1, 'foo')
214
-          ->setParameters($parameters)
215
-          ->setResultCacheDriver(null)
216
-          ->setResultCacheLifetime(3500);
210
+            ->setResultSetMapping($rsm)
211
+            ->expireResultCache(true)
212
+            ->setHint('foo', 'bar')
213
+            ->setParameter(1, 'foo')
214
+            ->setParameters($parameters)
215
+            ->setResultCacheDriver(null)
216
+            ->setResultCacheLifetime(3500);
217 217
 
218 218
         $this->assertSame($q, $q2);
219 219
     }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -401,8 +401,8 @@  discard block
 block discarded – undo
401 401
 
402 402
         $this->assertCount(1, $result);
403 403
         $this->assertInstanceOf(CmsAddress::class, $result[0]);
404
-        $this->assertEquals($addr->id,  $result[0]->id);
405
-        $this->assertEquals($addr->city,  $result[0]->city);
404
+        $this->assertEquals($addr->id, $result[0]->id);
405
+        $this->assertEquals($addr->city, $result[0]->city);
406 406
         $this->assertEquals($addr->country, $result[0]->country);
407 407
     }
408 408
 
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
         $repository = $this->_em->getRepository(CmsUser::class);
566 566
 
567 567
         $result = $repository->createNativeNamedQuery('fetchUserPhonenumberCount')
568
-                        ->setParameter(1, ['test','FabioBatSilva'])->getResult();
568
+                        ->setParameter(1, ['test', 'FabioBatSilva'])->getResult();
569 569
 
570 570
         $this->assertEquals(2, count($result));
571 571
         $this->assertTrue(is_array($result[0]));
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
         $rsm = new ResultSetMappingBuilder($this->_em, ResultSetMappingBuilder::COLUMN_RENAMING_INCREMENT);
799 799
         $rsm->addRootEntityFromClassMetadata(CmsUser::class, 'u');
800 800
 
801
-        $this->assertSQLEquals('u.id AS id0, u.status AS status1, u.username AS username2, u.name AS name3, u.email_id AS email_id4', (string)$rsm);
801
+        $this->assertSQLEquals('u.id AS id0, u.status AS status1, u.username AS username2, u.name AS name3, u.email_id AS email_id4', (string) $rsm);
802 802
     }
803 803
 
804 804
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheOneToManyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -394,7 +394,7 @@
 block discarded – undo
394 394
 
395 395
         $l1 = new Login('session1');
396 396
         $l2 = new Login('session2');
397
-        $token  = new Token('token-hash');
397
+        $token = new Token('token-hash');
398 398
         $token->addLogin($l1);
399 399
         $token->addLogin($l2);
400 400
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -302,8 +302,8 @@
 block discarded – undo
302 302
     }
303 303
 
304 304
     /**
305
-    * @group DDC-1955
306
-    */
305
+     * @group DDC-1955
306
+     */
307 307
     public function testLifecycleCallbackEventArgs()
308 308
     {
309 309
         $e = new LifecycleCallbackEventArgEntity;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -350,13 +350,13 @@
 block discarded – undo
350 350
     private $value;
351 351
     /** @Column(type="string") */
352 352
     private $name;
353
-    public function getId() {return $this->id;}
354
-    public function getValue() {return $this->value;}
355
-    public function setValue($value) {$this->value = $value;}
356
-    public function getName() {return $this->name;}
357
-    public function setName($name) {$this->name = $name;}
353
+    public function getId() {return $this->id; }
354
+    public function getValue() {return $this->value; }
355
+    public function setValue($value) {$this->value = $value; }
356
+    public function getName() {return $this->name; }
357
+    public function setName($name) {$this->name = $name; }
358 358
     /** @PreUpdate */
359
-    public function testCallback() {$this->value = 'Hello World';}
359
+    public function testCallback() {$this->value = 'Hello World'; }
360 360
 }
361 361
 
362 362
 /**
Please login to merge, or discard this patch.