{@inheritdoc}

@param File $sniffedFile
@param int  $index

@return void
352271
public function process(File $sniffedFile, $index)
    {
        if ($this->methodNeedsDocBlock($sniffedFile, $index) && !$this->hasMethodDocBlock($sniffedFile, $index))
        {
            $this->addWarning($sniffedFile, $index, 'Methods must have a docblock.');
        }
    }
850182
public function setIndex($index)
    {
        if ($this->index !== $index) {
            $this->index = $index;
            $this->addOrUpdate();
        }
    }
277741
protected function undefinedIndexAcces( $index ) {
		if ( $this->errorStrategy == \Pixel418\Iniliq::ERROR_AS_EXCEPTION ) {
			throw new \Exception( 'Undefined index: ' . $index );
		} else if ( $this->errorStrategy == \Pixel418\Iniliq::ERROR_AS_PHPERROR ) {
			trigger_error( 'Undefined index: ' . $index );
		}
	}
929245
public function shiftUp(int $index) : void
    {
        if ($index + 1 === $this->count()) {
            return;
        }

        $this->swap($index, $index + 1);
    }
83161
private function executeBlock($input, int $index): void
    {
        BlockInterpreter::executeBlock(
            $input,
            $index,
            $this->getBlocks(),
            $this->getContext(),
            $this->getCaptureAggregator(),
            $this->getErrorAggregator()
        );
    }
164084
private function removeExisting(Lucene\Index $index, $hash)
    {
        try {
            $hits = $index->find(self::HASH_FIELDNAME . ':' . $hash);
            foreach ($hits as $hit) {
                $index->delete($hit->id);
            }
        } catch (\Exception $ex) {
            // FIXME no result ???
        }
    }
43058
protected function assertValidConstructor(File $phpCsFile, int $index): void
    {
        $parameters = $phpCsFile->getMethodParameters($index);
        foreach ($parameters as $parameter) {
            if (empty($parameter['type_hint'])) {
                break;
            }

            $fix = $phpCsFile->addFixableError('Bridge constructors must not have typehints.', $parameter['token'], 'InvalidTypehint');
            if (!$fix) {
                break;
            }

            $variableIndex = $parameter['token'];
            $typehintIndex = $phpCsFile->findPrevious([T_STRING, T_NS_SEPARATOR], $variableIndex - 1);
            $firstIndex = $phpCsFile->findPrevious([T_STRING, T_NS_SEPARATOR], $typehintIndex - 1, null, true);

            $phpCsFile->fixer->beginChangeset();
            for ($i = $firstIndex + 1; $i < $variableIndex; $i++) {
                $phpCsFile->fixer->replaceToken($i, '');
            }
            $phpCsFile->fixer->endChangeset();
        }
    }
165610
public function handle(Client $client, $index, $alias, $replace = false)
    {
        $client
            ->getIndex($index)
            ->addAlias($alias, $replace)
        ;
    }
1303197
public function injectIndex(Index $index)
    {
        foreach ($this->_indexes as $_index) {
            if ($_index->getId() === $index->getId()) {
                return;
            }
        }
        $this->_indexes[] = $index;
    }
1043036
public function set($index, $item)
    {
        $this->offsetSet($index, $this->parser->text($item));
    }
689521
public function replacePacket( $index, $packet )
	{
		if( !isset( $this->packetList[$index] ) )
			throw new OutOfRangeException( 'Invalid Packet Index.' );
		$this->packetList[$index]	= $packet;
	}
944765
protected function hierarchicalPopulateDataIntoModules(array $index) : void
    {
        foreach ($index as $moduleName => $relationModule) {
            $this->checkHierarchyForModule($moduleName, $index);
        }
    }
1100603
public function persist(): void
    {
        if (!\file_put_contents($this->indexFilepath, \serialize($this->index), LOCK_EX)) {
            throw new IndexException('Unable to persist index to file: '.$this->indexFilepath); // @codeCoverageIgnore
        }
        $this->status = IndexInterface::STATUS_LOADED;
    }
137398
private function addUsedIndex(string $index)
    {
        // add user index and detect default translate (default: index == translate)
        $this->listUsedIndex[$index] = (isset($this->dictionary[$index]) && $this->dictionary[$index] != $index);
    }
1284500
public function isFile($index)
	{
		if (isset($this->_list[$index])) {
			return ($this->_list[$index]->Type == self::OLE_PPS_TYPE_FILE);
		}
		return false;
	}
1255348
public void write(final AbstractIndex index)
		throws IOException
	{

		StringBuilder cmd;

		while (index.size() > 0) {

			System.out.println("Transmit Index [" + index + "]");

			cmd = index.remove();

			if(index instanceof ArticleIndex){
				articleIdxWriter.write(cmd.toString());
			}else if(index instanceof ChronoIndex){
				chronoIdxWriter.write(cmd.toString());
			}else if(index instanceof RevisionIndex){
				revisionIdxWriter.write(cmd.toString());
			}

		}

		if(index instanceof ArticleIndex){
			articleIdxWriter.flush();
		}else if(index instanceof ChronoIndex){
			chronoIdxWriter.flush();
		}else if(index instanceof RevisionIndex){
			revisionIdxWriter.flush();
		}
	}
288950
private function methodNeedsDocBlock(File $sniffedFile, $index)
    {
        $methodName = $sniffedFile->getDeclarationName($index);

        return !in_array($methodName, $this->methodNamesWithoutNecessaryDocBlock, true);
    }