1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

variable names should express what they represent rather than why they represent it

This commit is contained in:
Emanuil 2013-09-19 23:54:28 +03:00
parent 033c2b78c1
commit f40dbdfb65

View File

@ -121,11 +121,11 @@ class Parsedown
foreach ($lines as $index => $line)
{
# Quick Line
# ~
if (isset($line) and $line !== '' and $line[0] >= 'A')
{
$quick_line = $line;
$simple_line = $line;
unset($line);
}
@ -329,11 +329,11 @@ class Parsedown
# Paragraph
if (isset($quick_line))
if (isset($simple_line))
{
$line = $quick_line;
$line = $simple_line;
unset($quick_line);
unset($simple_line);
}
if (isset($line) and $line !== '')