sitecrafting / conifer

:evergreen_tree: A powerful WordPress library plugin for OO development
https://www.coniferplug.in
MIT License
18 stars 2 forks source link

Feature/shortcode authorization update #45

Closed dknoben closed 6 years ago

dknoben commented 6 years ago

Ticket: #19

Issue

Review and update the Shortcode Authorization Class

Solution

I reviewed the code, and implemented a small change to how the Shortcode Policy class is implemented so it accepts a tag name so we do not have to hard code the name of the shortcode tag in the UserRoleShortcodePolicy class.

Testing

The ShortcodeAuthorizationPolicyTest has been updated to reflect the change in the Shortcode Policy class.

acobster commented 6 years ago

@dknoben looks like there were some merge conflicts. Can you resolve your branch against master and push again?

dknoben commented 6 years ago

Merge conflicts resolved.

acobster commented 6 years ago

@dknoben this is looking good, there are just a few coding standards issues to take care of. "All checks have failed" because Travis is running code sniffer tests. Run lando sniff to find out what it's complaining about. I think you can run lando php vendor/bin/phpcbf to fix most of the issues automatically.

Good to go after that, thanks again!

acobster commented 6 years ago

Hey @dknoben - phpcbf was able to fix almost all the issues, so don't worry about the issues you were having with codesniffer for now. Let's discuss later.