@@ -47,7 +47,7 @@ |
||
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 |
@@ -47,7 +47,7 @@ |
||
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 |
@@ -57,7 +57,7 @@ |
||
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) |
63 | 63 | { |
@@ -44,7 +44,7 @@ |
||
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 |
@@ -58,6 +58,9 @@ |
||
58 | 58 | $this->orderedSubjects = null; |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $subject |
|
63 | + */ |
|
61 | 64 | protected function addCommandSubject($subject) |
62 | 65 | { |
63 | 66 | $this->orderedSubjects[] = $subject; |
@@ -47,7 +47,7 @@ discard block |
||
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 string|null $message the tag message |
|
51 | 51 | * |
52 | 52 | * @throws \RuntimeException |
53 | 53 | * @return string the command |
@@ -102,7 +102,7 @@ discard block |
||
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 |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | /** |
107 | 107 | * @param \GitElephant\Repository $repository repository instance |
108 | - * @param string|TreeishInterface $name branch name |
|
108 | + * @param string $name branch name |
|
109 | 109 | * @param bool $create like checkout -b, create a branch and check it out |
110 | 110 | * |
111 | 111 | * @throws \RuntimeException |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | * @param string $branchString branch line output |
190 | 190 | * |
191 | 191 | * @throws \InvalidArgumentException |
192 | - * @return array |
|
192 | + * @return Repository |
|
193 | 193 | */ |
194 | 194 | public static function getMatches($branchString) |
195 | 195 | { |
@@ -114,7 +114,7 @@ |
||
114 | 114 | /** |
115 | 115 | * toString magic method |
116 | 116 | * |
117 | - * @return mixed |
|
117 | + * @return string |
|
118 | 118 | */ |
119 | 119 | public function __toString() |
120 | 120 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @param string $message tag message |
61 | 61 | * |
62 | 62 | * @throws \RuntimeException |
63 | - * @return \GitElephant\Objects\Branch |
|
63 | + * @return Tag|null |
|
64 | 64 | */ |
65 | 65 | public static function create(Repository $repository, $name, $startPoint = null, $message = null) |
66 | 66 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @throws \RuntimeException |
80 | 80 | * @throws \InvalidArgumentException |
81 | 81 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
82 | - * @return Commit |
|
82 | + * @return Tag |
|
83 | 83 | */ |
84 | 84 | public static function createFromOutputLines(Repository $repository, $outputLines, $name) |
85 | 85 | { |