Skip to content

Commit

Permalink
style: corrige identaçao via PSRs
Browse files Browse the repository at this point in the history
  • Loading branch information
valdeir2000 committed Sep 17, 2020
1 parent 0aed4fc commit bdd02e1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ protected function addRow(string $th, string $td = ' ', bool $escapeTd = true):
{
$th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8');
if ($escapeTd) {
$td = '<pre style="white-space: pre-wrap;">'.htmlspecialchars($td, ENT_NOQUOTES, 'UTF-8').'</pre>';
$td = '<pre style="white-space: pre-wrap;">' . htmlspecialchars($td, ENT_NOQUOTES, 'UTF-8') . '</pre>';
}

return "<tr style=\"padding: 4px;text-align: left;\">\n<th style=\"vertical-align: top;background: #ccc;color: #000\" width=\"100\">$th:</th>\n<td style=\"padding: 4px;text-align: left;vertical-align: top;background: #eee;color: #000\">".$td."</td>\n</tr>";
return "<tr style=\"padding: 4px;text-align: left;\">\n" .
"<th style=\"vertical-align: top;background: #ccc;color: #000\" width=\"100\">$th:</th>\n" .
"<td style=\"padding: 4px;text-align: left;vertical-align: top;background: #eee;color: #000\">" .
$td . "</td>\n</tr>";
}

/**
Expand Down Expand Up @@ -48,6 +51,6 @@ public function format(array $record): string
$output .= $this->addRow('Extra', $embeddedTable, false);
}

return $output.'</table></div>';
return $output . '</table></div>';
}
}

0 comments on commit bdd02e1

Please sign in to comment.