Code Duplication    Length = 12-14 lines in 2 locations

ConnectionFactory.php 2 locations

@@ 119-130 (lines=12) @@
116
            // Attribute is missing, make sure a type that doesn't require a comment is marked as commented
117
            // This is deprecated behaviour that will be dropped in 2.0.
118
            if ($typeConfig['commented'] === null) {
119
                if (! $requiresSQLCommentHint) {
120
                    @trigger_error(
121
                        sprintf(
122
                            'The type "%s" was implicitly marked as commented due to the configuration. This is deprecated and will be removed in DoctrineBundle 2.0. Either set the "commented" attribute in the configuration to "false" or mark the type as commented in "%s::requiresSQLCommentHint()."',
123
                            $typeName,
124
                            get_class($type)
125
                        ),
126
                        E_USER_DEPRECATED
127
                    );
128
129
                    $platform->markDoctrineTypeCommented($type);
130
                }
131
132
                continue;
133
            }
@@ 137-150 (lines=14) @@
134
135
            // The following logic generates appropriate deprecation notices telling the user how to update their type configuration.
136
            if ($typeConfig['commented']) {
137
                if (! $requiresSQLCommentHint) {
138
                    @trigger_error(
139
                        sprintf(
140
                            'The type "%s" was marked as commented in its configuration but not in the type itself. This is deprecated and will be removed in DoctrineBundle 2.0. Please update the return value of "%s::requiresSQLCommentHint()."',
141
                            $typeName,
142
                            get_class($type)
143
                        ),
144
                        E_USER_DEPRECATED
145
                    );
146
147
                    $platform->markDoctrineTypeCommented($type);
148
149
                    continue;
150
                }
151
152
                @trigger_error(
153
                    sprintf(