| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 74 | 
| Code Lines | 71 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php  | 
            ||
| 60 | private function addResourcesSection(ArrayNodeDefinition $node)  | 
            ||
| 61 |     { | 
            ||
| 62 | $node  | 
            ||
| 63 | ->children()  | 
            ||
| 64 |                 ->arrayNode('resources') | 
            ||
| 65 | ->addDefaultsIfNotSet()  | 
            ||
| 66 | ->children()  | 
            ||
| 67 |                         ->arrayNode('taxon') | 
            ||
| 68 | ->addDefaultsIfNotSet()  | 
            ||
| 69 | ->children()  | 
            ||
| 70 |                                 ->variableNode('options')->end() | 
            ||
| 71 |                                 ->arrayNode('classes') | 
            ||
| 72 | ->addDefaultsIfNotSet()  | 
            ||
| 73 | ->children()  | 
            ||
| 74 |                                         ->scalarNode('model')->defaultValue(Taxon::class)->cannotBeEmpty()->end() | 
            ||
| 75 |                                         ->scalarNode('interface')->defaultValue(TaxonInterface::class)->cannotBeEmpty()->end() | 
            ||
| 76 |                                         ->scalarNode('controller')->defaultValue(ResourceController::class)->cannotBeEmpty()->end() | 
            ||
| 77 |                                         ->scalarNode('repository')->cannotBeEmpty()->end() | 
            ||
| 78 |                                         ->scalarNode('factory')->defaultValue(TranslatableFactory::class)->end() | 
            ||
| 79 |                                         ->arrayNode('form') | 
            ||
| 80 | ->addDefaultsIfNotSet()  | 
            ||
| 81 | ->children()  | 
            ||
| 82 |                                                 ->scalarNode('default')->defaultValue(TaxonType::class)->cannotBeEmpty()->end() | 
            ||
| 83 | ->end()  | 
            ||
| 84 | ->end()  | 
            ||
| 85 | ->end()  | 
            ||
| 86 | ->end()  | 
            ||
| 87 |                                 ->arrayNode('validation_groups') | 
            ||
| 88 | ->addDefaultsIfNotSet()  | 
            ||
| 89 | ->children()  | 
            ||
| 90 |                                         ->arrayNode('default') | 
            ||
| 91 |                                             ->prototype('scalar')->end() | 
            ||
| 92 | ->defaultValue(['sylius'])  | 
            ||
| 93 | ->end()  | 
            ||
| 94 | ->end()  | 
            ||
| 95 | ->end()  | 
            ||
| 96 |                                 ->arrayNode('translation') | 
            ||
| 97 | ->addDefaultsIfNotSet()  | 
            ||
| 98 | ->children()  | 
            ||
| 99 |                                         ->variableNode('options')->end() | 
            ||
| 100 |                                         ->arrayNode('classes') | 
            ||
| 101 | ->addDefaultsIfNotSet()  | 
            ||
| 102 | ->children()  | 
            ||
| 103 |                                                 ->scalarNode('model')->defaultValue(TaxonTranslation::class)->cannotBeEmpty()->end() | 
            ||
| 104 |                                                 ->scalarNode('interface')->defaultValue(TaxonTranslationInterface::class)->cannotBeEmpty()->end() | 
            ||
| 105 |                                                 ->scalarNode('controller')->defaultValue(ResourceController::class)->cannotBeEmpty()->end() | 
            ||
| 106 |                                                 ->scalarNode('repository')->cannotBeEmpty()->end() | 
            ||
| 107 |                                                 ->scalarNode('factory')->defaultValue(Factory::class)->end() | 
            ||
| 108 |                                                 ->arrayNode('form') | 
            ||
| 109 | ->addDefaultsIfNotSet()  | 
            ||
| 110 | ->children()  | 
            ||
| 111 |                                                         ->scalarNode('default')->defaultValue(TaxonTranslationType::class)->cannotBeEmpty()->end() | 
            ||
| 112 | ->end()  | 
            ||
| 113 | ->end()  | 
            ||
| 114 | ->end()  | 
            ||
| 115 | ->end()  | 
            ||
| 116 |                                         ->arrayNode('validation_groups') | 
            ||
| 117 | ->addDefaultsIfNotSet()  | 
            ||
| 118 | ->children()  | 
            ||
| 119 |                                                 ->arrayNode('default') | 
            ||
| 120 |                                                     ->prototype('scalar')->end() | 
            ||
| 121 | ->defaultValue(['sylius'])  | 
            ||
| 122 | ->end()  | 
            ||
| 123 | ->end()  | 
            ||
| 124 | ->end()  | 
            ||
| 125 | ->end()  | 
            ||
| 126 | ->end()  | 
            ||
| 127 | ->end()  | 
            ||
| 128 | ->end()  | 
            ||
| 129 | ->end()  | 
            ||
| 130 | ->end()  | 
            ||
| 131 | ->end()  | 
            ||
| 132 | ;  | 
            ||
| 133 | }  | 
            ||
| 134 | }  | 
            ||
| 135 |