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

More refactoring for AutoloadGenerator #2298

Closed

Conversation

donquixote
Copy link
Contributor

Follow-up to the refactoring PR for AutoloadGenerator. #2142

Goal:

  • eliminate method parameter madness
  • eliminate local variable madness
  • avoid classes and methods being too long
  • Split the generator into "aspects"
  • Improve documentation
  • Make it look nice in PHPStorm.

@donquixote
Copy link
Contributor Author

@Seldaek: Please don't merge this as-is. I want to clean up the git history (rebase) and we probably want to rename some methods..

@donquixote
Copy link
Contributor Author

And merging with master is going to be fun...

{
// Add custom psr-0 autoloading, if the root package has a target dir.
$mainAutoload = $this->mainPackage->getAutoload();
if (1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this for? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to line up the && nicely, and make it easy to rearrange conditions.. similar to the comma after a last element in an array.
i don't insist on it.

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

Successfully merging this pull request may close these issues.

None yet

5 participants