Quellcode durchsuchen

Fix generation for `laravel` type

shalvah vor 5 Jahren
Ursprung
Commit
1289d399e9
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 4 1
      src/Writing/Writer.php

+ 4 - 1
src/Writing/Writer.php

@@ -191,6 +191,9 @@ class Writer
         if (!is_dir($this->laravelTypeOutputPath)) {
             mkdir($this->laravelTypeOutputPath);
         }
+        if (!is_dir("public/vendor/scribe")) {
+            mkdir("public/vendor/scribe", 0777, true);
+        }
 
         // Transform output HTML to a Blade view
         rename("{$this->staticTypeOutputPath}/index.html", "$this->laravelTypeOutputPath/index.blade.php");
@@ -220,7 +223,7 @@ class Writer
             $this->performFinalTasksForLaravelType();
         }
 
-        ConsoleOutputUtils::success("Wrote HTML documentation to: " . $this->isStatic ? $this->staticTypeOutputPath : $this->laravelTypeOutputPath);
+        ConsoleOutputUtils::success("Wrote HTML documentation to: " . ($this->isStatic ? $this->staticTypeOutputPath : $this->laravelTypeOutputPath));
     }
 
     protected function writeIndexMarkdownFile(array $settings): void