Code Duplication    Length = 3-3 lines in 2 locations

DependencyInjection/JMSSerializerExtension.php 2 locations

@@ 188-190 (lines=3) @@
185
            if (isset($config['default_context'][$configKey]['serialize_null'])) {
186
                $contextFactory->addMethodCall('setSerializeNulls', [$config['default_context'][$configKey]['serialize_null']]);
187
            }
188
            if (!empty($config['default_context'][$configKey]['attributes'])) {
189
                $contextFactory->addMethodCall('setAttributes', [$config['default_context'][$configKey]['attributes']]);
190
            }
191
            if (!empty($config['default_context'][$configKey]['groups'])) {
192
                $contextFactory->addMethodCall('setGroups', [$config['default_context'][$configKey]['groups']]);
193
            }
@@ 191-193 (lines=3) @@
188
            if (!empty($config['default_context'][$configKey]['attributes'])) {
189
                $contextFactory->addMethodCall('setAttributes', [$config['default_context'][$configKey]['attributes']]);
190
            }
191
            if (!empty($config['default_context'][$configKey]['groups'])) {
192
                $contextFactory->addMethodCall('setGroups', [$config['default_context'][$configKey]['groups']]);
193
            }
194
            if (!empty($config['default_context'][$configKey]['enable_max_depth_checks'])) {
195
                $contextFactory->addMethodCall('enableMaxDepthChecks');
196
            }