fix PHPCS issues

This commit is contained in:
Matthias Pfefferle 2023-06-23 14:57:46 +02:00
parent 5478be1355
commit 2cacd374dc
2 changed files with 4 additions and 3 deletions

View file

@ -524,7 +524,10 @@ class Activity_Object {
$this->$key = array(); $this->$key = array();
} }
$this->$key[] = $value; $attributes = $this->$key;
$attributes[] = $value;
$this->$key = $attributes;
return $this->$key; return $this->$key;
} }

View file

@ -76,9 +76,7 @@ class Followers {
self::POST_TYPE, self::POST_TYPE,
'icon', 'icon',
array( array(
//'type' => 'string',
'single' => true, 'single' => true,
//'sanitize_callback' => array( self::class, 'sanitize_url' ),
) )
); );