Completed
Pull Request — master (#141)
by Bhanu
37:51 queued 34s
created
vendor/symfony/http-foundation/Response.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      *     return Response::create($body, 200)
210 210
      *         ->setSharedMaxAge(300);
211 211
      *
212
-     * @param mixed $content The response content, see setContent()
212
+     * @param string $content The response content, see setContent()
213 213
      * @param int   $status  The response status code
214 214
      * @param array $headers An array of response headers
215 215
      *
@@ -977,7 +977,7 @@  discard block
 block discarded – undo
977 977
     /**
978 978
      * Sets the Vary header.
979 979
      *
980
-     * @param string|array $headers
980
+     * @param string $headers
981 981
      * @param bool         $replace Whether to replace the actual value or not (true by default)
982 982
      *
983 983
      * @return Response
Please login to merge, or discard this patch.
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     const HTTP_CONTINUE = 100;
22 22
     const HTTP_SWITCHING_PROTOCOLS = 101;
23
-    const HTTP_PROCESSING = 102;            // RFC2518
23
+    const HTTP_PROCESSING = 102; // RFC2518
24 24
     const HTTP_OK = 200;
25 25
     const HTTP_CREATED = 201;
26 26
     const HTTP_ACCEPTED = 202;
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
     const HTTP_NO_CONTENT = 204;
29 29
     const HTTP_RESET_CONTENT = 205;
30 30
     const HTTP_PARTIAL_CONTENT = 206;
31
-    const HTTP_MULTI_STATUS = 207;          // RFC4918
32
-    const HTTP_ALREADY_REPORTED = 208;      // RFC5842
33
-    const HTTP_IM_USED = 226;               // RFC3229
31
+    const HTTP_MULTI_STATUS = 207; // RFC4918
32
+    const HTTP_ALREADY_REPORTED = 208; // RFC5842
33
+    const HTTP_IM_USED = 226; // RFC3229
34 34
     const HTTP_MULTIPLE_CHOICES = 300;
35 35
     const HTTP_MOVED_PERMANENTLY = 301;
36 36
     const HTTP_FOUND = 302;
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     const HTTP_USE_PROXY = 305;
40 40
     const HTTP_RESERVED = 306;
41 41
     const HTTP_TEMPORARY_REDIRECT = 307;
42
-    const HTTP_PERMANENTLY_REDIRECT = 308;  // RFC7238
42
+    const HTTP_PERMANENTLY_REDIRECT = 308; // RFC7238
43 43
     const HTTP_BAD_REQUEST = 400;
44 44
     const HTTP_UNAUTHORIZED = 401;
45 45
     const HTTP_PAYMENT_REQUIRED = 402;
@@ -58,15 +58,15 @@  discard block
 block discarded – undo
58 58
     const HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
59 59
     const HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
60 60
     const HTTP_EXPECTATION_FAILED = 417;
61
-    const HTTP_I_AM_A_TEAPOT = 418;                                               // RFC2324
62
-    const HTTP_UNPROCESSABLE_ENTITY = 422;                                        // RFC4918
63
-    const HTTP_LOCKED = 423;                                                      // RFC4918
64
-    const HTTP_FAILED_DEPENDENCY = 424;                                           // RFC4918
65
-    const HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL = 425;   // RFC2817
66
-    const HTTP_UPGRADE_REQUIRED = 426;                                            // RFC2817
67
-    const HTTP_PRECONDITION_REQUIRED = 428;                                       // RFC6585
68
-    const HTTP_TOO_MANY_REQUESTS = 429;                                           // RFC6585
69
-    const HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = 431;                             // RFC6585
61
+    const HTTP_I_AM_A_TEAPOT = 418; // RFC2324
62
+    const HTTP_UNPROCESSABLE_ENTITY = 422; // RFC4918
63
+    const HTTP_LOCKED = 423; // RFC4918
64
+    const HTTP_FAILED_DEPENDENCY = 424; // RFC4918
65
+    const HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL = 425; // RFC2817
66
+    const HTTP_UPGRADE_REQUIRED = 426; // RFC2817
67
+    const HTTP_PRECONDITION_REQUIRED = 428; // RFC6585
68
+    const HTTP_TOO_MANY_REQUESTS = 429; // RFC6585
69
+    const HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = 431; // RFC6585
70 70
     const HTTP_UNAVAILABLE_FOR_LEGAL_REASONS = 451;
71 71
     const HTTP_INTERNAL_SERVER_ERROR = 500;
72 72
     const HTTP_NOT_IMPLEMENTED = 501;
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
     const HTTP_SERVICE_UNAVAILABLE = 503;
75 75
     const HTTP_GATEWAY_TIMEOUT = 504;
76 76
     const HTTP_VERSION_NOT_SUPPORTED = 505;
77
-    const HTTP_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL = 506;                        // RFC2295
78
-    const HTTP_INSUFFICIENT_STORAGE = 507;                                        // RFC4918
79
-    const HTTP_LOOP_DETECTED = 508;                                               // RFC5842
80
-    const HTTP_NOT_EXTENDED = 510;                                                // RFC2774
81
-    const HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511;                             // RFC6585
77
+    const HTTP_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL = 506; // RFC2295
78
+    const HTTP_INSUFFICIENT_STORAGE = 507; // RFC4918
79
+    const HTTP_LOOP_DETECTED = 508; // RFC5842
80
+    const HTTP_NOT_EXTENDED = 510; // RFC2774
81
+    const HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511; // RFC6585
82 82
 
83 83
     /**
84 84
      * @var \Symfony\Component\HttpFoundation\ResponseHeaderBag
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     public static $statusTexts = array(
125 125
         100 => 'Continue',
126 126
         101 => 'Switching Protocols',
127
-        102 => 'Processing',            // RFC2518
127
+        102 => 'Processing', // RFC2518
128 128
         200 => 'OK',
129 129
         201 => 'Created',
130 130
         202 => 'Accepted',
@@ -132,9 +132,9 @@  discard block
 block discarded – undo
132 132
         204 => 'No Content',
133 133
         205 => 'Reset Content',
134 134
         206 => 'Partial Content',
135
-        207 => 'Multi-Status',          // RFC4918
136
-        208 => 'Already Reported',      // RFC5842
137
-        226 => 'IM Used',               // RFC3229
135
+        207 => 'Multi-Status', // RFC4918
136
+        208 => 'Already Reported', // RFC5842
137
+        226 => 'IM Used', // RFC3229
138 138
         300 => 'Multiple Choices',
139 139
         301 => 'Moved Permanently',
140 140
         302 => 'Found',
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         304 => 'Not Modified',
143 143
         305 => 'Use Proxy',
144 144
         307 => 'Temporary Redirect',
145
-        308 => 'Permanent Redirect',    // RFC7238
145
+        308 => 'Permanent Redirect', // RFC7238
146 146
         400 => 'Bad Request',
147 147
         401 => 'Unauthorized',
148 148
         402 => 'Payment Required',
@@ -161,27 +161,27 @@  discard block
 block discarded – undo
161 161
         415 => 'Unsupported Media Type',
162 162
         416 => 'Range Not Satisfiable',
163 163
         417 => 'Expectation Failed',
164
-        418 => 'I\'m a teapot',                                               // RFC2324
165
-        422 => 'Unprocessable Entity',                                        // RFC4918
166
-        423 => 'Locked',                                                      // RFC4918
167
-        424 => 'Failed Dependency',                                           // RFC4918
168
-        425 => 'Reserved for WebDAV advanced collections expired proposal',   // RFC2817
169
-        426 => 'Upgrade Required',                                            // RFC2817
170
-        428 => 'Precondition Required',                                       // RFC6585
171
-        429 => 'Too Many Requests',                                           // RFC6585
172
-        431 => 'Request Header Fields Too Large',                             // RFC6585
173
-        451 => 'Unavailable For Legal Reasons',                               // RFC7725
164
+        418 => 'I\'m a teapot', // RFC2324
165
+        422 => 'Unprocessable Entity', // RFC4918
166
+        423 => 'Locked', // RFC4918
167
+        424 => 'Failed Dependency', // RFC4918
168
+        425 => 'Reserved for WebDAV advanced collections expired proposal', // RFC2817
169
+        426 => 'Upgrade Required', // RFC2817
170
+        428 => 'Precondition Required', // RFC6585
171
+        429 => 'Too Many Requests', // RFC6585
172
+        431 => 'Request Header Fields Too Large', // RFC6585
173
+        451 => 'Unavailable For Legal Reasons', // RFC7725
174 174
         500 => 'Internal Server Error',
175 175
         501 => 'Not Implemented',
176 176
         502 => 'Bad Gateway',
177 177
         503 => 'Service Unavailable',
178 178
         504 => 'Gateway Timeout',
179 179
         505 => 'HTTP Version Not Supported',
180
-        506 => 'Variant Also Negotiates (Experimental)',                      // RFC2295
181
-        507 => 'Insufficient Storage',                                        // RFC4918
182
-        508 => 'Loop Detected',                                               // RFC5842
183
-        510 => 'Not Extended',                                                // RFC2774
184
-        511 => 'Network Authentication Required',                             // RFC6585
180
+        506 => 'Variant Also Negotiates (Experimental)', // RFC2295
181
+        507 => 'Insufficient Storage', // RFC4918
182
+        508 => 'Loop Detected', // RFC5842
183
+        510 => 'Not Extended', // RFC2774
184
+        511 => 'Network Authentication Required', // RFC6585
185 185
     );
186 186
 
187 187
     /**
Please login to merge, or discard this patch.
vendor/symfony/http-foundation/ResponseHeaderBag.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -113,6 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     /**
115 115
      * {@inheritdoc}
116
+     * @param string $key
116 117
      */
117 118
     public function remove($key)
118 119
     {
@@ -128,6 +129,7 @@  discard block
 block discarded – undo
128 129
 
129 130
     /**
130 131
      * {@inheritdoc}
132
+     * @param string $key
131 133
      */
132 134
     public function hasCacheControlDirective($key)
133 135
     {
@@ -136,6 +138,7 @@  discard block
 block discarded – undo
136 138
 
137 139
     /**
138 140
      * {@inheritdoc}
141
+     * @param string $key
139 142
      */
140 143
     public function getCacheControlDirective($key)
141 144
     {
Please login to merge, or discard this patch.
vendor/symfony/http-foundation/Tests/File/FileTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -164,6 +164,12 @@
 block discarded – undo
164 164
         @rmdir($targetDir);
165 165
     }
166 166
 
167
+    /**
168
+     * @param string $path
169
+     * @param string $mimeType
170
+     *
171
+     * @return \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface
172
+     */
167 173
     protected function createMockGuesser($path, $mimeType)
168 174
     {
169 175
         $guesser = $this->getMock('Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface');
Please login to merge, or discard this patch.
http-foundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -309,6 +309,9 @@  discard block
 block discarded – undo
309 309
         $this->assertInstanceOf('\PDO', $method->invoke($storage));
310 310
     }
311 311
 
312
+    /**
313
+     * @param string $content
314
+     */
312 315
     private function createStream($content)
313 316
     {
314 317
         $stream = tmpfile();
@@ -325,6 +328,9 @@  discard block
 block discarded – undo
325 328
     private $driverName;
326 329
     private $errorMode;
327 330
 
331
+    /**
332
+     * @param string $driverName
333
+     */
328 334
     public function __construct($driverName = null, $errorMode = null)
329 335
     {
330 336
         $this->driverName = $driverName;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         $selectStmt = $this->getMock('PDOStatement');
157 157
         $insertStmt = $this->getMock('PDOStatement');
158 158
 
159
-        $pdo->prepareResult = function ($statement) use ($selectStmt, $insertStmt) {
159
+        $pdo->prepareResult = function($statement) use ($selectStmt, $insertStmt) {
160 160
             return 0 === strpos($statement, 'INSERT') ? $insertStmt : $selectStmt;
161 161
         };
162 162
 
@@ -165,12 +165,12 @@  discard block
 block discarded – undo
165 165
         $exception = null;
166 166
 
167 167
         $selectStmt->expects($this->atLeast(2))->method('fetchAll')
168
-            ->will($this->returnCallback(function () use (&$exception, $stream) {
168
+            ->will($this->returnCallback(function() use (&$exception, $stream) {
169 169
                 return $exception ? array(array($stream, 42, time())) : array();
170 170
             }));
171 171
 
172 172
         $insertStmt->expects($this->once())->method('execute')
173
-            ->will($this->returnCallback(function () use (&$exception) {
173
+            ->will($this->returnCallback(function() use (&$exception) {
174 174
                 throw $exception = new \PDOException('', '23');
175 175
             }));
176 176
 
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/CacheWarmer/CacheWarmer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
18 18
  */
19 19
 abstract class CacheWarmer implements CacheWarmerInterface
20 20
 {
21
+    /**
22
+     * @param string $content
23
+     */
21 24
     protected function writeCacheFile($file, $content)
22 25
     {
23 26
         $tmpFile = tempnam(dirname($file), basename($file));
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Config/EnvParametersResource.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -59,6 +59,7 @@
 block discarded – undo
59 59
 
60 60
     /**
61 61
      * {@inheritdoc}
62
+     * @param integer $timestamp
62 63
      */
63 64
     public function isFresh($timestamp)
64 65
     {
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Controller/ControllerResolver.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -99,6 +99,9 @@
 block discarded – undo
99 99
         return $this->doGetArguments($request, $controller, $r->getParameters());
100 100
     }
101 101
 
102
+    /**
103
+     * @param callable $controller
104
+     */
102 105
     protected function doGetArguments(Request $request, $controller, array $parameters)
103 106
     {
104 107
         $attributes = $request->attributes->all();
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/DataCollector/DumpDataCollector.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
     private $dumper;
39 39
     private $dumperIsInjected;
40 40
 
41
+    /**
42
+     * @param string $fileLinkFormat
43
+     */
41 44
     public function __construct(Stopwatch $stopwatch = null, $fileLinkFormat = null, $charset = null, RequestStack $requestStack = null, DataDumperInterface $dumper = null)
42 45
     {
43 46
         $this->stopwatch = $stopwatch;
@@ -188,6 +191,9 @@  discard block
 block discarded – undo
188 191
         return $this->dataCount;
189 192
     }
190 193
 
194
+    /**
195
+     * @param string $format
196
+     */
191 197
     public function getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)
192 198
     {
193 199
         $data = fopen('php://memory', 'r+b');
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     private function doDump($data, $name, $file, $line)
250 250
     {
251 251
         if ($this->dumper instanceof CliDumper) {
252
-            $contextDumper = function ($name, $file, $line, $fileLinkFormat) {
252
+            $contextDumper = function($name, $file, $line, $fileLinkFormat) {
253 253
                 if ($this instanceof HtmlDumper) {
254 254
                     if ('' !== $file) {
255 255
                         $s = $this->style('meta', '%s');
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     {
284 284
         $html = '';
285 285
 
286
-        $dumper = new HtmlDumper(function ($line) use (&$html) {$html .= $line;}, $this->charset);
286
+        $dumper = new HtmlDumper(function($line) use (&$html) {$html .= $line; }, $this->charset);
287 287
         $dumper->setDumpHeader('');
288 288
         $dumper->setDumpBoundaries('', '');
289 289
 
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/DataCollector/MemoryDataCollector.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@
 block discarded – undo
81 81
         return 'memory';
82 82
     }
83 83
 
84
+    /**
85
+     * @param string $memoryLimit
86
+     */
84 87
     private function convertToBytes($memoryLimit)
85 88
     {
86 89
         if ('-1' === $memoryLimit) {
Please login to merge, or discard this patch.