mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Use standard library over while loop
This commit is contained in:
parent
2faba6fef5
commit
c45e41950f
@ -199,12 +199,7 @@ class Parsedown
|
||||
}
|
||||
}
|
||||
|
||||
$indent = 0;
|
||||
|
||||
while (isset($line[$indent]) and $line[$indent] === ' ')
|
||||
{
|
||||
$indent ++;
|
||||
}
|
||||
$indent = strspn($line, ' ');
|
||||
|
||||
$text = $indent > 0 ? substr($line, $indent) : $line;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user