From 17896368b524421630ed8202ff368339a0f9090e Mon Sep 17 00:00:00 2001
From: funadmin <994927909@qq.com>
Date: Tue, 19 Jul 2022 14:46:11 +0800
Subject: [PATCH] Update FormHelper.php

---
 src/helper/FormHelper.php | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/helper/FormHelper.php b/src/helper/FormHelper.php
index 6afeb2f..aeb2025 100644
--- a/src/helper/FormHelper.php
+++ b/src/helper/FormHelper.php
@@ -187,9 +187,7 @@ public static function switchs($name = '', $switch=[], $options = [], $value = '
      */
     public static function checkbox($name = '', $list = [], $options = [], $value = '')
     {
-        if (empty($value)) {
-            $value = $name;
-        }
+        if (empty($value)) $value = $name;
         if (is_string($value) && strpos($value, "\n") !== false) $value = explode("\n", $value);
         if (is_string($value) && strpos($value, ",") !== false) $value = explode(",", $value);
         if (is_string($value) && strpos($value, "|") !== false) $value = explode("|", $value);
@@ -202,11 +200,8 @@ public static function checkbox($name = '', $list = [], $options = [], $value =
             && strpos($value, ",") === false
             && strpos($value, "|") === false
         ) $value = explode(",", $value);
-        $input = '';
-        $skin = '';
-        if (isset($options['skin'])) {
-            $skin = 'lay-skin="' . $options['skin'] . '"';
-        }
+        $input = '';$skin = '';
+        if (isset($options['skin'])) $skin = 'lay-skin="' . $options['skin'] . '"';
         if (is_array($list) and $list) {
             foreach ($list as $k => $v) {
                 if (is_string($v) && strpos($v, ':') !== false) {