From 2cacd374dc26e03c609f49cc0c1338c29d72570d Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 23 Jun 2023 14:57:46 +0200 Subject: [PATCH] fix PHPCS issues --- includes/activity/class-activity-object.php | 5 ++++- includes/collection/class-followers.php | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/activity/class-activity-object.php b/includes/activity/class-activity-object.php index 0115a40..a71a83e 100644 --- a/includes/activity/class-activity-object.php +++ b/includes/activity/class-activity-object.php @@ -524,7 +524,10 @@ class Activity_Object { $this->$key = array(); } - $this->$key[] = $value; + $attributes = $this->$key; + $attributes[] = $value; + + $this->$key = $attributes; return $this->$key; } diff --git a/includes/collection/class-followers.php b/includes/collection/class-followers.php index 96b9099..39bfc2b 100644 --- a/includes/collection/class-followers.php +++ b/includes/collection/class-followers.php @@ -76,9 +76,7 @@ class Followers { self::POST_TYPE, 'icon', array( - //'type' => 'string', 'single' => true, - //'sanitize_callback' => array( self::class, 'sanitize_url' ), ) );