Passed
Pull Request — master (#900)
by Michael
03:15
created
src/Type/TypeVisitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
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.