Skip to content

Commit

Permalink
Fix static analysis issues, ignore PHPUnit cache (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantom409 committed Dec 9, 2020
1 parent 0aca59e commit 79942b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
@@ -1,3 +1,5 @@
composer.lock
coverage.clover
vendor/
vendor/

.phpunit.result.cache
2 changes: 1 addition & 1 deletion src/FileMailer.php
Expand Up @@ -100,7 +100,7 @@ protected function generateMessageFilename(): string
{
$time = (int) microtime(true);

return date('Ymd-His-', $time) . sprintf('%04d', (int) (($time - (int) $time) * 10000)) . '-' . sprintf('%04d', random_int(0, 10000)) . '.eml';
return date('Ymd-His-', $time) . sprintf('%04d', $time) . '-' . sprintf('%04d', random_int(0, 10000)) . '.eml';
}

protected function sendMessage(MessageInterface $message): void
Expand Down

0 comments on commit 79942b9

Please sign in to comment.