1
0
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:
Aidan Woods 2019-01-20 15:14:57 +00:00
parent 351a68a14c
commit e4ed4da626
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
10 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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