Passed
Pull Request — master (#7230)
by Grégoire
16:18
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1695Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
         if ($this->_em->getConnection()->getDatabasePlatform()->getName() != "sqlite") {
13 13
             $this->markTestSkipped("Only with sqlite");
14 14
         }
15
-        $dql = "SELECT n.smallText, n.publishDate FROM " . __NAMESPACE__ . "\\DDC1695News n";
15
+        $dql = "SELECT n.smallText, n.publishDate FROM ".__NAMESPACE__."\\DDC1695News n";
16 16
         $sql = $this->_em->createQuery($dql)->getSQL();
17 17
 
18 18
         $this->assertEquals(
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1595Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $sqlLogger  = $this->_em->getConnection()->getConfiguration()->getSQLLogger();
36 36
         $repository = $this->_em->getRepository(DDC1595InheritedEntity1::class);
37 37
 
38
-        $entity1  = $repository->find($e1->id);
38
+        $entity1 = $repository->find($e1->id);
39 39
 
40 40
         // DDC-1596
41 41
         $this->assertSQLEquals(
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC698Test.php 2 patches
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $qb = $this->_em->createQueryBuilder();
25 25
         $qb->select('p', 'r')
26
-		   ->from(__NAMESPACE__ .  '\DDC698Privilege', 'p')
27
-		   ->leftJoin('p.roles', 'r');
26
+            ->from(__NAMESPACE__ .  '\DDC698Privilege', 'p')
27
+            ->leftJoin('p.roles', 'r');
28 28
 
29 29
         $sql = $qb->getQuery()->getSQL();
30 30
 
@@ -42,37 +42,37 @@  discard block
 block discarded – undo
42 42
  */
43 43
 class DDC698Role
44 44
 {
45
-	/**
46
-	 *  @Id @Column(name="roleID", type="integer")
47
-	 *  @GeneratedValue(strategy="AUTO")
48
-	 *
49
-	 */
50
-	protected $roleID;
51
-
52
-	/**
53
-	 * @Column(name="name", type="string", length=45)
54
-	 *
55
-	 *
56
-	 */
57
-	protected $name;
58
-
59
-	/**
60
-	 * @Column(name="shortName", type="string", length=45)
61
-	 *
62
-	 *
63
-	 */
64
-	protected $shortName;
65
-
66
-
67
-
68
-	/**
69
-	 * @ManyToMany(targetEntity="DDC698Privilege", inversedBy="roles")
70
-	 * @JoinTable(name="RolePrivileges",
71
-	 *     joinColumns={@JoinColumn(name="roleID", referencedColumnName="roleID")},
72
-	 *     inverseJoinColumns={@JoinColumn(name="privilegeID", referencedColumnName="privilegeID")}
73
-	 * )
74
-	 */
75
-	protected $privilege;
45
+    /**
46
+     *  @Id @Column(name="roleID", type="integer")
47
+     *  @GeneratedValue(strategy="AUTO")
48
+     *
49
+     */
50
+    protected $roleID;
51
+
52
+    /**
53
+     * @Column(name="name", type="string", length=45)
54
+     *
55
+     *
56
+     */
57
+    protected $name;
58
+
59
+    /**
60
+     * @Column(name="shortName", type="string", length=45)
61
+     *
62
+     *
63
+     */
64
+    protected $shortName;
65
+
66
+
67
+
68
+    /**
69
+     * @ManyToMany(targetEntity="DDC698Privilege", inversedBy="roles")
70
+     * @JoinTable(name="RolePrivileges",
71
+     *     joinColumns={@JoinColumn(name="roleID", referencedColumnName="roleID")},
72
+     *     inverseJoinColumns={@JoinColumn(name="privilegeID", referencedColumnName="privilegeID")}
73
+     * )
74
+     */
75
+    protected $privilege;
76 76
 
77 77
 }
78 78
 
@@ -84,22 +84,22 @@  discard block
 block discarded – undo
84 84
  */
85 85
 class DDC698Privilege
86 86
 {
87
-	/**
88
-	 *  @Id  @Column(name="privilegeID", type="integer")
89
-	 *  @GeneratedValue(strategy="AUTO")
90
-	 *
91
-	 */
92
-	protected $privilegeID;
93
-
94
-	/**
95
-	 * @Column(name="name", type="string", length=45)
96
-	 *
97
-	 *
98
-	 */
99
-	protected $name;
100
-
101
-	/**
87
+    /**
88
+     *  @Id  @Column(name="privilegeID", type="integer")
89
+     *  @GeneratedValue(strategy="AUTO")
90
+     *
91
+     */
92
+    protected $privilegeID;
93
+
94
+    /**
95
+     * @Column(name="name", type="string", length=45)
96
+     *
97
+     *
98
+     */
99
+    protected $name;
100
+
101
+    /**
102 102
      * @ManyToMany(targetEntity="DDC698Role", mappedBy="privilege")
103 103
      */
104
-	protected $roles;
104
+    protected $roles;
105 105
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
                 $this->_em->getClassMetadata(DDC698Privilege::class)
15 15
                 ]
16 16
             );
17
-        } catch(\Exception $e) {
17
+        } catch (\Exception $e) {
18 18
 
19 19
         }
20 20
     }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $qb = $this->_em->createQueryBuilder();
25 25
         $qb->select('p', 'r')
26
-		   ->from(__NAMESPACE__ .  '\DDC698Privilege', 'p')
26
+		   ->from(__NAMESPACE__.'\DDC698Privilege', 'p')
27 27
 		   ->leftJoin('p.roles', 'r');
28 28
 
29 29
         $sql = $qb->getQuery()->getSQL();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3785Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC237Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC656Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1250Test.php 2 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
88 88
 mappedBy: declinedClientsHistory
89 89
 lifecycleCallbacks: { }
90 90
 repositoryClass: Entities\ClientsHistoryRepository
91
-
92
-
93 91
  */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2359Test.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC992Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.