Skip to content

Commit

Permalink
lint fix and change log
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Oct 2, 2023
1 parent 0b81e47 commit cf2faec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/ExportRequestDocsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function confirmFilePathAvailability(): bool

/**
* @param $docs
* @return false|int
* @return bool
*/
private function writeApiDocsToFile(Collection $docs): bool
{
Expand All @@ -134,6 +134,6 @@ private function writeApiDocsToFile(Collection $docs): bool
mkdir($targetDirectory, 0755, true);
}

return (bool)file_put_contents($this->exportFilePath, $content);
return file_put_contents($this->exportFilePath, $content) !== false;
}
}

0 comments on commit cf2faec

Please sign in to comment.