Code Duplication    Length = 6-6 lines in 5 locations

src/Builder/Builder.php 5 locations

@@ 92-97 (lines=6) @@
89
        $indent = 0;
90
        $tags = $docBlock->getTagsByName($tag);
91
        switch ($tag) {
92
            case 'return':
93
                if (sizeof($tags) === 0) continue;
94
                /** @var Return_ $return */
95
                $return = $tags[0];
96
                $this->addIndentMultiline($indent, ':returns: ' . $return->getType() . ' ' . RstBuilder::escape($return->getDescription()), true);
97
                break;
98
            case 'throws':
99
                if (sizeof($tags) === 0) continue;
100
                /** @var Throws $return */
@@ 98-103 (lines=6) @@
95
                $return = $tags[0];
96
                $this->addIndentMultiline($indent, ':returns: ' . $return->getType() . ' ' . RstBuilder::escape($return->getDescription()), true);
97
                break;
98
            case 'throws':
99
                if (sizeof($tags) === 0) continue;
100
                /** @var Throws $return */
101
                $return = $tags[0];
102
                $this->addIndentMultiline($indent, ':throws: ' . $return->getType() . ' ' . RstBuilder::escape($return->getDescription()), true);
103
                break;
104
            case 'since':
105
                if (sizeof($tags) === 0) continue;
106
                /** @var Since $return */
@@ 104-109 (lines=6) @@
101
                $return = $tags[0];
102
                $this->addIndentMultiline($indent, ':throws: ' . $return->getType() . ' ' . RstBuilder::escape($return->getDescription()), true);
103
                break;
104
            case 'since':
105
                if (sizeof($tags) === 0) continue;
106
                /** @var Since $return */
107
                $return = $tags[0];
108
                $this->addIndentMultiline($indent, ':since: ' . $return->getVersion() . ' ' . RstBuilder::escape($return->getDescription()), true);
109
                break;
110
            case 'deprecated':
111
                if (sizeof($tags) === 0) continue;
112
                /** @var Deprecated $return */
@@ 110-115 (lines=6) @@
107
                $return = $tags[0];
108
                $this->addIndentMultiline($indent, ':since: ' . $return->getVersion() . ' ' . RstBuilder::escape($return->getDescription()), true);
109
                break;
110
            case 'deprecated':
111
                if (sizeof($tags) === 0) continue;
112
                /** @var Deprecated $return */
113
                $return = $tags[0];
114
                $this->addIndentMultiline($indent, ':deprecated: ' . $return->getVersion() . ' ' . RstBuilder::escape($return->getDescription()), true);
115
                break;
116
            case 'see':
117
                if (sizeof($tags) === 0) continue;
118
                /** @var See $return */
@@ 116-121 (lines=6) @@
113
                $return = $tags[0];
114
                $this->addIndentMultiline($indent, ':deprecated: ' . $return->getVersion() . ' ' . RstBuilder::escape($return->getDescription()), true);
115
                break;
116
            case 'see':
117
                if (sizeof($tags) === 0) continue;
118
                /** @var See $return */
119
                $return = $tags[0];
120
                $this->addIndentMultiline($indent, ':see: ' . $return->getReference() . ' ' . RstBuilder::escape($return->getDescription()), true);
121
                break;
122
            case 'license':
123
                if (sizeof($tags) === 0) continue;
124
                /** @var DocBlock\Tags\BaseTag $return */