Code Duplication    Length = 11-11 lines in 2 locations

includes/filerepo/file/ArchivedFile.php 1 location

@@ 426-436 (lines=11) @@
423
	 * documents which aren't multipage documents
424
	 * @return bool|int
425
	 */
426
	function pageCount() {
427
		if ( !isset( $this->pageCount ) ) {
428
			// @FIXME: callers expect File objects
429
			if ( $this->getHandler() && $this->handler->isMultiPage( $this ) ) {
430
				$this->pageCount = $this->handler->pageCount( $this );
431
			} else {
432
				$this->pageCount = false;
433
			}
434
		}
435
436
		return $this->pageCount;
437
	}
438
439
	/**

includes/filerepo/file/File.php 1 location

@@ 1968-1978 (lines=11) @@
1965
	 *
1966
	 * @return bool|int
1967
	 */
1968
	function pageCount() {
1969
		if ( !isset( $this->pageCount ) ) {
1970
			if ( $this->getHandler() && $this->handler->isMultiPage( $this ) ) {
1971
				$this->pageCount = $this->handler->pageCount( $this );
1972
			} else {
1973
				$this->pageCount = false;
1974
			}
1975
		}
1976
1977
		return $this->pageCount;
1978
	}
1979
1980
	/**
1981
	 * Calculate the height of a thumbnail using the source and destination width