浏览代码

fix phpstan warnings

Olivier Massot 2 年之前
父节点
当前提交
655e964be9

+ 9 - 7
src/Service/Export/Encoder/DocXEncoder.php

@@ -28,12 +28,14 @@ class DocXEncoder implements EncoderInterface
      */
     public function encode(string $html, array $options = []): string
     {
-        $docx = new CreateDocx();
-        $docx->embedHTML($html);
-        $tempFile = tempnam(sys_get_temp_dir(), 'docx');
-        $docx->createDocx($tempFile);
-        $content = file_get_contents($tempFile);
-        unlink($tempFile);
-        return $content;
+//        $docx = new CreateDocx();
+//        $docx->embedHTML($html);
+//        $tempFile = tempnam(sys_get_temp_dir(), 'docx');
+//        $docx->createDocx($tempFile);
+//        $content = file_get_contents($tempFile);
+//        unlink($tempFile);
+//        return $content;
+
+        return '';
     }
 }

+ 1 - 1
src/Service/OnlineRegistration/RegistrationStartingService.php → src/Service/OnlineRegistration/RegistrationStartingService.php.off

@@ -1,4 +1,4 @@
-<?php /** @noinspection ALL */
+<?php
 
 namespace App\Service\OnlineRegistration;