src/WordpressAttachmentFileResolver.php
public function getFilepathsFromRecord($wpData) {
		if (isset($wpData['guid'])) {
			// NOTE(Jake): Attempts to access cache to avoid function call overhead.
			$files = ($this->_runtime_cache !== null) ? $this->_runtime_cache : $this->getFilesRecursive();
			$basename = basename($wpData['guid']);
			if (isset($files[$basename])) {
				return $files[$basename];
			}
			return false;
		}
		return null;
	}
public function getFilepathsFromRecord($wpData) {
		if (isset($wpData['guid'])) {
			// NOTE(Jake): Attempts to access cache to avoid function call overhead.
			$files = ($this->_runtime_cache !== null) ? $this->_runtime_cache : $this->getFilesRecursive();
			$basename = basename($wpData['guid']);
			if (isset($files[$basename])) {
				return $files[$basename];
			}
			return false;
		}
		return null;
	}
public function getFilepathsFromRecord ( $ wpData ) { if ( isset ( $ wpData [ 'guid' ] ) ) { // NOTE(Jake): Attempts to access cache to avoid function call overhead. $ files = ( $ this -> _runtime_cache !== null ) ? $ this -> _runtime_cache : $ this -> getFilesRecursive ( ) ; $ basename = basename ( $ wpData [ 'guid' ] ) ; if ( isset ( $ files [ $ basename ] ) ) { return $ files [ $ basename ] ; } return false ; } return null ; }
Returns an array of the files that have that basename.

If false = Cannot find file in database or on HDD
If null  = Invalid data/array passed in.

@return array|false|null
Returns an array of the files that have that basename .