Skip to content

Commit

Permalink
Convert concatenation to path join calls
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 12, 2024
1 parent 435c037 commit 08b53a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Hyde\Framework\Features\BuildTasks\PostBuildTask;
use Hyde\Framework\Features\XmlGenerators\RssFeedGenerator;

use function Hyde\path_join;
use function file_put_contents;

class GenerateRssFeed extends PostBuildTask
Expand All @@ -24,6 +25,6 @@ public function handle(): void

public function printFinishMessage(): void
{
$this->createdSiteFile(Hyde::getOutputDirectory().'/'.RssFeedGenerator::getFilename())->withExecutionTime();
$this->createdSiteFile(path_join(Hyde::getOutputDirectory(), RssFeedGenerator::getFilename()))->withExecutionTime();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Hyde\Framework\Features\BuildTasks\PostBuildTask;
use Hyde\Framework\Features\XmlGenerators\SitemapGenerator;

use function Hyde\path_join;
use function file_put_contents;

class GenerateSitemap extends PostBuildTask
Expand All @@ -24,6 +25,6 @@ public function handle(): void

public function printFinishMessage(): void
{
$this->createdSiteFile(Hyde::getOutputDirectory().'/sitemap.xml')->withExecutionTime();
$this->createdSiteFile(path_join(Hyde::getOutputDirectory(), 'sitemap.xml'))->withExecutionTime();
}
}

0 comments on commit 08b53a1

Please sign in to comment.