/**
  * A specific report on a code file
  *
  * @param \SplFileInfo $filename
  * @return boolean
  */
 protected function addFileReport(\SplFileInfo $fileinfo)
 {
     // $extension = strtolower($fileinfo->getExtension());
     $extension = strtolower(pathinfo($fileinfo, PATHINFO_EXTENSION));
     if ('php' !== $extension && 'phtml' !== $extension) {
         return false;
     }
     $content = file_get_contents($fileinfo);
     $messages = array();
     if (preg_match('/Single.*Survey/', $fileinfo->getFilename())) {
         $messages[] = "This seems to be a file for (obsolete) SingleSurveys. This file can probably be removed.";
     }
     $this->_checkCodingChanged($fileinfo, $content, $messages);
     if (\MUtil_String::endsWith($fileinfo->getPath(), 'controllers')) {
         $this->_checkControllersChanged($fileinfo, $content, $messages);
     } else {
         $this->_checkSnippetsChanged($fileinfo, $content, $messages);
     }
     $this->_checkTablesChanged($fileinfo, $content, $messages);
     if (!$messages) {
         return false;
     }
     $this->html->h2(sprintf('Report on file %s', substr($fileinfo->getPathname(), strlen(GEMS_ROOT_DIR) + 1)));
     foreach ($messages as $message) {
         $this->html->pInfo($message);
     }
     return true;
 }
 /**
  * Create the snippets content
  *
  * This is a stub function either override getHtmlOutput() or override render()
  *
  * @param \Zend_View_Abstract $view Just in case it is needed here
  * @return \MUtil_Html_HtmlInterface Something that can be rendered
  */
 public function getHtmlOutput(\Zend_View_Abstract $view)
 {
     if ($this->request->isPost()) {
         $this->export->render($this->getRespondentIds(), $this->request->getParam('group'), $this->request->getParam('format'));
     } else {
         $seq = new \MUtil_Html_Sequence();
         if ($this->formTitle) {
             $seq->h2($this->formTitle);
         }
         $form = $this->export->getForm($this->hideGroup);
         $div = $seq->div(array('id' => 'mainform'), $form);
         $table = new \MUtil_Html_TableElement(array('class' => 'formTable'));
         $table->setAsFormLayout($form);
         $form->populate($this->request->getParams());
         return $seq;
     }
 }