| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 15 | 
| CRAP Score | 1 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 15 | 31 | public function compile(\Twig_Compiler $compiler)  | 
            |
| 16 |     { | 
            ||
| 17 | 31 | $compiler->addDebugInfo($this)  | 
            |
| 18 | 31 |             ->write("ob_start();\n") | 
            |
| 19 | 31 | ->write(self::CODE_INSTANCE.' = new '.PhpSpreadsheetWrapper::class.'($context, $this->env, ')  | 
            |
| 20 | 31 | ->repr($this->attributes)  | 
            |
| 21 | 31 |             ->raw(');'.PHP_EOL) | 
            |
| 22 | 31 |             ->write(self::CODE_INSTANCE.'->startDocument(') | 
            |
| 23 | 31 |                 ->subcompile($this->getNode('properties')) | 
            |
| 24 | 31 |             ->raw(');'.PHP_EOL) | 
            |
| 25 | 31 |             ->subcompile($this->getNode('body')) | 
            |
| 26 | 31 | ->addDebugInfo($this)  | 
            |
| 27 | 31 |             ->write("ob_end_clean();\n") | 
            |
| 28 | 31 | ->write(self::CODE_INSTANCE.'->endDocument();'.PHP_EOL)  | 
            |
| 29 | 31 |             ->write('unset('.self::CODE_INSTANCE.');'.PHP_EOL); | 
            |
| 30 | 31 | }  | 
            |
| 31 | |||
| 40 |