Closed eug-L closed 1 month ago
Added phpcs with Drupal coding standard, with some tweaks:
Drupal.Classes.ClassFileName.NoMatch
Drupal.Commenting
Squiz.Commenting
@param
@return
Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure
Added phpcs with Drupal coding standard, with some tweaks:
Drupal.Classes.ClassFileName.NoMatch
which requires class name to match file nameDrupal.Commenting
as it is too restrictive on comment sentences (start with capital letter, full stops)Squiz.Commenting
to enforce@param
and@return
on function callsSquiz.PHP.DisallowMultipleAssignments.FoundInControlStructure
to restrict assignment in if statements