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