Code Duplication    Length = 13-13 lines in 2 locations

src/HelloWordPl/SimpleEntityGeneratorBundle/Lib/StructureGenerator.php 2 locations

@@ 157-169 (lines=13) @@
154
            $classManager->setProperties(new ArrayCollection());
155
        }
156
157
        foreach ($classManager->getProperties() as $property) {
158
            if ($property->isTypeBoolean()) {
159
                $methodsForClass->add((new MethodGetterBooleanManager($classManager))->setProperty($property));
160
            }
161
162
            $methodSetterManager = new MethodSetterManager($classManager);
163
            $methodSetterManager->setProperty($property);
164
            $methodGetterManager = new MethodGetterManager($classManager);
165
            $methodGetterManager->setProperty($property);
166
167
            $methodsForClass->add($methodSetterManager);
168
            $methodsForClass->add($methodGetterManager);
169
        }
170
171
        $classManager->setMethods($methodsForClass);
172
@@ 186-198 (lines=13) @@
183
    {
184
        $methodsForInterface = new ArrayCollection();
185
        $classManager = $interface->getClassManager();
186
        foreach ($classManager->getProperties() as $property) {
187
            if ($property->isTypeBoolean()) {
188
                $methodsForInterface->add((new MethodGetterBooleanInterfaceManager($classManager))->setProperty($property));
189
            }
190
191
            $methodSetterInterfaceManager = new MethodSetterInterfaceManager($classManager);
192
            $methodSetterInterfaceManager->setProperty($property);
193
            $methodGetterInterfaceManager = new MethodGetterInterfaceManager($classManager);
194
            $methodGetterInterfaceManager->setProperty($property);
195
196
            $methodsForInterface->add($methodSetterInterfaceManager);
197
            $methodsForInterface->add($methodGetterInterfaceManager);
198
        }
199
200
        $interface->setMethods($methodsForInterface);
201