@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | function setup() |
| 48 | 48 | { |
| 49 | 49 | throw new Exception\RunTime( |
| 50 | - 'You must configure the form in the setup ' . |
|
| 50 | + 'You must configure the form in the setup '. |
|
| 51 | 51 | "function, by adding fields to the \$this->fields array", |
| 52 | 52 | ); |
| 53 | 53 | } |
@@ -132,15 +132,15 @@ discard block |
||
| 132 | 132 | if (!is_null($this->setValue)) { |
| 133 | 133 | return $this->setValue; |
| 134 | 134 | } |
| 135 | - if (isset($_REQUEST[$this->form . '_' . $this->name])) { |
|
| 136 | - return $_REQUEST[$this->form . '_' . $this->name]; |
|
| 135 | + if (isset($_REQUEST[$this->form.'_'.$this->name])) { |
|
| 136 | + return $_REQUEST[$this->form.'_'.$this->name]; |
|
| 137 | 137 | } |
| 138 | 138 | return $this->opt['default']; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | function getInputAttStatic(&$atts, &$type, &$content) |
| 142 | 142 | { |
| 143 | - $atts['id'] = $atts['name'] = $this->form . '_' . $this->name; |
|
| 143 | + $atts['id'] = $atts['name'] = $this->form.'_'.$this->name; |
|
| 144 | 144 | $atts['type'] = 'text'; |
| 145 | 145 | $atts['class'][] = str_replace( |
| 146 | 146 | ['Seufert\\', '\\'], |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | ['', '_'], |
| 175 | 175 | get_class($this), |
| 176 | 176 | ); |
| 177 | - $atts['for'] = $this->form . '_' . $this->name; |
|
| 177 | + $atts['for'] = $this->form.'_'.$this->name; |
|
| 178 | 178 | $content = [$this->opt['label']]; |
| 179 | 179 | } |
| 180 | 180 | |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | { |
| 159 | 159 | $ind = $minify ? '' : str_pad('', $indent); |
| 160 | 160 | $oneliner = !(count($this->content) > 1 || $this->tags); |
| 161 | - $out = $ind . $this->renderStTag() . ($oneliner || $minify ? '' : "\n"); |
|
| 161 | + $out = $ind.$this->renderStTag().($oneliner || $minify ? '' : "\n"); |
|
| 162 | 162 | if ($this->content) { |
| 163 | 163 | $out .= $this->renderContent($ind, $oneliner || $minify); |
| 164 | 164 | } |
@@ -166,8 +166,8 @@ discard block |
||
| 166 | 166 | $out .= $tag->render($indent + self::INDENT_SIZE, $minify); |
| 167 | 167 | } |
| 168 | 168 | $out .= |
| 169 | - ($minify || $oneliner ? '' : $ind) . |
|
| 170 | - $this->renderEnTag() . |
|
| 169 | + ($minify || $oneliner ? '' : $ind). |
|
| 170 | + $this->renderEnTag(). |
|
| 171 | 171 | ($minify ? '' : "\n"); |
| 172 | 172 | return $out; |
| 173 | 173 | } |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | { |
| 184 | 184 | $out = ''; |
| 185 | 185 | foreach ($this->content as $c) { |
| 186 | - $out .= ($oneliner ? '' : $pad) . $c . ($oneliner ? '' : "\n"); |
|
| 186 | + $out .= ($oneliner ? '' : $pad).$c.($oneliner ? '' : "\n"); |
|
| 187 | 187 | } |
| 188 | 188 | return $out; |
| 189 | 189 | } |
@@ -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 | } |