@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | $escaped = $token === 'apostrophed_string' ? "'" : '"'; |
| 56 | 56 | |
| 57 | - return str_replace($escaped . $escaped, $escaped, $value); |
|
| 57 | + return str_replace($escaped.$escaped, $escaped, $value); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | private function visitCompoundType(TreeNode $element, ?int &$handle, ?int $eldnah) : array |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | return [ |
| 66 | 66 | 'name' => $nameToken->getValueValue(), |
| 67 | 67 | 'params' => array_map( |
| 68 | - function (TreeNode $node) use ($handle, $eldnah) { |
|
| 68 | + function(TreeNode $node) use ($handle, $eldnah) { |
|
| 69 | 69 | return $node->accept($this, $handle, $eldnah); |
| 70 | 70 | }, |
| 71 | 71 | $children |
@@ -22,12 +22,12 @@ discard block |
||
| 22 | 22 | use Hoa\Compiler\Llk\Llk; |
| 23 | 23 | use Hoa\File\Read; |
| 24 | 24 | |
| 25 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 25 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 26 | 26 | |
| 27 | -$compiler = Llk::load(new Read(__DIR__ . '/grammar.pp')); |
|
| 27 | +$compiler = Llk::load(new Read(__DIR__.'/grammar.pp')); |
|
| 28 | 28 | |
| 29 | 29 | file_put_contents( |
| 30 | - __DIR__ . '/InnerParser.php', |
|
| 30 | + __DIR__.'/InnerParser.php', |
|
| 31 | 31 | <<<EOS |
| 32 | 32 | <?php |
| 33 | 33 | |
@@ -57,5 +57,5 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | |
| 59 | 59 | EOS |
| 60 | - . 'final ' . Llk::save($compiler, 'InnerParser') |
|
| 60 | + . 'final '.Llk::save($compiler, 'InnerParser') |
|
| 61 | 61 | ); |