mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
More keyword related fixes for pre PHP 7
This commit is contained in:
parent
351a68a14c
commit
e4ed4da626
@ -62,7 +62,7 @@ final class BlockQuote implements ContinuableBlock
|
||||
* @param Context $Context
|
||||
* @return self|null
|
||||
*/
|
||||
public function continue(Context $Context)
|
||||
public function advance(Context $Context)
|
||||
{
|
||||
if ($this->interrupted) {
|
||||
return null;
|
||||
|
@ -58,7 +58,7 @@ final class Comment implements ContinuableBlock
|
||||
* @param Context $Context
|
||||
* @return self|null
|
||||
*/
|
||||
public function continue(Context $Context)
|
||||
public function advance(Context $Context)
|
||||
{
|
||||
if ($this->isClosed) {
|
||||
return null;
|
||||
|
@ -78,7 +78,7 @@ final class FencedCode implements ContinuableBlock
|
||||
* @param Context $Context
|
||||
* @return self|null
|
||||
*/
|
||||
public function continue(Context $Context)
|
||||
public function advance(Context $Context)
|
||||
{
|
||||
if ($this->isComplete) {
|
||||
return null;
|
||||
|
@ -52,7 +52,7 @@ final class IndentedCode implements ContinuableBlock
|
||||
* @param Context $Context
|
||||
* @return self|null
|
||||
*/
|
||||
public function continue(Context $Context)
|
||||
public function advance(Context $Context)
|
||||
{
|
||||
if ($Context->line()->indent() < 4) {
|
||||
return null;
|
||||
|
@ -57,7 +57,7 @@ final class Markup implements ContinuableBlock
|
||||
* @param Context $Context
|
||||
* @return self|null
|
||||
*/
|
||||
public function continue(Context $Context)
|
||||
public function advance(Context $Context)
|
||||
{
|
||||
if ($this->interrupted) {
|
||||
return null;
|
||||
|
@ -44,7 +44,7 @@ final class Paragraph implements ContinuableBlock
|
||||
* @param Context $Context
|
||||
* @return self|null
|
||||
*/
|
||||
public function continue(Context $Context)
|
||||
public function advance(Context $Context)
|
||||
{
|
||||
if ($this->interrupted) {
|
||||
return null;
|
||||
|
@ -150,7 +150,7 @@ final class TList implements ContinuableBlock
|
||||
* @param Context $Context
|
||||
* @return self|null
|
||||
*/
|
||||
public function continue(Context $Context)
|
||||
public function advance(Context $Context)
|
||||
{
|
||||
if ($this->interrupted and \end($this->Lis)->isEmpty()) {
|
||||
return null;
|
||||
|
@ -95,7 +95,7 @@ final class Table implements ContinuableBlock
|
||||
* @param Context $Context
|
||||
* @return self|null
|
||||
*/
|
||||
public function continue(Context $Context)
|
||||
public function advance(Context $Context)
|
||||
{
|
||||
if ($Context->previousEmptyLines() > 0) {
|
||||
return null;
|
||||
|
@ -10,7 +10,7 @@ interface ContinuableBlock extends Block
|
||||
* @param Context $Context
|
||||
* @return static|null
|
||||
*/
|
||||
public function continue(Context $Context);
|
||||
public function advance(Context $Context);
|
||||
|
||||
/**
|
||||
* @param bool $isInterrupted
|
||||
|
@ -152,7 +152,7 @@ final class Parsedown
|
||||
&& $CurrentBlock instanceof ContinuableBlock
|
||||
&& ! $CurrentBlock instanceof Paragraph
|
||||
) {
|
||||
$Block = $CurrentBlock->continue($Context);
|
||||
$Block = $CurrentBlock->advance($Context);
|
||||
|
||||
if (isset($Block)) {
|
||||
$CurrentBlock = $Block;
|
||||
@ -201,7 +201,7 @@ final class Parsedown
|
||||
# ~
|
||||
|
||||
if (isset($CurrentBlock) and $CurrentBlock instanceof Paragraph) {
|
||||
$Block = $CurrentBlock->continue($Context);
|
||||
$Block = $CurrentBlock->advance($Context);
|
||||
}
|
||||
|
||||
if (isset($Block)) {
|
||||
|
Loading…
Reference in New Issue
Block a user