Code cleanup

This commit is contained in:
James Cole
2024-01-01 15:51:23 +01:00
parent 2ede3b420b
commit fd7a2181a4
482 changed files with 950 additions and 2518 deletions

View File

@@ -122,7 +122,7 @@ abstract class Controller extends BaseController
);
}
protected function auditLogAttachmentInfo(?array $files): void
final protected function auditLogAttachmentInfo(?array $files): void
{
if (null === $files) {
Log::channel('audit')->info('No files found');
@@ -135,7 +135,7 @@ abstract class Controller extends BaseController
* @var UploadedFile $file
*/
foreach ($files as $index => $file) {
Log::channel('audit')->info(sprintf('File [%d/%d] upload attachment "%s", content is: "%s".', $index + 1, count($files), $file->getClientOriginalName(),base64_encode($file->getContent())));
Log::channel('audit')->info(sprintf('File [%d/%d] upload attachment "%s", content is: "%s".', $index + 1, count($files), $file->getClientOriginalName(), base64_encode($file->getContent())));
}
}
}