original_string: protected function addEscortReport()
      {
          $this->html->h3('Project and escort class report');
  
          $escortClass   = get_class($this->escort);
          $foundNone     = true;
          $projectName   = $this->project->getName();
  
          $oldInterfaces = array(
              'Gems_Project_Log_LogRespondentAccessInterface',
              'Gems_Project_Organization_MultiOrganizationInterface',
              'Gems_Project_Organization_SingleOrganizationInterface',
              'Gems_Project_Tracks_FixedTracksInterface',
              'Gems_Project_Tracks_StandAloneSurveysInterface',
              'Gems_Project_Tracks_TracksOnlyInterface',
              );
          foreach ($oldInterfaces as $interface) {
              if ($this->escort instanceof $interface) {
                  $foundNone = false;
                  $this->html->pInfo(sprintf(
                          '%s implements the deprecated %s interface. Remove this interface.',
                          $escortClass,
                          $interface
                          ));
              }
          }
  
          $snippetsDir = APPLICATION_PATH . '\snippets';
          if (file_exists($snippetsDir)) {
              $foundNone = false;
              $this->html->pInfo(sprintf(
                      '%s still uses the deprecated %s directory for snippets. This directory is deprecated and will be removed in 1.7.2.',
                      $projectName,
                      $snippetsDir
                      ));
          }
          if ($foundNone) {
              $this->html->pInfo(sprintf('%s and %s are up to date.', $projectName, $escortClass));
          }
      }
code: protected function addEscortReport()
      {
          $this->html->h3('Project and escort class report');
  
          $escortClass   = get_class($this->escort);
          $foundNone     = true;
          $projectName   = $this->project->getName();
  
          $oldInterfaces = array(
              'Gems_Project_Log_LogRespondentAccessInterface',
              'Gems_Project_Organization_MultiOrganizationInterface',
              'Gems_Project_Organization_SingleOrganizationInterface',
              'Gems_Project_Tracks_FixedTracksInterface',
              'Gems_Project_Tracks_StandAloneSurveysInterface',
              'Gems_Project_Tracks_TracksOnlyInterface',
              );
          foreach ($oldInterfaces as $interface) {
              if ($this->escort instanceof $interface) {
                  $foundNone = false;
                  $this->html->pInfo(sprintf(
                          '%s implements the deprecated %s interface. Remove this interface.',
                          $escortClass,
                          $interface
                          ));
              }
          }
  
          $snippetsDir = APPLICATION_PATH . '\snippets';
          if (file_exists($snippetsDir)) {
              $foundNone = false;
              $this->html->pInfo(sprintf(
                      '%s still uses the deprecated %s directory for snippets. This directory is deprecated and will be removed in 1.7.2.',
                      $projectName,
                      $snippetsDir
                      ));
          }
          if ($foundNone) {
              $this->html->pInfo(sprintf('%s and %s are up to date.', $projectName, $escortClass));
          }
      }
code_tokens: protected function addEscortReport ( ) { $ this -> html -> h3 ( 'Project and escort class report' ) ; $ escortClass = get_class ( $ this -> escort ) ; $ foundNone = true ; $ projectName = $ this -> project -> getName ( ) ; $ oldInterfaces = array ( 'Gems_Project_Log_LogRespondentAccessInterface' , 'Gems_Project_Organization_MultiOrganizationInterface' , 'Gems_Project_Organization_SingleOrganizationInterface' , 'Gems_Project_Tracks_FixedTracksInterface' , 'Gems_Project_Tracks_StandAloneSurveysInterface' , 'Gems_Project_Tracks_TracksOnlyInterface' , ) ; foreach ( $ oldInterfaces as $ interface ) { if ( $ this -> escort instanceof $ interface ) { $ foundNone = false ; $ this -> html -> pInfo ( sprintf ( '%s implements the deprecated %s interface. Remove this interface.' , $ escortClass , $ interface ) ) ; } } $ snippetsDir = APPLICATION_PATH . '\snippets' ; if ( file_exists ( $ snippetsDir ) ) { $ foundNone = false ; $ this -> html -> pInfo ( sprintf ( '%s still uses the deprecated %s directory for snippets. This directory is deprecated and will be removed in 1.7.2.' , $ projectName , $ snippetsDir ) ) ; } if ( $ foundNone ) { $ this -> html -> pInfo ( sprintf ( '%s and %s are up to date.' , $ projectName , $ escortClass ) ) ; } }
docstring: A specific report on the escort class
docstring_tokens: A specific report on the escort class