@@ -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 | { |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * class provide "convenience" methods that do this for you. |
| 57 | 57 | * |
| 58 | 58 | * @param \GitElephant\Command\SubCommandCommand $subcommand A subcommand object |
| 59 | - * @param array $options Options for the main git-remote command |
|
| 59 | + * @param string[] $options Options for the main git-remote command |
|
| 60 | 60 | * |
| 61 | 61 | * @throws \RuntimeException |
| 62 | 62 | * @return string Command string to pass to caller |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * |
| 130 | 130 | * @param string $name remote name |
| 131 | 131 | * @param string $url URL of remote |
| 132 | - * @param array $options options for the add subcommand |
|
| 132 | + * @param string[] $options options for the add subcommand |
|
| 133 | 133 | * |
| 134 | 134 | * @throws \RuntimeException |
| 135 | 135 | * @return string |
@@ -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 | { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * @throws \Symfony\Component\Process\Exception\LogicException |
| 201 | 201 | * @throws \Symfony\Component\Process\Exception\InvalidArgumentException |
| 202 | 202 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
| 203 | - * @return int|void |
|
| 203 | + * @return integer |
|
| 204 | 204 | */ |
| 205 | 205 | public function count() |
| 206 | 206 | { |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | * |
| 352 | 352 | * @param bool $short short version |
| 353 | 353 | * |
| 354 | - * @return mixed |
|
| 354 | + * @return string |
|
| 355 | 355 | */ |
| 356 | 356 | public function getSha($short = false) |
| 357 | 357 | { |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | /** |
| 362 | 362 | * tree getter |
| 363 | 363 | * |
| 364 | - * @return mixed |
|
| 364 | + * @return string |
|
| 365 | 365 | */ |
| 366 | 366 | public function getTree() |
| 367 | 367 | { |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | /** |
| 372 | 372 | * datetimeAuthor getter |
| 373 | 373 | * |
| 374 | - * @return mixed |
|
| 374 | + * @return \DateTime |
|
| 375 | 375 | */ |
| 376 | 376 | public function getDatetimeAuthor() |
| 377 | 377 | { |