@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * create a repository from a remote git url, or a local filesystem |
| 148 | 148 | * and save it in a temp folder |
| 149 | 149 | * |
| 150 | - * @param string|Repository $git the git remote url, or the filesystem path |
|
| 150 | + * @param string $git the git remote url, or the filesystem path |
|
| 151 | 151 | * @param null $repositoryPath path |
| 152 | 152 | * @param GitBinary $binary binary |
| 153 | 153 | * @param null $name repository name |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | /** |
| 196 | 196 | * Stage the working tree content |
| 197 | 197 | * |
| 198 | - * @param string|NodeObject $path the path to store |
|
| 198 | + * @param string $path the path to store |
|
| 199 | 199 | * |
| 200 | 200 | * @throws \RuntimeException |
| 201 | 201 | * @throws \Symfony\Component\Process\Exception\LogicException |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | /** |
| 214 | 214 | * Unstage a tree content |
| 215 | 215 | * |
| 216 | - * @param string|NodeObject $path the path to unstage |
|
| 216 | + * @param string $path the path to unstage |
|
| 217 | 217 | * |
| 218 | 218 | * @throws \RuntimeException |
| 219 | 219 | * @throws \Symfony\Component\Process\Exception\LogicException |
@@ -231,8 +231,8 @@ discard block |
||
| 231 | 231 | /** |
| 232 | 232 | * Move a file/directory |
| 233 | 233 | * |
| 234 | - * @param string|NodeObject $from source path |
|
| 235 | - * @param string|NodeObject $to destination path |
|
| 234 | + * @param string $from source path |
|
| 235 | + * @param string $to destination path |
|
| 236 | 236 | * |
| 237 | 237 | * @throws \RuntimeException |
| 238 | 238 | * @throws \Symfony\Component\Process\Exception\LogicException |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | /** |
| 252 | 252 | * Remove a file/directory |
| 253 | 253 | * |
| 254 | - * @param string|NodeObject $path the path to remove |
|
| 254 | + * @param string $path the path to remove |
|
| 255 | 255 | * @param bool $recursive recurse |
| 256 | 256 | * @param bool $force force |
| 257 | 257 | * |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | * rev-parse command - often used to return a commit tag. |
| 306 | 306 | * |
| 307 | 307 | * @param array $options the options to apply to rev-parse |
| 308 | - * @param string|NodeObject|Commit $arg the argument (may be a branch head, etc) |
|
| 308 | + * @param string $arg the argument (may be a branch head, etc) |
|
| 309 | 309 | * |
| 310 | 310 | * @throws \RuntimeException |
| 311 | 311 | * @throws \InvalidArgumentException |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | /** |
| 336 | - * @param TreeishInterface|Commit|string $arg |
|
| 336 | + * @param Commit $arg |
|
| 337 | 337 | * @param array $options |
| 338 | 338 | */ |
| 339 | 339 | public function reset($arg, $options) |
@@ -601,7 +601,7 @@ discard block |
||
| 601 | 601 | * |
| 602 | 602 | * @param string $name The new tag name |
| 603 | 603 | * @param null $startPoint The reference to create the tag from |
| 604 | - * @param null $message the tag message |
|
| 604 | + * @param null|string $message the tag message |
|
| 605 | 605 | * |
| 606 | 606 | * @throws \RuntimeException |
| 607 | 607 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
@@ -825,7 +825,7 @@ discard block |
||
| 825 | 825 | * |
| 826 | 826 | * @param string|TreeishInterface|array $ref the treeish to check, as a string, as an object or as an array |
| 827 | 827 | * @param string|NodeObject $path the physical path to the tree relative to the repository root |
| 828 | - * @param int|null $limit limit to n entries |
|
| 828 | + * @param integer $limit limit to n entries |
|
| 829 | 829 | * @param int|null $offset skip n entries |
| 830 | 830 | * @param boolean|false $firstParent skip commits brought in to branch by a merge |
| 831 | 831 | * |
@@ -848,7 +848,7 @@ discard block |
||
| 848 | 848 | * @param string $refStart |
| 849 | 849 | * @param string $refEnd |
| 850 | 850 | * @param string|NodeObject $path the physical path to the tree relative to the repository root |
| 851 | - * @param int|null $limit limit to n entries |
|
| 851 | + * @param integer $limit limit to n entries |
|
| 852 | 852 | * @param int|null $offset skip n entries |
| 853 | 853 | * @param boolean|false $firstParent skip commits brought in to branch by a merge |
| 854 | 854 | * |
@@ -880,7 +880,7 @@ discard block |
||
| 880 | 880 | * Get a log for an object |
| 881 | 881 | * |
| 882 | 882 | * @param \GitElephant\Objects\NodeObject $obj The Object instance |
| 883 | - * @param null|string|\GitElephant\Objects\Branch $branch The branch to read from |
|
| 883 | + * @param string|null $branch The branch to read from |
|
| 884 | 884 | * @param int $limit Limit to n entries |
| 885 | 885 | * @param int|null $offset Skip n entries |
| 886 | 886 | * |
@@ -950,9 +950,9 @@ discard block |
||
| 950 | 950 | /** |
| 951 | 951 | * Get a Diff object for a commit with its parent, by default the diff is between the current head and its parent |
| 952 | 952 | * |
| 953 | - * @param \GitElephant\Objects\Commit|string $commit1 A TreeishInterface instance |
|
| 954 | - * @param \GitElephant\Objects\Commit|string|null $commit2 A TreeishInterface instance |
|
| 955 | - * @param null|string|NodeObject $path The path to get the diff for or a Object instance |
|
| 953 | + * @param string $commit1 A TreeishInterface instance |
|
| 954 | + * @param null|string $commit2 A TreeishInterface instance |
|
| 955 | + * @param null|string $path The path to get the diff for or a Object instance |
|
| 956 | 956 | * |
| 957 | 957 | * @throws \RuntimeException |
| 958 | 958 | * @throws \InvalidArgumentException |
@@ -967,7 +967,7 @@ discard block |
||
| 967 | 967 | * Clone a repository |
| 968 | 968 | * |
| 969 | 969 | * @param string $url the repository url (i.e. git://github.com/matteosister/GitElephant.git) |
| 970 | - * @param null $to where to clone the repo |
|
| 970 | + * @param null|string $to where to clone the repo |
|
| 971 | 971 | * @param string|null $repoReference Repo reference to clone. Required if performing a shallow clone. |
| 972 | 972 | * @param int|null $depth Depth to clone repo. Specify 1 to perform a shallow clone |
| 973 | 973 | * @param bool $recursive Whether to recursively clone child repos. |
@@ -1111,7 +1111,7 @@ discard block |
||
| 1111 | 1111 | * output a node content as an array of lines |
| 1112 | 1112 | * |
| 1113 | 1113 | * @param \GitElephant\Objects\NodeObject $obj The Object of type BLOB |
| 1114 | - * @param \GitElephant\Objects\TreeishInterface|string $treeish A treeish object |
|
| 1114 | + * @param null|Branch $treeish A treeish object |
|
| 1115 | 1115 | * |
| 1116 | 1116 | * @throws \RuntimeException |
| 1117 | 1117 | * @throws \Symfony\Component\Process\Exception\LogicException |