Skip to content

Commit

Permalink
Make method private
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Sep 17, 2024
1 parent b14b182 commit e445f1a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/CronBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ public function __construct(Environment $twig = null)
$this->context = new Context();
}

/**
* @param 'begin'|'end' $type
*/
public function getParsedDelimiter(string $type): string
{
if ('begin' === $type) {
return $this->parse('###> ' . $this->delimiter . ' ###');
}

return $this->parse('###< ' . $this->delimiter . ' ###');
}

/**
* @param non-empty-string $delimiter
*/
Expand Down Expand Up @@ -181,4 +169,16 @@ private function parse(string $value): string
{
return $this->twig->createTemplate($value)->render($this->context->toArray());
}

/**
* @param 'begin'|'end' $type
*/
private function getParsedDelimiter(string $type): string
{
if ('begin' === $type) {
return $this->parse('###> ' . $this->delimiter . ' ###');
}

return $this->parse('###< ' . $this->delimiter . ' ###');
}
}

0 comments on commit e445f1a

Please sign in to comment.