Explorar o código

:art: formatting

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
63857eefcf
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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();