Total Complexity | 5 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | final class Code |
||
23 | { |
||
24 | /** @var string */ |
||
25 | public $code; |
||
26 | |||
27 | /** @param array<Node> $stmt */ |
||
28 | public function __construct(array $stmt) |
||
29 | { |
||
30 | $this->code = (new Standard(['shortArraySyntax' => true]))->prettyPrintFile($stmt) . PHP_EOL; |
||
31 | } |
||
32 | |||
33 | public function save(string $classDir, string $aopClassName): string |
||
46 | |||
47 | // @codeCoverageIgnoreEnd |
||
50 |
If you suppress an error, we recommend checking for the error condition explicitly: