Hi all,
I'm currently working on implementing PER Coding Style 2.0 for PHP CodeSniffer, and I'm facing some ambiguity in the specification.
There is a section on method chaining. But what if the first called method is a static call to a class. It is not outlined if the static call should be indented or not.
Like this:
MyClass::getInstance()
->foo()
->bar();
Or this:
MyClass
::getInstance()
->foo()
->bar();
This is ambigious in the specification currently since it does not outline whether a static call is considered 'part of the chain' or not.
Also, hello, my name is Rik and I'm new here. I'm in the PHP 'world' for +- 20y. I might have more questions/suggestions as I'm plowing through it.
Kind regards,
Rik