Code Duplication    Length = 7-8 lines in 2 locations

src/Builder/ClassFileBuilder.php 1 location

@@ 131-137 (lines=7) @@
128
                $this->beginPhpDomain('method', $method->getName() . '(' . $args . ')');
129
                $this->addDocBlockDescription($docBlock);
130
                $this->addLine();
131
                if (!empty($params)) {
132
                    foreach ($method->getArguments() as $argument) {
133
                        /** @var Param $param */
134
                        $param = $params[$argument->getName()];
135
                        if ($param !== null) $this->addMultiline(':param ' . self::escape($param->getType()) . ' $' . $argument->getName() . ': ' . $param->getDescription(), true);
136
                    }
137
                }
138
                $this->endPhpDomain('method');
139
                $this->unindent();
140
            }

src/Builder/TraitFileBuilder.php 1 location

@@ 94-101 (lines=8) @@
91
            $this->indent();
92
            $this->beginPhpDomain('method', $method->getName().'('.$args.')');
93
            $this->addDocBlockDescription($docBlock);
94
            if (!empty($params)) {
95
                foreach ($method->getArguments() as $argument) {
96
                    /** @var Param $param */
97
                    $param = $params[$argument->getName()];
98
                    if ($param !== null)
99
                        $this->addMultiline(':param ' . $param->getType() . ' $' . $argument->getName() . ': ' . $param->getDescription(), true);
100
                }
101
            }
102
            $this->endPhpDomain('method');
103
            $this->unindent();
104