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

PSR-2 in production code #10

Closed
wants to merge 2 commits into from
Closed

PSR-2 in production code #10

wants to merge 2 commits into from

Conversation

iwankgb
Copy link
Contributor

@iwankgb iwankgb commented Apr 14, 2015

Following types of changes have been applied to observe PSR-2:

  • lines longer that 120 lines are broken into many lines (yes, it is a soft limit);
  • method calls incorrectly broken into more then 1 line are fixed;
  • some spacing issues are fixed too.

@taylorotwell
Copy link
Member

I only tend to accept PSR-2 fixes that can be automated by php-cs-fixer as its more scalable going forward. Thanks

@GrahamCampbell
Copy link
Member

Also, these changes aren't PSR-2. PSR-2 does NOT stipulate a hard line length.

@@ -370,7 +370,11 @@ protected function registerAuthBindings()
});

$this->singleton('auth.password', function () {
return $this->loadComponent('auth', 'Illuminate\Auth\Passwords\PasswordResetServiceProvider', 'auth.password');
return $this->loadComponent(
Copy link

Choose a reason for hiding this comment

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

@GrahamCampbell You can argue that PSR-2 does not require this…

@laravel laravel locked and limited conversation to collaborators Apr 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants