diff --git a/composer.json b/composer.json index d40a007..f6a4a6e 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ ], "require": { "php": ">=8.3", - "bedita/php-sdk": "^4.1.0", + "bedita/php-sdk": "^4.2.0", "cakephp/cakephp": "^4.5", "firebase/php-jwt": "^6.9", "cakephp/twig-view": "^1.3.0" diff --git a/src/Http/BaseClient.php b/src/Http/BaseClient.php index dadcd55..075edb5 100644 --- a/src/Http/BaseClient.php +++ b/src/Http/BaseClient.php @@ -100,7 +100,9 @@ protected function validateConf(Validator $validator): void { $errors = $validator->validate($this->getConfig()); if (!empty($errors)) { - throw new \InvalidArgumentException(sprintf('%s client config not valid: %s', static::class, json_encode($errors))); + throw new \InvalidArgumentException( + sprintf('%s client config not valid: %s', static::class, json_encode($errors)) + ); } } diff --git a/src/Utility/ApiTools.php b/src/Utility/ApiTools.php index 16e61b0..abf10a0 100644 --- a/src/Utility/ApiTools.php +++ b/src/Utility/ApiTools.php @@ -1,5 +1,4 @@ $entity) { - $response['included'][$key]['attributes'] = array_diff_key($entity['attributes'], array_flip($keysToRemove)); + $response['included'][$key]['attributes'] = array_diff_key( + $entity['attributes'], + array_flip($keysToRemove) + ); } } @@ -56,7 +61,10 @@ public static function removeAttributes(array $response, array $keysToRemove): a // remove attributes from included entities if (isset($response['included'])) { foreach ($response['included'] as $key => $entity) { - $response['included'][$key]['attributes'] = array_diff_key($entity['attributes'], array_flip($keysToRemove)); + $response['included'][$key]['attributes'] = array_diff_key( + $entity['attributes'], + array_flip($keysToRemove) + ); } } diff --git a/src/View/Twig/BeditaTwigExtension.php b/src/View/Twig/BeditaTwigExtension.php index 87a7062..52c9ce8 100644 --- a/src/View/Twig/BeditaTwigExtension.php +++ b/src/View/Twig/BeditaTwigExtension.php @@ -45,7 +45,9 @@ public function getFunctions(): array // avoid unwanted return value display in templates Configure::write($key, $val); + // phpcs:disable return; + // phpcs:enable }), ]; } diff --git a/tests/TestCase/Command/CacheClearallCommandTest.php b/tests/TestCase/Command/CacheClearallCommandTest.php index 8df7879..47038da 100644 --- a/tests/TestCase/Command/CacheClearallCommandTest.php +++ b/tests/TestCase/Command/CacheClearallCommandTest.php @@ -1,5 +1,4 @@