Code Duplication    Length = 12-14 lines in 2 locations

ConnectionFactory.php 2 locations

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