Code Duplication    Length = 10-10 lines in 2 locations

src/URI.php 2 locations

@@ 145-154 (lines=10) @@
142
				// no break
143
144
			case static::AUTHORITY:
145
			case static::USERNAME:
146
				$username = $this->getUserInfo();
147
148
				if ($username && $this->getHost()) {
149
					$result .= static::DELIMITER_AUTHORITY . $username . static::DELIMITER_USER;
150
				}
151
152
				if ($end === static::USERNAME) {
153
					break;
154
				}
155
156
				// no break
157
@@ 173-182 (lines=10) @@
170
171
				// no break
172
173
			case static::PORT:
174
				$port = $this->getPort();
175
176
				if ($port !== null && $this->getHost()) {
177
					$result .= static::DELIMITER_PORT . $port;
178
				}
179
180
				if ($end === static::PORT || $end === static::AUTHORITY) {
181
					break;
182
				}
183
184
				// no break
185