@@ -21,10 +21,13 @@ |
||
| 21 | 21 | <?php endforeach; ?> |
| 22 | 22 | </tbody> |
| 23 | 23 | </table> |
| 24 | - <?php else : ?> |
|
| 24 | + <?php else { |
|
| 25 | + : ?> |
|
| 25 | 26 | <label class="empty"><?= e($label) ?></label> |
| 26 | 27 | <span class="empty"><?= e(__('exception.empty')) ?></span> |
| 27 | - <?php endif; ?> |
|
| 28 | + <?php endif; |
|
| 29 | +} |
|
| 30 | +?> |
|
| 28 | 31 | </div> |
| 29 | 32 | <?php endforeach; ?> |
| 30 | 33 | </div> |
@@ -12,7 +12,8 @@ discard block |
||
| 12 | 12 | <div class="frame-info-class"> |
| 13 | 13 | <?php if ($frame->getClass() == '') : ?> |
| 14 | 14 | <span class="frame-function"><?= e($frame->getFunction()) ?></span> |
| 15 | - <?php else: ?> |
|
| 15 | + <?php else { |
|
| 16 | + : ?> |
|
| 16 | 17 | <span class="frame-class"><?= e($frame->getClass()) ?></span> |
| 17 | 18 | <?php if ($frame->getFunction() != '') : ?> |
| 18 | 19 | <span class="frame-function"><?= e($frame->getFunction()) ?></span> |
@@ -26,5 +27,7 @@ discard block |
||
| 26 | 27 | </div> |
| 27 | 28 | |
| 28 | 29 | </div> |
| 29 | -<?php endforeach; ?> |
|
| 30 | +<?php endforeach; |
|
| 31 | +} |
|
| 32 | +?> |
|
| 30 | 33 | </div> |
| 31 | 34 | \ No newline at end of file |
@@ -4,9 +4,12 @@ |
||
| 4 | 4 | <?php foreach ($class as $i => $name) : ?> |
| 5 | 5 | <?php if ($i == count($class) - 1): ?> |
| 6 | 6 | <h1><?= $template->escape($name) ?></h1> |
| 7 | - <?php else: ?> |
|
| 7 | + <?php else { |
|
| 8 | + : ?> |
|
| 8 | 9 | <?= $template->escape($name).' \\' ?> |
| 9 | - <?php endif; ?> |
|
| 10 | + <?php endif; |
|
| 11 | +} |
|
| 12 | +?> |
|
| 10 | 13 | <?php endforeach; ?> |
| 11 | 14 | <?php if ($code): ?> |
| 12 | 15 | <span class="subtitle" title="Exception Code">(<?= $template->escape($code) ?>)</span> |
@@ -51,7 +51,9 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function get($key) |
| 53 | 53 | { |
| 54 | - if ( ! isset($this->storage[$key])) return; |
|
| 54 | + if ( ! isset($this->storage[$key])) { |
|
| 55 | + return; |
|
| 56 | + } |
|
| 55 | 57 | |
| 56 | 58 | $item = $this->storage[$key]; |
| 57 | 59 | |
@@ -142,8 +142,7 @@ |
||
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | $Quit = $handlerResponse == MainHandler::QUIT && $this->allowQuit(); |
| 145 | - } |
|
| 146 | - finally { |
|
| 145 | + } finally { |
|
| 147 | 146 | // Returns the contents of the output buffer |
| 148 | 147 | $output = $this->system->CleanOutputBuffer(); |
| 149 | 148 | } |
@@ -333,7 +333,9 @@ |
||
| 333 | 333 | |
| 334 | 334 | $vars = $this->collectionVars(); |
| 335 | 335 | |
| 336 | - if (empty($vars['message'])) $vars['message'] = __('exception.noMessage'); |
|
| 336 | + if (empty($vars['message'])) { |
|
| 337 | + $vars['message'] = __('exception.noMessage'); |
|
| 338 | + } |
|
| 337 | 339 | |
| 338 | 340 | $this->template->setVariables($vars); |
| 339 | 341 | $this->template->render($templatePath); |
@@ -90,7 +90,9 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $cache = $this->table()->where('key', '=', $prefixed)->first(); |
| 92 | 92 | |
| 93 | - if (is_null($cache)) return; |
|
| 93 | + if (is_null($cache)) { |
|
| 94 | + return; |
|
| 95 | + } |
|
| 94 | 96 | |
| 95 | 97 | $cache = is_array($cache) ? (object) $cache : $cache; |
| 96 | 98 | |
@@ -200,7 +202,9 @@ discard block |
||
| 200 | 202 | $prefixed = $this->prefix.$key; |
| 201 | 203 | $cache = $this->table()->where('key', $prefixed)->first(); |
| 202 | 204 | |
| 203 | - if (is_null($cache)) return false; |
|
| 205 | + if (is_null($cache)) { |
|
| 206 | + return false; |
|
| 207 | + } |
|
| 204 | 208 | |
| 205 | 209 | $cache = is_array($cache) ? (object) $cache : $cache; |
| 206 | 210 | |
@@ -208,7 +212,9 @@ discard block |
||
| 208 | 212 | |
| 209 | 213 | $result = $callback((int) $current, $value); |
| 210 | 214 | |
| 211 | - if ( ! is_numeric($current)) return false; |
|
| 215 | + if ( ! is_numeric($current)) { |
|
| 216 | + return false; |
|
| 217 | + } |
|
| 212 | 218 | |
| 213 | 219 | $this->table()->where('key', $prefixed)->update([ |
| 214 | 220 | 'value' => $this->serialize($result), |
@@ -55,7 +55,9 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function operatorCallback($key, $operator = null, $value = null) |
| 57 | 57 | { |
| 58 | - if ($this->useAsCallable($key)) return $key; |
|
| 58 | + if ($this->useAsCallable($key)) { |
|
| 59 | + return $key; |
|
| 60 | + } |
|
| 59 | 61 | |
| 60 | 62 | if (func_num_args() === 1) { |
| 61 | 63 | $value = true; |
@@ -885,7 +885,9 @@ |
||
| 885 | 885 | */ |
| 886 | 886 | protected function modifyUnsigned(Dataprint $dataprint, Flowing $column): string |
| 887 | 887 | { |
| 888 | - if ($column->unsigned) return ' unsigned'; |
|
| 888 | + if ($column->unsigned) { |
|
| 889 | + return ' unsigned'; |
|
| 890 | + } |
|
| 889 | 891 | } |
| 890 | 892 | |
| 891 | 893 | /** |