コード例 #1
0
 private function printStep(Step $step)
 {
     if ($step instanceof Comment and $step->__toString() == '') {
         return;
         // don't print empty comments
     }
     $msg = $this->message(' ');
     if ($this->metaStep) {
         $msg->append('  ');
     }
     $msg->append($step->getPrefix());
     $prefixLength = $msg->getLength();
     if (!$this->metaStep) {
         $msg->style('bold');
     }
     $maxLength = $this->width - $prefixLength;
     $msg->append($step->toString($maxLength));
     if ($this->metaStep) {
         $msg->style('info');
     }
     $msg->writeln();
 }