Code Duplication    Length = 8-8 lines in 2 locations

includes/libs/filebackend/SwiftFileBackend.php 2 locations

@@ 568-575 (lines=8) @@
565
566
		// (a) Check if container already exists
567
		$stat = $this->getContainerStat( $fullCont );
568
		if ( is_array( $stat ) ) {
569
			return $status; // already there
570
		} elseif ( $stat === null ) {
571
			$status->fatal( 'backend-fail-internal', $this->name );
572
			$this->logger->error( __METHOD__ . ': cannot get container stat' );
573
574
			return $status;
575
		}
576
577
		// (b) Create container as needed with proper ACLs
578
		if ( $stat === false ) {
@@ 641-648 (lines=8) @@
638
639
		// (a) Check the container
640
		$stat = $this->getContainerStat( $fullCont, true );
641
		if ( $stat === false ) {
642
			return $status; // ok, nothing to do
643
		} elseif ( !is_array( $stat ) ) {
644
			$status->fatal( 'backend-fail-internal', $this->name );
645
			$this->logger->error( __METHOD__ . ': cannot get container stat' );
646
647
			return $status;
648
		}
649
650
		// (b) Delete the container if empty
651
		if ( $stat['count'] == 0 ) {