moodlehq / moodle-cs

Moodle Coding Style
https://github.com/moodlehq/moodle-cs
GNU General Public License v3.0
18 stars 16 forks source link

[CONTRIB-6256] Codechecker does not detect extra space in class_name::static_method (); #16

Open sarjona opened 3 years ago

sarjona commented 3 years ago

Make a file test.php containing

<?php

require_once(__DIR__ . '/config.php');
$test = context_system::instance ();

Feed it to code-checker. Note that it does not detect the extra space.


Reporter: Tim Hunt

Original issue: https://tracker.moodle.org/browse/CONTRIB-6256

jrchamp commented 1 year ago

This is detected in moodle-extra by PSR2.Methods.FunctionCallSignature.SpaceBeforeOpenBracket.