Formatter/CliFormatter.php 1 location
|
@@ 35-42 (lines=8) @@
|
| 32 |
|
/**
|
| 33 |
|
* CliFormatter constructor.
|
| 34 |
|
*/
|
| 35 |
|
public function __construct(array $options = [])
|
| 36 |
|
{
|
| 37 |
|
parent::__construct(array_replace_recursive([
|
| 38 |
|
'styles' => include __DIR__.'/../Styles/Cli/Default.php'
|
| 39 |
|
], $options));
|
| 40 |
|
|
| 41 |
|
$this->_styles = $this->_options['styles'];
|
| 42 |
|
}
|
| 43 |
|
|
| 44 |
|
public function format(Tokens $tokens)
|
| 45 |
|
{
|
Formatter/LatexFormatter.php 1 location
|
@@ 37-44 (lines=8) @@
|
| 34 |
|
* |
| 35 |
|
* @param array $options |
| 36 |
|
*/ |
| 37 |
|
public function __construct(array $options = []) |
| 38 |
|
{ |
| 39 |
|
parent::__construct(array_replace_recursive([ |
| 40 |
|
'styles' => include __DIR__.'/../Styles/Cli/Default.php' |
| 41 |
|
], $options)); |
| 42 |
|
|
| 43 |
|
$this->_styles = $this->_options['styles']; |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
protected function token(Token $token) |
| 47 |
|
{ |