Merge "qunit: Refactor and simplify testrunner to fix nested modules"
[lhc/web/wiklou.git] / includes / diff / UnifiedDiffFormatter.php
index 32a7605..72f1a66 100644 (file)
@@ -36,6 +36,16 @@ class UnifiedDiffFormatter extends DiffFormatter {
        /** @var int */
        protected $trailingContextLines = 2;
 
+       /**
+        * @param string[] $lines
+        * @param string $prefix
+        */
+       protected function lines( $lines, $prefix = ' ' ) {
+               foreach ( $lines as $line ) {
+                       $this->writeOutput( "{$prefix}{$line}\n" );
+               }
+       }
+
        /**
         * @param string[] $lines
         */