This commit is contained in:
Fabien Potencier 2016-06-29 07:42:25 +02:00
parent 6bed60b467
commit a434e7b419
10 changed files with 21 additions and 21 deletions

View File

@ -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)
{

View File

@ -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);

View File

@ -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)
{

View File

@ -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())
{

View File

@ -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.
*/

View File

@ -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
*/

View File

@ -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[]
*/

View File

@ -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)
{

View File

@ -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
*/

View File

@ -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
*/