Code Duplication    Length = 5-5 lines in 2 locations

DependencyInjection/CrudsEntitiesConfigurator.php 2 locations

@@ 84-88 (lines=5) @@
81
            $factory = new Reference($this->filterReference($factory));
82
        }
83
84
        if (null === $processor) {
85
            $processor = new Reference('cruds.processor.property_access');
86
        } else {
87
            $processor = new Reference($this->filterReference($processor));
88
        }
89
90
        $definition = new Definition(CreateController::class);
91
        $definition->setArguments(
@@ 141-145 (lines=5) @@
138
139
    public function registerUpdateAction($name, $path, $repository, $processor, $manager)
140
    {
141
        if (null === $processor) {
142
            $processor = new Reference('cruds.processor.property_access');
143
        } else {
144
            $processor = new Reference($this->filterReference($processor));
145
        }
146
147
        $definition = new Definition(UpdateController::class);
148
        $definition->setArguments(