Code Duplication    Length = 8-9 lines in 2 locations

src/MetadataBuilder.php 2 locations

@@ 274-281 (lines=8) @@
271
                $this->generator->tabs++;
272
273
                // Process constructor arguments
274
                foreach ($constructorArguments as $argument => $dependency) {
275
                    $this->buildResolverArgument($dependency);
276
277
                    // Add comma if this is not last dependency
278
                    if (++$i < $argumentsCount) {
279
                        $this->generator->text(',');
280
                    }
281
                }
282
283
                // Restore indentation
284
                $this->generator->tabs--;
@@ 370-378 (lines=9) @@
367
368
                $i = 0;
369
                // Iterate method arguments
370
                foreach ($methodMetadata->dependencies as $argument => $dependency) {
371
                    // Add dependencies
372
                    $this->buildResolverArgument($dependency);
373
374
                    // Add comma if this is not last dependency
375
                    if (++$i < $argumentsCount) {
376
                        $this->generator->text(',');
377
                    }
378
                }
379
380
                $this->generator->decreaseIndentation()->newLine(');');
381
            }