mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 20:19:42 +08:00
Upgrade to PSR12 coding standard (#20121)
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
@ -134,8 +135,8 @@ class Table extends Widget
|
||||
*/
|
||||
public function setRows(array $rows)
|
||||
{
|
||||
$this->rows = array_map(function($row) {
|
||||
return array_map(function($value) {
|
||||
$this->rows = array_map(function ($row) {
|
||||
return array_map(function ($value) {
|
||||
return empty($value) && !is_numeric($value)
|
||||
? ' '
|
||||
: (is_array($value)
|
||||
@ -198,7 +199,8 @@ class Table extends Widget
|
||||
);
|
||||
// Header
|
||||
if ($headerCount > 0) {
|
||||
$buffer .= $this->renderRow($this->headers,
|
||||
$buffer .= $this->renderRow(
|
||||
$this->headers,
|
||||
$this->chars[self::CHAR_LEFT],
|
||||
$this->chars[self::CHAR_MIDDLE],
|
||||
$this->chars[self::CHAR_RIGHT]
|
||||
@ -215,10 +217,12 @@ class Table extends Widget
|
||||
$this->chars[self::CHAR_RIGHT_MID]
|
||||
);
|
||||
}
|
||||
$buffer .= $this->renderRow($row,
|
||||
$buffer .= $this->renderRow(
|
||||
$row,
|
||||
$this->chars[self::CHAR_LEFT],
|
||||
$this->chars[self::CHAR_MIDDLE],
|
||||
$this->chars[self::CHAR_RIGHT]);
|
||||
$this->chars[self::CHAR_RIGHT]
|
||||
);
|
||||
}
|
||||
|
||||
$buffer .= $this->renderSeparator(
|
||||
|
||||
Reference in New Issue
Block a user