vc php8 review
This commit is contained in:
parent
7f574e1132
commit
a1546ba080
|
@ -1837,7 +1837,7 @@ class Item extends CachedModel
|
|||
if (empty($data) === false) {
|
||||
if (empty($data['id']) === true) {
|
||||
// Insert.
|
||||
$save = $this->encode($data);
|
||||
$save = static::encode($data);
|
||||
|
||||
$result = \db_process_sql_insert('tlayout_data', $save);
|
||||
if ($result !== false) {
|
||||
|
@ -1846,8 +1846,8 @@ class Item extends CachedModel
|
|||
}
|
||||
} else {
|
||||
// Update.
|
||||
$dataModelEncode = $this->encode($this->toArray());
|
||||
$dataEncode = $this->encode($data);
|
||||
$dataModelEncode = static::encode($this->toArray());
|
||||
$dataEncode = static::encode($data);
|
||||
|
||||
$save = array_merge($dataModelEncode, $dataEncode);
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ final class Clock extends Item
|
|||
*
|
||||
* @return string Return color.
|
||||
*/
|
||||
protected function encodeColor(array $data): ?string
|
||||
protected static function encodeColor(array $data): ?string
|
||||
{
|
||||
$color = null;
|
||||
if (isset($data['color']) === true) {
|
||||
|
@ -51,7 +51,7 @@ final class Clock extends Item
|
|||
*
|
||||
* @overrides Item->encode.
|
||||
*/
|
||||
protected function encode(array $data): array
|
||||
protected static function encode(array $data): array
|
||||
{
|
||||
$return = parent::encode($data);
|
||||
|
||||
|
|
|
@ -655,6 +655,7 @@ class View extends \HTML
|
|||
* Returns a popup for networkLink viewer.
|
||||
*
|
||||
* @return void
|
||||
* phpcs:disable Squiz.Commenting.FunctionCommentThrowTag.Missing
|
||||
*/
|
||||
public function networkLinkPopup()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue