@@ -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 | ); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | return $value; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - return str_replace($escapeChar . $escapeChar, $escapeChar, $value); |
|
| 62 | + return str_replace($escapeChar.$escapeChar, $escapeChar, $value); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | private function visitCompoundType(TreeNode $element, ?int &$handle, ?int $eldnah) : array |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | return [ |
| 71 | 71 | 'name' => $nameToken->getValueValue(), |
| 72 | 72 | 'params' => array_map( |
| 73 | - function (TreeNode $node) use ($handle, $eldnah) { |
|
| 73 | + function(TreeNode $node) use ($handle, $eldnah) { |
|
| 74 | 74 | return $node->accept($this, $handle, $eldnah); |
| 75 | 75 | }, |
| 76 | 76 | $parameters |