Code Duplication    Length = 8-8 lines in 2 locations

includes/filebackend/SwiftFileBackend.php 2 locations

@@ 575-582 (lines=8) @@
572
573
		// (a) Check if container already exists
574
		$stat = $this->getContainerStat( $fullCont );
575
		if ( is_array( $stat ) ) {
576
			return $status; // already there
577
		} elseif ( $stat === null ) {
578
			$status->fatal( 'backend-fail-internal', $this->name );
579
			wfDebugLog( 'SwiftBackend', __METHOD__ . ': cannot get container stat' );
580
581
			return $status;
582
		}
583
584
		// (b) Create container as needed with proper ACLs
585
		if ( $stat === false ) {
@@ 648-655 (lines=8) @@
645
646
		// (a) Check the container
647
		$stat = $this->getContainerStat( $fullCont, true );
648
		if ( $stat === false ) {
649
			return $status; // ok, nothing to do
650
		} elseif ( !is_array( $stat ) ) {
651
			$status->fatal( 'backend-fail-internal', $this->name );
652
			wfDebugLog( 'SwiftBackend', __METHOD__ . ': cannot get container stat' );
653
654
			return $status;
655
		}
656
657
		// (b) Delete the container if empty
658
		if ( $stat['count'] == 0 ) {