Upgrade to PSR12 coding standard (#20121)

This commit is contained in:
Razvan Grigore
2024-03-19 16:21:27 +02:00
committed by GitHub
parent b0aa6ab852
commit e2a167028b
521 changed files with 1055 additions and 2409 deletions

View File

@ -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(