Loading...
Loading...
Apply Moodle coding standards (PSR-12 with exceptions) to PHP code. Validates style, naming conventions, PHPDoc, and type hints.
npx skill4agent add astoeffer/plugin-marketplace moodle-standards[]else ifelseif?>$lowercasecomponent_function_name()lowercase_with_underscoresCOMPONENT_CONSTANT_NAME@package@param@return?typevendor/bin/phpcs --standard=moodle path/to/file.php/**
* @package mod_myplugin
*/// Before
$arr = array('a', 'b');
// After
$arr = ['a', 'b'];// Before
} elseif ($x) {
// After
} else if ($x) {