Example #1
0
 /**
  * Prints the analyzer options.
  *
  * @param integer $length Length of the longest option.
  *
  * @return integer
  */
 protected function printAnalyzerOptions($length)
 {
     $options = $this->application->getAvailableAnalyzerOptions();
     if (count($options) === 0) {
         return $length;
     }
     ksort($options);
     foreach ($options as $option => $info) {
         if (isset($info['value'])) {
             $option .= '=<' . $info['value'] . '>';
         } else {
             $option .= '=<value>';
         }
         $this->printOption($option, $info['message'], $length);
     }
     echo PHP_EOL;
     return $length;
 }