-
Sub-task
-
Resolution: Fixed
-
Low
In my code I am using PHPUnit data generators and have a line that looks something like this:
$student = $this->getDataGenerator()->get_plugin_generator('local_ucla')->create_user();
|
However, this line is already getting too long. If I try to indent the line to look something like this:
$student = $this->getDataGenerator()
|
->get_plugin_generator('local_ucla')
|
->create_user();
|
I get complaints from the Coding style checker that it found "Space found before object operator".
If I try to do this style of indentation:
$student = $this->getDataGenerator()->
|
get_plugin_generator('local_ucla')->
|
create_user();
|
I get the error that says "Space found after object operator". So there is no good way to break up a line with many object operators.
I would prefer if the first style would be adopted, since it looks more aesthetically pleasing.
- has a non-specific relationship to
-
MDLSITE-2132 RFC: Clarify the line wrapping/indentation rules
-
- Resolved
-
-
CONTRIB-6443 CiBoT no longer allows wrapping on operators
-
- Closed
-
- has been marked as being related by
-
CONTRIB-6032 Determine support for fluent interfaces
-
- Closed
-