Open
Description
Summary
Change the method_argument_space rule to following:
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline']
Reasons
One of the most common refactoring I see is the following:
-public function __construct(LoggerInterface $logger,
+public function __construct(
+ LoggerInterface $logger,
- IEventDispatcher $dispatcher) {
+ IEventDispatcher $dispatcher,
+) {
// something
}
I also think it makes sense to have this formatting to reduce the diff if you add another dependency to the constructor, e.g.:
Before:
public function __construct(LoggerInterface $logger,
- IEventDispatcher $dispatcher) {
+ IEventDispatcher $dispatcher,
+ IURLGenerator $urlGenerator) {
// something
}
After:
public function __construct(
LoggerInterface $logger,
IEventDispatcher $dispatcher,
+ IURLGenerator $urlGenerator,
) {
// something
}