public function getComments() {
        $comments = false;
        $table    = \MUtil_Html::create()->table(['class' => 'browser table', 'style' => 'width: auto']);

        $targetSurveyAnswers = $this->getNumberOfAnswers($this->targetSurveyId);
        if ($targetSurveyAnswers > 0) {
            $comments = true;
            $table
                    ->tr(['class' => 'warning'])
                    ->td(
                            sprintf(
                                    $this->_('Target survey already has %d answers. Is this expected?'),
                                    $targetSurveyAnswers
                            )
            );
        }

        if ($comments) {
            return $table;
        }

        return false;
    }
public function getComments() {
        $comments = false;
        $table    = \MUtil_Html::create()->table(['class' => 'browser table', 'style' => 'width: auto']);

        $targetSurveyAnswers = $this->getNumberOfAnswers($this->targetSurveyId);
        if ($targetSurveyAnswers > 0) {
            $comments = true;
            $table
                    ->tr(['class' => 'warning'])
                    ->td(
                            sprintf(
                                    $this->_('Target survey already has %d answers. Is this expected?'),
                                    $targetSurveyAnswers
                            )
            );
        }

        if ($comments) {
            return $table;
        }

        return false;
    }
public function getComments ( ) { $ comments = false ; $ table = \ MUtil_Html :: create ( ) -> table ( [ 'class' => 'browser table' , 'style' => 'width: auto' ] ) ; $ targetSurveyAnswers = $ this -> getNumberOfAnswers ( $ this -> targetSurveyId ) ; if ( $ targetSurveyAnswers > 0 ) { $ comments = true ; $ table -> tr ( [ 'class' => 'warning' ] ) -> td ( sprintf ( $ this -> _ ( 'Target survey already has %d answers. Is this expected?' ) , $ targetSurveyAnswers ) ) ; } if ( $ comments ) { return $ table ; } return false ; }
Creates a table with warnings about the survey answer transfer

@return bool|\MUtil_Html Table with information
Creates a table with warnings about the survey answer transfer