Code cleanup in builder
This commit is contained in:
parent
213997b0d0
commit
9037c31599
@ -58,13 +58,12 @@ class PharBuilder
|
||||
printf("\r\e[K%d/%d %s", $i, $t, $tp);
|
||||
}
|
||||
|
||||
$size_tot += filesize($file->src);
|
||||
if (fnmatch("*.php",$file->src) && (!$verbatim)) {
|
||||
$min = php_strip_whitespace($file->src);
|
||||
$size_tot += filesize($file->src);
|
||||
$size_min += strlen($min);
|
||||
$phar->addFromString($file->dest?:$file->src, $min);
|
||||
} else {
|
||||
$size_tot += filesize($file->src);
|
||||
$size_min += filesize($file->src);
|
||||
$phar->addFile($file->src, $file->dest);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user