Style terms
Consistency, readability, and the rules that make teams sane
Coding style is not about aesthetics — it is about communication. Consistent formatting, naming conventions, linting rules, and documentation standards reduce cognitive load and make code reviews faster and less painful. This category covers the conventions and tooling that help teams write code that reads as if one thoughtful person wrote it all.
Elvis Operator Not Used PHP 5.3+
Writing $x ? $x : $y instead of $x ?: $y — the Elvis operator (?:) returns the left operand if truthy, otherwise the right, eliminating the repeated expression.
2mo ago
style beginner
Excessive Blank Lines PHP 5.0+
Multiple consecutive blank lines within a function or between statements — adding visual noise without improving readability.
2mo ago
style beginner
EditorConfig for PHP Projects
A .editorconfig file enforces consistent indentation, line endings, and charset across all editors without relying on individual developer setup.
2mo ago
style beginner
Early Return Pattern
Exit a function as soon as the result is known rather than carrying state through the rest of the function body.
2mo ago
style beginner