summaryrefslogtreecommitdiffstats
path: root/lib/private/Security/Hasher.php
diff options
context:
space:
mode:
authorMarin Treselj <marin@pixelipo.com>2017-08-04 10:23:52 +0200
committerMarin Treselj <marin@pixelipo.com>2017-08-04 10:23:52 +0200
commit54444110d9868f8fd173129be0b958a1ed5d9e0c (patch)
treee026d5ac858c114c3c0edc0d2ad96a93740a3b57 /lib/private/Security/Hasher.php
parenta4d984532660637fd7ce604762b019479f641dcd (diff)
parentac4927809c2cf8d66c9f6aa84a7009b521a8d0d7 (diff)
downloadnextcloud-server-54444110d9868f8fd173129be0b958a1ed5d9e0c.tar.gz
nextcloud-server-54444110d9868f8fd173129be0b958a1ed5d9e0c.zip
Merge branch 'clean-settings-layout' of github.com:andreasjacobsen93/nextcloud-server into clean-settings-layout
Diffstat (limited to 'lib/private/Security/Hasher.php')
-rw-r--r--lib/private/Security/Hasher.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Security/Hasher.php b/lib/private/Security/Hasher.php
index 3bc546fa0a2..ddba82fec43 100644
--- a/lib/private/Security/Hasher.php
+++ b/lib/private/Security/Hasher.php
@@ -58,7 +58,7 @@ class Hasher implements IHasher {
/**
* @param IConfig $config
*/
- function __construct(IConfig $config) {
+ public function __construct(IConfig $config) {
$this->config = $config;
$hashingCost = $this->config->getSystemValue('hashingCost', null);
@@ -86,7 +86,7 @@ class Hasher implements IHasher {
*/
protected function splitHash($prefixedHash) {
$explodedString = explode('|', $prefixedHash, 2);
- if(sizeof($explodedString) === 2) {
+ if(count($explodedString) === 2) {
if((int)$explodedString[0] > 0) {
return array('version' => (int)$explodedString[0], 'hash' => $explodedString[1]);
}