Passed
Pull Request — master (#6887)
by Grégoire
12:33
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1209Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
                     $this->_em->getClassMetadata(DDC1209_3::class)
18 18
                 ]
19 19
             );
20
-        } catch(\Exception $e) {
20
+        } catch (\Exception $e) {
21 21
         }
22 22
     }
23 23
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1383Test.php 2 patches
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -23,30 +23,30 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function testFailingCase()
25 25
     {
26
-		$parent = new DDC1383Entity();
27
-		$child = new DDC1383Entity();
26
+        $parent = new DDC1383Entity();
27
+        $child = new DDC1383Entity();
28 28
 
29
-		$child->setReference($parent);
29
+        $child->setReference($parent);
30 30
 
31
-		$this->_em->persist($parent);
32
-		$this->_em->persist($child);
31
+        $this->_em->persist($parent);
32
+        $this->_em->persist($child);
33 33
 
34
-		$id = $child->getId();
34
+        $id = $child->getId();
35 35
 
36
-		$this->_em->flush();
37
-		$this->_em->clear();
36
+        $this->_em->flush();
37
+        $this->_em->clear();
38 38
 
39
-		// Try merging the parent entity
40
-		$child = $this->_em->merge($child);
41
-		$parent = $child->getReference();
39
+        // Try merging the parent entity
40
+        $child = $this->_em->merge($child);
41
+        $parent = $child->getReference();
42 42
 
43
-		// Parent is not instance of the abstract class
44
-		self::assertTrue($parent instanceof DDC1383AbstractEntity,
45
-				"Entity class is " . get_class($parent) . ', "DDC1383AbstractEntity" was expected');
43
+        // Parent is not instance of the abstract class
44
+        self::assertTrue($parent instanceof DDC1383AbstractEntity,
45
+                "Entity class is " . get_class($parent) . ', "DDC1383AbstractEntity" was expected');
46 46
 
47
-		// Parent is NOT instance of entity
48
-		self::assertTrue($parent instanceof DDC1383Entity,
49
-				"Entity class is " . get_class($parent) . ', "DDC1383Entity" was expected');
47
+        // Parent is NOT instance of entity
48
+        self::assertTrue($parent instanceof DDC1383Entity,
49
+                "Entity class is " . get_class($parent) . ', "DDC1383Entity" was expected');
50 50
     }
51 51
 }
52 52
 
@@ -58,22 +58,22 @@  discard block
 block discarded – undo
58 58
  */
59 59
 abstract class DDC1383AbstractEntity
60 60
 {
61
-	/**
62
-	 * @Id
63
-	 * @Column(type="integer")
64
-	 * @GeneratedValue
65
-	 */
66
-	protected $id;
67
-
68
-	public function getId()
69
-	{
70
-		return $this->id;
71
-	}
72
-
73
-	public function setId($id)
74
-	{
75
-		$this->id = $id;
76
-	}
61
+    /**
62
+     * @Id
63
+     * @Column(type="integer")
64
+     * @GeneratedValue
65
+     */
66
+    protected $id;
67
+
68
+    public function getId()
69
+    {
70
+        return $this->id;
71
+    }
72
+
73
+    public function setId($id)
74
+    {
75
+        $this->id = $id;
76
+    }
77 77
 }
78 78
 
79 79
 /**
@@ -81,18 +81,18 @@  discard block
 block discarded – undo
81 81
  */
82 82
 class DDC1383Entity extends DDC1383AbstractEntity
83 83
 {
84
-	/**
85
-	 * @ManyToOne(targetEntity="DDC1383AbstractEntity")
86
-	 */
87
-	protected $reference;
88
-
89
-	public function getReference()
90
-	{
91
-		return $this->reference;
92
-	}
93
-
94
-	public function setReference(DDC1383AbstractEntity $reference)
95
-	{
96
-		$this->reference = $reference;
97
-	}
84
+    /**
85
+     * @ManyToOne(targetEntity="DDC1383AbstractEntity")
86
+     */
87
+    protected $reference;
88
+
89
+    public function getReference()
90
+    {
91
+        return $this->reference;
92
+    }
93
+
94
+    public function setReference(DDC1383AbstractEntity $reference)
95
+    {
96
+        $this->reference = $reference;
97
+    }
98 98
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
                 $this->_em->getClassMetadata(DDC1383Entity::class),
19 19
                 ]
20 20
             );
21
-        } catch(\Exception $ignored) {}
21
+        } catch (\Exception $ignored) {}
22 22
     }
23 23
 
24 24
     public function testFailingCase()
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 
43 43
 		// Parent is not instance of the abstract class
44 44
 		self::assertTrue($parent instanceof DDC1383AbstractEntity,
45
-				"Entity class is " . get_class($parent) . ', "DDC1383AbstractEntity" was expected');
45
+				"Entity class is ".get_class($parent).', "DDC1383AbstractEntity" was expected');
46 46
 
47 47
 		// Parent is NOT instance of entity
48 48
 		self::assertTrue($parent instanceof DDC1383Entity,
49
-				"Entity class is " . get_class($parent) . ', "DDC1383Entity" was expected');
49
+				"Entity class is ".get_class($parent).', "DDC1383Entity" was expected');
50 50
     }
51 51
 }
52 52
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/Ticket2481Test.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
  */
37 37
 class Ticket2481Product
38 38
 {
39
-  /**
40
-   * @Id @Column(type="integer")
41
-   * @GeneratedValue(strategy="AUTO")
42
-   */
43
-  public $id;
39
+    /**
40
+     * @Id @Column(type="integer")
41
+     * @GeneratedValue(strategy="AUTO")
42
+     */
43
+    public $id;
44 44
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH2947Test.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
     private function createQuery()
45 45
     {
46 46
         return $this->_em->createQueryBuilder()
47
-                         ->select('car')
48
-                         ->from(GH2947Car::class, 'car')
49
-                         ->getQuery()
50
-                         ->useResultCache(true, 3600, 'foo-cache-id');
47
+                            ->select('car')
48
+                            ->from(GH2947Car::class, 'car')
49
+                            ->getQuery()
50
+                            ->useResultCache(true, 3600, 'foo-cache-id');
51 51
     }
52 52
 
53 53
     private function createData()
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
     private function updateData()
61 61
     {
62 62
         $this->_em->createQueryBuilder()
63
-                  ->update(GH2947Car::class, 'car')
64
-                  ->set('car.brand', ':newBrand')
65
-                  ->where('car.brand = :oldBrand')
66
-                  ->setParameter('newBrand', 'Dacia')
67
-                  ->setParameter('oldBrand', 'BMW')
68
-                  ->getQuery()
69
-                  ->execute();
63
+                    ->update(GH2947Car::class, 'car')
64
+                    ->set('car.brand', ':newBrand')
65
+                    ->where('car.brand = :oldBrand')
66
+                    ->setParameter('newBrand', 'Dacia')
67
+                    ->setParameter('oldBrand', 'BMW')
68
+                    ->getQuery()
69
+                    ->execute();
70 70
     }
71 71
 }
72 72
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2224Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function testIssue()
21 21
     {
22
-        $dql = 'SELECT e FROM ' . __NAMESPACE__ . '\DDC2224Entity e WHERE e.field = :field';
22
+        $dql = 'SELECT e FROM '.__NAMESPACE__.'\DDC2224Entity e WHERE e.field = :field';
23 23
         $query = $this->_em->createQuery($dql);
24 24
         $query->setQueryCacheDriver(new ArrayCache());
25 25
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1757Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $dql = $q->getDQL();
22 22
 
23 23
         // Show difference between expected and actual queries on error
24
-        self::assertEquals("SELECT _a FROM " . __NAMESPACE__ . "\DDC1757A _a, " . __NAMESPACE__ . "\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d",
24
+        self::assertEquals("SELECT _a FROM ".__NAMESPACE__."\DDC1757A _a, ".__NAMESPACE__."\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d",
25 25
                 $dql,
26 26
                 "Wrong DQL query");
27 27
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1430Test.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -226,11 +226,11 @@  discard block
 block discarded – undo
226 226
 class DDC1430OrderProduct
227 227
 {
228 228
 
229
-     /**
230
-     * @Id
231
-     * @Column(type="integer")
232
-     * @GeneratedValue()
233
-     */
229
+        /**
230
+         * @Id
231
+         * @Column(type="integer")
232
+         * @GeneratedValue()
233
+         */
234 234
     protected $id;
235 235
 
236 236
     /**
@@ -254,9 +254,9 @@  discard block
 block discarded – undo
254 254
         $this->value = $value;
255 255
     }
256 256
 
257
-     /**
258
-     * @return int
259
-     */
257
+        /**
258
+         * @return int
259
+         */
260 260
     public function getId()
261 261
     {
262 262
         return $this->id;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC353Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
                 $this->_em->getClassMetadata(DDC353Picture::class),
17 17
                 ]
18 18
             );
19
-        } catch(\Exception $ignored) {}
19
+        } catch (\Exception $ignored) {}
20 20
     }
21 21
 
22 22
     public function testWorkingCase()
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3192Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
         if (Type::hasType('ddc3192_currency_code')) {
20 20
             $this->fail(
21
-                'Type ddc3192_currency_code exists for testing DDC-3192 only, ' .
21
+                'Type ddc3192_currency_code exists for testing DDC-3192 only, '.
22 22
                 'but it has already been registered for some reason'
23 23
             );
24 24
         }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $this->_em->close();
56 56
 
57 57
         $query = $this->_em->createQuery();
58
-        $query->setDQL('SELECT t FROM ' . DDC3192Transaction::class . ' t WHERE t.id = ?1');
58
+        $query->setDQL('SELECT t FROM '.DDC3192Transaction::class.' t WHERE t.id = ?1');
59 59
         $query->setParameter(1, $transaction->id);
60 60
 
61 61
         $resultByQuery = $query->getSingleResult();
Please login to merge, or discard this patch.