Clarkson-Core icon indicating copy to clipboard operation
Clarkson-Core copied to clipboard

Naming files, classes and functions

Open rianrietveld opened this issue 7 years ago • 0 comments

The following names cause errors with phpcs

File naming

  • Class file names should be based on the class name with "class-" prepended.
  • Filenames should be all lowercase with hyphens as word separators. This is the case for the files in the wordpress-objects dir.
  • Method name "_refresh_data" should not be prefixed with an underscore to indicate visibility

I propose to rename those files/methods.

This also means the we need to move the class Clarkson_Coreoutside the main clarkson-core.php file.

rianrietveld avatar Jun 26 '18 09:06 rianrietveld