1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

More meaningful method name

This commit is contained in:
Aidan Woods 2019-01-25 20:19:18 +00:00
parent 5e7fb61879
commit 57632f38fb
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
3 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,7 @@ final class BlockTypes implements Configurable
* @param string $marker
* @return class-string<Block>[]
*/
public function get($marker)
public function markedBy($marker)
{
if (isset($this->blockTypes[$marker])) {
return $this->blockTypes[$marker];

View File

@ -63,7 +63,7 @@ final class InlineTypes implements Configurable
* @param string $marker
* @return class-string<Inline>[]
*/
public function get($marker)
public function markedBy($marker)
{
if (isset($this->inlineTypes[$marker])) {
return $this->inlineTypes[$marker];

View File

@ -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);