Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph authored and StyleCIBot committed Jan 3, 2021
1 parent 074f250 commit fdf894b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/Form/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function form(\Closure $callback = null)
}

/**
* Build html of content
* Build html of content.
*
* @param string $add
*
Expand Down
1 change: 0 additions & 1 deletion src/Layout/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Dcat\Admin\Admin;
use Dcat\Admin\Color;
use function GuzzleHttp\Psr7\parse_query;
use Illuminate\Support\Str;

class Asset
Expand Down
49 changes: 25 additions & 24 deletions src/Widgets/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -81,33 +81,34 @@ public function __construct($title = null, $content = null)
$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;
}
/**
* 设置弹窗尺寸.
*
Expand Down

0 comments on commit fdf894b

Please sign in to comment.