Code Duplication    Length = 5-8 lines in 2 locations

includes/libs/filebackend/SwiftFileBackend.php 2 locations

@@ 930-934 (lines=5) @@
927
		// $objects will contain a list of unfiltered names or CF_Object items
928
		// Non-recursive: only list files right under $dir
929
		if ( !empty( $params['topOnly'] ) ) {
930
			if ( !empty( $params['adviseStat'] ) ) {
931
				$status = $this->objectListing( $fullCont, 'info', $limit, $after, $prefix, '/' );
932
			} else {
933
				$status = $this->objectListing( $fullCont, 'names', $limit, $after, $prefix, '/' );
934
			}
935
		} else {
936
			// Recursive: list all files under $dir and its subdirs
937
			if ( !empty( $params['adviseStat'] ) ) {
@@ 935-942 (lines=8) @@
932
			} else {
933
				$status = $this->objectListing( $fullCont, 'names', $limit, $after, $prefix, '/' );
934
			}
935
		} else {
936
			// Recursive: list all files under $dir and its subdirs
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
		}
943
944
		// Reformat this list into a list of (name, stat array or null) entries
945
		if ( !$status->isOK() ) {