Completed
Pull Request — master (#141)
by Bhanu
37:51 queued 34s
created
vendor/psy/psysh/src/Psy/Output/ProcOutputPager.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -84,6 +84,7 @@
 block discarded – undo
84 84
      * Get a pipe for paging output.
85 85
      *
86 86
      * If no active pager process exists, fork one and return its input pipe.
87
+     * @return resource
87 88
      */
88 89
     private function getPipe()
89 90
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     public function doWrite($message, $newline)
52 52
     {
53 53
         $pipe = $this->getPipe();
54
-        if (false === @fwrite($pipe, $message . ($newline ? PHP_EOL : ''))) {
54
+        if (false === @fwrite($pipe, $message.($newline ? PHP_EOL : ''))) {
55 55
             // @codeCoverageIgnoreStart
56 56
             // should never happen
57 57
             throw new \RuntimeException('Unable to write output.');
Please login to merge, or discard this patch.
vendor/psy/psysh/src/Psy/ParserFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * Possible kinds of parsers for the factory, from PHP parser library.
30 30
      *
31
-     * @return array
31
+     * @return string[]
32 32
      */
33 33
     public static function getPossibleKinds()
34 34
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
                 throw new \InvalidArgumentException('Unknown parser kind');
78 78
             }
79 79
 
80
-            $parser = $originalFactory->create(constant('PhpParser\ParserFactory::' . $kind));
80
+            $parser = $originalFactory->create(constant('PhpParser\ParserFactory::'.$kind));
81 81
         } else {
82 82
             if ($kind !== null) {
83 83
                 throw new \InvalidArgumentException('Install PHP Parser v2.x to specify parser kind');
Please login to merge, or discard this patch.
vendor/psy/psysh/src/Psy/Readline/GNUReadline.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -38,6 +38,7 @@
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * GNU Readline constructor.
41
+     * @param string $historyFile
41 42
      */
42 43
     public function __construct($historyFile = null, $historySize = 0, $eraseDups = false)
43 44
     {
Please login to merge, or discard this patch.
vendor/psy/psysh/src/Psy/Shell.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
      *
506 506
      * @param string $input User input string
507 507
      *
508
-     * @return mixed Who knows?
508
+     * @return integer Who knows?
509 509
      */
510 510
     protected function runCommand($input)
511 511
     {
@@ -642,7 +642,6 @@  discard block
 block discarded – undo
642 642
      * Stores $e as the last Exception in the Shell Context.
643 643
      *
644 644
      * @param \Exception      $e      An exception instance
645
-     * @param OutputInterface $output An OutputInterface instance
646 645
      */
647 646
     public function writeException(\Exception $e)
648 647
     {
@@ -744,7 +743,7 @@  discard block
 block discarded – undo
744 743
      *
745 744
      * @param string $input
746 745
      *
747
-     * @return null|Command
746
+     * @return BaseCommand|null
748 747
      */
749 748
     protected function getCommand($input)
750 749
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
         $command = $this->getCommand($input);
515 515
 
516 516
         if (empty($command)) {
517
-            throw new \InvalidArgumentException('Command not found: ' . $input);
517
+            throw new \InvalidArgumentException('Command not found: '.$input);
518 518
         }
519 519
 
520 520
         $input = new StringInput(str_replace('\\', '\\\\', rtrim($input, " \t\n\r\0\x0B;")));
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
         $ret    = $this->presentValue($ret);
633 633
         $indent = str_repeat(' ', strlen(self::RETVAL));
634 634
 
635
-        $this->output->writeln(self::RETVAL . str_replace(PHP_EOL, PHP_EOL . $indent, $ret));
635
+        $this->output->writeln(self::RETVAL.str_replace(PHP_EOL, PHP_EOL.$indent, $ret));
636 636
     }
637 637
 
638 638
     /**
Please login to merge, or discard this patch.
vendor/sebastian/comparator/src/ArrayComparator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -129,6 +129,9 @@
 block discarded – undo
129 129
         }
130 130
     }
131 131
 
132
+    /**
133
+     * @param string $lines
134
+     */
132 135
     protected function indent($lines)
133 136
     {
134 137
         return trim(str_replace("\n", "\n    ", $lines));
Please login to merge, or discard this patch.
vendor/sebastian/comparator/tests/DOMNodeComparatorTest.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@
 block discarded – undo
98 98
         );
99 99
     }
100 100
 
101
+    /**
102
+     * @param string $content
103
+     */
101 104
     private function createDOMDocument($content)
102 105
     {
103 106
         $document = new DOMDocument;
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
         $node = new DOMNode;
33 33
 
34 34
         return array(
35
-          array($document, $document),
36
-          array($node, $node),
37
-          array($document, $node),
38
-          array($node, $document)
35
+            array($document, $document),
36
+            array($node, $node),
37
+            array($document, $node),
38
+            array($node, $document)
39 39
         );
40 40
     }
41 41
 
@@ -44,57 +44,57 @@  discard block
 block discarded – undo
44 44
         $document = new DOMDocument;
45 45
 
46 46
         return array(
47
-          array($document, null),
48
-          array(null, $document),
49
-          array(null, null)
47
+            array($document, null),
48
+            array(null, $document),
49
+            array(null, null)
50 50
         );
51 51
     }
52 52
 
53 53
     public function assertEqualsSucceedsProvider()
54 54
     {
55 55
         return array(
56
-          array(
56
+            array(
57 57
             $this->createDOMDocument('<root></root>'),
58 58
             $this->createDOMDocument('<root/>')
59
-          ),
60
-          array(
59
+            ),
60
+            array(
61 61
             $this->createDOMDocument('<root attr="bar"></root>'),
62 62
             $this->createDOMDocument('<root attr="bar"/>')
63
-          ),
64
-          array(
63
+            ),
64
+            array(
65 65
             $this->createDOMDocument('<root><foo attr="bar"></foo></root>'),
66 66
             $this->createDOMDocument('<root><foo attr="bar"/></root>')
67
-          ),
68
-          array(
67
+            ),
68
+            array(
69 69
             $this->createDOMDocument("<root>\n  <child/>\n</root>"),
70 70
             $this->createDOMDocument('<root><child/></root>')
71
-          ),
71
+            ),
72 72
         );
73 73
     }
74 74
 
75 75
     public function assertEqualsFailsProvider()
76 76
     {
77 77
         return array(
78
-          array(
78
+            array(
79 79
             $this->createDOMDocument('<root></root>'),
80 80
             $this->createDOMDocument('<bar/>')
81
-          ),
82
-          array(
81
+            ),
82
+            array(
83 83
             $this->createDOMDocument('<foo attr1="bar"/>'),
84 84
             $this->createDOMDocument('<foo attr1="foobar"/>')
85
-          ),
86
-          array(
85
+            ),
86
+            array(
87 87
             $this->createDOMDocument('<foo> bar </foo>'),
88 88
             $this->createDOMDocument('<foo />')
89
-          ),
90
-          array(
89
+            ),
90
+            array(
91 91
             $this->createDOMDocument('<foo xmlns="urn:myns:bar"/>'),
92 92
             $this->createDOMDocument('<foo xmlns="urn:notmyns:bar"/>')
93
-          ),
94
-          array(
93
+            ),
94
+            array(
95 95
             $this->createDOMDocument('<foo> bar </foo>'),
96 96
             $this->createDOMDocument('<foo> bir </foo>')
97
-          )
97
+            )
98 98
         );
99 99
     }
100 100
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function testAcceptsSucceeds($expected, $actual)
115 115
     {
116 116
         $this->assertTrue(
117
-          $this->comparator->accepts($expected, $actual)
117
+            $this->comparator->accepts($expected, $actual)
118 118
         );
119 119
     }
120 120
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     public function testAcceptsFails($expected, $actual)
126 126
     {
127 127
         $this->assertFalse(
128
-          $this->comparator->accepts($expected, $actual)
128
+            $this->comparator->accepts($expected, $actual)
129 129
         );
130 130
     }
131 131
 
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
     public function testAssertEqualsFails($expected, $actual)
155 155
     {
156 156
         $this->setExpectedException(
157
-          'SebastianBergmann\\Comparator\\ComparisonFailure',
158
-          'Failed asserting that two DOM'
157
+            'SebastianBergmann\\Comparator\\ComparisonFailure',
158
+            'Failed asserting that two DOM'
159 159
         );
160 160
         $this->comparator->assertEquals($expected, $actual);
161 161
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,9 +100,7 @@
 block discarded – undo
100 100
 
101 101
         try {
102 102
             $this->comparator->assertEquals($expected, $actual);
103
-        }
104
-
105
-        catch (ComparisonFailure $exception) {
103
+        } catch (ComparisonFailure $exception) {
106 104
         }
107 105
 
108 106
         $this->assertNull($exception, 'Unexpected ComparisonFailure');
Please login to merge, or discard this patch.
vendor/sebastian/exporter/tests/ExporterTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -326,6 +326,9 @@
 block discarded – undo
326 326
         $this->assertEquals(array(true), $this->exporter->toArray(true));
327 327
     }
328 328
 
329
+    /**
330
+     * @param string $string
331
+     */
329 332
     private function trimNewline($string)
330 333
     {
331 334
         return preg_replace('/[ ]*\n/', "\n", $string);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $obj2 = new \stdClass;
31 31
         $obj2->foo = 'bar';
32 32
 
33
-        $obj3 = (object)array(1,2,"Test\r\n",4,5,6,7,8);
33
+        $obj3 = (object) array(1, 2, "Test\r\n", 4, 5, 6, 7, 8);
34 34
 
35 35
         $obj = new \stdClass;
36 36
         //@codingStandardsIgnoreStart
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             array(1.2, '1.2'),
60 60
             array(fopen('php://memory', 'r'), 'resource(%d) of type (stream)'),
61 61
             array('1', "'1'"),
62
-            array(array(array(1,2,3), array(3,4,5)),
62
+            array(array(array(1, 2, 3), array(3, 4, 5)),
63 63
         <<<EOF
64 64
 Array &0 (
65 65
     0 => Array &1 (
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 EOF
152 152
             ),
153 153
             array(
154
-                chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5),
154
+                chr(0).chr(1).chr(2).chr(3).chr(4).chr(5),
155 155
                 'Binary String: 0x000102030405'
156 156
             ),
157 157
             array(
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                 'Binary String: 0x0e0f101112131415161718191a1b1c1d1e1f'
160 160
             ),
161 161
             array(
162
-                chr(0x00) . chr(0x09),
162
+                chr(0x00).chr(0x09),
163 163
                 'Binary String: 0x0009'
164 164
             ),
165 165
             array(
Please login to merge, or discard this patch.
vendor/swiftmailer/swiftmailer/lib/classes/Swift/Attachment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * @param string                        $filename
47 47
      * @param string                        $contentType
48 48
      *
49
-     * @return Swift_Mime_Attachment
49
+     * @return Swift_Mime_MimeEntity
50 50
      */
51 51
     public static function newInstance($data = null, $filename = null, $contentType = null)
52 52
     {
Please login to merge, or discard this patch.
swiftmailer/lib/classes/Swift/CharacterStream/ArrayCharacterStream.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -266,6 +266,10 @@
 block discarded – undo
266 266
         $this->_array_size = 0;
267 267
     }
268 268
 
269
+    /**
270
+     * @param resource $fp
271
+     * @param integer $len
272
+     */
269 273
     private function _reloadBuffer($fp, $len)
270 274
     {
271 275
         if (!feof($fp) && ($bytes = fread($fp, $len)) !== false) {
Please login to merge, or discard this patch.