- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
<?php namespace test; class Test { public function foo() { $target->sentry->shouldReceive('capture') ->with(Mockery::on(function ($data) { return $data['message'] === 'sentinel'; }), Mockery::on(function ($traces) { return true; }))->once(); echo "foo"; } }
With PHP_CodeSniffer version 2.7.0 and the PSR2 standard this reports:
---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 16 | ERROR | [x] Line indented incorrectly; expected at least 12 spaces, | | found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------
If there's only one function, the error isn't reported.