Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: