@@ -64,6 +64,7 @@ public function __construct(
6464 /**
6565 * @param NodeWalkerEvent $commonMarkEvent
6666 * @return $this
67+ * @throws DispatcherException
6768 */
6869 public function dispatchMarkdomEvent (NodeWalkerEvent $ commonMarkEvent )
6970 {
@@ -202,7 +203,7 @@ private function transmitContainerBeginEvent(Node $node)
202203 break ;
203204 case DocumentProcessor::BLOCK_NODE_HTML_BLOCK :
204205 /** @var HtmlBlock $node */
205- if ($ node ->getType () == $ node ::TYPE_2_COMMENT ) {
206+ if ($ node ->getType () === $ node ::TYPE_2_COMMENT ) {
206207 $ this ->dispatchBlockBeginEvents (BlockType::TYPE_COMMENT );
207208 $ comment = $ node ->getStringContent ();
208209 if (mb_strpos ($ comment , '<!-- ' ) === 0 ) {
@@ -244,7 +245,7 @@ private function transmitContainerBeginEvent(Node $node)
244245 break ;
245246 case DocumentProcessor::BLOCK_NODE_LIST_BLOCK :
246247 /** @var ListBlock $node */
247- $ ordered = $ node ->getListData ()->type == ListBlock::TYPE_ORDERED ;
248+ $ ordered = $ node ->getListData ()->type === ListBlock::TYPE_ORDERED ;
248249 if ($ ordered ) {
249250 $ startIndex = $ node ->getListData ()->start ;
250251 $ this ->dispatchBlockBeginEvents (BlockType::TYPE_ORDERED_LIST );
@@ -315,7 +316,7 @@ private function transmitContainerEndEvent(Node $node)
315316 break ;
316317 case DocumentProcessor::BLOCK_NODE_HTML_BLOCK :
317318 /** @var HtmlBlock $node */
318- if ($ node ->getType () == $ node ::TYPE_2_COMMENT ) {
319+ if ($ node ->getType () === $ node ::TYPE_2_COMMENT ) {
319320 $ this ->dispatchBlockEndEvents ($ node , BlockType::TYPE_COMMENT );
320321 }
321322 break ;
@@ -336,7 +337,7 @@ private function transmitContainerEndEvent(Node $node)
336337 case DocumentProcessor::BLOCK_NODE_LIST_BLOCK :
337338 /** @var ListBlock $node */
338339 $ this ->markdomHandler ->onListItemsEnd ();
339- $ ordered = $ node ->getListData ()->type == ListBlock::TYPE_ORDERED ;
340+ $ ordered = $ node ->getListData ()->type === ListBlock::TYPE_ORDERED ;
340341 if ($ ordered ) {
341342 $ startIndex = $ node ->getListData ()->start ;
342343 $ this ->markdomHandler ->onOrderedListBlockEnd ($ startIndex );
@@ -393,7 +394,7 @@ private function transmitInlineBeginEvent(Node $node)
393394 case DocumentProcessor::INLINE_NODE_NEWLINE :
394395 $ this ->dispatchContentBeginEvents (ContentType::TYPE_LINE_BREAK );
395396 /** @var Newline $node */
396- $ hard = $ node ->getType () == Newline::HARDBREAK ;
397+ $ hard = $ node ->getType () === Newline::HARDBREAK ;
397398 $ this ->markdomHandler ->onLineBreakContent ($ hard );
398399 break ;
399400 case DocumentProcessor::INLINE_NODE_TEXT :
0 commit comments