protected function _getHash($version, $image) {
		if (!empty($version)) {
			$hash = Configure::read('FileStorage.imageHashes.' . $image['model'] . '.' . $version);
			if (empty($hash)) {
				throw new InvalidArgumentException(sprintf('No valid version key (Identifier: `%s` Key: `%s`) passed!', @$image['model'], $version));
			}

			return $hash;
		}

		return null;
	}
protected function _getHash($version, $image) {
		if (!empty($version)) {
			$hash = Configure::read('FileStorage.imageHashes.' . $image['model'] . '.' . $version);
			if (empty($hash)) {
				throw new InvalidArgumentException(sprintf('No valid version key (Identifier: `%s` Key: `%s`) passed!', @$image['model'], $version));
			}

			return $hash;
		}

		return null;
	}
protected function _getHash ( $ version , $ image ) { if ( ! empty ( $ version ) ) { $ hash = Configure :: read ( 'FileStorage.imageHashes.' . $ image [ 'model' ] . '.' . $ version ) ; if ( empty ( $ hash ) ) { throw new InvalidArgumentException ( sprintf ( 'No valid version key (Identifier: `%s` Key: `%s`) passed!' , @ $ image [ 'model' ] , $ version ) ) ; } return $ hash ; } return null ; }
Gets a hash.

@param string $version
@param array $image
@return string|null
Gets a hash .