original_string: public function getTextOutput()
      {
          $patchLevel = $this->getPatchLevel();
  
          $commands     = array(sprintf('-- Patch level %d structural changes', $patchLevel));
          $lastLocation = '';
          $lastName     = '';
          $noOutput     = true;
          foreach ($this->getStructuralPatches($patchLevel) as $patch) {
              if ($patch['gpa_location'] != $lastLocation) {
                  $commands[] = sprintf("\n-- DATABASE LOCATION: %s", $patch['gpa_location']);
                  $lastLocation = $patch['gpa_location'];
              }
              if ($patch['gpa_name'] != $lastName) {
                  $commands[] = sprintf("\n-- PATCH: %s", $patch['gpa_name']);
                  $lastName = $patch['gpa_name'];
              }
              $commands[] = $patch['gpa_sql'] . ';';
              $noOutput = false;
          }
  
          if ($noOutput) {
              $commands[] = sprintf("\n-- No structural changes in patchlevel %d", $patchLevel);
          }
          $commands[] = '';
  
          return implode("\n", $commands);
      }
code: public function getTextOutput()
      {
          $patchLevel = $this->getPatchLevel();
  
          $commands     = array(sprintf('-- Patch level %d structural changes', $patchLevel));
          $lastLocation = '';
          $lastName     = '';
          $noOutput     = true;
          foreach ($this->getStructuralPatches($patchLevel) as $patch) {
              if ($patch['gpa_location'] != $lastLocation) {
                  $commands[] = sprintf("\n-- DATABASE LOCATION: %s", $patch['gpa_location']);
                  $lastLocation = $patch['gpa_location'];
              }
              if ($patch['gpa_name'] != $lastName) {
                  $commands[] = sprintf("\n-- PATCH: %s", $patch['gpa_name']);
                  $lastName = $patch['gpa_name'];
              }
              $commands[] = $patch['gpa_sql'] . ';';
              $noOutput = false;
          }
  
          if ($noOutput) {
              $commands[] = sprintf("\n-- No structural changes in patchlevel %d", $patchLevel);
          }
          $commands[] = '';
  
          return implode("\n", $commands);
      }
code_tokens: public function getTextOutput ( ) { $ patchLevel = $ this -> getPatchLevel ( ) ; $ commands = array ( sprintf ( '-- Patch level %d structural changes' , $ patchLevel ) ) ; $ lastLocation = '' ; $ lastName = '' ; $ noOutput = true ; foreach ( $ this -> getStructuralPatches ( $ patchLevel ) as $ patch ) { if ( $ patch [ 'gpa_location' ] != $ lastLocation ) { $ commands [ ] = sprintf ( "\n-- DATABASE LOCATION: %s" , $ patch [ 'gpa_location' ] ) ; $ lastLocation = $ patch [ 'gpa_location' ] ; } if ( $ patch [ 'gpa_name' ] != $ lastName ) { $ commands [ ] = sprintf ( "\n-- PATCH: %s" , $ patch [ 'gpa_name' ] ) ; $ lastName = $ patch [ 'gpa_name' ] ; } $ commands [ ] = $ patch [ 'gpa_sql' ] . ';' ; $ noOutput = false ; } if ( $ noOutput ) { $ commands [ ] = sprintf ( "\n-- No structural changes in patchlevel %d" , $ patchLevel ) ; } $ commands [ ] = '' ; return implode ( "\n" , $ commands ) ; }
docstring: Get the content as text
  
  @return \MUtil_Html_HtmlInterface Something that can be rendered
docstring_tokens: Get the content as text