Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias <ilovemilk@wusa.io>2019-05-17 17:50:31 +0300
committerMatthias <ilovemilk@wusa.io>2019-05-17 17:50:31 +0300
commitfb1aa4c89f889a47d446ba3f12f19658be5f9cf3 (patch)
tree699063397c4cb1c28c0a9c1b79f771d42763870d /lib
parent7fa86f1d601a931852fd888bb3b73e2fd7c68426 (diff)
fix return value type to double
Diffstat (limited to 'lib')
-rw-r--r--lib/Analyzer/EntropyAnalyzer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analyzer/EntropyAnalyzer.php b/lib/Analyzer/EntropyAnalyzer.php
index 0e8d00d..e1fd7b7 100644
--- a/lib/Analyzer/EntropyAnalyzer.php
+++ b/lib/Analyzer/EntropyAnalyzer.php
@@ -134,7 +134,7 @@ class EntropyAnalyzer
if (!$handle) {
$this->logger->debug('createEntropyArrayFromFile: Getting file handle failed.', array('app' => Application::APP_ID));
- return [];
+ return 0.0;
}
while (!feof($handle)) {