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.

            stronk7 Eloy Lafuente (stronk7)
            rex Rex Lorenzo
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.