Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

moay
Copy link

@moay moay commented Feb 28, 2018

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 just GitException, is chose the latter.

Copy link
Contributor

@janpecha janpecha left a 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
Copy link
Contributor

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)
Copy link
Contributor

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
*/
/**
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants