src/libs/APTitleCapitalizer.php
protected function processFirstSentenceWordsInParts(array $parts)
	{
		$length = count($parts);
		$isFirst = true;
		for ($index = 0; $index < $length; $index++) {
			$part = $parts[$index];
			if ($this->isWordLike($part)) {
				if ($isFirst) {
					$parts[$index] = $this->processFirstLastWord($part);
					$isFirst = false;
				}
				continue;
			}
			if ($this->isSentenceDelimiter($part)) {
				$isFirst = true;
			}
		}
		return $parts;
	}
protected function processFirstSentenceWordsInParts(array $parts)
	{
		$length = count($parts);
		$isFirst = true;
		for ($index = 0; $index < $length; $index++) {
			$part = $parts[$index];
			if ($this->isWordLike($part)) {
				if ($isFirst) {
					$parts[$index] = $this->processFirstLastWord($part);
					$isFirst = false;
				}
				continue;
			}
			if ($this->isSentenceDelimiter($part)) {
				$isFirst = true;
			}
		}
		return $parts;
	}
Processes the first words in any sentences within the given array of
parts.

@param array $parts

@return array