AKSW/OntoWiki — Issue #13: G.F.FCAS.TooMuchSpaceAfterComma should allow argument alignment
Author: white-gecko
Created: 2011-11-21 15:09:45+00:00
State: open

I get following sniff error

239 | ERROR | Expected 1 space after comma in function call; 2 found
| | (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma)
241 | ERROR | Expected 1 space after comma in function call; 3 found
| | (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma)
242 | ERROR | Expected 1 space after comma in function call; 2 found
| | (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma)

for following code

$bnd['top'] = new Erfurt_Sparql_Query2_Smaller('?lat', $bnd['top']);
$bnd['rgt'] = new Erfurt_Sparql_Query2_Smaller('?long', $bnd['rgt']);
$bnd['btm'] = new Erfurt_Sparql_Query2_Larger('?lat', $bnd['btm']);
$bnd['lft'] = new Erfurt_Sparql_Query2_Larger('?long', $bnd['lft']);
$dttyps[] = new Erfurt_Sparql_Query2_ConditionalAndExpression($bnd);

We only want a check that **at least** one space exists but argument alignment should be possible