Passed
Push — master ( 8919ea...bcbbc0 )
by Chris
12:09
created
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.
php/hamle/Field/Button.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
 
38 38
   function isClicked()
39 39
   {
40
-    return isset($_REQUEST[$this->form . '_' . $this->name]);
40
+    return isset($_REQUEST[$this->form.'_'.$this->name]);
41 41
   }
42 42
 }
Please login to merge, or discard this patch.
php/hamle/Field/Checkbox.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
     if (!is_null($this->setValue)) {
50 50
       return $this->setValue;
51 51
     }
52
-    if (isset($_REQUEST[$this->form . '__submit'])) {
53
-      return isset($_REQUEST[$this->form . '_' . $this->name]);
52
+    if (isset($_REQUEST[$this->form.'__submit'])) {
53
+      return isset($_REQUEST[$this->form.'_'.$this->name]);
54 54
     }
55 55
     return $this->opt['default'];
56 56
   }
Please login to merge, or discard this patch.
php/hamle/TextNode/ScopeName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
   public function toPHP(): string
35 35
   {
36
-    $o = 'Hamle\\Scope::getName(' . Text::varToCode($this->name) . ')';
36
+    $o = 'Hamle\\Scope::getName('.Text::varToCode($this->name).')';
37 37
     if ($this->immediate) {
38 38
       $o = $this->immediate->apply($o);
39 39
     }
Please login to merge, or discard this patch.
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/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/Tag/Form.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,10 +122,10 @@
 block discarded – undo
122 122
       $this->addChild($input = new DynHtml('input', [], [], '', $n));
123 123
       $f->getInputAttStatic($input->opt, $input->type, $input->content);
124 124
     }
125
-    return '<form ' .
126
-      implode(' ', $out) .
127
-      "><?php \$form = " .
128
-      $this->var->toPHP() .
125
+    return '<form '.
126
+      implode(' ', $out).
127
+      "><?php \$form = ".
128
+      $this->var->toPHP().
129 129
       "; \$form->process(); ?>";
130 130
   }
131 131
 
Please login to merge, or discard this patch.
php/hamle/Tag/Comment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
   {
48 48
     if ($this->commentstyle == 'HTML') {
49 49
       if (count($this->content) > 1) {
50
-        return $pad . '  ' . implode("\n$pad", $this->content) . "\n";
50
+        return $pad.'  '.implode("\n$pad", $this->content)."\n";
51 51
       } else {
52 52
         return current($this->content);
53 53
       }
Please login to merge, or discard this patch.