Completed
Pull Request — 2.6 (#8015)
by
unknown
06:46
created
tests/Doctrine/Tests/ORM/Mapping/AnsiQuoteStrategyTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
         $class->mapField(['fieldName' => 'name', 'columnName' => 'name']);
56 56
         $class->mapField(['fieldName' => 'id', 'columnName' => 'id', 'id' => true]);
57 57
 
58
-        $this->assertEquals('id' ,$this->strategy->getColumnName('id', $class, $this->platform));
59
-        $this->assertEquals('name' ,$this->strategy->getColumnName('name', $class, $this->platform));
58
+        $this->assertEquals('id', $this->strategy->getColumnName('id', $class, $this->platform));
59
+        $this->assertEquals('name', $this->strategy->getColumnName('name', $class, $this->platform));
60 60
     }
61 61
 
62 62
     public function testGetTableName()
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $class = $this->createClassMetadata(CmsUser::class);
65 65
 
66 66
         $class->setPrimaryTable(['name'=>'cms_user']);
67
-        $this->assertEquals('cms_user' ,$this->strategy->getTableName($class, $this->platform));
67
+        $this->assertEquals('cms_user', $this->strategy->getTableName($class, $this->platform));
68 68
     }
69 69
 
70 70
     public function testJoinTableName()
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         );
126 126
 
127 127
         $joinColumn = $class->associationMappings['article']['joinColumns'][0];
128
-        $this->assertEquals('article',$this->strategy->getJoinColumnName($joinColumn, $class, $this->platform));
128
+        $this->assertEquals('article', $this->strategy->getJoinColumnName($joinColumn, $class, $this->platform));
129 129
     }
130 130
 
131 131
     public function testReferencedJoinColumnName()
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         );
147 147
 
148 148
         $joinColumn = $cm->associationMappings['article']['joinColumns'][0];
149
-        $this->assertEquals('id',$this->strategy->getReferencedJoinColumnName($joinColumn, $cm, $this->platform));
149
+        $this->assertEquals('id', $this->strategy->getReferencedJoinColumnName($joinColumn, $cm, $this->platform));
150 150
     }
151 151
 
152 152
     public function testGetSequenceName()
@@ -160,6 +160,6 @@  discard block
 block discarded – undo
160 160
 
161 161
         $class->setSequenceGeneratorDefinition($definition);
162 162
 
163
-        $this->assertEquals('user_id_seq',$this->strategy->getSequenceName($definition, $class, $this->platform));
163
+        $this->assertEquals('user_id_seq', $this->strategy->getSequenceName($definition, $class, $this->platform));
164 164
     }
165 165
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/PHPMappingDriverTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     protected function _loadDriver()
13 13
     {
14
-        $path = __DIR__ . DIRECTORY_SEPARATOR . 'php';
14
+        $path = __DIR__.DIRECTORY_SEPARATOR.'php';
15 15
 
16 16
         // Convert Annotation mapping information to PHP
17 17
         // Uncomment this code if annotations changed and you want to update the PHP code
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.CMS.CmsAddress.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 $metadata->setPrimaryTable(
7 7
     [
8
-   'name' => 'company_person',
8
+    'name' => 'company_person',
9 9
     ]
10 10
 );
11 11
 
@@ -71,18 +71,18 @@  discard block
 block discarded – undo
71 71
     'entities'  => [
72 72
         [
73 73
         'fields' => [
74
-          [
74
+            [
75 75
             'name'      => 'id',
76 76
             'column'    => 'id',
77
-          ],
78
-          [
77
+            ],
78
+            [
79 79
             'name'      => 'city',
80 80
             'column'    => 'city',
81
-          ],
82
-          [
81
+            ],
82
+            [
83 83
             'name'      => 'country',
84 84
             'column'    => 'country',
85
-          ],
85
+            ],
86 86
         ],
87 87
         'entityClass' => CmsAddress::class,
88 88
         ],
Please login to merge, or discard this patch.
Tests/ORM/Mapping/php/Doctrine.Tests.Models.Company.CompanyContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
4 4
 
5 5
 $metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_JOINED);
6
-$metadata->setTableName( 'company_contracts');
6
+$metadata->setTableName('company_contracts');
7 7
 $metadata->setDiscriminatorColumn(
8 8
     [
9 9
     'name' => 'discr',
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.DDC889.DDC889Class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 
5 5
 $metadata->mapField(
6 6
     [
7
-   'id'         => true,
8
-   'fieldName'  => 'id',
9
-   'type'       => 'integer',
10
-   'columnName' => 'id',
7
+    'id'         => true,
8
+    'fieldName'  => 'id',
9
+    'type'       => 'integer',
10
+    'columnName' => 'id',
11 11
     ]
12 12
 );
13 13
 
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.DDC807Entity.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 $metadata->mapField(
6 6
     [
7
-   'id'                 => true,
8
-   'fieldName'          => 'id',
7
+    'id'                 => true,
8
+    'fieldName'          => 'id',
9 9
     ]
10 10
 );
11 11
 
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.DDC1170Entity.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 $metadata->mapField(
6 6
     [
7
-   'id'                 => true,
8
-   'fieldName'          => 'id',
9
-   'columnDefinition'   => 'INT unsigned NOT NULL',
7
+    'id'                 => true,
8
+    'fieldName'          => 'id',
9
+    'columnDefinition'   => 'INT unsigned NOT NULL',
10 10
     ]
11 11
 );
12 12
 
Please login to merge, or discard this patch.
ORM/Mapping/php/Doctrine.Tests.Models.DDC869.DDC869CreditCardPayment.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 $metadata->mapField(
3 3
     [
4
-   'fieldName'  => 'creditCardNumber',
5
-   'type'       => 'string',
4
+    'fieldName'  => 'creditCardNumber',
5
+    'type'       => 'string',
6 6
     ]
7 7
 );
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.Cache.City.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -18,32 +18,32 @@  discard block
 block discarded – undo
18 18
 
19 19
 $metadata->mapField(
20 20
     [
21
-   'fieldName' => 'id',
22
-   'type' => 'integer',
23
-   'id' => true,
21
+    'fieldName' => 'id',
22
+    'type' => 'integer',
23
+    'id' => true,
24 24
     ]
25 25
 );
26 26
 
27 27
 $metadata->mapField(
28 28
     [
29
-   'fieldName' => 'name',
30
-   'type' => 'string',
29
+    'fieldName' => 'name',
30
+    'type' => 'string',
31 31
     ]
32 32
 );
33 33
 
34 34
 
35 35
 $metadata->mapOneToOne(
36 36
     [
37
-   'fieldName'      => 'state',
38
-   'targetEntity'   => State::class,
39
-   'inversedBy'     => 'cities',
40
-   'joinColumns'    =>
41
-   [
42
-       [
37
+    'fieldName'      => 'state',
38
+    'targetEntity'   => State::class,
39
+    'inversedBy'     => 'cities',
40
+    'joinColumns'    =>
41
+    [
42
+        [
43 43
     'name' => 'state_id',
44 44
     'referencedColumnName' => 'id',
45
-       ]
46
-   ]
45
+        ]
46
+    ]
47 47
     ]
48 48
 );
49 49
 $metadata->enableAssociationCache('state', [
@@ -53,18 +53,18 @@  discard block
 block discarded – undo
53 53
 
54 54
 $metadata->mapManyToMany(
55 55
     [
56
-   'fieldName' => 'travels',
57
-   'targetEntity' => Travel::class,
58
-   'mappedBy' => 'visitedCities',
56
+    'fieldName' => 'travels',
57
+    'targetEntity' => Travel::class,
58
+    'mappedBy' => 'visitedCities',
59 59
     ]
60 60
 );
61 61
 
62 62
 $metadata->mapOneToMany(
63 63
     [
64
-   'fieldName' => 'attractions',
65
-   'targetEntity' => Attraction::class,
66
-   'mappedBy' => 'city',
67
-   'orderBy' => ['name' => 'ASC',],
64
+    'fieldName' => 'attractions',
65
+    'targetEntity' => Attraction::class,
66
+    'mappedBy' => 'city',
67
+    'orderBy' => ['name' => 'ASC',],
68 68
     ]
69 69
 );
70 70
 $metadata->enableAssociationCache('attractions', [
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
    'fieldName' => 'attractions',
65 65
    'targetEntity' => Attraction::class,
66 66
    'mappedBy' => 'city',
67
-   'orderBy' => ['name' => 'ASC',],
67
+   'orderBy' => ['name' => 'ASC', ],
68 68
     ]
69 69
 );
70 70
 $metadata->enableAssociationCache('attractions', [
Please login to merge, or discard this patch.