Completed
Pull Request — master (#900)
by Michael
11:10 queued 08:18
created
src/Type/regenerate-parser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
57 57
  */
58 58
 
59 59
 EOS
60
-    . 'final ' . Llk::save($compiler, 'InnerParser')
60
+    . 'final '.Llk::save($compiler, 'InnerParser')
61 61
 );
Please login to merge, or discard this patch.
src/Type/TypeVisitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.