From a434e7b4199d316615870b0a2daecfdf1ece22d1 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 29 Jun 2016 07:42:25 +0200 Subject: [PATCH] fixed CS --- src/Symfony/Bridge/PhpUnit/DnsMock.php | 2 +- .../Cache/Adapter/AbstractAdapter.php | 22 +++++++++---------- .../Component/Cache/Adapter/ArrayAdapter.php | 2 +- .../Component/Cache/Adapter/RedisAdapter.php | 2 +- src/Symfony/Component/Cache/CacheItem.php | 2 +- .../LazyProxy/PhpDumper/DumperInterface.php | 2 +- .../ArgumentMetadataFactoryInterface.php | 2 +- .../HttpKernel/Exception/HttpException.php | 2 +- .../UnprocessableEntityHttpExceptionTest.php | 2 +- src/Symfony/Component/Process/Process.php | 4 ++-- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/Symfony/Bridge/PhpUnit/DnsMock.php b/src/Symfony/Bridge/PhpUnit/DnsMock.php index 3bce1cbbf5..b9e6c0bdc9 100644 --- a/src/Symfony/Bridge/PhpUnit/DnsMock.php +++ b/src/Symfony/Bridge/PhpUnit/DnsMock.php @@ -35,7 +35,7 @@ class DnsMock /** * Configures the mock values for DNS queries. * - * @param array $hosts Mocked hosts as keys, arrays of DNS records as returned by dns_get_record() as values. + * @param array $hosts Mocked hosts as keys, arrays of DNS records as returned by dns_get_record() as values */ public static function withMockedHosts(array $hosts) { diff --git a/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php b/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php index 346a0e6088..305ffdfa14 100644 --- a/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php @@ -89,46 +89,46 @@ abstract class AbstractAdapter implements AdapterInterface, LoggerAwareInterface /** * Fetches several cache items. * - * @param array $ids The cache identifiers to fetch. + * @param array $ids The cache identifiers to fetch * - * @return array|\Traversable The corresponding values found in the cache. + * @return array|\Traversable The corresponding values found in the cache */ abstract protected function doFetch(array $ids); /** * Confirms if the cache contains specified cache item. * - * @param string $id The identifier for which to check existence. + * @param string $id The identifier for which to check existence * - * @return bool True if item exists in the cache, false otherwise. + * @return bool True if item exists in the cache, false otherwise */ abstract protected function doHave($id); /** * Deletes all items in the pool. * - * @param string The prefix used for all identifiers managed by this pool. + * @param string The prefix used for all identifiers managed by this pool * - * @return bool True if the pool was successfully cleared, false otherwise. + * @return bool True if the pool was successfully cleared, false otherwise */ abstract protected function doClear($namespace); /** * Removes multiple items from the pool. * - * @param array $ids An array of identifiers that should be removed from the pool. + * @param array $ids An array of identifiers that should be removed from the pool * - * @return bool True if the items were successfully removed, false otherwise. + * @return bool True if the items were successfully removed, false otherwise */ abstract protected function doDelete(array $ids); /** * Persists several cache items immediately. * - * @param array $values The values to cache, indexed by their cache identifier. - * @param int $lifetime The lifetime of the cached values, 0 for persisting until manual cleaning. + * @param array $values The values to cache, indexed by their cache identifier + * @param int $lifetime The lifetime of the cached values, 0 for persisting until manual cleaning * - * @return array|bool The identifiers that failed to be cached or a boolean stating if caching succeeded or not. + * @return array|bool The identifiers that failed to be cached or a boolean stating if caching succeeded or not */ abstract protected function doSave(array $values, $lifetime); diff --git a/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php b/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php index 974348d827..48bfa15e9e 100644 --- a/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/ArrayAdapter.php @@ -30,7 +30,7 @@ class ArrayAdapter implements AdapterInterface, LoggerAwareInterface /** * @param int $defaultLifetime - * @param bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise. + * @param bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise */ public function __construct($defaultLifetime = 0, $storeSerialized = true) { diff --git a/src/Symfony/Component/Cache/Adapter/RedisAdapter.php b/src/Symfony/Component/Cache/Adapter/RedisAdapter.php index 92c065ebf7..a3fca942ef 100644 --- a/src/Symfony/Component/Cache/Adapter/RedisAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/RedisAdapter.php @@ -62,7 +62,7 @@ class RedisAdapter extends AbstractAdapter * * @throws InvalidArgumentException When the DSN is invalid. * - * @return \Redis|\Predis\Client According to the "class" option. + * @return \Redis|\Predis\Client According to the "class" option */ public static function createConnection($dsn, array $options = array()) { diff --git a/src/Symfony/Component/Cache/CacheItem.php b/src/Symfony/Component/Cache/CacheItem.php index 2678da4a1d..bdef410ca2 100644 --- a/src/Symfony/Component/Cache/CacheItem.php +++ b/src/Symfony/Component/Cache/CacheItem.php @@ -99,7 +99,7 @@ final class CacheItem implements CacheItemInterface /** * Validates a cache key according to PSR-6. * - * @param string $key The key to validate. + * @param string $key The key to validate * * @throws InvalidArgumentException When $key is not valid. */ diff --git a/src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php b/src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php index 3ff2e01c13..ce88eba974 100644 --- a/src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php +++ b/src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/DumperInterface.php @@ -34,7 +34,7 @@ interface DumperInterface * * @param Definition $definition * @param string $id service identifier - * @param string $methodName the method name to get the service, will be added to the interface in 4.0. + * @param string $methodName the method name to get the service, will be added to the interface in 4.0 * * @return string */ diff --git a/src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadataFactoryInterface.php b/src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadataFactoryInterface.php index 5045d9dc01..6ea179d783 100644 --- a/src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadataFactoryInterface.php +++ b/src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadataFactoryInterface.php @@ -19,7 +19,7 @@ namespace Symfony\Component\HttpKernel\ControllerMetadata; interface ArgumentMetadataFactoryInterface { /** - * @param mixed $controller The controller to resolve the arguments for. + * @param mixed $controller The controller to resolve the arguments for * * @return ArgumentMetadata[] */ diff --git a/src/Symfony/Component/HttpKernel/Exception/HttpException.php b/src/Symfony/Component/HttpKernel/Exception/HttpException.php index e802752f71..e8e3760583 100644 --- a/src/Symfony/Component/HttpKernel/Exception/HttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/HttpException.php @@ -42,7 +42,7 @@ class HttpException extends \RuntimeException implements HttpExceptionInterface /** * Set response headers. * - * @param array $headers Response headers. + * @param array $headers Response headers */ public function setHeaders(array $headers) { diff --git a/src/Symfony/Component/HttpKernel/Tests/Exception/UnprocessableEntityHttpExceptionTest.php b/src/Symfony/Component/HttpKernel/Tests/Exception/UnprocessableEntityHttpExceptionTest.php index a0dd4c1922..760366c694 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Exception/UnprocessableEntityHttpExceptionTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Exception/UnprocessableEntityHttpExceptionTest.php @@ -10,7 +10,7 @@ class UnprocessableEntityHttpExceptionTest extends HttpExceptionTest * Test that setting the headers using the setter function * is working as expected. * - * @param array $headers The headers to set. + * @param array $headers The headers to set * * @dataProvider headerDataProvider */ diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 8af3a862f6..f95b34a312 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -508,7 +508,7 @@ class Process implements \IteratorAggregate /** * Returns an iterator to the output of the process, with the output type as keys (Process::OUT/ERR). * - * @param int $flags A bit field of Process::ITER_* flags. + * @param int $flags A bit field of Process::ITER_* flags * * @throws LogicException in case the output has been disabled * @throws LogicException In case the process is not started @@ -1348,7 +1348,7 @@ class Process implements \IteratorAggregate * Reads pipes for the freshest output. * * @param string $caller The name of the method that needs fresh outputs - * @param bool $blocking Whether to use blocking calls or not. + * @param bool $blocking Whether to use blocking calls or not * * @throws LogicException in case output has been disabled or process is not started */