Skip to content

Commit 1c2279b

Browse files
committed
QA: Compress whitespace
1 parent 12e517b commit 1c2279b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/php/lang/ast/emit/CallablesAsClosures.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ protected function emitCallable($result, $callable) {
2727
// Create closure
2828
$t= $result->temp();
2929
$result->out->write('function(...'.$t.')');
30-
$use && $result->out->write('use($'.implode(', $', array_keys($use)).')');
30+
$use && $result->out->write('use($'.implode(',$', array_keys($use)).')');
3131
$result->out->write('{ return ');
3232
$this->emitOne($result, $callable->expression);
33-
$result->out->write('(... '.$t.'); }');
33+
$result->out->write('(...'.$t.'); }');
3434
}
3535
}

src/main/php/lang/ast/emit/PHP.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,9 +990,9 @@ protected function emitNewClass($result, $new) {
990990

991991
protected function emitCallable($result, $callable) {
992992
$t= $result->temp();
993-
$result->out->write('fn(...'.$t.') => ');
993+
$result->out->write('fn(...'.$t.')=>');
994994
$this->emitOne($result, $callable->expression);
995-
$result->out->write('(... '.$t.')');
995+
$result->out->write('(...'.$t.')');
996996
}
997997

998998
protected function emitInvoke($result, $invoke) {

0 commit comments

Comments
 (0)