src/Shell/FixtureCheckShell.php
protected function _compareIndexes(array $fixtureIndexes, array $liveIndexes, $fixtureTable) {
		if (!$fixtureIndexes && !$liveIndexes) {
			return;
		}

		if ($fixtureIndexes === $liveIndexes) {
			return;
		}

		$errors = [];
		foreach ($liveIndexes as $key => $liveIndex) {
			if (!isset($fixtureIndexes[$key])) {
				$errors[] = ' * ' . sprintf('Index %s is missing in fixture', $this->_buildKey($key, $liveIndex));
				continue;
			}

			if ($liveIndex === $fixtureIndexes[$key]) {
				unset($fixtureIndexes[$key]);
				continue;
			}

			$errors[] = ' * ' . sprintf('Live DB index %s is not matching fixture one.', $this->_buildKey($key, $liveIndex));
			unset($fixtureIndexes[$key]);
		}

		foreach ($fixtureIndexes as $key => $fixtureIndex) {
			$errors[] = ' * ' . sprintf('Index %s is in fixture, but not live DB.', $this->_buildKey($key, $fixtureIndex));
		}

		if (!$errors) {
			return;
		}

		$this->warn('The following indexes mismatch:');

		$this->out($errors);
		$this->_issuesFound[] = $fixtureTable;
		$this->out($this->nl(0));
	}
protected function _compareIndexes(array $fixtureIndexes, array $liveIndexes, $fixtureTable) {
		if (!$fixtureIndexes && !$liveIndexes) {
			return;
		}

		if ($fixtureIndexes === $liveIndexes) {
			return;
		}

		$errors = [];
		foreach ($liveIndexes as $key => $liveIndex) {
			if (!isset($fixtureIndexes[$key])) {
				$errors[] = ' * ' . sprintf('Index %s is missing in fixture', $this->_buildKey($key, $liveIndex));
				continue;
			}

			if ($liveIndex === $fixtureIndexes[$key]) {
				unset($fixtureIndexes[$key]);
				continue;
			}

			$errors[] = ' * ' . sprintf('Live DB index %s is not matching fixture one.', $this->_buildKey($key, $liveIndex));
			unset($fixtureIndexes[$key]);
		}

		foreach ($fixtureIndexes as $key => $fixtureIndex) {
			$errors[] = ' * ' . sprintf('Index %s is in fixture, but not live DB.', $this->_buildKey($key, $fixtureIndex));
		}

		if (!$errors) {
			return;
		}

		$this->warn('The following indexes mismatch:');

		$this->out($errors);
		$this->_issuesFound[] = $fixtureTable;
		$this->out($this->nl(0));
	}
Compare the indexes present.

@param array $fixtureIndexes
@param array $liveIndexes
@param string $fixtureTable

@return void