Skip to content

Commit cb4d9ee

Browse files
committed
code style
1 parent bf3dde0 commit cb4d9ee

File tree

5 files changed

+45
-17
lines changed

5 files changed

+45
-17
lines changed

src/Bridge/SymfonyValidatorBridge.php

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

3+
/*
4+
* This file is part of php-cache\cache-bundle package.
5+
*
6+
* (c) 2015-2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
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\Bridge;
413

514
use Psr\Cache\CacheItemPoolInterface;
615
use Symfony\Component\Validator\Mapping\Cache\CacheInterface;
716
use Symfony\Component\Validator\Mapping\ClassMetadata;
817

918
/**
10-
*
11-
*
1219
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1320
*/
1421
class SymfonyValidatorBridge implements CacheInterface
@@ -69,4 +76,4 @@ private function normalizeKey($key)
6976
{
7077
return preg_replace('|[\\\/]|', '.', $key);
7178
}
72-
}
79+
}

src/DependencyInjection/CacheExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public function load(array $configs, ContainerBuilder $container)
6767
->addArgument($config['validation']);
6868
}
6969

70-
7170
if ($config['router']['enabled']) {
7271
$loader->load('router.yml');
7372
$container->getDefinition('cache.router')
@@ -103,9 +102,10 @@ protected function findServiceIds(array $config, array &$serviceIds)
103102
}
104103

105104
/**
106-
* Make sure the DoctrineBridge is installed
105+
* Make sure the DoctrineBridge is installed.
107106
*
108107
* @param string $name
108+
*
109109
* @throws \Exception
110110
*/
111111
private function verifyDoctrineBridgeExists($name)

src/Factory/AnnotationFactory.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
<?php
22

3+
/*
4+
* This file is part of php-cache\cache-bundle package.
5+
*
6+
* (c) 2015-2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
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\Factory;
413

514
use Cache\Bridge\DoctrineCacheBridge;
615
use Cache\CacheBundle\Cache\FixedTaggingCachePool;
716
use Psr\Cache\CacheItemPoolInterface;
817

918
/**
10-
*
11-
*
1219
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1320
*/
1421
class AnnotationFactory
1522
{
1623
/**
1724
* @param CacheItemPoolInterface $pool
18-
* @param array $config
25+
* @param array $config
1926
*
2027
* @return DoctrineCacheBridge
2128
*/
@@ -27,4 +34,4 @@ public static function get(CacheItemPoolInterface $pool, $config)
2734

2835
return new DoctrineCacheBridge($pool);
2936
}
30-
}
37+
}

src/Factory/SerializerFactory.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
<?php
22

3+
/*
4+
* This file is part of php-cache\cache-bundle package.
5+
*
6+
* (c) 2015-2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
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\Factory;
413

514
use Cache\Bridge\DoctrineCacheBridge;
615
use Cache\CacheBundle\Cache\FixedTaggingCachePool;
716
use Psr\Cache\CacheItemPoolInterface;
817

918
/**
10-
*
11-
*
1219
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1320
*/
1421
class SerializerFactory
1522
{
1623
/**
1724
* @param CacheItemPoolInterface $pool
18-
* @param array $config
25+
* @param array $config
1926
*
2027
* @return DoctrineCacheBridge
2128
*/
@@ -27,4 +34,4 @@ public static function get(CacheItemPoolInterface $pool, $config)
2734

2835
return new DoctrineCacheBridge($pool);
2936
}
30-
}
37+
}

src/Factory/ValidationFactory.php

Lines changed: 11 additions & 4 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 <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
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\Factory;
413

514
use Cache\Bridge\DoctrineCacheBridge;
@@ -8,15 +17,13 @@
817
use Psr\Cache\CacheItemPoolInterface;
918

1019
/**
11-
*
12-
*
1320
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1421
*/
1522
class ValidationFactory
1623
{
1724
/**
1825
* @param CacheItemPoolInterface $pool
19-
* @param array $config
26+
* @param array $config
2027
*
2128
* @return DoctrineCacheBridge
2229
*/
@@ -28,4 +35,4 @@ public static function get(CacheItemPoolInterface $pool, $config)
2835

2936
return new SymfonyValidatorBridge($pool);
3037
}
31-
}
38+
}

0 commit comments

Comments
 (0)