Changeset 3877:e68b76561491 for build-tools
- Timestamp:
- 09/17/18 05:52:14 (7 years ago)
- Branch:
- default
- Location:
- build-tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
build-tools/Minifier.php
r3874 r3877 24 24 * Usage - Minifier::minify($js); 25 25 * Usage - Minifier::minify($js, $options); 26 * Usage - Minifier::minify($js, ['flaggedComments' => false]);26 * Usage - Minifier::minify($js, array('flaggedComments' => false)); 27 27 * 28 28 * @package JShrink … … 82 82 * @var array 83 83 */ 84 protected static $defaultOptions = ['flaggedComments' => true];84 protected static $defaultOptions = array('flaggedComments' => true); 85 85 86 86 /** … … 90 90 * @var array 91 91 */ 92 protected $locks = [];92 protected $locks = array(); 93 93 94 94 /** … … 101 101 * @return bool|string 102 102 */ 103 public static function minify($js, $options = [])103 public static function minify($js, $options = array()) 104 104 { 105 105 try { … … 552 552 $lock = '"LOCK---' . crc32(time()) . '"'; 553 553 554 $matches = [];554 $matches = array(); 555 555 preg_match('/([+-])(\s+)([+-])/S', $js, $matches); 556 556 if (empty($matches)) { -
build-tools/make-l10n.php
r3874 r3877 18 18 exec($cmd, $eres, $ret); 19 19 20 $res = [];20 $res = array(); 21 21 22 22 foreach ($eres as $f) { -
build-tools/min-js.php
r3874 r3877 20 20 21 21 $content = file_get_contents($js); 22 $res = \JShrink\Minifier::minify($content, ['flaggedComments' => false]);22 $res = \JShrink\Minifier::minify($content, array('flaggedComments' => false)); 23 23 24 24 if (($fp = fopen($js, 'wb')) === false) { -
build-tools/setup.php
r3874 r3877 12 12 $php_exec = $_SERVER['_']; 13 13 14 $opts = [15 'http' => []16 ];14 $opts = array( 15 'http' => array() 16 ); 17 17 if (getenv('http_proxy') !== false) { 18 18 $opts['http']['proxy'] = 'tcp://' . getenv('http_proxy');
Note: See TracChangeset
for help on using the changeset viewer.