Skip to content

History / Coding Standard Tutorial

Revisions

  • Coding-Standard-Tutorial: update the tutorial * Remove mention of creating the standards in the PHPCS `Standards` directory and replace it with information about registering a standard with PHPCS via the `installed_paths` command. * Add note about the token array containing additional information. * Modernize the sniff code sample. - Replace the file docblock with a simpler class docblock. - Use the correct namespace for the standard. - Make it a `final` class. - Use short arrays. - Remove `//end ...` comments. - Improve type specificity in the docblocks. - Remove PHP close tag. * Improve the test code by including code samples which should *not* be flagged (but would trigger the sniff). * Use the more common term (class) "property" instead of "member variable". * Fix grammatical error. * Use fenced code blocks for bash commands. * Various other markdown tweaks for readability.

    @jrfnl jrfnl committed May 16, 2024
  • Coding-Standard-Tutorial: update code sample ... to prevent a deprecation notice on PHP 7.4 and a parse error on PHP 8.0+. Fixes PHPCSStandards/PHP_CodeSniffer#496

    @jrfnl jrfnl committed May 16, 2024
  • Fix some grammar issues and typos

    @jrfnl jrfnl committed Nov 12, 2023
  • Use highlighted blocks for important information Ref: https://github.com/orgs/community/discussions/16925

    @jrfnl jrfnl committed Nov 12, 2023
  • Update URLs to point to the PHPCSStandards repo

    @jrfnl jrfnl committed Nov 12, 2023
  • Updated Coding Standard Tutorial (markdown)

    @gsherwood gsherwood committed Aug 17, 2018
  • Updated Coding Standard Tutorial (markdown)

    @gsherwood gsherwood committed May 4, 2017
  • Be a bit more forceful about needing the category sub-directory for sniffs (ref #627)

    @gsherwood gsherwood committed Jun 23, 2015
  • Updated Coding Standard Tutorial (markdown)

    @gsherwood gsherwood committed Aug 16, 2013
  • Updated Coding Standard Tutorial (markdown)

    @gsherwood gsherwood committed Aug 16, 2013
  • Created Coding Standard Tutorial (markdown)

    @gsherwood gsherwood committed Aug 16, 2013