Passed
Pull Request — master (#6887)
by Grégoire
12:33
created
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.
Tests/ORM/Mapping/php/Doctrine.Tests.Models.DDC869.DDC869Payment.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,16 +5,16 @@
 block discarded – undo
5 5
 
6 6
 $metadata->mapField(
7 7
     [
8
-   'id'         => true,
9
-   'fieldName'  => 'id',
10
-   'type'       => 'integer',
11
-   'columnName' => 'id',
8
+    'id'         => true,
9
+    'fieldName'  => 'id',
10
+    'type'       => 'integer',
11
+    'columnName' => 'id',
12 12
     ]
13 13
 );
14 14
 $metadata->mapField(
15 15
     [
16
-   'fieldName'  => 'value',
17
-   'type'       => 'float',
16
+    'fieldName'  => 'value',
17
+    'type'       => 'float',
18 18
     ]
19 19
 );
20 20
 $metadata->isMappedSuperclass = true;
Please login to merge, or discard this patch.
Tests/ORM/Mapping/php/Doctrine.Tests.Models.DDC5934.DDC5934BaseContract.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 use Doctrine\ORM\Mapping\ClassMetadata;
4 4
 
5 5
 $metadata->mapField([
6
-   'id'         => true,
7
-   'fieldName'  => 'id',
8
-   'type'       => 'integer',
9
-   'columnName' => 'id',
6
+    'id'         => true,
7
+    'fieldName'  => 'id',
8
+    'type'       => 'integer',
9
+    'columnName' => 'id',
10 10
 ]);
11 11
 
12 12
 $metadata->mapManyToMany([
Please login to merge, or discard this patch.
Tests/ORM/Mapping/php/Doctrine.Tests.Models.DDC869.DDC869ChequePayment.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'  => 'serialNumber',
5
-   'type'       => 'string',
4
+    'fieldName'  => 'serialNumber',
5
+    'type'       => 'string',
6 6
     ]
7 7
 );
Please login to merge, or discard this patch.
php/Doctrine.Tests.Models.DDC1476.DDC1476EntityWithDefaultFieldType.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 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
 $metadata->mapField(
12 12
     [
13
-   'fieldName'  => 'name'
13
+    'fieldName'  => 'name'
14 14
     ]
15 15
 );
16 16
 $metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_NONE);
Please login to merge, or discard this patch.
Tests/ORM/Mapping/php/Doctrine.Tests.Models.Company.CompanyPerson.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 $metadata->setPrimaryTable(
6 6
     [
7
-   'name' => 'company_person',
7
+    'name' => 'company_person',
8 8
     ]
9 9
 );
10 10
 
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
     'entities'  => [
32 32
         [
33 33
         'fields' => [
34
-          [
34
+            [
35 35
             'name'      => 'id',
36 36
             'column'    => 'id',
37
-          ],
38
-          [
37
+            ],
38
+            [
39 39
             'name'      => 'name',
40 40
             'column'    => 'name',
41
-          ],
41
+            ],
42 42
         ],
43 43
         'entityClass' => CompanyPerson::class,
44 44
         'discriminatorColumn' => 'discriminator',
Please login to merge, or discard this patch.
Tests/ORM/Mapping/php/Doctrine.Tests.Models.DDC889.DDC889SuperClass.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 
6 6
 $metadata->mapField(
7 7
     [
8
-   'fieldName'  => 'name',
9
-   'type'       => 'string',
8
+    'fieldName'  => 'name',
9
+    'type'       => 'string',
10 10
     ]
11 11
 );
12 12
 $metadata->isMappedSuperclass = true;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.User.php 1 patch
Indentation   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 $metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_NONE);
9 9
 $metadata->setPrimaryTable(
10 10
     [
11
-   'name' => 'cms_users',
11
+    'name' => 'cms_users',
12 12
     ]
13 13
 );
14 14
 $metadata->setChangeTrackingPolicy(ClassMetadataInfo::CHANGETRACKING_DEFERRED_IMPLICIT);
@@ -23,30 +23,30 @@  discard block
 block discarded – undo
23 23
 );
24 24
 $metadata->mapField(
25 25
     [
26
-   'id' => true,
27
-   'fieldName' => 'id',
28
-   'type' => 'integer',
29
-   'columnName' => 'id',
30
-   'options' => ['foo' => 'bar', 'unsigned' => false],
26
+    'id' => true,
27
+    'fieldName' => 'id',
28
+    'type' => 'integer',
29
+    'columnName' => 'id',
30
+    'options' => ['foo' => 'bar', 'unsigned' => false],
31 31
     ]
32 32
 );
33 33
 $metadata->mapField(
34 34
     [
35
-   'fieldName' => 'name',
36
-   'type' => 'string',
37
-   'length' => 50,
38
-   'unique' => true,
39
-   'nullable' => true,
40
-   'columnName' => 'name',
41
-   'options' => ['foo' => 'bar', 'baz' => ['key' => 'val'], 'fixed' => false],
35
+    'fieldName' => 'name',
36
+    'type' => 'string',
37
+    'length' => 50,
38
+    'unique' => true,
39
+    'nullable' => true,
40
+    'columnName' => 'name',
41
+    'options' => ['foo' => 'bar', 'baz' => ['key' => 'val'], 'fixed' => false],
42 42
     ]
43 43
 );
44 44
 $metadata->mapField(
45 45
     [
46
-   'fieldName' => 'email',
47
-   'type' => 'string',
48
-   'columnName' => 'user_email',
49
-   'columnDefinition' => 'CHAR(32) NOT NULL',
46
+    'fieldName' => 'email',
47
+    'type' => 'string',
48
+    'columnName' => 'user_email',
49
+    'columnDefinition' => 'CHAR(32) NOT NULL',
50 50
     ]
51 51
 );
52 52
 $mapping = ['fieldName' => 'version', 'type' => 'integer'];
@@ -55,60 +55,60 @@  discard block
 block discarded – undo
55 55
 $metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_AUTO);
56 56
 $metadata->mapOneToOne(
57 57
     [
58
-   'fieldName' => 'address',
59
-   'targetEntity' => Address::class,
60
-   'cascade' =>
61
-   [
62
-   0 => 'remove',
63
-   ],
64
-   'mappedBy' => NULL,
65
-   'inversedBy' => 'user',
66
-   'joinColumns' =>
67
-   [
68
-   0 =>
69
-   [
58
+    'fieldName' => 'address',
59
+    'targetEntity' => Address::class,
60
+    'cascade' =>
61
+    [
62
+    0 => 'remove',
63
+    ],
64
+    'mappedBy' => NULL,
65
+    'inversedBy' => 'user',
66
+    'joinColumns' =>
67
+    [
68
+    0 =>
69
+    [
70 70
     'name' => 'address_id',
71 71
     'referencedColumnName' => 'id',
72 72
     'onDelete' => 'CASCADE',
73
-   ],
74
-   ],
75
-   'orphanRemoval' => false,
73
+    ],
74
+    ],
75
+    'orphanRemoval' => false,
76 76
     ]
77 77
 );
78 78
 $metadata->mapOneToMany(
79 79
     [
80
-   'fieldName' => 'phonenumbers',
81
-   'targetEntity' => Phonenumber::class,
82
-   'cascade' =>
83
-   [
84
-   1 => 'persist',
85
-   ],
86
-   'mappedBy' => 'user',
87
-   'orphanRemoval' => true,
88
-   'orderBy' =>
89
-   [
90
-   'number' => 'ASC',
91
-   ],
80
+    'fieldName' => 'phonenumbers',
81
+    'targetEntity' => Phonenumber::class,
82
+    'cascade' =>
83
+    [
84
+    1 => 'persist',
85
+    ],
86
+    'mappedBy' => 'user',
87
+    'orphanRemoval' => true,
88
+    'orderBy' =>
89
+    [
90
+    'number' => 'ASC',
91
+    ],
92 92
     ]
93 93
 );
94 94
 $metadata->mapManyToMany(
95 95
     [
96
-   'fieldName' => 'groups',
97
-   'targetEntity' => Group::class,
98
-   'cascade' =>
99
-   [
100
-   0 => 'remove',
101
-   1 => 'persist',
102
-   2 => 'refresh',
103
-   3 => 'merge',
104
-   4 => 'detach',
105
-   ],
106
-   'mappedBy' => NULL,
107
-   'joinTable' =>
108
-   [
109
-   'name' => 'cms_users_groups',
110
-   'joinColumns' =>
111
-   [
96
+    'fieldName' => 'groups',
97
+    'targetEntity' => Group::class,
98
+    'cascade' =>
99
+    [
100
+    0 => 'remove',
101
+    1 => 'persist',
102
+    2 => 'refresh',
103
+    3 => 'merge',
104
+    4 => 'detach',
105
+    ],
106
+    'mappedBy' => NULL,
107
+    'joinTable' =>
108
+    [
109
+    'name' => 'cms_users_groups',
110
+    'joinColumns' =>
111
+    [
112 112
     0 =>
113 113
     [
114 114
     'name' => 'user_id',
@@ -116,18 +116,18 @@  discard block
 block discarded – undo
116 116
     'unique' => false,
117 117
     'nullable' => false,
118 118
     ],
119
-   ],
120
-   'inverseJoinColumns' =>
121
-   [
119
+    ],
120
+    'inverseJoinColumns' =>
121
+    [
122 122
     0 =>
123 123
     [
124 124
     'name' => 'group_id',
125 125
     'referencedColumnName' => 'id',
126 126
     'columnDefinition' => 'INT NULL',
127 127
     ],
128
-   ],
129
-   ],
130
-   'orderBy' => NULL,
128
+    ],
129
+    ],
130
+    'orderBy' => NULL,
131 131
     ]
132 132
 );
133 133
 $metadata->table['options'] = [
Please login to merge, or discard this patch.