1 (edited by jmas 2011-12-30 04:18:25)

Topic: htmLawed refactoring

Hi! I found your script htmLawed is very interested and functional.
I use it at our company project. And planed to use it at open-source CMS (http://flexo.up.dn.ua/).

But source code of htmLaw is not pretty. We use PEAR Standards of coding and I refactor library to PEAR Standart by http://beta.phpformatter.com/

Refactored source (http://pastebin.com/mMGWkDRf).

And my IDE (phpStorm) informate about 2 error at lines:
861 (Undefined strings $s and $a):

echo '<', $s, $e, $a, '>';

1395 (Undefined string $nm):

$aA[$nm] = '';

1404 (Undefined string $nm):

$aA[$nm] = trim(($m[0] == '"' or $m[0] == '\'') ? substr($m, 1, -1) : $m);

Thank you for good library!

2

Re: htmLawed refactoring

Thank you for informing about the 'undefined' errors. I will put in corrections for them in the next release of htmLawed.