| @@ -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> | 
| @@ -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); | 
| @@ -69,7 +69,9 @@ | ||
| 69 | 69 | */ | 
| 70 | 70 | public function get(string $key) | 
| 71 | 71 |      { | 
| 72 | - if ( ! isset($this->storage[$key])) return; | |
| 72 | +        if ( ! isset($this->storage[$key])) { | |
| 73 | + return; | |
| 74 | + } | |
| 73 | 75 | |
| 74 | 76 | $item = $this->storage[$key]; | 
| 75 | 77 | |
| @@ -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), | 
| @@ -241,7 +241,9 @@ discard block | ||
| 241 | 241 | } | 
| 242 | 242 | |
| 243 | 243 |  		foreach ($array as $key => $value) {  | 
| 244 | - if ($callback($value, $key)) return $value; | |
| 244 | +			if ($callback($value, $key)) { | |
| 245 | + return $value; | |
| 246 | + } | |
| 245 | 247 | } | 
| 246 | 248 | |
| 247 | 249 | return value($default); | 
| @@ -315,9 +317,13 @@ discard block | ||
| 315 | 317 | */ | 
| 316 | 318 | public static function has(array $array, string $key): bool | 
| 317 | 319 |  	{ | 
| 318 | - if (empty($array) || is_null($key)) return false; | |
| 320 | +		if (empty($array) || is_null($key)) { | |
| 321 | + return false; | |
| 322 | + } | |
| 319 | 323 | |
| 320 | - if (static::exists($array, $key)) return true; | |
| 324 | +		if (static::exists($array, $key)) { | |
| 325 | + return true; | |
| 326 | + } | |
| 321 | 327 | |
| 322 | 328 |  		$segments = explode('.', $key); | 
| 323 | 329 | |
| @@ -50,7 +50,9 @@ | ||
| 50 | 50 | */ | 
| 51 | 51 | function data_get($target, string|array $key, mixed $default = null) | 
| 52 | 52 |      { | 
| 53 | - if (is_null($key)) return $target; | |
| 53 | +        if (is_null($key)) { | |
| 54 | + return $target; | |
| 55 | + } | |
| 54 | 56 | |
| 55 | 57 |          $key = is_array($key) ? $key : explode('.', $key); | 
| 56 | 58 | |
| @@ -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 | /** | 
| @@ -116,7 +116,9 @@ | ||
| 116 | 116 | $this->table = $table; | 
| 117 | 117 | $this->prefix = $prefix; | 
| 118 | 118 | |
| 119 | - if ( ! is_null($callback)) $callback($this); | |
| 119 | +        if ( ! is_null($callback)) { | |
| 120 | + $callback($this); | |
| 121 | + } | |
| 120 | 122 | } | 
| 121 | 123 | |
| 122 | 124 | /** |