@@ -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 | /** |
57 | 56 | * The generator instance to use |
@@ -64,8 +63,7 @@ discard block |
||
64 | 63 | * |
65 | 64 | * @param PDFGeneratorInterface $generator |
66 | 65 | */ |
67 | - public function __construct(PDFGeneratorInterface $generator) |
|
68 | - { |
|
66 | + public function __construct(PDFGeneratorInterface $generator) { |
|
69 | 67 | $this->generator = $generator; |
70 | 68 | } |
71 | 69 |
@@ -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 | /** |
62 | 61 | * The DOMPDF instance |
@@ -88,8 +87,7 @@ discard block |
||
88 | 87 | * @param Dompdf $dompdf |
89 | 88 | * @param Filesystem $filesystem |
90 | 89 | */ |
91 | - public function __construct(Dompdf $dompdf, Filesystem $filesystem) |
|
92 | - { |
|
90 | + public function __construct(Dompdf $dompdf, Filesystem $filesystem) { |
|
93 | 91 | $this->dompdf = $dompdf; |
94 | 92 | $this->filesystem = $filesystem; |
95 | 93 | } |
@@ -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 | /** |
57 | 56 | * Generate PDF document |