@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class DocxTemplate |
55 | 55 | * @package Platine\DocxTemplate |
56 | 56 | */ |
57 | -class DocxTemplate |
|
58 | -{ |
|
57 | +class DocxTemplate { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * The convertor instance to use |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @class NullConvertor |
53 | 53 | * @package Platine\DocxTemplate\Convertor |
54 | 54 | */ |
55 | -class NullConvertor implements DocxConvertorInterface |
|
56 | -{ |
|
55 | +class NullConvertor implements DocxConvertorInterface { |
|
57 | 56 | /** |
58 | 57 | * {@inheritodc} |
59 | 58 | */ |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @class LibreOfficePDFConvertor |
53 | 53 | * @package Platine\DocxTemplate\Convertor |
54 | 54 | */ |
55 | -class LibreOfficePDFConvertor implements DocxConvertorInterface |
|
56 | -{ |
|
55 | +class LibreOfficePDFConvertor implements DocxConvertorInterface { |
|
57 | 56 | |
58 | 57 | /** |
59 | 58 | * {@inheritodc} |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class DocxTemplateRendererInterface |
52 | 52 | * @package Platine\DocxTemplate |
53 | 53 | */ |
54 | -interface DocxTemplateRendererInterface |
|
55 | -{ |
|
54 | +interface DocxTemplateRendererInterface { |
|
56 | 55 | |
57 | 56 | /** |
58 | 57 | * Render the template content |
@@ -39,6 +39,5 @@ |
||
39 | 39 | * @class DocxTemplateException |
40 | 40 | * @package Platine\DocxTemplate\Exception |
41 | 41 | */ |
42 | -class DocxTemplateException extends Exception |
|
43 | -{ |
|
42 | +class DocxTemplateException extends Exception { |
|
44 | 43 | } |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class DocxConvertorInterface |
52 | 52 | * @package Platine\DocxTemplate |
53 | 53 | */ |
54 | -interface DocxConvertorInterface |
|
55 | -{ |
|
54 | +interface DocxConvertorInterface { |
|
56 | 55 | |
57 | 56 | /** |
58 | 57 | * Convert the template file |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * @class PlatineTemplateRenderer |
54 | 54 | * @package Platine\DocxTemplate\Renderer |
55 | 55 | */ |
56 | -class PlatineTemplateRenderer implements DocxTemplateRendererInterface |
|
57 | -{ |
|
56 | +class PlatineTemplateRenderer implements DocxTemplateRendererInterface { |
|
58 | 57 | /** |
59 | 58 | * The template instance to use |
60 | 59 | * @var Template |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * Create new instance |
66 | 65 | * @param Template $template |
67 | 66 | */ |
68 | - public function __construct(Template $template) |
|
69 | - { |
|
67 | + public function __construct(Template $template) { |
|
70 | 68 | $this->template = $template; |
71 | 69 | } |
72 | 70 |
@@ -87,7 +87,7 @@ |
||
87 | 87 | */ |
88 | 88 | protected function fixSplitTemplateTags(string $content): string |
89 | 89 | { |
90 | - /* |
|
90 | + /* |
|
91 | 91 | * If part of the tag is formatted differently we won't get a match. |
92 | 92 | * Best explained with an example: |
93 | 93 | * |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @class NullRenderer |
53 | 53 | * @package Platine\DocxTemplate\Renderer |
54 | 54 | */ |
55 | -class NullRenderer implements DocxTemplateRendererInterface |
|
56 | -{ |
|
55 | +class NullRenderer implements DocxTemplateRendererInterface { |
|
57 | 56 | /** |
58 | 57 | * {@inheritodc} |
59 | 58 | */ |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class DocxExtractorInterface |
54 | 54 | * @package Platine\DocxTemplate |
55 | 55 | */ |
56 | -interface DocxExtractorInterface |
|
57 | -{ |
|
56 | +interface DocxExtractorInterface { |
|
58 | 57 | |
59 | 58 | /** |
60 | 59 | * Extract an archive to the given destination |