Closed DeepDiver1975 closed 8 years ago
I see that file_put_contents returns an int instead of bool: https://github.com/owncloud/core/blob/master/lib/private/files/storage/wrapper/encryption.php#L202
Also I'm not sure if it's correct to return false if "fwrite" returned 0 because it can still be considered a success.
Closing as this is old. If scrutinizer is still not happy, let's do a "fix all scrutinizer errors" pass one of these days...
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
see https://scrutinizer-ci.com/g/owncloud/core/inspections/6cf4248d-d123-438d-a243-6521856b1e86/issues/files/lib/private/files/storage/wrapper/encryption.php?status=new&orderField=issueCount&order=desc#inspectioncomment-699654580
@icewind1991