Passed
Pull Request — master (#7230)
by Grégoire
16:18
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC767Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC513Test.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
 /**
30 30
  * @Entity
31
-  */
31
+ */
32 32
 class DDC513OfferItem extends DDC513Item
33 33
 {
34 34
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6402Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $id = $this->createAddress();
36 36
 
37
-        $addresses = $this->_em->createQuery('SELECT a FROM ' . Address::class . ' a WHERE a.id = :id')
37
+        $addresses = $this->_em->createQuery('SELECT a FROM '.Address::class.' a WHERE a.id = :id')
38 38
             ->setParameter('id', $id)
39 39
             ->getResult();
40 40
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $id = $this->createFullAddress();
56 56
 
57
-        $addresses = $this->_em->createQuery('SELECT a FROM ' . FullAddress::class . ' a WHERE a.id = :id')
57
+        $addresses = $this->_em->createQuery('SELECT a FROM '.FullAddress::class.' a WHERE a.id = :id')
58 58
             ->setParameter('id', $id)
59 59
             ->getResult();
60 60
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3123Test.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
         $uow->scheduleExtraUpdate($user, ['name' => 'changed name']);
30 30
 
31 31
         $listener = $this->getMockBuilder(\stdClass::class)
32
-                         ->setMethods([Events::postFlush])
33
-                         ->getMock();
32
+                            ->setMethods([Events::postFlush])
33
+                            ->getMock();
34 34
 
35 35
         $listener
36 36
             ->expects($this->once())
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $listener
36 36
             ->expects($this->once())
37 37
             ->method(Events::postFlush)
38
-            ->will($this->returnCallback(function () use ($uow, $test) {
38
+            ->will($this->returnCallback(function() use ($uow, $test) {
39 39
                 $test->assertAttributeEmpty('extraUpdates', $uow, 'ExtraUpdates are reset before postFlush');
40 40
             }));
41 41
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2895Test.php 1 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(DDC2895::class),
19 19
                 ]
20 20
             );
21
-        } catch(\Exception $e) {
21
+        } catch (\Exception $e) {
22 22
 
23 23
         }
24 24
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * @param \DateTime $lastModified
75 75
      */
76
-    public function setLastModified( $lastModified )
76
+    public function setLastModified($lastModified)
77 77
     {
78 78
         $this->lastModified = $lastModified;
79 79
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * @param mixed $id
101 101
      */
102
-    public function setId( $id )
102
+    public function setId($id)
103 103
     {
104 104
         $this->id = $id;
105 105
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1690Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     public $listeners = [];
78 78
 
79 79
     public function addPropertyChangedListener(PropertyChangedListener $listener) {
80
-        if (!in_array($listener, $this->listeners)) {
80
+        if ( ! in_array($listener, $this->listeners)) {
81 81
             $this->listeners[] = $listener;
82 82
         }
83 83
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2931Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             ->_em
73 73
             ->createQuery(
74 74
                 'SELECT e, p, c FROM '
75
-                . __NAMESPACE__ . '\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
75
+                . __NAMESPACE__.'\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
76 76
             )
77 77
             ->setParameter('id', $second)
78 78
             ->setHint(Query::HINT_REFRESH, true)
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/Ticket69.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         $this->assertInstanceOf(Lemma::class, $lemma);
87 87
         $relations = $lemma->getRelations();
88 88
 
89
-        foreach($relations as $relation) {
89
+        foreach ($relations as $relation) {
90 90
             $this->assertInstanceOf(Relation::class, $relation);
91 91
             $this->assertTrue($relation->getType()->getType() != '');
92 92
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1514Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $this->_em->flush();
54 54
         $this->_em->clear();
55 55
 
56
-        $dql = "SELECT a, b, ba, c FROM " . __NAMESPACE__ . "\DDC1514EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba LEFT JOIN a.entityC AS c ORDER BY a.title";
56
+        $dql = "SELECT a, b, ba, c FROM ".__NAMESPACE__."\DDC1514EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba LEFT JOIN a.entityC AS c ORDER BY a.title";
57 57
         $results = $this->_em->createQuery($dql)->getResult();
58 58
 
59 59
         $this->assertEquals($a1->id, $results[0]->id);
Please login to merge, or discard this patch.