Code Duplication    Length = 12-14 lines in 2 locations

ConnectionFactory.php 2 locations

@@ 120-131 (lines=12) @@
117
            // Attribute is missing, make sure a type that doesn't require a comment is marked as commented
118
            // This is deprecated behaviour that will be dropped in 2.0.
119
            if ($typeConfig['commented'] === null) {
120
                if (! $requiresSQLCommentHint) {
121
                    @trigger_error(
122
                        sprintf(
123
                            '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()."',
124
                            $typeName,
125
                            get_class($type)
126
                        ),
127
                        E_USER_DEPRECATED
128
                    );
129
130
                    $platform->markDoctrineTypeCommented($type);
131
                }
132
133
                continue;
134
            }
@@ 138-151 (lines=14) @@
135
136
            // The following logic generates appropriate deprecation notices telling the user how to update their type configuration.
137
            if ($typeConfig['commented']) {
138
                if (! $requiresSQLCommentHint) {
139
                    @trigger_error(
140
                        sprintf(
141
                            '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()."',
142
                            $typeName,
143
                            get_class($type)
144
                        ),
145
                        E_USER_DEPRECATED
146
                    );
147
148
                    $platform->markDoctrineTypeCommented($type);
149
150
                    continue;
151
                }
152
153
                @trigger_error(
154
                    sprintf(