Code Duplication    Length = 7-7 lines in 2 locations

src/Builder/NamespaceIndexBuilder.php 1 location

@@ 168-174 (lines=7) @@
165
            $args = substr($args, 0, -2);
166
            $this->beginPhpDomain('function', $function->getName() . '(' . $args . ')');
167
            $this->addDocBlockDescription($function);
168
            if (!empty($params)) {
169
                foreach ($function->getArguments() as $argument) {
170
                    /** @var Param $param */
171
                    $param = $params[$argument->getName()];
172
                    if ($param !== null) {
173
                        $this->addMultiline(':param ' . self::escape($param->getType()) . ' $' . $argument->getName() . ': ' . $param->getDescription(), true);
174
                    }
175
                }
176
            }
177
            $this->endPhpDomain('function');

src/Builder/PhpDomainBuilder.php 1 location

@@ 257-263 (lines=7) @@
254
        $this->beginPhpDomain('method', $method->getName() . '(' . $args . ')');
255
        $this->addDocBlockDescription($method);
256
        $this->addLine();
257
        if (!empty($params)) {
258
            foreach ($method->getArguments() as $argument) {
259
                /** @var Param $param */
260
                $param = $params[$argument->getName()];
261
                if ($param !== null) $this->addMultiline(':param ' . self::escape($param->getType()) . ' $' . $argument->getName() . ': ' . $param->getDescription(), true);
262
            }
263
        }
264
        $this->endPhpDomain('method');
265
        $this->unindent();
266
    }