Yoast / yoast-acf-analysis

WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/
GNU General Public License v3.0
61 stars 20 forks source link

CS: rename (test) classses and rename PHP files #142

Closed jrfnl closed 6 years ago

jrfnl commented 6 years ago

Summary

This PR can be summarized in the following changelog entry:

Relevant technical choices:

As discussed with @moorscode.

  1. Renames test classes to use underscores to separate words
  2. Adjusts the file names for class files to be in line with the rules as laid out in the Yoast.Files.FileName sniff. Ref: Yoast/yoastcs#48
    • Remove class- prefixes from the plugin file names.
    • Remove yoast-acf-analysis prefixes from the plugin file names.
    • Make sure that the file names accurately reflect the class names (excluding the prefixes).
  3. IMPORTANT I noticed when committing the file renames, that the file mode for a number of these files has also been changed from 755 to 644. This change was unintentional, however, does look like a more sensible file mode to me. Please let me know if this is undesired/if there was any special reason why these files had mode 755.

Where necessary, adjusted any include/requires to point to the new file names.

Test instructions

This PR can be tested by following these steps:

jcomack commented 6 years ago

Acceptance done 👍