Code Duplication    Length = 3-3 lines in 2 locations

projects/packages/changelogger/src/Plugins/SemverVersioning.php 1 location

@@ 161-163 (lines=3) @@
158
		if ( $aa['minor'] !== $bb['minor'] ) {
159
			return $aa['minor'] - $bb['minor'];
160
		}
161
		if ( $aa['patch'] !== $bb['patch'] ) {
162
			return $aa['patch'] - $bb['patch'];
163
		}
164
165
		if ( null === $aa['prerelease'] ) {
166
			return null === $bb['prerelease'] ? 0 : 1;

projects/packages/changelogger/src/Plugins/WordpressVersioning.php 1 location

@@ 171-173 (lines=3) @@
168
			return $aa['major'] < $bb['major'] ? -1 : 1;
169
170
		}
171
		if ( $aa['point'] !== $bb['point'] ) {
172
			return $aa['point'] - $bb['point'];
173
		}
174
175
		list( $aindex, $acount ) = $this->parsePrerelease( $aa['prerelease'] );
176
		list( $bindex, $bcount ) = $this->parsePrerelease( $bb['prerelease'] );