Code Duplication    Length = 12-14 lines in 2 locations

ConnectionFactory.php 2 locations

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