Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
196 | 196 |
197 // ensure that number is really printed as float | 197 // ensure that number is really printed as float |
198 return preg_match('/^-?[0-9]+$/', $stringValue) ? $stringValue . '.0' : $stringValue; | 198 return preg_match('/^-?[0-9]+$/', $stringValue) ? $stringValue . '.0' : $stringValue; |
199 } | 199 } |
200 | 200 |
201 protected function pScalar_EncapsedStringPart(Scalar\EncapsedStringPart $node) { | |
202 throw new \LogicException('Cannot directly print EncapsedStringPart'); | |
203 } | |
204 | |
201 // Assignments | 205 // Assignments |
202 | 206 |
203 protected function pExpr_Assign(Expr\Assign $node) { | 207 protected function pExpr_Assign(Expr\Assign $node) { |
204 return $this->pInfixOp(Expr\Assign::class, $node->var, ' = ', $node->expr); | 208 return $this->pInfixOp(Expr\Assign::class, $node->var, ' = ', $node->expr); |
205 } | 209 } |