Failed Conditions
Pull Request — 2.6 (#7119)
by
unknown
09:21
created
lib/Doctrine/ORM/Tools/SchemaTool.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                             $targetEntity = current(
224 224
                                 array_filter(
225 225
                                     $classes,
226
-                                    function (ClassMetadata $class) use ($idMapping) : bool {
226
+                                    function(ClassMetadata $class) use ($idMapping) : bool {
227 227
                                         return $class->name === $idMapping['targetEntity'];
228 228
                                     }
229 229
                                 )
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
             foreach ($class->discriminatorMap as $value => $className) {
402 402
                 $values[] = $this->platform->quoteStringLiteral($value);
403 403
             }
404
-            $column->setCustomSchemaOption('check', 'CHECK (' . $discrColumn['name'] . ' IN (' . implode(',', $values) . '))');
404
+            $column->setCustomSchemaOption('check', 'CHECK ('.$discrColumn['name'].' IN ('.implode(',', $values).'))');
405 405
         }
406 406
     }
407 407
 
@@ -662,8 +662,8 @@  discard block
 block discarded – undo
662 662
 
663 663
             if ( ! $definingClass) {
664 664
                 throw new \Doctrine\ORM\ORMException(
665
-                    'Column name `' . $joinColumn['referencedColumnName'] . '` referenced for relation from '
666
-                    . $mapping['sourceEntity'] . ' towards ' . $mapping['targetEntity'] . ' does not exist.'
665
+                    'Column name `'.$joinColumn['referencedColumnName'].'` referenced for relation from '
666
+                    . $mapping['sourceEntity'].' towards '.$mapping['targetEntity'].' does not exist.'
667 667
                 );
668 668
             }
669 669
 
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
                 if ($table->hasPrimaryKey()) {
850 850
                     $columns = $table->getPrimaryKey()->getColumns();
851 851
                     if (count($columns) == 1) {
852
-                        $checkSequence = $table->getName() . '_' . $columns[0] . '_seq';
852
+                        $checkSequence = $table->getName().'_'.$columns[0].'_seq';
853 853
                         if ($fullSchema->hasSequence($checkSequence)) {
854 854
                             $visitor->acceptSequence($fullSchema->getSequence($checkSequence));
855 855
                         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2842Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
                     $this->_em->getClassMetadata(DC2842Owner::class)
23 23
                 ]
24 24
             );
25
-        } catch(\Exception $ignore) {
25
+        } catch (\Exception $ignore) {
26 26
 
27 27
         }
28 28
     }
Please login to merge, or discard this patch.