| Total Complexity | 2 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class VibroCompiler extends BladeCompiler |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Array of opening and closing tags for raw echos. |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $rawTags = ['<%%', '%%>']; |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Array of opening and closing tags for regular echos. |
||
| 30 | * |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $contentTags = ['<%', '%>']; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Array of opening and closing tags for escaped echos. |
||
| 37 | * |
||
| 38 | * @var array |
||
| 39 | */ |
||
| 40 | protected $escapedTags = ['<%%%', '%%%>']; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * The "regular" / legacy echo string format. |
||
| 44 | * |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | protected $echoFormat = 'e(%s)'; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Array of footer lines to be added to template. |
||
| 51 | * |
||
| 52 | * @var array |
||
| 53 | */ |
||
| 54 | protected $footer = []; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Array to temporary store the raw blocks found in the template. |
||
| 58 | * |
||
| 59 | * @var array |
||
| 60 | */ |
||
| 61 | protected $rawBlocks = []; |
||
| 62 | |||
| 63 | |||
| 64 | |||
| 65 | public function compileFileName($fileName, $args) { |
||
| 66 | extract($args); |
||
| 67 | $parsed = $this->compileString($fileName); |
||
| 68 | ob_start(); |
||
| 69 | eval( '?>' . $parsed ); |
||
|
|
|||
| 70 | $output = ob_get_contents(); |
||
| 71 | ob_end_clean(); |
||
| 72 | return $output; |
||
| 73 | } |
||
| 74 | |||
| 75 | public function compileFile($filePath, $args) |
||
| 78 | } |
||
| 79 | } |