@@ -48,7 +48,7 @@ |
||
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 | /** |
@@ -37,6 +37,6 @@ |
||
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 | } |
@@ -49,8 +49,8 @@ |
||
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 | } |
@@ -33,7 +33,7 @@ |
||
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 | } |
@@ -20,7 +20,7 @@ |
||
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 | } |
@@ -22,7 +22,7 @@ discard block |
||
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 |
||
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 | } |
@@ -40,7 +40,7 @@ discard block |
||
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 |
||
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 | } |
@@ -122,10 +122,10 @@ |
||
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 |
@@ -47,7 +47,7 @@ |
||
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 | } |