Test Failed
Pull Request — master (#3)
by Chris
02:30
created
php/hamle/TextNode/ModelParam.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
   public function apply(string $out): string
22 22
   {
23
-    $o = "{$out}->hamleGet(" . Text::varToCode($this->name) . ")";
23
+    $o = "{$out}->hamleGet(".Text::varToCode($this->name).")";
24 24
     if ($this->chain) {
25 25
       $o = $this->chain->apply($o);
26 26
     }
Please login to merge, or discard this patch.
php/hamle/TextNode/FilterFunc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     $this->chain = $chain;
23 23
     $this->args = $args;
24 24
     if (method_exists(Filter::class, $func)) {
25
-      $this->func = Filter::class . "::" . $func;
25
+      $this->func = Filter::class."::".$func;
26 26
     } elseif (
27 27
       in_array($func, ["round", "strtoupper", "strtolower", "ucfirst"])
28 28
     ) {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
       $this->args
49 49
     );
50 50
     array_unshift($args, $out);
51
-    $o = "{$this->func}(" . join(",", $args) . ")";
51
+    $o = "{$this->func}(".join(",", $args).")";
52 52
     if ($this->chain) {
53 53
       $o = $this->chain->apply($o);
54 54
     }
Please login to merge, or discard this patch.
php/hamle/TextNode/RelQuery.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     $this->filters = $filters;
21 21
   }
22 22
 
23
-  static function for(string $rel, array $filters)
23
+  static function for (string $rel, array $filters)
24 24
   {
25 25
     return new self(
26 26
       $rel === ">" ? Hamle::REL_CHILD : Hamle::REL_PARENT,
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
   public function apply(string $s): string
32 32
   {
33 33
     $s =
34
-      $s .
35
-      "->hamleRel({$this->rel}," .
36
-      Query::queryParams($this->filters, true) .
34
+      $s.
35
+      "->hamleRel({$this->rel},".
36
+      Query::queryParams($this->filters, true).
37 37
       ")";
38 38
     if ($this->chain) {
39 39
       $s = $this->chain->apply($s);
Please login to merge, or discard this patch.
php/hamle/TextNode/Query.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
       $o = self::queryId($this->filters);
41 41
     } else {
42 42
       $o =
43
-        "Hamle\Run::modelTypeTags(" . self::queryParams($this->filters) . ")";
43
+        "Hamle\Run::modelTypeTags(".self::queryParams($this->filters).")";
44 44
     }
45 45
     if ($this->immediate) {
46 46
       $o = $this->immediate->apply($o);
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
     ];
128 128
     if (!$type || $type === "*") {
129 129
       $opt[0] = Text::varToCode($id);
130
-      return "Hamle\Run::modelId(" . join(",", $opt) . ")";
130
+      return "Hamle\Run::modelId(".join(",", $opt).")";
131 131
     }
132
-    return "Hamle\Run::modelTypeId(" . join(",", $opt) . ")";
132
+    return "Hamle\Run::modelTypeId(".join(",", $opt).")";
133 133
   }
134 134
 }
Please login to merge, or discard this patch.
php/hamle/Setup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     if (!is_dir($dir)) {
49 49
       mkdir($dir);
50 50
     }
51
-    return $dir . $f;
51
+    return $dir.$f;
52 52
   }
53 53
 
54 54
   /**
Please login to merge, or discard this patch.