Completed
Pull Request — master (#141)
by Bhanu
37:51 queued 34s
created
vendor/symfony/debug/Exception/FlattenException.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
     private $file;
33 33
     private $line;
34 34
 
35
+    /**
36
+     * @param integer $statusCode
37
+     */
35 38
     public static function create(\Exception $exception, $statusCode = null, array $headers = array())
36 39
     {
37 40
         $e = new static();
@@ -104,6 +107,9 @@  discard block
 block discarded – undo
104 107
         return $this->class;
105 108
     }
106 109
 
110
+    /**
111
+     * @param string $class
112
+     */
107 113
     public function setClass($class)
108 114
     {
109 115
         $this->class = $class;
@@ -114,6 +120,9 @@  discard block
 block discarded – undo
114 120
         return $this->file;
115 121
     }
116 122
 
123
+    /**
124
+     * @param string $file
125
+     */
117 126
     public function setFile($file)
118 127
     {
119 128
         $this->file = $file;
@@ -124,6 +133,9 @@  discard block
 block discarded – undo
124 133
         return $this->line;
125 134
     }
126 135
 
136
+    /**
137
+     * @param integer $line
138
+     */
127 139
     public function setLine($line)
128 140
     {
129 141
         $this->line = $line;
@@ -134,6 +146,9 @@  discard block
 block discarded – undo
134 146
         return $this->message;
135 147
     }
136 148
 
149
+    /**
150
+     * @param string $message
151
+     */
137 152
     public function setMessage($message)
138 153
     {
139 154
         $this->message = $message;
@@ -180,6 +195,10 @@  discard block
 block discarded – undo
180 195
         $this->setTrace($exception->getTrace(), $exception->getFile(), $exception->getLine());
181 196
     }
182 197
 
198
+    /**
199
+     * @param string $file
200
+     * @param integer $line
201
+     */
183 202
     public function setTrace($trace, $file, $line)
184 203
     {
185 204
         $this->trace = array();
Please login to merge, or discard this patch.
vendor/symfony/debug/ExceptionHandler.php 2 patches
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,10 @@  discard block
 block discarded – undo
35 35
     private $caughtLength;
36 36
     private $fileLinkFormat;
37 37
 
38
+    /**
39
+     * @param string $charset
40
+     * @param string $fileLinkFormat
41
+     */
38 42
     public function __construct($debug = true, $charset = null, $fileLinkFormat = null)
39 43
     {
40 44
         $this->debug = $debug;
@@ -157,7 +161,7 @@  discard block
 block discarded – undo
157 161
      * This method uses plain PHP functions like header() and echo to output
158 162
      * the response.
159 163
      *
160
-     * @param \Exception|FlattenException $exception An \Exception or FlattenException instance
164
+     * @param \Exception $exception An \Exception or FlattenException instance
161 165
      */
162 166
     public function sendPhpResponse($exception)
163 167
     {
@@ -325,6 +329,10 @@  discard block
 block discarded – undo
325 329
 EOF;
326 330
     }
327 331
 
332
+    /**
333
+     * @param string $content
334
+     * @param string $css
335
+     */
328 336
     private function decorate($content, $css)
329 337
     {
330 338
         return <<<EOF
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
         $caughtLength = $this->caughtLength = 0;
114 114
 
115
-        ob_start(function ($buffer) {
115
+        ob_start(function($buffer) {
116 116
             $this->caughtBuffer = $buffer;
117 117
 
118 118
             return '';
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             // Empty loop, everything is in the condition
124 124
         }
125 125
         if (isset($this->caughtBuffer[0])) {
126
-            ob_start(function ($buffer) {
126
+            ob_start(function($buffer) {
127 127
                 if ($this->caughtLength) {
128 128
                     // use substr_replace() instead of substr() for mbstring overloading resistance
129 129
                     $cleanBuffer = substr_replace($buffer, '', 0, $this->caughtLength);
Please login to merge, or discard this patch.
vendor/symfony/debug/Tests/ErrorHandlerTest.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -100,6 +100,10 @@
 block discarded – undo
100 100
     }
101 101
 
102 102
     // dummy function to test trace in error handler.
103
+
104
+    /**
105
+     * @param ErrorHandlerTest $that
106
+     */
103 107
     private static function triggerNotice($that)
104 108
     {
105 109
         // dummy variable to check for in error handler.
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
             $logger = $this->getMock('Psr\Log\LoggerInterface');
202 202
 
203
-            $warnArgCheck = function ($logLevel, $message, $context) {
203
+            $warnArgCheck = function($logLevel, $message, $context) {
204 204
                 $this->assertEquals('info', $logLevel);
205 205
                 $this->assertEquals('foo', $message);
206 206
                 $this->assertArrayHasKey('type', $context);
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 
225 225
             $logger = $this->getMock('Psr\Log\LoggerInterface');
226 226
 
227
-            $logArgCheck = function ($level, $message, $context) {
227
+            $logArgCheck = function($level, $message, $context) {
228 228
                 $this->assertEquals('Undefined variable: undefVar', $message);
229 229
                 $this->assertArrayHasKey('type', $context);
230 230
                 $this->assertEquals($context['type'], E_NOTICE);
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 
277 277
     public function testHandleDeprecation()
278 278
     {
279
-        $logArgCheck = function ($level, $message, $context) {
279
+        $logArgCheck = function($level, $message, $context) {
280 280
             $this->assertEquals(LogLevel::INFO, $level);
281 281
             $this->assertArrayHasKey('level', $context);
282 282
             $this->assertEquals(E_RECOVERABLE_ERROR | E_USER_ERROR | E_DEPRECATED | E_USER_DEPRECATED, $context['level']);
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 
305 305
             $logger = $this->getMock('Psr\Log\LoggerInterface');
306 306
 
307
-            $logArgCheck = function ($level, $message, $context) {
307
+            $logArgCheck = function($level, $message, $context) {
308 308
                 $this->assertEquals('Uncaught Exception: foo', $message);
309 309
                 $this->assertArrayHasKey('type', $context);
310 310
                 $this->assertEquals($context['type'], E_ERROR);
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
                 $this->assertSame($exception, $e);
326 326
             }
327 327
 
328
-            $handler->setExceptionHandler(function ($e) use ($exception) {
328
+            $handler->setExceptionHandler(function($e) use ($exception) {
329 329
                 $this->assertSame($exception, $e);
330 330
             });
331 331
 
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 
423 423
             $logger = $this->getMock('Psr\Log\LoggerInterface');
424 424
 
425
-            $logArgCheck = function ($level, $message, $context) {
425
+            $logArgCheck = function($level, $message, $context) {
426 426
                 $this->assertEquals('Fatal Parse Error: foo', $message);
427 427
                 $this->assertArrayHasKey('type', $context);
428 428
                 $this->assertEquals($context['type'], E_PARSE);
Please login to merge, or discard this patch.
vendor/symfony/dom-crawler/Tests/CrawlerTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -1011,6 +1011,9 @@
 block discarded – undo
1011 1011
         $this->assertCount(1, $crawler->filter('li:contains("List item 1")'));
1012 1012
     }
1013 1013
 
1014
+    /**
1015
+     * @param string $uri
1016
+     */
1014 1017
     public function createTestCrawler($uri = null)
1015 1018
     {
1016 1019
         $dom = new \DOMDocument();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
     public function testEach()
291 291
     {
292
-        $data = $this->createTestCrawler()->filterXPath('//ul[1]/li')->each(function ($node, $i) {
292
+        $data = $this->createTestCrawler()->filterXPath('//ul[1]/li')->each(function($node, $i) {
293 293
             return $i.'-'.$node->text();
294 294
         });
295 295
 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
     public function testReduce()
318 318
     {
319 319
         $crawler = $this->createTestCrawler()->filterXPath('//ul[1]/li');
320
-        $nodes = $crawler->reduce(function ($node, $i) {
320
+        $nodes = $crawler->reduce(function($node, $i) {
321 321
             return $i !== 1;
322 322
         });
323 323
         $this->assertNotSame($nodes, $crawler, '->reduce() returns a new instance of a crawler');
Please login to merge, or discard this patch.
vendor/symfony/dom-crawler/Tests/FormTest.php 3 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -853,6 +853,11 @@  discard block
 block discarded – undo
853 853
         $this->assertInstanceOf('Symfony\Component\DomCrawler\Field\ChoiceFormField', $form->get('option'));
854 854
     }
855 855
 
856
+    /**
857
+     * @param string $name
858
+     *
859
+     * @return Field\FormField
860
+     */
856 861
     protected function getFormFieldMock($name, $value = null)
857 862
     {
858 863
         $field = $this
@@ -877,6 +882,9 @@  discard block
 block discarded – undo
877 882
         return $field;
878 883
     }
879 884
 
885
+    /**
886
+     * @param string $currentUri
887
+     */
880 888
     protected function createForm($form, $method = null, $currentUri = null)
881 889
     {
882 890
         $dom = new \DOMDocument();
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
                 'appends the submitted button value but not other submit buttons',
236 236
                 '<input type="submit" name="bar" value="bar" />
237 237
                  <input type="submit" name="foobar" value="foobar" />',
238
-                 array('foobar' => array('InputFormField', 'foobar')),
238
+                    array('foobar' => array('InputFormField', 'foobar')),
239 239
             ),
240 240
             array(
241 241
                 'turns an image input into x and y fields',
@@ -246,38 +246,38 @@  discard block
 block discarded – undo
246 246
                 'returns textareas',
247 247
                 '<textarea name="foo">foo</textarea>
248 248
                  <input type="submit" />',
249
-                 array('foo' => array('TextareaFormField', 'foo')),
249
+                    array('foo' => array('TextareaFormField', 'foo')),
250 250
             ),
251 251
             array(
252 252
                 'returns inputs',
253 253
                 '<input type="text" name="foo" value="foo" />
254 254
                  <input type="submit" />',
255
-                 array('foo' => array('InputFormField', 'foo')),
255
+                    array('foo' => array('InputFormField', 'foo')),
256 256
             ),
257 257
             array(
258 258
                 'returns checkboxes',
259 259
                 '<input type="checkbox" name="foo" value="foo" checked="checked" />
260 260
                  <input type="submit" />',
261
-                 array('foo' => array('ChoiceFormField', 'foo')),
261
+                    array('foo' => array('ChoiceFormField', 'foo')),
262 262
             ),
263 263
             array(
264 264
                 'returns not-checked checkboxes',
265 265
                 '<input type="checkbox" name="foo" value="foo" />
266 266
                  <input type="submit" />',
267
-                 array('foo' => array('ChoiceFormField', false)),
267
+                    array('foo' => array('ChoiceFormField', false)),
268 268
             ),
269 269
             array(
270 270
                 'returns radio buttons',
271 271
                 '<input type="radio" name="foo" value="foo" />
272 272
                  <input type="radio" name="foo" value="bar" checked="bar" />
273 273
                  <input type="submit" />',
274
-                 array('foo' => array('ChoiceFormField', 'bar')),
274
+                    array('foo' => array('ChoiceFormField', 'bar')),
275 275
             ),
276 276
             array(
277 277
                 'returns file inputs',
278 278
                 '<input type="file" name="foo" />
279 279
                  <input type="submit" />',
280
-                 array('foo' => array('FileFormField', array('name' => '', 'type' => '', 'tmp_name' => '', 'error' => 4, 'size' => 0))),
280
+                    array('foo' => array('FileFormField', array('name' => '', 'type' => '', 'tmp_name' => '', 'error' => 4, 'size' => 0))),
281 281
             ),
282 282
         );
283 283
     }
@@ -803,7 +803,7 @@  discard block
 block discarded – undo
803 803
             3 => 3,
804 804
             'bar' => array(
805 805
                 'baz' => 'fbb',
806
-             ),
806
+                ),
807 807
         ));
808 808
     }
809 809
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
         $form = $this->createForm('<form>'.$form.'</form>');
190 190
         $this->assertEquals(
191 191
             $values,
192
-            array_map(function ($field) {
192
+            array_map(function($field) {
193 193
                     $class = get_class($field);
194 194
 
195 195
                     return array(substr($class, strrpos($class, '\\') + 1), $field->getValue());
Please login to merge, or discard this patch.
vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * Adds a service as event listener.
59 59
      *
60 60
      * @param string $eventName Event for which the listener is added
61
-     * @param array  $callback  The service ID of the listener service & the method
61
+     * @param string[]  $callback  The service ID of the listener service & the method
62 62
      *                          name that has to be called
63 63
      * @param int    $priority  The higher this value, the earlier an event listener
64 64
      *                          will be triggered in the chain.
Please login to merge, or discard this patch.
vendor/symfony/finder/Finder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@
 block discarded – undo
300 300
     /**
301 301
      * Excludes directories.
302 302
      *
303
-     * @param string|array $dirs A directory path or an array of directories
303
+     * @param string $dirs A directory path or an array of directories
304 304
      *
305 305
      * @return Finder The current Finder instance
306 306
      *
Please login to merge, or discard this patch.
vendor/symfony/http-foundation/BinaryFileResponse.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -301,6 +301,7 @@
 block discarded – undo
301 301
      * {@inheritdoc}
302 302
      *
303 303
      * @throws \LogicException when the content is not null
304
+     * @param string $content
304 305
      */
305 306
     public function setContent($content)
306 307
     {
Please login to merge, or discard this patch.
vendor/symfony/http-foundation/Cookie.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      *
32 32
      * @param string                                  $name     The name of the cookie
33 33
      * @param string                                  $value    The value of the cookie
34
-     * @param int|string|\DateTime|\DateTimeInterface $expire   The time the cookie expires
34
+     * @param integer $expire   The time the cookie expires
35 35
      * @param string                                  $path     The path on the server in which the cookie will be available on
36 36
      * @param string                                  $domain   The domain that the cookie is available to
37 37
      * @param bool                                    $secure   Whether the cookie should only be transmitted over a secure HTTPS connection from the client
Please login to merge, or discard this patch.