Code Duplication    Length = 11-11 lines in 2 locations

src/MetadataBuilder.php 2 locations

@@ 298-308 (lines=11) @@
295
             * Iterate all properties and create internal scope reflection class instance if
296
             * at least one property in not public
297
             */
298
            foreach ($classMetadata->propertiesMetadata as $propertyMetadata) {
299
                if (!$propertyMetadata->isPublic) {
300
                    $this->generator
301
                        ->newLine()
302
                        ->comment('Create reflection class for injecting private/protected properties and methods')
303
                        ->newLine($reflectionVariable . ' = new \ReflectionClass(\'' . $className . '\');')
304
                        ->newLine();
305
306
                    break;
307
                }
308
            }
309
310
            /**
311
             * Iterate all properties and create internal scope reflection class instance if
@@ 314-324 (lines=11) @@
311
             * Iterate all properties and create internal scope reflection class instance if
312
             * at least one property in not public
313
             */
314
            foreach ($classMetadata->methodsMetadata as $methodMetadata) {
315
                if (!$methodMetadata->isPublic) {
316
                    $this->generator
317
                        ->newLine()
318
                        ->comment('Create reflection class for injecting private/protected properties and methods')
319
                        ->newLine($reflectionVariable . ' = new \ReflectionClass(\'' . $className . '\');')
320
                        ->newLine();
321
322
                    break;
323
                }
324
            }
325
326
            // Process class properties
327
            foreach ($classMetadata->propertiesMetadata as $property) {