XHTML 1.0 Transitional. Click to learn more about our commitment to accessibility and standards.
Skip navigation

Download: Code quality checker

Description

The code quality checker is an advanced tool to check PHP code to ensure it is valid and compliant with ocProducts standards. As a full parser for PHP, the tool can find problems before code is even executed.
It includes a strong type checker, unlike PHP which is weak typed: therefore this tool can be used to find problems that PHP would not report. The type checking is based upon the PHPDoc-style API documentation ocPortal uses throughout.
Dozens of checks are included to find common mistakes that PHP would not detect, or would only detect when specific involved code paths are executed.

There is a simple Windows frontend, with the main tool written in PHP.

This tool is designed for ocPortal, but with a small amount of modification, could be used as a general tool. It is released under the ocProducts open source licence.