alleyinteractive / wordpress-fieldmanager

Custom field types for WordPress
Other
533 stars 101 forks source link

Adhere to WP Coding Standards #271

Closed mboynes closed 7 years ago

mboynes commented 9 years ago

We are aiming to enforce the WordPress coding standards across the entire plugin.

We'd love some help doing this spring cleaning. Below is a list of files that need to be verified or updated. If you want to chip in, comment on this issue saying that you're going to take one, and we'll update the issue to say you're on it. Then simply submit a PR with the clean file when you're done.

PHP

danielbachhuber commented 8 years ago

We're set up to do cleanup now, but because of the code churn required, we should do it as the very last thing.

montchr commented 8 years ago

If you still need help with this still, I'm willing to take a few files.

danielbachhuber commented 8 years ago

If you still need help with this still, I'm willing to take a few files.

Great! I think now's a good time for it, given we're at the beginning of the next cycle and don't have too many outstanding pull requests.

Can you submit pull requests file by file, and enable PHPCS validation by Travis on the file at the beginning of the cleanup process? This will let us capture a failing build with all of the validations, and work towards a passing build.

kjbenk commented 7 years ago

I will pick up fieldmanager.php

szepeviktor commented 7 years ago

phpcbf can do miracles in 10 seconds.

kjbenk commented 7 years ago

On php/class-fieldmanager-autocomplete.php

kjbenk commented 7 years ago

On php/class-fieldmanager-checkbox.php

kjbenk commented 7 years ago

On php/class-fieldmanager-checkboxes.php

UPDATE: This seems to already be up to standard.

kjbenk commented 7 years ago

On php/class-fieldmanager-colorpicker.php

kjbenk commented 7 years ago

On php/class-fieldmanager-draggablepost.php

kjbenk commented 7 years ago

On php/class-fieldmanager-field.php

kjbenk commented 7 years ago

On php/class-fieldmanager-grid.php

kjbenk commented 7 years ago

On php/class-fieldmanager-group.php

kjbenk commented 7 years ago

On php/class-fieldmanager-hidden.php

kjbenk commented 7 years ago

On php/class-fieldmanager-link.php

kjbenk commented 7 years ago

On php/class-fieldmanager-media.php

kjbenk commented 7 years ago

On php/class-fieldmanager-options.php

kjbenk commented 7 years ago

On php/class-fieldmanager-radios.php

kjbenk commented 7 years ago

On php/class-fieldmanager-richtextarea.php

kjbenk commented 7 years ago

On php/class-fieldmanager-select.php

kjbenk commented 7 years ago

On php/context/class-fieldmanager-context-page.php

kjbenk commented 7 years ago

On php/class-fieldmanager-textfield.php

kjbenk commented 7 years ago

On php/context/class-fieldmanager-context-post.php

kjbenk commented 7 years ago

On php/context/class-fieldmanager-context-quickedit.php

kjbenk commented 7 years ago

On php/context/class-fieldmanager-context-storable.php

kjbenk commented 7 years ago

On php/context/class-fieldmanager-context-submenu.php

kjbenk commented 7 years ago

On php/context/class-fieldmanager-context-term.php

kjbenk commented 7 years ago

On php/context/class-fieldmanager-context-user.php

kjbenk commented 7 years ago

On php/context/class-fieldmanager-context.php

kjbenk commented 7 years ago

On php/datasource/class-fieldmanager-datasource-post.php

kjbenk commented 7 years ago

On php/datasource/class-fieldmanager-datasource-term.php

kjbenk commented 7 years ago

On php/datasource/class-fieldmanager-datasource-user.php

kjbenk commented 7 years ago

On php/datasource/class-fieldmanager-datasource.php

kjbenk commented 7 years ago

On php/util/class-fieldmanager-util-term-meta.php

kjbenk commented 7 years ago

On php/util/class-fieldmanager-util-validation.php

kjbenk commented 7 years ago

On templates/options-radios.php

kjbenk commented 7 years ago

On templates/textfield.php

mboynes commented 7 years ago

I don't think it's worthwhile to update the JS at this time. The JS for this plugin needs a complete overhaul, moving it to webpack, etc., so I'm going to mark this as resolved now that the PHP files are all done.