Skip to content

Commit 9acd7b6

Browse files
author
Till Hildebrandt
committed
Fixing CI
1 parent 1bfe504 commit 9acd7b6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,15 +742,15 @@ private function createCachePluginNode()
742742
->end()
743743
->end()
744744
->arrayNode('cache_listeners')
745-
->info('An array of classes to act on the response based on the results of the cache check. Must implement ' . CacheListener::class . '. Defaults to an empty array.')
745+
->info('An array of classes to act on the response based on the results of the cache check. Must implement '.CacheListener::class.'. Defaults to an empty array.')
746746
->beforeNormalization()->castToArray()->ifEmpty()->thenUnset()->end()
747747
->defaultValue([])
748748
->prototype('scalar')
749749
->validate()
750750
->ifTrue(function ($v) {
751751
$vs = is_array($v) ? $v : (is_null($v) ? [] : [$v]);
752752

753-
return empty($vs) || array_reduce($vs, function($r, $e) {
753+
return empty($vs) || array_reduce($vs, function ($r, $e) {
754754
return empty($e) || !class_exists($e) || !(new ReflectionClass($e))->implementsInterface(CacheListener::class);
755755
}, false);
756756
})

src/DependencyInjection/HttplugExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private function configurePluginByName($name, Definition $definition, array $con
215215
}
216216
}
217217
}
218-
if (! count($options['cache_listeners'])) {
218+
if (!count($options['cache_listeners'])) {
219219
unset($options['cache_listeners']);
220220
}
221221

tests/Unit/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ConfigurationTest extends AbstractExtensionConfigurationTestCase
4444
'stream_factory' => 'httplug.stream_factory',
4545
'config' => [
4646
'methods' => ['GET', 'HEAD'],
47-
'cache_listeners' => []
47+
'cache_listeners' => [],
4848
],
4949
],
5050
'cookie' => [

tests/Unit/DependencyInjection/HttplugExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public function testCachePluginConfigCacheListenersDefinition(): void
270270
'cache_pool' => 'my_cache_pool',
271271
'config' => [
272272
'cache_listeners' => [
273-
'\Http\Client\Common\Plugin\Cache\Listener\AddHeaderCacheListener'
273+
'\Http\Client\Common\Plugin\Cache\Listener\AddHeaderCacheListener',
274274
],
275275
],
276276
],

0 commit comments

Comments
 (0)