Skip to content

Superuser addOptions#501

Merged
steinkel merged 3 commits into
CakeDC:developfrom
digitalfotografen:superuser-addOptions
Mar 1, 2017
Merged

Superuser addOptions#501
steinkel merged 3 commits into
CakeDC:developfrom
digitalfotografen:superuser-addOptions

Conversation

@digitalfotografen

Copy link
Copy Markdown
Contributor

addUser and addSuperuser where repeats. Moved most of the logic to a
new method called _createUser

Sorry for one extra commit and pull request on this ;)

addUser and addSuperuser where repeats. Moved most of the logic to a
new method called _createUser

Sorry for one more commit on this ;)
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) to 77.482% when pulling d57c544 on digitalfotografen:superuser-addOptions into aa75dee on CakeDC:develop.

@steinkel

Copy link
Copy Markdown
Member

Please fix phpcs

@digitalfotografen

Copy link
Copy Markdown
Contributor Author

I withdraw this pull request. I am not good enough on writing tests to fix the coverage problems. Decided to keep a working code with some repetitions instead of breaking tests.

@steinkel

Copy link
Copy Markdown
Member

Hey @digitalfotografen your PR looked nice, the only thing missing was fixing minor PHPCS issues, I can help you to fix that to pass the build. You just need to do this:

  • Install phpcs following this howto > https://github.com/cakephp/cakephp-codesniffer#installation
    I usually install it globally, not project based
    Then run it and check the errors found in phpcs like
    phpcs --standard=CakePHP /path/to/code
    You can install phpcs in your favourite IDE too and let it run auto on file changes...
    If you have issues with this I can fix phpcs for you and merge.

Thanks, and sorry for the late answer I was off a couple days...

@steinkel steinkel reopened this Feb 28, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.04%) to 77.468% when pulling d57c544 on digitalfotografen:superuser-addOptions into aa75dee on CakeDC:develop.

@digitalfotografen

Copy link
Copy Markdown
Contributor Author

Hi steinkel,
thanks for the information about PHPCS. I haven't used that locally before. I learned something new.

There is one warning left on the UsersShellTest - but that is an old one reminding to extend the tests.

/Ulrik alias digitalfotografen

@steinkel
steinkel merged commit c636549 into CakeDC:develop Mar 1, 2017
@steinkel

steinkel commented Mar 1, 2017

Copy link
Copy Markdown
Member

well done!

May the phpcs be with you, always

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.

3 participants