Code Duplication    Length = 5-8 lines in 2 locations

includes/filebackend/SwiftFileBackend.php 2 locations

@@ 937-941 (lines=5) @@
934
		// $objects will contain a list of unfiltered names or CF_Object items
935
		// Non-recursive: only list files right under $dir
936
		if ( !empty( $params['topOnly'] ) ) {
937
			if ( !empty( $params['adviseStat'] ) ) {
938
				$status = $this->objectListing( $fullCont, 'info', $limit, $after, $prefix, '/' );
939
			} else {
940
				$status = $this->objectListing( $fullCont, 'names', $limit, $after, $prefix, '/' );
941
			}
942
		} else {
943
			// Recursive: list all files under $dir and its subdirs
944
			if ( !empty( $params['adviseStat'] ) ) {
@@ 942-949 (lines=8) @@
939
			} else {
940
				$status = $this->objectListing( $fullCont, 'names', $limit, $after, $prefix, '/' );
941
			}
942
		} else {
943
			// Recursive: list all files under $dir and its subdirs
944
			if ( !empty( $params['adviseStat'] ) ) {
945
				$status = $this->objectListing( $fullCont, 'info', $limit, $after, $prefix );
946
			} else {
947
				$status = $this->objectListing( $fullCont, 'names', $limit, $after, $prefix );
948
			}
949
		}
950
951
		// Reformat this list into a list of (name, stat array or null) entries
952
		if ( !$status->isOK() ) {