mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
PHP < 7 compat
Don't use token name for function name Remove return typehint Remove parameter typehints
This commit is contained in:
@@ -40,7 +40,7 @@ final class Lines
|
||||
}
|
||||
|
||||
/** @return self */
|
||||
public static function empty()
|
||||
public static function none()
|
||||
{
|
||||
return new self([], 0);
|
||||
}
|
||||
@@ -94,7 +94,7 @@ final class Lines
|
||||
}
|
||||
|
||||
/** @return bool */
|
||||
public function containsBlankLines(): bool
|
||||
public function containsBlankLines()
|
||||
{
|
||||
return $this->containsBlankLines;
|
||||
}
|
||||
@@ -122,8 +122,12 @@ final class Lines
|
||||
return $Lines;
|
||||
}
|
||||
|
||||
/** @return Lines */
|
||||
public function appendingTextLines(string $text, int $indentOffset)
|
||||
/**
|
||||
* @param string $text
|
||||
* @param int $indentOffset
|
||||
* @return Lines
|
||||
*/
|
||||
public function appendingTextLines($text, $indentOffset)
|
||||
{
|
||||
$Lines = clone($this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user