Merge 'Object-oriented code' page into 'PHP coding standards' page

Created on 10 December 2024, 16 days ago

Problem/Motivation

There are 'main' PHP standards are across two pages. There is even a 'naming' section on both pages. This is confusing.

It was suggested in an issue somewhere to merge them.

Proposed changes

Move the docs from Object-oriented code to the PHP coding standards .

The details are not listed here because it will be a simple copy/paste.

Remaining tasks

Decide if this should be done or not.

📌 Task
Status

Active

Component

Documentation

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @quietone
  • 🇬🇧United Kingdom jonathan1055

    That sounds like a reasonable plan. I expect the Object-oriented page is newer, maybe added when Drupal 8 was first being developed?

  • 🇳🇿New Zealand quietone

    There was also support in Slack for this from larowlan and yesct.

    I moved the content, then merged two 'naming' and two 'type hinting' sections. After that I took the liberty of alphabetizing the page by the h2 headings and ensured that all h2 headings had a correct id.

  • 🇦🇹Austria drunken monkey Vienna, Austria

    Great job, thanks!
    I’d merely suggest renaming the “Naming » Classes” sub-heading to “Classes, methods and properties”. I was a bit confused by properties missing from the “Naming” sub-menu.

Production build 0.71.5 2024