Passed
Pull Request — master (#7782)
by Gabriel
06:00
created
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6141Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
82 82
     {
83
-        if (! $value instanceof GH6141People) {
83
+        if ( ! $value instanceof GH6141People) {
84 84
             $value = GH6141People::get($value);
85 85
         }
86 86
 
@@ -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/DDC3123Test.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
         $uow->scheduleExtraUpdate($user, ['name' => 'changed name']);
34 34
 
35 35
         $listener = $this->getMockBuilder(stdClass::class)
36
-                         ->setMethods([Events::postFlush])
37
-                         ->getMock();
36
+                            ->setMethods([Events::postFlush])
37
+                            ->getMock();
38 38
 
39 39
         $listener
40 40
             ->expects($this->once())
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $listener
40 40
             ->expects($this->once())
41 41
             ->method(Events::postFlush)
42
-            ->will($this->returnCallback(static function () use ($uow, $test) {
42
+            ->will($this->returnCallback(static function() use ($uow, $test) {
43 43
                 $test->assertAttributeEmpty('extraUpdates', $uow, 'ExtraUpdates are reset before postFlush');
44 44
             }));
45 45
 
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
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 ]
31 31
             );
32 32
         } catch (Exception $e) {
33
-            $this->fail($e->getMessage() . PHP_EOL . $e->getTraceAsString());
33
+            $this->fail($e->getMessage().PHP_EOL.$e->getTraceAsString());
34 34
         }
35 35
     }
36 36
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $conn = static::$sharedConn;
40 40
 
41 41
         // In case test is skipped, tearDown is called, but no setup may have run
42
-        if (! $conn) {
42
+        if ( ! $conn) {
43 43
             return;
44 44
         }
45 45
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $baz = $this->em->find(get_class($baz), $baz->id);
83 83
         foreach ($baz->foos as $foo) {
84
-            self::assertEquals(1, $foo->loaded, 'should have loaded callback counter incremented for ' . get_class($foo));
84
+            self::assertEquals(1, $foo->loaded, 'should have loaded callback counter incremented for '.get_class($foo));
85 85
         }
86 86
     }
87 87
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         self::assertEquals(1, $bar->loaded);
106 106
         self::assertEquals(1, $bar->subLoaded);
107 107
 
108
-        $dql = 'SELECT b FROM ' . __NAMESPACE__ . '\DDC1655Bar b WHERE b.id = ?1';
108
+        $dql = 'SELECT b FROM '.__NAMESPACE__.'\DDC1655Bar b WHERE b.id = ?1';
109 109
         $bar = $this->em->createQuery($dql)->setParameter(1, $bar->id)->getSingleResult();
110 110
 
111 111
         self::assertEquals(1, $bar->loaded);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3644Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
         $this->addresses = $addresses;
160 160
 
161
-        $addresses->map(static function ($address) use ($self) {
161
+        $addresses->map(static function($address) use ($self) {
162 162
             $address->user = $self;
163 163
         });
164 164
     }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
         $this->pets = $pets;
171 171
 
172
-        $pets->map(static function ($pet) use ($self) {
172
+        $pets->map(static function($pet) use ($self) {
173 173
             $pet->owner = $self;
174 174
         });
175 175
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/DBAL483Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
         $updateSql = $this->schemaTool->getUpdateSchemaSql([$class]);
34 34
 
35
-        $updateSql = array_filter($updateSql, static function ($sql) {
35
+        $updateSql = array_filter($updateSql, static function($sql) {
36 36
             return strpos($sql, 'DBAL483') !== false;
37 37
         });
38 38
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/DDC214Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@
 block discarded – undo
89 89
         $schemaDiff = $comparator->compare($fromSchema, $toSchema);
90 90
 
91 91
         $sql = $schemaDiff->toSql($this->em->getConnection()->getDatabasePlatform());
92
-        $sql = array_filter($sql, static function ($sql) {
92
+        $sql = array_filter($sql, static function($sql) {
93 93
             return strpos($sql, 'DROP') === false;
94 94
         });
95 95
 
96
-        self::assertCount(0, $sql, 'SQL: ' . implode(PHP_EOL, $sql));
96
+        self::assertCount(0, $sql, 'SQL: '.implode(PHP_EOL, $sql));
97 97
     }
98 98
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/PostgreSqlSchemaToolTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         parent::setUp();
22 22
 
23 23
         if ($this->em->getConnection()->getDatabasePlatform()->getName() !== 'postgresql') {
24
-            $this->markTestSkipped('The ' . self::class . ' requires the use of postgresql.');
24
+            $this->markTestSkipped('The '.self::class.' requires the use of postgresql.');
25 25
         }
26 26
     }
27 27
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $tool->createSchema($classes);
133 133
 
134 134
         $sql = $tool->getUpdateSchemaSql($classes);
135
-        $sql = array_filter($sql, static function ($sql) {
135
+        $sql = array_filter($sql, static function($sql) {
136 136
             return strpos($sql, 'DROP SEQUENCE stonewood.') === 0;
137 137
         });
138 138
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/MySqlSchemaToolTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     {
16 16
         parent::setUp();
17 17
         if ($this->em->getConnection()->getDatabasePlatform()->getName() !== 'mysql') {
18
-            $this->markTestSkipped('The ' . self::class . ' requires the use of mysql.');
18
+            $this->markTestSkipped('The '.self::class.' requires the use of mysql.');
19 19
         }
20 20
     }
21 21
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheQueryCacheTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -805,7 +805,7 @@
 block discarded – undo
805 805
         $this->secondLevelCacheLogger->clearStats();
806 806
         $this->em->clear();
807 807
 
808
-        $getHash = static function (AbstractQuery $query) {
808
+        $getHash = static function(AbstractQuery $query) {
809 809
             $method = new ReflectionMethod($query, 'getHash');
810 810
             $method->setAccessible(true);
811 811
 
Please login to merge, or discard this patch.