diff --git a/src/Entity/HelpTopic.php b/src/Entity/HelpTopic.php index daa019a..f1eb1a5 100644 --- a/src/Entity/HelpTopic.php +++ b/src/Entity/HelpTopic.php @@ -372,7 +372,7 @@ class HelpTopic extends ConfigEntityBase implements HelpTopicInterface { $chunks = []; foreach ($node->childNodes as $node) { - switch($node->nodeType) { + switch ($node->nodeType) { case XML_ELEMENT_NODE: if (!$node->hasChildNodes()) { // It's an empty element, so just add it to the prefix for the diff --git a/src/Form/HelpTopicForm.php b/src/Form/HelpTopicForm.php index 7c72e38..b62b22f 100644 --- a/src/Form/HelpTopicForm.php +++ b/src/Form/HelpTopicForm.php @@ -9,7 +9,6 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ThemeHandlerInterface; -use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Language\LanguageInterface; use Symfony\Component\DependencyInjection\ContainerInterface; diff --git a/src/HelpTopicInterface.php b/src/HelpTopicInterface.php index 80b669d..93ff7f5 100644 --- a/src/HelpTopicInterface.php +++ b/src/HelpTopicInterface.php @@ -25,7 +25,8 @@ interface HelpTopicInterface extends ConfigEntityInterface { * @param string $body * The HTML-formatted body to save in the topic. * - * @throws \Drupal\Core\Config\ConfigValueException if the HTML is malformed. + * @throws \Drupal\Core\Config\ConfigValueException + * If the HTML is malformed. */ public function setBody($body);