Skip to content

Commit 6772875

Browse files
committed
adding Console::log() as an alias of Console::writeInfo()
1 parent 283010d commit 6772875

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/PatternLab/Console.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,16 @@ public static function writeInfo($line,$doubleSpace = false,$doubleBreak = false
477477
self::writeLine($lineFinal,$doubleSpace,$doubleBreak);
478478
}
479479

480+
/**
481+
* Alias for writeInfo because I keep wanting to use it
482+
* @param {String} the content to be written out
483+
* @param {Boolean} if there should be two spaces added to the beginning of the line
484+
* @param {Boolean} if there should be two breaks added to the end of the line
485+
*/
486+
public static function log($line,$doubleSpace = false,$doubleBreak = false) {
487+
self::writeInfo($line,$doubleSpace = false,$doubleBreak = false);
488+
}
489+
480490
/**
481491
* Write out a line to the console
482492
* @param {String} the content to be written out

0 commit comments

Comments
 (0)