12
if (is_array($arg) === true) {
16
$something = get($arg1, $arg2);
17
$something = get($arg1, $arg2) ;
18
$something = get($arg1, $arg2) ;
20
// No errors as this test only checks for function calls.
21
class TestClass extends MyClass
24
const const1 = 'hello';
25
const CONST2 = 'hello';
27
public function test () { }
30
make_foo($string/*the string*/, true/*test*/);
31
make_foo($string/*the string*/, true/*test*/ );
32
make_foo($string /*the string*/, true /*test*/);
33
make_foo(/*the string*/$string, /*test*/true);
34
make_foo( /*the string*/$string, /*test*/true);
36
// No errors should be throw here because
37
// this is multi-line.
42
// Objects are the same as a normal call.
43
$obj = new TestClass( );
45
// Heredocs dont need to be indented.
48
Anyone want to recomment parse errors?
66
// This is not a function call.
67
function &testFunction($arg1,
108
public function doSomething()
110
return $this->getFoo()
112
$this->getX() // no comma here
113
->doY() // this is still the first method argument
114
->doZ() // this is still the first method argument
123
// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature allowMultipleArguments false
129
$ {$app} --all", $something
145
public function doSomething()
147
return $this->getFoo()
149
$this->getX() // no comma here
150
->doY() // this is still the first method argument
151
->doZ() // this is still the first method argument
157
'Not Found', // error name
158
'Check your id' // fix
161
// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature allowMultipleArguments true
163
// Don't report errors for closing braces. Leave that to other sniffs.
209
// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 1
210
// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 1
214
// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 0
215
// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 0