Code Duplication    Length = 8-8 lines in 4 locations

includes/libs/filebackend/FileBackend.php 4 locations

@@ 818-825 (lines=8) @@
815
	 *   - bypassReadOnly : allow writes in read-only mode (since 1.20)
816
	 * @return StatusValue
817
	 */
818
	final public function prepare( array $params ) {
819
		if ( empty( $params['bypassReadOnly'] ) && $this->isReadOnly() ) {
820
			return $this->newStatus( 'backend-fail-readonly', $this->name, $this->readOnly );
821
		}
822
		/** @noinspection PhpUnusedLocalVariableInspection */
823
		$scope = $this->getScopedPHPBehaviorForOps(); // try to ignore client aborts
824
		return $this->doPrepare( $params );
825
	}
826
827
	/**
828
	 * @see FileBackend::prepare()
@@ 849-856 (lines=8) @@
846
	 *   - bypassReadOnly : allow writes in read-only mode (since 1.20)
847
	 * @return StatusValue
848
	 */
849
	final public function secure( array $params ) {
850
		if ( empty( $params['bypassReadOnly'] ) && $this->isReadOnly() ) {
851
			return $this->newStatus( 'backend-fail-readonly', $this->name, $this->readOnly );
852
		}
853
		/** @noinspection PhpUnusedLocalVariableInspection */
854
		$scope = $this->getScopedPHPBehaviorForOps(); // try to ignore client aborts
855
		return $this->doSecure( $params );
856
	}
857
858
	/**
859
	 * @see FileBackend::secure()
@@ 882-889 (lines=8) @@
879
	 * @return StatusValue
880
	 * @since 1.20
881
	 */
882
	final public function publish( array $params ) {
883
		if ( empty( $params['bypassReadOnly'] ) && $this->isReadOnly() ) {
884
			return $this->newStatus( 'backend-fail-readonly', $this->name, $this->readOnly );
885
		}
886
		/** @noinspection PhpUnusedLocalVariableInspection */
887
		$scope = $this->getScopedPHPBehaviorForOps(); // try to ignore client aborts
888
		return $this->doPublish( $params );
889
	}
890
891
	/**
892
	 * @see FileBackend::publish()
@@ 908-915 (lines=8) @@
905
	 *   - bypassReadOnly : allow writes in read-only mode (since 1.20)
906
	 * @return StatusValue
907
	 */
908
	final public function clean( array $params ) {
909
		if ( empty( $params['bypassReadOnly'] ) && $this->isReadOnly() ) {
910
			return $this->newStatus( 'backend-fail-readonly', $this->name, $this->readOnly );
911
		}
912
		/** @noinspection PhpUnusedLocalVariableInspection */
913
		$scope = $this->getScopedPHPBehaviorForOps(); // try to ignore client aborts
914
		return $this->doClean( $params );
915
	}
916
917
	/**
918
	 * @see FileBackend::clean()