Browse Source

:art: formatting

visuddhinanda 2 năm trước cách đây
mục cha
commit
63857eefcf
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      app/Console/Commands/ExportChapter.php

+ 5 - 1
app/Console/Commands/ExportChapter.php

@@ -66,9 +66,12 @@ class ExportChapter extends Command
         $percent = (int)($progress * 100);
         $this->info("[{$percent}%]".$message);
     }
+
+
     public function getStatus($filename){
         return RedisClusters::get($this->exportStatusKey.'/'.$filename);
     }
+
     /**
      * Execute the console command.
      *
@@ -86,7 +89,8 @@ class ExportChapter extends Command
                                         'escape'=>function ($value){
                                             return $value;
                                         }));
-        $tplParagraph = file_get_contents(resource_path("mustache/".$this->option('format')."/paragraph.".$this->option('format')));
+        $tplFile = resource_path("mustache/".$this->option('format')."/paragraph.".$this->option('format'));
+        $tplParagraph = file_get_contents($tplFile);
 
         MdRender::init();