Failed Conditions
Pull Request — master (#7214)
by
unknown
14:26
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2602Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $entity = $event->getEntity();
139 139
 
140
-        if (! ($entity instanceof DDC2602Biography)) {
140
+        if ( ! ($entity instanceof DDC2602Biography)) {
141 141
             return;
142 142
         }
143 143
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             $fieldSelection = new DDC2602FieldSelection();
159 159
 
160 160
             $fieldSelection->field      = $field;
161
-            $fieldSelection->choiceList = $field->choiceList->filter(function ($choice) use ($choiceList) {
161
+            $fieldSelection->choiceList = $field->choiceList->filter(function($choice) use ($choiceList) {
162 162
                 return in_array($choice->id, $choiceList, true);
163 163
             });
164 164
 
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
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 
87 87
     public function addPropertyChangedListener(PropertyChangedListener $listener)
88 88
     {
89
-        if (! in_array($listener, $this->listeners, true)) {
89
+        if ( ! in_array($listener, $this->listeners, true)) {
90 90
             $this->listeners[] = $listener;
91 91
         }
92 92
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3634Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         $metadata = $this->em->getClassMetadata(DDC3634Entity::class);
29 29
 
30
-        if (! $metadata->getValueGenerationPlan()->containsDeferred()) {
30
+        if ( ! $metadata->getValueGenerationPlan()->containsDeferred()) {
31 31
             $this->markTestSkipped('Need a post-insert ID generator in order to make this test work correctly');
32 32
         }
33 33
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function testSavesVeryLargeIntegerAutoGeneratedValue() : void
46 46
     {
47
-        $veryLargeId = PHP_INT_MAX . PHP_INT_MAX;
47
+        $veryLargeId = PHP_INT_MAX.PHP_INT_MAX;
48 48
 
49 49
         $entityManager = EntityManager::create(
50 50
             new DDC3634LastInsertIdMockingConnection($veryLargeId, $this->em->getConnection()),
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1655Test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 ]
30 30
             );
31 31
         } catch (\Exception $e) {
32
-            $this->fail($e->getMessage() . PHP_EOL . $e->getTraceAsString());
32
+            $this->fail($e->getMessage().PHP_EOL.$e->getTraceAsString());
33 33
         }
34 34
     }
35 35
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $conn = static::$sharedConn;
39 39
 
40 40
         // In case test is skipped, tearDown is called, but no setup may have run
41
-        if (! $conn) {
41
+        if ( ! $conn) {
42 42
             return;
43 43
         }
44 44
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $baz = $this->em->find(get_class($baz), $baz->id);
82 82
         foreach ($baz->foos as $foo) {
83
-            self::assertEquals(1, $foo->loaded, 'should have loaded callback counter incremented for ' . get_class($foo));
83
+            self::assertEquals(1, $foo->loaded, 'should have loaded callback counter incremented for '.get_class($foo));
84 84
         }
85 85
     }
86 86
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         self::assertEquals(1, $bar->loaded);
105 105
         self::assertEquals(1, $bar->subLoaded);
106 106
 
107
-        $dql = 'SELECT b FROM ' . __NAMESPACE__ . '\DDC1655Bar b WHERE b.id = ?1';
107
+        $dql = 'SELECT b FROM '.__NAMESPACE__.'\DDC1655Bar b WHERE b.id = ?1';
108 108
         $bar = $this->em->createQuery($dql)->setParameter(1, $bar->id)->getSingleResult();
109 109
 
110 110
         self::assertEquals(1, $bar->loaded);
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
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
         // proxy for Y is in identity map
51 51
 
52
-        $z2 = $this->em->createQuery('select z,y from ' . get_class($z) . ' z join z.y y where z.id = ?1')
52
+        $z2 = $this->em->createQuery('select z,y from '.get_class($z).' z join z.y y where z.id = ?1')
53 53
                 ->setParameter(1, $z->id)
54 54
                 ->getSingleResult();
55 55
         self::assertInstanceOf(GhostObjectInterface::class, $z2->y);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6141Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
81 81
     {
82
-        if (! $value instanceof GH6141People) {
82
+        if ( ! $value instanceof GH6141People) {
83 83
             $value = GH6141People::get($value);
84 84
         }
85 85
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public static function get($value)
122 122
     {
123
-        if (! self::isValid($value)) {
123
+        if ( ! self::isValid($value)) {
124 124
             throw new \InvalidArgumentException();
125 125
         }
126 126
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC633Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $this->em->flush();
67 67
         $this->em->clear();
68 68
 
69
-        $appointments = $this->em->createQuery('SELECT a FROM ' . __NAMESPACE__ . '\DDC633Appointment a')->getResult();
69
+        $appointments = $this->em->createQuery('SELECT a FROM '.__NAMESPACE__.'\DDC633Appointment a')->getResult();
70 70
 
71 71
         foreach ($appointments as $eagerAppointment) {
72 72
             self::assertInstanceOf(GhostObjectInterface::class, $eagerAppointment->patient);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC657Test.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function testEntitySingleResult() : void
24 24
     {
25
-        $query    = $this->em->createQuery('SELECT d FROM ' . DateTimeModel::class . ' d');
25
+        $query    = $this->em->createQuery('SELECT d FROM '.DateTimeModel::class.' d');
26 26
         $datetime = $query->setMaxResults(1)->getSingleResult();
27 27
 
28 28
         self::assertInstanceOf(DateTimeModel::class, $datetime);
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function testScalarResult() : void
36 36
     {
37
-        $query  = $this->em->createQuery('SELECT d.id, d.time, d.date, d.datetime FROM ' . DateTimeModel::class . ' d ORDER BY d.date ASC');
37
+        $query  = $this->em->createQuery('SELECT d.id, d.time, d.date, d.datetime FROM '.DateTimeModel::class.' d ORDER BY d.date ASC');
38 38
         $result = $query->getScalarResult();
39 39
 
40 40
         self::assertCount(2, $result);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     public function testaTicketEntityArrayResult() : void
52 52
     {
53
-        $query  = $this->em->createQuery('SELECT d FROM ' . DateTimeModel::class . ' d ORDER BY d.date ASC');
53
+        $query  = $this->em->createQuery('SELECT d FROM '.DateTimeModel::class.' d ORDER BY d.date ASC');
54 54
         $result = $query->getArrayResult();
55 55
 
56 56
         self::assertCount(2, $result);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     public function testTicketSingleResult() : void
68 68
     {
69
-        $query    = $this->em->createQuery('SELECT d.id, d.time, d.date, d.datetime FROM ' . DateTimeModel::class . ' d ORDER BY d.date ASC');
69
+        $query    = $this->em->createQuery('SELECT d.id, d.time, d.date, d.datetime FROM '.DateTimeModel::class.' d ORDER BY d.date ASC');
70 70
         $datetime = $query->setMaxResults(1)->getSingleResult();
71 71
 
72 72
         self::assertInternalType('array', $datetime);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     public function testTicketResult() : void
80 80
     {
81
-        $query  = $this->em->createQuery('SELECT d.id, d.time, d.date, d.datetime FROM ' . DateTimeModel::class . ' d ORDER BY d.date ASC');
81
+        $query  = $this->em->createQuery('SELECT d.id, d.time, d.date, d.datetime FROM '.DateTimeModel::class.' d ORDER BY d.date ASC');
82 82
         $result = $query->getResult();
83 83
 
84 84
         self::assertCount(2, $result);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1436Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
         // step 1
45 45
         $page = $this->em
46
-                ->createQuery('SELECT p, parent FROM ' . __NAMESPACE__ . '\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
46
+                ->createQuery('SELECT p, parent FROM '.__NAMESPACE__.'\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
47 47
                 ->setParameter('id', $id)
48 48
                 ->getOneOrNullResult();
49 49
 
Please login to merge, or discard this patch.