Browse Source

Apply fixes from StyleCI

Jiang Qinghua 4 years ago
parent
commit
fdf894ba05
3 changed files with 26 additions and 26 deletions
  1. 1 1
      src/Form/Layout.php
  2. 0 1
      src/Layout/Asset.php
  3. 25 24
      src/Widgets/Modal.php

+ 1 - 1
src/Form/Layout.php

@@ -142,7 +142,7 @@ class Layout
     }
 
     /**
-     * Build html of content
+     * Build html of content.
      *
      * @param string $add
      *

+ 0 - 1
src/Layout/Asset.php

@@ -4,7 +4,6 @@ namespace Dcat\Admin\Layout;
 
 use Dcat\Admin\Admin;
 use Dcat\Admin\Color;
-use function GuzzleHttp\Psr7\parse_query;
 use Illuminate\Support\Str;
 
 class Asset

+ 25 - 24
src/Widgets/Modal.php

@@ -41,15 +41,15 @@ class Modal extends Widget
      * @var string
      */
     protected $size = '';
-	
-	/**
-	 * @var string
-	 */
+
+    /**
+     * @var string
+     */
     protected $centered = '';
-	
-	/**
-	 * @var string
-	 */
+
+    /**
+     * @var string
+     */
     protected $scrollable = '';
     /**
      * @var array
@@ -81,33 +81,34 @@ class Modal extends Widget
         $this->class('modal fade');
     }
 
-	/**
-	 * 设置弹窗垂直居中.
+    /**
+     * 设置弹窗垂直居中.
      *
      * @param bool $value
-	 *
-	 * @return $this
-	 */
+     *
+     * @return $this
+     */
     public function centered(bool $value = true)
     {
         $this->centered = $value ? 'modal-dialog-centered' : '';
 
-    	return $this;
+        return $this;
     }
-	
-	/**
-	 * 设置弹窗内容滚动.
+
+    /**
+     * 设置弹窗内容滚动.
      *
      * @param bool $value
-	 *
-	 * @return $this
-	 */
+     *
+     * @return $this
+     */
     public function scrollable(bool $value = true)
-	{
-		$this->scrollable = $value ? 'modal-dialog-scrollable' : '';
+    {
+        $this->scrollable = $value ? 'modal-dialog-scrollable' : '';
+
+        return $this;
+    }
 
-		return $this;
-	}
     /**
      * 设置弹窗尺寸.
      *