/** * @param int $lineNumber * * @return bool */ protected function lineUseContinueType($lineNumber) { $lineObject = $this->factory->getDataObject()->getLine($lineNumber); $acceptingContinueTypes = [BlockTypes::BLOCK_LIST]; foreach ($acceptingContinueTypes as $type) { if ($this->lineIsObjectOf($lineObject, $type, true)) { return false; } } return true; }
/** * @param string $lineContent * * @return int|string|bool */ protected function getAvailableTypesByContent($lineContent) { return array_search($lineContent[0], array_keys($this->factory->getBlockPlugins())); }