Completed
Pull Request — master (#1358)
by Guilh
07:48
created
EventListener/BodyListener.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
     /**
132 132
      * Check if the Request is a not a DELETE with no content and no Content-Type.
133 133
      *
134
-     * @param $method
134
+     * @param string $method
135 135
      * @param $content
136 136
      * @param $contentType
137 137
      *
Please login to merge, or discard this patch.
View/ViewHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
      * configuration if the form instance has errors.
232 232
      *
233 233
      * @param View  $view
234
-     * @param mixed $content
234
+     * @param string|null $content
235 235
      *
236 236
      * @return int HTTP status code
237 237
      */
Please login to merge, or discard this patch.
Context/Context.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,7 +159,6 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * Sets the normalization max depth.
161 161
      *
162
-     * @param int|null $depth
163 162
      *
164 163
      * @return self
165 164
      */
@@ -173,7 +172,7 @@  discard block
 block discarded – undo
173 172
     /**
174 173
      * Gets the normalization max depth.
175 174
      *
176
-     * @return int|null
175
+     * @return integer
177 176
      */
178 177
     public function getMaxDepth()
179 178
     {
@@ -197,7 +196,7 @@  discard block
 block discarded – undo
197 196
     /**
198 197
      * Gets serialize null.
199 198
      *
200
-     * @return bool|null
199
+     * @return boolean
201 200
      */
202 201
     public function getSerializeNull()
203 202
     {
Please login to merge, or discard this patch.
EventListener/ViewResponseListener.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,6 @@
 block discarded – undo
135 135
     }
136 136
 
137 137
     /**
138
-     * @param Request  $request
139 138
      * @param Template $template
140 139
      * @param object   $controller
141 140
      * @param string   $action
Please login to merge, or discard this patch.
Controller/ExceptionController.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -64,10 +64,8 @@
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-     * @param string           $format
68 67
      * @param FlattenException $exception
69 68
      * @param int              $code
70
-     * @param array            $parameters
71 69
      * @param Request          $request
72 70
      * @param bool             $showException
73 71
      *
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace FOS\RestBundle\Controller;
13 13
 
14
-use FOS\RestBundle\Negotiation\FormatNegotiator;
15
-use FOS\RestBundle\Util\StopFormatListenerException;
16
-use FOS\RestBundle\Util\ExceptionWrapper;
17
-use FOS\RestBundle\View\ExceptionWrapperHandlerInterface;
18 14
 use FOS\RestBundle\View\View;
19 15
 use FOS\RestBundle\View\ViewHandlerInterface;
20 16
 use Symfony\Component\HttpFoundation\Request;
Please login to merge, or discard this patch.
Controller/TwigExceptionController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Symfony\Bundle\FrameworkBundle\Templating\TemplateReference;
15 15
 use Symfony\Component\Debug\Exception\FlattenException;
16 16
 use Symfony\Component\HttpFoundation\Request;
17
-use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
18 17
 
19 18
 /**
20 19
  * Custom ExceptionController that uses the view layer and supports HTTP response status code mapping.
Please login to merge, or discard this patch.
Serializer/Normalizer/ExceptionNormalizer.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Symfony\Component\Form\FormError;
16 16
 use Symfony\Component\Form\FormInterface;
17 17
 use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
18
-use Symfony\Component\Translation\TranslatorInterface;
19 18
 
20 19
 /**
21 20
  * Normalizer for ExceptionWrapper instances.
Please login to merge, or discard this patch.