Completed
Pull Request — master (#166)
by
unknown
112:06 queued 110:39
created
src/GitElephant/Command/DiffCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      *
48 48
      * @param TreeishInterface      $of   the reference to diff
49 49
      * @param TreeishInterface|null $with the source reference to diff with $of, if not specified is the current HEAD
50
-     * @param null                  $path the path to diff, if not specified the full repository
50
+     * @param null|string                  $path the path to diff, if not specified the full repository
51 51
      *
52 52
      * @throws \RuntimeException
53 53
      * @return string
Please login to merge, or discard this patch.
src/GitElephant/Command/LsTreeCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     /**
48 48
      * build a ls-tree command
49 49
      *
50
-     * @param string|Branch $ref The reference to build the tree from
50
+     * @param Branch $ref The reference to build the tree from
51 51
      *
52 52
      * @throws \RuntimeException
53 53
      * @return string
Please login to merge, or discard this patch.
src/GitElephant/Command/ShowCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     /**
45 45
      * build the show command
46 46
      *
47
-     * @param string|\GitElephant\Objects\Commit $ref the reference for the show command
47
+     * @param string $ref the reference for the show command
48 48
      *
49 49
      * @throws \RuntimeException
50 50
      * @return string
Please login to merge, or discard this patch.
src/GitElephant/Command/TagCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *
48 48
      * @param string      $name       The new tag name
49 49
      * @param string|null $startPoint the new tag start point.
50
-     * @param null        $message    the tag message
50
+     * @param null|string        $message    the tag message
51 51
      *
52 52
      * @throws \RuntimeException
53 53
      * @return string the command
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * Delete a tag
104 104
      *
105
-     * @param string|Tag $tag The name of tag, or the Tag instance to delete
105
+     * @param Tag $tag The name of tag, or the Tag instance to delete
106 106
      *
107 107
      * @throws \RuntimeException
108 108
      * @return string the command
Please login to merge, or discard this patch.
src/GitElephant/Objects/Diff/Diff.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @param \GitElephant\Repository                 $repository repository
57 57
      * @param null|string|\GitElephant\Objects\Commit $commit1    first commit
58
-     * @param null|string|\GitElephant\Objects\Commit $commit2    second commit
58
+     * @param null|string $commit2    second commit
59 59
      * @param null|string                             $path       path to consider
60 60
      *
61 61
      * @throws \RuntimeException
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @param null $commit1 commit 1
92 92
      * @param null $commit2 commit 2
93
-     * @param null $path    path
93
+     * @param null|string $path    path
94 94
      *
95 95
      * @throws \RuntimeException
96 96
      * @throws \Symfony\Component\Process\Exception\InvalidArgumentException
Please login to merge, or discard this patch.
src/GitElephant/Status/Status.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
     /**
166 166
      * @param string $line
167 167
      *
168
-     * @return mixed
168
+     * @return string[]
169 169
      */
170 170
     protected function splitStatusLine(string $line)
171 171
     {
Please login to merge, or discard this patch.
src/GitElephant/Objects/Diff/DiffChunk.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     /**
79 79
      * Class constructor
80 80
      *
81
-     * @param array $lines output lines from git binary
81
+     * @param string $lines output lines from git binary
82 82
      *
83 83
      * @throws \Exception
84 84
      */
Please login to merge, or discard this patch.
src/GitElephant/Command/MainCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      * @param bool $bare
58 58
      *
59 59
      * @throws \RuntimeException
60
-     * @return MainCommand
60
+     * @return string
61 61
      */
62 62
     public function init($bare = false): string
63 63
     {
Please login to merge, or discard this patch.
src/GitElephant/Command/SubCommandCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
58 58
         $this->orderedSubjects = null;
59 59
     }
60 60
 
61
+    /**
62
+     * @param string $subject
63
+     */
61 64
     protected function addCommandSubject($subject): void
62 65
     {
63 66
         $this->orderedSubjects[] = $subject;
Please login to merge, or discard this patch.