Skip to content

Commit

Permalink
fixed phpdoc @param alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 15, 2012
1 parent 946893d commit 57d64d1
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(HttpKernelInterface $kernel, array $server = array()
/**
* Makes a request.
*
* @param Request $request A Request instance
* @param Request $request A Request instance
*
* @return Response A Response instance
*/
Expand Down
2 changes: 1 addition & 1 deletion Config/FileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class FileLocator extends BaseFileLocator
*
* @param KernelInterface $kernel A KernelInterface instance
* @param string $path The path the global resource directory
* @param string|array $paths A path or an array of paths where to look for resources
* @param string|array $paths A path or an array of paths where to look for resources
*/
public function __construct(KernelInterface $kernel, $path = null, array $paths = array())
{
Expand Down
4 changes: 2 additions & 2 deletions Debug/StopwatchEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class StopwatchEvent
/**
* Constructor.
*
* @param float $origin The origin time in milliseconds
* @param string $category The event category
* @param float $origin The origin time in milliseconds
* @param string $category The event category
*
* @throws \InvalidArgumentException When the raw time is not valid
*/
Expand Down
2 changes: 1 addition & 1 deletion Event/GetResponseForExceptionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getException()
*
* This exception will be thrown if no response is set in the event.
*
* @param \Exception $exception The thrown exception
* @param \Exception $exception The thrown exception
*
* @api
*/
Expand Down
8 changes: 4 additions & 4 deletions Exception/MethodNotAllowedHttpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class MethodNotAllowedHttpException extends HttpException
/**
* Constructor.
*
* @param array $allow An array of allowed methods
* @param string $message The internal exception message
* @param Exception $previous The previous exception
* @param integer $code The internal exception code
* @param array $allow An array of allowed methods
* @param string $message The internal exception message
* @param Exception $previous The previous exception
* @param integer $code The internal exception code
*/
public function __construct(array $allow, $message = null, \Exception $previous = null, $code = 0)
{
Expand Down
2 changes: 1 addition & 1 deletion HttpCache/HttpCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ private function isPrivateRequest(Request $request)
* Records that an event took place.
*
* @param Request $request A Request instance
* @param string $event The event name
* @param string $event The event name
*/
private function record(Request $request, $event)
{
Expand Down
2 changes: 1 addition & 1 deletion HttpCache/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public function purge($url)
/**
* Loads data for the given key.
*
* @param string $key The store key
* @param string $key The store key
*
* @return string The data associated with the key
*/
Expand Down
12 changes: 6 additions & 6 deletions HttpKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public function __construct(EventDispatcherInterface $dispatcher, ControllerReso
* When $catch is true, the implementation must catch all exceptions
* and do its best to convert them to a Response instance.
*
* @param Request $request A Request instance
* @param integer $type The type of the request
* @param Request $request A Request instance
* @param integer $type The type of the request
* (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* @param Boolean $catch Whether to catch exceptions or not
* @param Boolean $catch Whether to catch exceptions or not
*
* @return Response A Response instance
*
Expand Down Expand Up @@ -173,9 +173,9 @@ private function filterResponse(Response $response, Request $request, $type)
/**
* Handles and exception by trying to convert it to a Response.
*
* @param \Exception $e An \Exception instance
* @param Request $request A Request instance
* @param integer $type The type of the request
* @param \Exception $e An \Exception instance
* @param Request $request A Request instance
* @param integer $type The type of the request
*
* @return Response A Response instance
*/
Expand Down
6 changes: 3 additions & 3 deletions HttpKernelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ interface HttpKernelInterface
* When $catch is true, the implementation must catch all exceptions
* and do its best to convert them to a Response instance.
*
* @param Request $request A Request instance
* @param integer $type The type of the request
* @param Request $request A Request instance
* @param integer $type The type of the request
* (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* @param Boolean $catch Whether to catch exceptions or not
* @param Boolean $catch Whether to catch exceptions or not
*
* @return Response A Response instance
*
Expand Down
4 changes: 2 additions & 2 deletions Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ public function getContainer()
/**
* Loads the PHP class cache.
*
* @param string $name The cache name prefix
* @param string $extension File extension of the resulting file
* @param string $name The cache name prefix
* @param string $extension File extension of the resulting file
*/
public function loadClassCache($name = 'classes', $extension = '.php')
{
Expand Down
4 changes: 2 additions & 2 deletions Profiler/BaseMemcacheProfilerStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ abstract class BaseMemcacheProfilerStorage implements ProfilerStorageInterface
/**
* Constructor.
*
* @param string $dsn A data source name
* @param string $dsn A data source name
* @param string $username
* @param string $password
* @param int $lifetime The lifetime to use for the purge
* @param int $lifetime The lifetime to use for the purge
*/
public function __construct($dsn, $username = '', $password = '', $lifetime = 86400)
{
Expand Down
8 changes: 4 additions & 4 deletions Profiler/PdoProfilerStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ public function purge()
/**
* Build SQL criteria to fetch records by ip and url
*
* @param string $ip The IP
* @param string $url The URL
* @param string $limit The maximum number of tokens to return
* @param string $ip The IP
* @param string $url The URL
* @param string $limit The maximum number of tokens to return
* @param string $method The request method
*
* @return array An array with (criteria, args)
Expand Down Expand Up @@ -214,7 +214,7 @@ protected function createProfileFromData($token, $data, $parent = null)
/**
* Reads the child profiles for the given token.
*
* @param string $token The parent token
* @param string $token The parent token
* @param string $parent The parent instance
*
* @return array An array of Profile instance
Expand Down
8 changes: 4 additions & 4 deletions Profiler/RedisProfilerStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ class RedisProfilerStorage implements ProfilerStorageInterface
/**
* Constructor.
*
* @param string $dsn A data source name
* @param string $username Not used
* @param string $password Not used
* @param int $lifetime The lifetime to use for the purge
* @param string $dsn A data source name
* @param string $username Not used
* @param string $password Not used
* @param int $lifetime The lifetime to use for the purge
*/
public function __construct($dsn, $username = '', $password = '', $lifetime = 86400)
{
Expand Down

0 comments on commit 57d64d1

Please sign in to comment.