@@ -71,16 +71,16 @@ |
||
| 71 | 71 | protected Filesystem $filesystem; |
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | - * Whether the document already rendered call |
|
| 74 | + * Whether the document already rendered call |
|
| 75 | 75 | * mean to render() method |
| 76 | - * @var bool |
|
| 77 | - */ |
|
| 76 | + * @var bool |
|
| 77 | + */ |
|
| 78 | 78 | protected $rendered = false; |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * The PDF generated filename |
|
| 82 | - * @var string |
|
| 83 | - */ |
|
| 81 | + * The PDF generated filename |
|
| 82 | + * @var string |
|
| 83 | + */ |
|
| 84 | 84 | protected $filename = 'dompdf.pdf'; |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -55,8 +55,7 @@ discard block |
||
| 55 | 55 | * @class DOMPDFGenerator |
| 56 | 56 | * @package Platine\PDF\Generator |
| 57 | 57 | */ |
| 58 | -class DOMPDFGenerator implements PDFGeneratorInterface |
|
| 59 | -{ |
|
| 58 | +class DOMPDFGenerator implements PDFGeneratorInterface { |
|
| 60 | 59 | /** |
| 61 | 60 | * The DOMPDF instance |
| 62 | 61 | * @var Dompdf |
@@ -87,8 +86,7 @@ discard block |
||
| 87 | 86 | * @param Dompdf $dompdf |
| 88 | 87 | * @param Filesystem $filesystem |
| 89 | 88 | */ |
| 90 | - public function __construct(Dompdf $dompdf, Filesystem $filesystem) |
|
| 91 | - { |
|
| 89 | + public function __construct(Dompdf $dompdf, Filesystem $filesystem) { |
|
| 92 | 90 | $this->dompdf = $dompdf; |
| 93 | 91 | $this->filesystem = $filesystem; |
| 94 | 92 | } |
@@ -50,8 +50,7 @@ discard block |
||
| 50 | 50 | * @class PDF |
| 51 | 51 | * @package Platine\PDF |
| 52 | 52 | */ |
| 53 | -class PDF |
|
| 54 | -{ |
|
| 53 | +class PDF { |
|
| 55 | 54 | /** |
| 56 | 55 | * The generator instance to use |
| 57 | 56 | * @var PDFGeneratorInterface |
@@ -87,8 +86,7 @@ discard block |
||
| 87 | 86 | * |
| 88 | 87 | * @param PDFGeneratorInterface $generator |
| 89 | 88 | */ |
| 90 | - public function __construct(PDFGeneratorInterface $generator) |
|
| 91 | - { |
|
| 89 | + public function __construct(PDFGeneratorInterface $generator) { |
|
| 92 | 90 | $this->generator = $generator; |
| 93 | 91 | } |
| 94 | 92 | |
@@ -50,8 +50,7 @@ |
||
| 50 | 50 | * @class PDFGeneratorInterface |
| 51 | 51 | * @package Platine\PDF |
| 52 | 52 | */ |
| 53 | -interface PDFGeneratorInterface |
|
| 54 | -{ |
|
| 53 | +interface PDFGeneratorInterface { |
|
| 55 | 54 | /** |
| 56 | 55 | * Generate PDF document |
| 57 | 56 | * @param string $content the content to use |