Example #1
0
 /**
  * Runs command and produces report in html format
  *
  * @param array $whiteList
  * @param array $blackList
  * @return bool
  */
 public function run(array $whiteList, array $blackList = array())
 {
     $result = parent::run($whiteList, $blackList);
     if ($result) {
         $generateHtmlResult = $this->_generateHtmlReport();
         if ($generateHtmlResult === false) {
             $result = false;
         }
     }
     return $result;
 }
Example #2
0
 /**
  * Constructor
  *
  * @param string $reportFile Destination file to write inspection report to
  * @param int|null $minLines Minimum number of identical lines
  * @param int|null $minTokens Minimum number of identical tokens
  */
 public function __construct($reportFile, $minLines = null, $minTokens = null)
 {
     parent::__construct($reportFile);
     $this->_minLines = $minLines;
     $this->_minTokens = $minTokens;
 }
Example #3
0
 /**
  * Constructor
  *
  * @param string $rulesetDir Directory that locates the inspection rules
  * @param string $reportFile Destination file to write inspection report to
  */
 public function __construct($rulesetDir, $reportFile)
 {
     parent::__construct($reportFile);
     $this->_rulesetDir = $rulesetDir;
 }