Skip to content

Commit

Permalink
Fix warning on trim empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge authored Jan 31, 2023
1 parent 9a9b48d commit 198e9e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Tasks/CopyrightHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ public function run()
{
$this->say("Updating / adding copyright headers");
$text = $this->replaceInText(trim($this->getJConfig()->header->text));
$exclude = explode(",", trim($this->getJConfig()->header->exclude));
$excludeList = $this->getJConfig()->header->exclude;

if ($excludeList !== '')
{
$exclude = explode(",", trim());
}

$path = realpath($this->getJConfig()->source);
$fileTypes = explode(",", trim($this->getJConfig()->header->files));
Expand Down

0 comments on commit 198e9e4

Please sign in to comment.