Failed Conditions
Pull Request — develop (#6719)
by Marco
64:55
created
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/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/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/DDC2214Test.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
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $related = $this
51 51
             ->em
52
-            ->createQuery('SELECT b FROM '.__NAMESPACE__ . '\DDC2214Bar b WHERE b.id IN(:ids)')
52
+            ->createQuery('SELECT b FROM '.__NAMESPACE__.'\DDC2214Bar b WHERE b.id IN(:ids)')
53 53
             ->setParameter('ids', [$bar])
54 54
             ->getResult();
55 55
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/Ticket2481Test.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
  */
41 41
 class Ticket2481Product
42 42
 {
43
-  /**
44
-   * @ORM\Id @ORM\Column(type="integer")
45
-   * @ORM\GeneratedValue(strategy="AUTO")
46
-   */
47
-  public $id;
43
+    /**
44
+     * @ORM\Id @ORM\Column(type="integer")
45
+     * @ORM\GeneratedValue(strategy="AUTO")
46
+     */
47
+    public $id;
48 48
 }
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/DDC1757Test.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
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $dql = $q->getDQL();
25 25
 
26 26
         // Show difference between expected and actual queries on error
27
-        self::assertEquals("SELECT _a FROM " . __NAMESPACE__ . "\DDC1757A _a, " . __NAMESPACE__ . "\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d",
27
+        self::assertEquals("SELECT _a FROM ".__NAMESPACE__."\DDC1757A _a, ".__NAMESPACE__."\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d",
28 28
                 $dql,
29 29
                 "Wrong DQL query");
30 30
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1885Test.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
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                 $this->em->getClassMetadata(Address::class),
32 32
                 ]
33 33
             );
34
-        } catch(\Exception $e) {
34
+        } catch (\Exception $e) {
35 35
         }
36 36
 
37 37
         $user           = new User();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1300Test.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
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $this->em->flush();
41 41
 
42 42
         $query = $this->em->createQuery('SELECT f, fl FROM Doctrine\Tests\ORM\Functional\Ticket\DDC1300Foo f JOIN f.fooLocaleRefFoo fl');
43
-        $result =  $query->getResult();
43
+        $result = $query->getResult();
44 44
 
45 45
         self::assertEquals(1, count($result));
46 46
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2931Test.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
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             ->em
76 76
             ->createQuery(
77 77
                 'SELECT e, p, c FROM '
78
-                . __NAMESPACE__ . '\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
78
+                . __NAMESPACE__.'\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
79 79
             )
80 80
             ->setParameter('id', $second)
81 81
             ->setHint(Query::HINT_REFRESH, true)
Please login to merge, or discard this patch.