فهرست منبع

fix phpstan warnings

Olivier Massot 2 سال پیش
والد
کامیت
655e964be9
2فایلهای تغییر یافته به همراه10 افزوده شده و 8 حذف شده
  1. 9 7
      src/Service/Export/Encoder/DocXEncoder.php
  2. 1 1
      src/Service/OnlineRegistration/RegistrationStartingService.php.off

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

@@ -28,12 +28,14 @@ class DocXEncoder implements EncoderInterface
      */
      */
     public function encode(string $html, array $options = []): string
     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;
 namespace App\Service\OnlineRegistration;