Skip to content

Commit c94676a

Browse files
committed
style fixes
1 parent 0d2be20 commit c94676a

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

src/Cache/DoctrineTaggingCachePool.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of php-cache\cache-bundle package.
5+
*
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
10+
*/
11+
312
namespace Cache\CacheBundle\Cache;
413

514
use Cache\Taggable\TaggablePoolInterface;
@@ -15,7 +24,7 @@
1524
class DoctrineTaggingCachePool implements CacheItemPoolInterface
1625
{
1726
/**
18-
* @var CacheItemPoolInterface|TaggablePoolInterface
27+
* @type CacheItemPoolInterface|TaggablePoolInterface
1928
*/
2029
private $cache;
2130

@@ -38,7 +47,7 @@ public function getItem($key)
3847
/**
3948
* @{@inheritdoc}
4049
*/
41-
public function getItems(array $keys = array())
50+
public function getItems(array $keys = [])
4251
{
4352
return $this->cache->getItems($keys, ['doctrine']);
4453
}

src/Command/CacheFlushCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ private function clearCacheForType($type)
8383
}
8484

8585
/**
86-
* @param $type
87-
* @param $serviceId
86+
* @param string $type
87+
* @param string $serviceId
8888
*/
8989
private function doClearCache($type, $serviceId)
9090
{
9191
/** @type CacheItemPoolInterface $service */
92-
$service = $this->getContainer()->get($config['service_id']);
92+
$service = $this->getContainer()->get($serviceId);
9393
if ($service instanceof TaggablePoolInterface) {
9494
$service->clear([$type]);
9595
} else {

src/DependencyInjection/Compiler/DoctrineSupportCompilerPass.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
*/
2525
class DoctrineSupportCompilerPass extends BaseCompilerPass
2626
{
27-
28-
2927
/**
3028
* @throws \Exception
3129
*
@@ -96,8 +94,8 @@ protected function enableDoctrineSupport(array $config)
9694
* If we support tagging we use the DoctrineTaggingCachePool.
9795
*
9896
* @param string $bridgeServiceId
99-
* @param array $cacheData
100-
* @param bool $tagging
97+
* @param array $cacheData
98+
* @param bool $tagging
10199
*
102100
* @return string
103101
*/
@@ -108,7 +106,7 @@ public function getPoolReferenceForBridge($bridgeServiceId, $cacheData, $tagging
108106
}
109107

110108
$taggingServiceId = $bridgeServiceId.'.tagging';
111-
$taggingDef= $this->container->register($taggingServiceId, DoctrineTaggingCachePool::class);
109+
$taggingDef = $this->container->register($taggingServiceId, DoctrineTaggingCachePool::class);
112110
$taggingDef->addArgument(new Reference($cacheData['service_id']))
113111
->setPublic(false);
114112

0 commit comments

Comments
 (0)