Tag

phpcs

1 views collected around this technical thread.

360 Quality & Efficiency
360 Quality & Efficiency
Nov 13, 2019 · Backend Development

Creating a Custom PHP_CodeSniffer Rule to Disallow Hash Comments

This tutorial explains how to build a custom PHP_CodeSniffer standard that forbids the use of hash (#) for single‑line comments, covering directory setup, rule implementation in PHP, detailed code walkthrough, execution commands, and interpreting the generated XML report.

Static Analysiscoding standardscustom sniff
0 likes · 8 min read
Creating a Custom PHP_CodeSniffer Rule to Disallow Hash Comments
360 Quality & Efficiency
360 Quality & Efficiency
Nov 13, 2018 · Backend Development

Understanding PHP_CodeSniffer: Tokenization and Lexical Analysis in PHP

This article explains how PHP_CodeSniffer performs static analysis by tokenizing PHP source code, describes PHP’s execution process, clarifies the concept of tokens and how to retrieve them with token_get_all and token_name, and shows how this knowledge enables custom rule creation.

BackendStatic Analysislexical analysis
0 likes · 5 min read
Understanding PHP_CodeSniffer: Tokenization and Lexical Analysis in PHP
360 Tech Engineering
360 Tech Engineering
Jun 19, 2018 · Backend Development

Improving PHP Code Quality with PHING, PHPCS, PHPCPD, and Phan

This article explains how to set up a PHP project with Composer, PHING, and a suite of quality‑checking tools—including PHPCS for coding standards, PHPCPD for duplicate detection, and Phan for deep static analysis—to automatically enforce code quality and reduce manual review effort.

PHINGPHPCPDPhan
0 likes · 7 min read
Improving PHP Code Quality with PHING, PHPCS, PHPCPD, and Phan