Failed Conditions
Push — develop ( 1e1a22...0ebeb4 )
by Michael
128:26 queued 63:28
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC522Test.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
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
                     $this->em->getClassMetadata(DDC522ForeignKeyTest::class)
26 26
                 ]
27 27
             );
28
-        } catch(\Exception $e) {
28
+        } catch (\Exception $e) {
29 29
         }
30 30
     }
31 31
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $this->em->clear();
49 49
 
50 50
         $cart = $this->em
51
-            ->createQuery('select ca, c from ' . DDC522Cart::class . ' ca join ca.customer c')
51
+            ->createQuery('select ca, c from '.DDC522Cart::class.' ca join ca.customer c')
52 52
             ->getSingleResult()
53 53
         ;
54 54
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2984Test.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
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $this->em->persist($user);
46 46
         $this->em->flush();
47 47
 
48
-        $repository = $this->em->getRepository(__NAMESPACE__ . "\DDC2984User");
48
+        $repository = $this->em->getRepository(__NAMESPACE__."\DDC2984User");
49 49
 
50 50
         $sameUser = $repository->find(new DDC2984DomainUserId('unique_id_within_a_vo'));
51 51
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH2947Test.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
     private function createQuery()
52 52
     {
53 53
         return $this->em->createQueryBuilder()
54
-                         ->select('car')
55
-                         ->from(GH2947Car::class, 'car')
56
-                         ->getQuery()
57
-                         ->useResultCache(true, 3600, 'foo-cache-id');
54
+                            ->select('car')
55
+                            ->from(GH2947Car::class, 'car')
56
+                            ->getQuery()
57
+                            ->useResultCache(true, 3600, 'foo-cache-id');
58 58
     }
59 59
 
60 60
     private function createData()
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
     private function updateData()
68 68
     {
69 69
         $this->em->createQueryBuilder()
70
-                  ->update(GH2947Car::class, 'car')
71
-                  ->set('car.brand', ':newBrand')
72
-                  ->where('car.brand = :oldBrand')
73
-                  ->setParameter('newBrand', 'Dacia')
74
-                  ->setParameter('oldBrand', 'BMW')
75
-                  ->getQuery()
76
-                  ->execute();
70
+                    ->update(GH2947Car::class, 'car')
71
+                    ->set('car.brand', ':newBrand')
72
+                    ->where('car.brand = :oldBrand')
73
+                    ->setParameter('newBrand', 'Dacia')
74
+                    ->setParameter('oldBrand', 'BMW')
75
+                    ->getQuery()
76
+                    ->execute();
77 77
     }
78 78
 }
79 79
 
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/DDC1595Test.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
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $sqlLogger  = $this->em->getConnection()->getConfiguration()->getSQLLogger();
40 40
         $repository = $this->em->getRepository(DDC1595InheritedEntity1::class);
41 41
 
42
-        $entity1  = $repository->find($e1->id);
42
+        $entity1 = $repository->find($e1->id);
43 43
 
44 44
         // DDC-1596
45 45
         self::assertSQLEquals(
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $this->em->clear();
58 58
 
59
-        $entity1  = $repository->find($e1->id);
59
+        $entity1 = $repository->find($e1->id);
60 60
 
61 61
         $entity1->getEntities()->count();
62 62
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.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
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         parent::setUp();
22 22
 
23
-        $testDir = sys_get_temp_dir() . '/DDC742Test' . uniqid();
23
+        $testDir = sys_get_temp_dir().'/DDC742Test'.uniqid();
24 24
 
25 25
         mkdir($testDir);
26 26
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                     $this->em->getClassMetadata(DDC742Comment::class)
35 35
                 ]
36 36
             );
37
-        } catch(\Exception $e) {
37
+        } catch (\Exception $e) {
38 38
         }
39 39
 
40 40
         // make sure classes will be deserialized from caches
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3192Test.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
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         if (Type::hasType('ddc3192_currency_code')) {
22 22
             $this->fail(
23
-                'Type ddc3192_currency_code exists for testing DDC-3192 only, ' .
23
+                'Type ddc3192_currency_code exists for testing DDC-3192 only, '.
24 24
                 'but it has already been registered for some reason'
25 25
             );
26 26
         }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $this->em->close();
58 58
 
59 59
         $query = $this->em->createQuery();
60
-        $query->setDQL('SELECT t FROM ' . DDC3192Transaction::class . ' t WHERE t.id = ?1');
60
+        $query->setDQL('SELECT t FROM '.DDC3192Transaction::class.' t WHERE t.id = ?1');
61 61
         $query->setParameter(1, $transaction->id);
62 62
 
63 63
         $resultByQuery = $query->getSingleResult();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1209Test.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
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
                     $this->em->getClassMetadata(DDC1209_3::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.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2895Test.php 1 patch
Spacing   +4 added lines, -4 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(DDC2895::class),
23 23
                 ]
24 24
             );
25
-        } catch(\Exception $e) {
25
+        } catch (\Exception $e) {
26 26
 
27 27
         }
28 28
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * @param \DateTime $lastModified
79 79
      */
80
-    public function setLastModified( $lastModified )
80
+    public function setLastModified($lastModified)
81 81
     {
82 82
         $this->lastModified = $lastModified;
83 83
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * @param mixed $id
105 105
      */
106
-    public function setId( $id )
106
+    public function setId($id)
107 107
     {
108 108
         $this->id = $id;
109 109
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1655Test.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
                 $this->em->getClassMetadata(DDC1655Baz::class),
26 26
                 ]
27 27
             );
28
-        } catch(\Exception $e) {
29
-            $this->fail($e->getMessage() . PHP_EOL . $e->getTraceAsString());
28
+        } catch (\Exception $e) {
29
+            $this->fail($e->getMessage().PHP_EOL.$e->getTraceAsString());
30 30
         }
31 31
     }
32 32
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $conn = static::$sharedConn;
36 36
 
37 37
         // In case test is skipped, tearDown is called, but no setup may have run
38
-        if (!$conn) {
38
+        if ( ! $conn) {
39 39
             return;
40 40
         }
41 41
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $baz = $this->em->find(get_class($baz), $baz->id);
79 79
         foreach ($baz->foos as $foo) {
80
-            self::assertEquals(1, $foo->loaded, "should have loaded callback counter incremented for " . get_class($foo));
80
+            self::assertEquals(1, $foo->loaded, "should have loaded callback counter incremented for ".get_class($foo));
81 81
         }
82 82
     }
83 83
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         self::assertEquals(1, $bar->loaded);
102 102
         self::assertEquals(1, $bar->subLoaded);
103 103
 
104
-        $dql = "SELECT b FROM " . __NAMESPACE__ . "\DDC1655Bar b WHERE b.id = ?1";
104
+        $dql = "SELECT b FROM ".__NAMESPACE__."\DDC1655Bar b WHERE b.id = ?1";
105 105
         $bar = $this->em->createQuery($dql)->setParameter(1, $bar->id)->getSingleResult();
106 106
 
107 107
         self::assertEquals(1, $bar->loaded);
Please login to merge, or discard this patch.