Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC837Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     /**
107 107
      * @ORM\Id @ORM\Column(name="id", type="integer")
108 108
      * @ORM\GeneratedValue(strategy="AUTO")
109
-    */
109
+     */
110 110
     public $id;
111 111
 }
112 112
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3699Test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 use Doctrine\Tests\Models\DDC3699\DDC3699RelationOne;
6 6
 use Doctrine\Tests\Models\DDC3699\DDC3699RelationMany;
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $relation = new DDC3699RelationOne();
35 35
 
36 36
         $relation->id       = $id;
37
-        $relation->child    = $child ;
37
+        $relation->child    = $child;
38 38
         $child->oneRelation = $relation;
39 39
 
40 40
         $this->em->persist($relation);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $relation = new DDC3699RelationMany();
78 78
 
79 79
         $relation->id       = $id;
80
-        $relation->child    = $child ;
80
+        $relation->child    = $child;
81 81
         $child->relations[] = $relation;
82 82
 
83 83
         $this->em->persist($relation);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/Issue5989Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         $employee = new Issue5989Employee();
31 31
 
32
-        $employeeTags =['tag2', 'tag3'];
32
+        $employeeTags = ['tag2', 'tag3'];
33 33
         $employee->tags = $employeeTags;
34 34
         $this->em->persist($employee);
35 35
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6141Test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
80 80
     {
81
-        if (!$value instanceof GH6141People) {
81
+        if ( ! $value instanceof GH6141People) {
82 82
             $value = GH6141People::get($value);
83 83
         }
84 84
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public static function get($value)
123 123
     {
124
-        if (!self::isValid($value)) {
124
+        if ( ! self::isValid($value)) {
125 125
             throw new \InvalidArgumentException();
126 126
         }
127 127
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1452Test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
         $this->em->flush();
50 50
         $this->em->clear();
51 51
 
52
-        $dql = "SELECT a, b, ba FROM " . __NAMESPACE__ . "\DDC1452EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba";
52
+        $dql = "SELECT a, b, ba FROM ".__NAMESPACE__."\DDC1452EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba";
53 53
         $results = $this->em->createQuery($dql)->setMaxResults(1)->getResult();
54 54
 
55 55
         self::assertSame($results[0], $results[0]->entitiesB[0]->entityAFrom);
56
-        self::assertFalse( $results[0]->entitiesB[0]->entityATo instanceof Proxy);
56
+        self::assertFalse($results[0]->entitiesB[0]->entityATo instanceof Proxy);
57 57
         self::assertInstanceOf(Collection::class, $results[0]->entitiesB[0]->entityATo->getEntitiesB());
58 58
     }
59 59
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC767Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
             $this->em->flush();
68 68
             $this->em->commit();
69
-        } catch(\Exception $e) {
69
+        } catch (\Exception $e) {
70 70
             $this->em->rollback();
71 71
         }
72 72
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC729Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
                 $this->em->getClassMetadata(DDC729B::class),
23 23
                 ]
24 24
             );
25
-        } catch(\Exception $e) {
25
+        } catch (\Exception $e) {
26 26
 
27 27
         }
28 28
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC513Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
 /**
35 35
  * @ORM\Entity
36
-  */
36
+ */
37 37
 class DDC513OfferItem extends DDC513Item
38 38
 {
39 39
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC237Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
         // proxy for Y is in identity map
49 49
 
50
-        $z2 = $this->em->createQuery('select z,y from ' . get_class($z) . ' z join z.y y where z.id = ?1')
50
+        $z2 = $this->em->createQuery('select z,y from '.get_class($z).' z join z.y y where z.id = ?1')
51 51
                 ->setParameter(1, $z->id)
52 52
                 ->getSingleResult();
53 53
         self::assertInstanceOf(Proxy::class, $z2->y);
Please login to merge, or discard this patch.