original_string: protected function processAutoSpan($fields)
      {
          $prevSpan = null;
  
          foreach ($fields as $field) {
              if (strtolower($field->span) === 'auto') {
                  if ($prevSpan === 'left') {
                      $field->span = 'right';
                  }
                  else {
                      $field->span = 'left';
                  }
              }
  
              $prevSpan = $field->span;
          }
      }
code: protected function processAutoSpan($fields)
      {
          $prevSpan = null;
  
          foreach ($fields as $field) {
              if (strtolower($field->span) === 'auto') {
                  if ($prevSpan === 'left') {
                      $field->span = 'right';
                  }
                  else {
                      $field->span = 'left';
                  }
              }
  
              $prevSpan = $field->span;
          }
      }
code_tokens: protected function processAutoSpan ( $ fields ) { $ prevSpan = null ; foreach ( $ fields as $ field ) { if ( strtolower ( $ field -> span ) === 'auto' ) { if ( $ prevSpan === 'left' ) { $ field -> span = 'right' ; } else { $ field -> span = 'left' ; } } $ prevSpan = $ field -> span ; } }
docstring: Converts fields with a span set to 'auto' as either
  'left' or 'right' depending on the previous field.
  
  @return void
docstring_tokens: Converts fields with a span set to auto as either left or right depending on the previous field .