From 52b1a03a06c8ce5ce2fc4d76712bcb48f6dfeb4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Thu, 2 Nov 2023 16:00:22 +0200 Subject: [PATCH] Phpcs fix --- lib/Formatters/ContactFormatter.php | 2 +- lib/Formatters/PlaceOfBusinessFormatter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Formatters/ContactFormatter.php b/lib/Formatters/ContactFormatter.php index b3ea312e..919682bd 100644 --- a/lib/Formatters/ContactFormatter.php +++ b/lib/Formatters/ContactFormatter.php @@ -86,7 +86,7 @@ public function format( array $data ) { * * @return array|array[] */ - public function map_api_contacts( array $ids = [], array $field_keys = [], $default_image = null ) { + public function map_api_contacts( array $ids = [], array $field_keys = [], $default_image = null ) { // phpcs:ignore if ( empty( $ids ) ) { return []; } diff --git a/lib/Formatters/PlaceOfBusinessFormatter.php b/lib/Formatters/PlaceOfBusinessFormatter.php index f03df34e..d66b253e 100644 --- a/lib/Formatters/PlaceOfBusinessFormatter.php +++ b/lib/Formatters/PlaceOfBusinessFormatter.php @@ -102,7 +102,7 @@ public function map_api_results( array $ids = [] ) : array { * @return array */ public function map_keys( array $posts ) : array { - if( ! \is_plugin_active( 'tms-plugin-place-of-business-sync/plugin.php' ) ) { + if ( ! \is_plugin_active( 'tms-plugin-place-of-business-sync/plugin.php' ) ) { return []; }