GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#4)
by Rolf
02:35
created
src/TwigJs/Compiler/ForCompiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
             ;
85 85
 
86 86
             if ($count > 0) {
87
-                $parentSuffix = ($count-1 > 0) ? $count - 1 : '';
87
+                $parentSuffix = ($count - 1 > 0) ? $count - 1 : '';
88 88
 
89 89
                 $compiler
90 90
                     ->write("'parent': loop$parentSuffix,\n")
Please login to merge, or discard this patch.
src/TwigJs/Compiler/ModuleCompiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
                     ->write(sprintf("if (!trait_%s.isTraitable()) {\n", $i))
105 105
                     ->indent()
106 106
                     ->write(
107
-                        "throw Error('Template \"' + trait_".$i.".getTemplateName() + " .
107
+                        "throw Error('Template \"' + trait_".$i.".getTemplateName() + ".
108 108
                         "'\" cannot be used as a trait.');\n"
109 109
                     )->outdent()
110 110
                     ->write("}\n")
Please login to merge, or discard this patch.
src/TwigJs/Compiler/Expression/MacroCallCompiler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@
 block discarded – undo
14 14
 
15 15
     public function compile(JsCompiler $compiler, \Twig_NodeInterface $node)
16 16
     {
17
-        if (! $node instanceof \Twig_Node_Expression_MacroCall) {
17
+        if (!$node instanceof \Twig_Node_Expression_MacroCall) {
18 18
             throw new \LogicException(sprintf('This compiler does not support the type "%s".', get_class($node)));
19 19
         }
20 20
 
21 21
         $argsNode = $node->getNode('arguments');
22
-        if (! $argsNode instanceof \Twig_Node_Expression_Array) {
22
+        if (!$argsNode instanceof \Twig_Node_Expression_Array) {
23 23
             throw new \LogicException('Did not find args node.');
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/TwigJs/Compiler/Expression/ArrayCompiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 
94 94
     private function isList(array $pairs)
95 95
     {
96
-        for ($i=0,$c=count($pairs); $i<$c; $i++) {
96
+        for ($i = 0, $c = count($pairs); $i < $c; $i++) {
97 97
             if (!$pairs[$i]['key'] instanceof \Twig_Node_Expression_Constant) {
98 98
                 return false;
99 99
             }
Please login to merge, or discard this patch.