original_string: protected function writeScanPassStatistic(CoverFishResult $coverFishResult)
      {
          $passStatistic = '%s file(s) and %s method(s) scanned, scan succeeded, no problems found.%s';
          $passStatistic = sprintf($passStatistic,
              $coverFishResult->getFileCount(),
              $coverFishResult->getTestCount(),
              PHP_EOL
          );
  
          $scanResultMacro = '%s%s%s';
          $scanResult = sprintf($scanResultMacro,
              ($this->outputLevel === 0)
                  ? PHP_EOL
                  : null,
              PHP_EOL,
              (false === $this->preventAnsiColors)
                  ? Color::tplGreenColor($passStatistic)
                  : $passStatistic
          );
  
          $this->write($scanResult);
      }
code: protected function writeScanPassStatistic(CoverFishResult $coverFishResult)
      {
          $passStatistic = '%s file(s) and %s method(s) scanned, scan succeeded, no problems found.%s';
          $passStatistic = sprintf($passStatistic,
              $coverFishResult->getFileCount(),
              $coverFishResult->getTestCount(),
              PHP_EOL
          );
  
          $scanResultMacro = '%s%s%s';
          $scanResult = sprintf($scanResultMacro,
              ($this->outputLevel === 0)
                  ? PHP_EOL
                  : null,
              PHP_EOL,
              (false === $this->preventAnsiColors)
                  ? Color::tplGreenColor($passStatistic)
                  : $passStatistic
          );
  
          $this->write($scanResult);
      }
code_tokens: protected function writeScanPassStatistic ( CoverFishResult $ coverFishResult ) { $ passStatistic = '%s file(s) and %s method(s) scanned, scan succeeded, no problems found.%s' ; $ passStatistic = sprintf ( $ passStatistic , $ coverFishResult -> getFileCount ( ) , $ coverFishResult -> getTestCount ( ) , PHP_EOL ) ; $ scanResultMacro = '%s%s%s' ; $ scanResult = sprintf ( $ scanResultMacro , ( $ this -> outputLevel === 0 ) ? PHP_EOL : null , PHP_EOL , ( false === $ this -> preventAnsiColors ) ? Color :: tplGreenColor ( $ passStatistic ) : $ passStatistic ) ; $ this -> write ( $ scanResult ) ; }
docstring: write scan pass results
  
  @param CoverFishResult $coverFishResult
docstring_tokens: write scan pass results