PHP-YUI-Compressor icon indicating copy to clipboard operation
PHP-YUI-Compressor copied to clipboard

Added default paths, exceptions, and php5 oop

Open davidsteinsland opened this issue 12 years ago • 3 comments

Also removed the newline implosion. The whole idea is to compress the input, not make it larger again.

davidsteinsland avatar Feb 14 '13 13:02 davidsteinsland

NEVER EVER use this syntax

$var = []; 

INSTEAD OF

$var = array();
  • it's NOT valid php 5 .... it's php 5.4 ONLY
  • most IDE's can't handle it, so its harder to spot/refactor/etc..
  • its not backward compatible

DerDu avatar Mar 13 '13 08:03 DerDu

True that, but seeing that PHP 5.4 is out in its 12th release, I don't see the problem. My opinion is that PHP 5.4 should be standard on most hosts now, but you are free to merge anything you want.

davidsteinsland avatar Mar 13 '13 08:03 davidsteinsland

re: newline implosion see the 'linebreak' option (the --line-break option) the idea is to return the output that the command line returns (if it's returning "\n"s we shouldn't remove them) and to maintain the linebreaks in the verbose output

bkdotcom avatar Jul 25 '13 18:07 bkdotcom