Code Duplication    Length = 3-4 lines in 2 locations

nntmux/NameFixer.php 2 locations

@@ 1062-1065 (lines=4) @@
1059
		if (strlen($this->_fileName) !== false && strlen($this->_fileName) > 0 && strpos($this->_fileName, '.') !== 0) {
1060
			switch (true) {
1061
1062
				case strpos($this->_fileName, '.') !== false:
1063
					//some filenames start with a period that ends up creating bad matches so we don't process them
1064
					$this->_fileName = $this->text->cutStringUsingLast('.', $this->_fileName, "left", false);
1065
					continue;
1066
1067
				//if filename has a .part001, send it back to the function to cut the next period
1068
				case preg_match('/\.part\d+$/', $this->_fileName):
@@ 1078-1080 (lines=3) @@
1075
					continue;
1076
1077
				//if filename contains a slash, cut the string and keep string to the right of the last slash to remove dir
1078
				case strpos($this->_fileName, '\\') !== false:
1079
					$this->_fileName = $this->text->cutStringUsingLast('\\', $this->_fileName, "right", false);
1080
					continue;
1081
1082
				// A lot of obscured releases have one NFO file properly named with a track number (Audio) at the front of it
1083
				// This will strip out the track and match it to its pre title