Code style: break up long lines user/dbs/qp_fix
authorDan Scott <dscott@laurentian.ca>
Thu, 13 Sep 2012 13:28:08 +0000 (09:28 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 13 Sep 2012 13:28:08 +0000 (09:28 -0400)
commit810772ef3a33655411b6158f6ede56b19320f671
tree9e4e16c9fb10cb9e909730e7751aa1fdb4a8d60a
parentda6dd5ee9c2cb144f860bdf7c7105bad714eaeb3
Code style: break up long lines

For lines blowing past the 100-char width barrier, take a couple of
approaches:

  * Use the "x" operator to multiply strings, rather than explicitly
    copy the space operator over and over
  * Try to keep long lines broken at a natural point once you get
    in the vicinity of 80 chars

Also, for extremely long lines, it becomes much more legible to put the
conditional test at the start, rather than appending it to the end;
otherwise you have to read all of the way through the line before
realizing that the line doesn't apply to your case because of the
appended condition.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm