Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed most of the docblocks/unused namespaces

  • Loading branch information...
commit 58a1dad8d23c97c009b33303f9c3511a40a5464e 1 parent a18fd6c
@dlsniper dlsniper authored fabpot committed
View
9 BinaryFileResponse.php
@@ -65,6 +65,13 @@ public static function create($file = null, $status = 200, $headers = array(), $
* Sets the file to stream.
*
* @param SplFileInfo|string $file The file to stream
+ * @param string $contentDisposition
+ * @param Boolean $autoEtag
+ * @param Boolean $autoLastModified
+ *
+ * @return BinaryFileResponse
+ *
+ * @throws FileException
*/
public function setFile($file, $contentDisposition = null, $autoEtag = false, $autoLastModified = true)
{
@@ -127,6 +134,8 @@ public function setAutoEtag()
* @param string $disposition ResponseHeaderBag::DISPOSITION_INLINE or ResponseHeaderBag::DISPOSITION_ATTACHMENT
* @param string $filename Optionally use this filename instead of the real name of the file
* @param string $filenameFallback A fallback filename, containing only ASCII characters. Defaults to an automatically encoded filename
+ *
+ * @return BinaryFileResponse
*/
public function setContentDisposition($disposition, $filename = '', $filenameFallback = '')
{
View
2  Cookie.php
@@ -39,6 +39,8 @@ class Cookie
* @param Boolean $secure Whether the cookie should only be transmitted over a secure HTTPS connection from the client
* @param Boolean $httpOnly Whether the cookie will be made accessible only through the HTTP protocol
*
+ * @throws \InvalidArgumentException
+ *
* @api
*/
public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true)
View
4 File/MimeType/MimeTypeGuesser.php
@@ -99,7 +99,9 @@ public function register(MimeTypeGuesserInterface $guesser)
*
* @return string The mime type or NULL, if none could be guessed
*
- * @throws FileException If the file does not exist
+ * @throws \LogicException
+ * @throws FileNotFoundException
+ * @throws AccessDeniedException
*/
public function guess($path)
{
View
2  JsonResponse.php
@@ -49,6 +49,8 @@ public static function create($data = array(), $status = 200, $headers = array()
* @param string $callback
*
* @return JsonResponse
+ *
+ * @throws \InvalidArgumentException
*/
public function setCallback($callback = null)
{
View
2  ParameterBag.php
@@ -96,6 +96,8 @@ public function add(array $parameters = array())
*
* @return mixed
*
+ * @throws \InvalidArgumentException
+ *
* @api
*/
public function get($path, $default = null, $deep = false)
View
4 RedirectResponse.php
@@ -29,6 +29,8 @@ class RedirectResponse extends Response
* @param integer $status The status code (302 by default)
* @param array $headers The headers (Location is always set to the given url)
*
+ * @throws \InvalidArgumentException
+ *
* @see http://tools.ietf.org/html/rfc2616#section-10.3
*
* @api
@@ -72,6 +74,8 @@ public function getTargetUrl()
* @param string $url The URL to redirect to
*
* @return RedirectResponse The current response.
+ *
+ * @throws \InvalidArgumentException
*/
public function setTargetUrl($url)
{
View
4 Request.php
@@ -500,6 +500,8 @@ public static function setTrustedProxies(array $proxies)
*
* @param string $key The header key
* @param string $value The header name
+ *
+ * @throws \InvalidArgumentException
*/
public static function setTrustedHeaderName($key, $value)
{
@@ -1258,6 +1260,8 @@ public function isMethodSafe()
* @param Boolean $asResource If true, a resource will be returned
*
* @return string|resource The request body content or a resource to read the body stream.
+ *
+ * @throws \LogicException
*/
public function getContent($asResource = false)
{
View
4 Response.php
@@ -336,6 +336,8 @@ public function send()
*
* @return Response
*
+ * @throws \UnexpectedValueException
+ *
* @api
*/
public function setContent($content)
@@ -875,6 +877,8 @@ public function setEtag($etag = null, $weak = false)
*
* @return Response
*
+ * @throws \InvalidArgumentException
+ *
* @api
*/
public function setCache(array $options)
View
4 Session/Storage/Proxy/AbstractProxy.php
@@ -99,6 +99,8 @@ public function getId()
* Sets the session ID.
*
* @param string $id
+ *
+ * @throws \LogicException
*/
public function setId($id)
{
@@ -123,6 +125,8 @@ public function getName()
* Sets the session name.
*
* @param string $name
+ *
+ * @throws \LogicException
*/
public function setName($name)
{
View
2  StreamedResponse.php
@@ -62,6 +62,8 @@ public static function create($callback = null, $status = 200, $headers = array(
* Sets the PHP callback associated with this Response.
*
* @param mixed $callback A valid PHP callback
+ *
+ * @throws \LogicException
*/
public function setCallback($callback)
{
Please sign in to comment.
Something went wrong with that request. Please try again.