From 57632f38fbe3b0e91b5173e54174e9e537142589 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Fri, 25 Jan 2019 20:19:18 +0000 Subject: [PATCH] More meaningful method name --- src/Configurables/BlockTypes.php | 2 +- src/Configurables/InlineTypes.php | 2 +- src/Parsedown.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Configurables/BlockTypes.php b/src/Configurables/BlockTypes.php index a3eed8a..cafe0ae 100644 --- a/src/Configurables/BlockTypes.php +++ b/src/Configurables/BlockTypes.php @@ -104,7 +104,7 @@ final class BlockTypes implements Configurable * @param string $marker * @return class-string[] */ - public function get($marker) + public function markedBy($marker) { if (isset($this->blockTypes[$marker])) { return $this->blockTypes[$marker]; diff --git a/src/Configurables/InlineTypes.php b/src/Configurables/InlineTypes.php index 0ac34de..f056eb3 100644 --- a/src/Configurables/InlineTypes.php +++ b/src/Configurables/InlineTypes.php @@ -63,7 +63,7 @@ final class InlineTypes implements Configurable * @param string $marker * @return class-string[] */ - public function get($marker) + public function markedBy($marker) { if (isset($this->inlineTypes[$marker])) { return $this->inlineTypes[$marker]; diff --git a/src/Parsedown.php b/src/Parsedown.php index 8a62af1..0be001f 100644 --- a/src/Parsedown.php +++ b/src/Parsedown.php @@ -104,7 +104,7 @@ final class Parsedown $potentialBlockTypes = \array_merge( $this->State->get(BlockTypes::class)->unmarked(), - $this->State->get(BlockTypes::class)->get($marker) + $this->State->get(BlockTypes::class)->markedBy($marker) ); foreach ($potentialBlockTypes as $blockType) { @@ -186,7 +186,7 @@ final class Parsedown ) { $marker = \substr($Excerpt->text(), 0, 1); - foreach ($InlineTypes->get($marker) as $inlineType) { + foreach ($InlineTypes->markedBy($marker) as $inlineType) { # check to see if the current inline type is nestable in the current context $Inline = $inlineType::build($Excerpt, $this->State);