@@ -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; |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | - * @param mixed $subject |
|
| 189 | + * @param \PhpCollection\Sequence $subject |
|
| 190 | 190 | */ |
| 191 | 191 | private function assertInterfaces($subject) |
| 192 | 192 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace GitElephant\Command; |
| 10 | 10 | |
| 11 | -use GitElephant\Objects\Commit; |
|
| 12 | 11 | use \GitElephant\TestCase; |
| 13 | 12 | |
| 14 | 13 | class ResetCommandTest extends TestCase |
@@ -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 null|string $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 |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | 109 | * @param \GitElephant\Repository $repository repository instance |
| 110 | - * @param string|TreeishInterface $name branch name |
|
| 110 | + * @param string $name branch name |
|
| 111 | 111 | * @param bool $create like checkout -b, create a branch and check it out |
| 112 | 112 | * |
| 113 | 113 | * @throws \RuntimeException |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | * @param string $branchString branch line output |
| 197 | 197 | * |
| 198 | 198 | * @throws \InvalidArgumentException |
| 199 | - * @return array |
|
| 199 | + * @return Repository |
|
| 200 | 200 | */ |
| 201 | 201 | public static function getMatches(string $branchString) |
| 202 | 202 | { |