mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Remove unnecessary slash from in_array()
This commit is contained in:
@@ -196,7 +196,7 @@ class AttachmentHelper implements AttachmentHelperInterface
|
||||
return false; // @codeCoverageIgnore
|
||||
}
|
||||
Log::debug(sprintf('Now in saveAttachmentsForModel for model %s', get_class($model)));
|
||||
if (\is_array($files)) {
|
||||
if (is_array($files)) {
|
||||
Log::debug('$files is an array.');
|
||||
/** @var UploadedFile $entry */
|
||||
foreach ($files as $entry) {
|
||||
@@ -206,7 +206,7 @@ class AttachmentHelper implements AttachmentHelperInterface
|
||||
}
|
||||
Log::debug('Done processing uploads.');
|
||||
}
|
||||
if (!\is_array($files) || (\is_array($files) && 0 === count($files))) {
|
||||
if (!is_array($files) || (is_array($files) && 0 === count($files))) {
|
||||
Log::debug('Array of files is not an array. Probably nothing uploaded. Will not store attachments.');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user