-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added 'git clean' and improved code comments #21
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for PR. Currently I am on vacation, I will look at it later (in next week). For now I wrote some review comments.
/** | ||
* Clean repo. | ||
* `git clean` | ||
* @param bool $cleanDirectories |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove $cleanDirectories
part
* @throws GitException | ||
* @return self | ||
*/ | ||
public function clean($cleanDirectories = true, $force = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change all true
/false
/null
to uppercase TRUE
/FALSE
/NULL
/** | ||
* @param string | ||
*/ | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix indentation from spaces to tabs.
I added git clean to the repo functionality and fixed the Comments to have them declare the proper exception throwing. As both files are in the same namespace, the thrown error should be either
\Cz\Git\GitException
or justGitException
, is chose the latter.