Code Duplication    Length = 9-9 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 39-47 (lines=9) @@
36
                    ->isRequired()
37
                    ->validate()
38
                        ->ifString()
39
                        ->then(function ($value) {
40
                            if (!class_exists($value) || !is_a($value, 'Orbitale\Bundle\CmsBundle\Entity\Page', true)) {
41
                                throw new InvalidConfigurationException(sprintf(
42
                                    'Page class must be a valid class extending %s. "%s" given.',
43
                                    'Orbitale\Bundle\CmsBundle\Entity\Page', $value
44
                                ));
45
                            }
46
                            return $value;
47
                        })
48
                    ->end()
49
                ->end()
50
                ->scalarNode('category_class')
@@ 54-62 (lines=9) @@
51
                    ->isRequired()
52
                    ->validate()
53
                        ->ifString()
54
                        ->then(function ($value) {
55
                            if (!class_exists($value) || !is_a($value, 'Orbitale\Bundle\CmsBundle\Entity\Category', true)) {
56
                                throw new InvalidConfigurationException(sprintf(
57
                                    'Category class must be a valid class extending %s. "%s" given.',
58
                                    'Orbitale\Bundle\CmsBundle\Entity\Category', $value
59
                                ));
60
                            }
61
                            return $value;
62
                        })
63
                    ->end()
64
                ->end()
65
                ->arrayNode('layouts')