summaryrefslogtreecommitdiffstats
path: root/lib/private/Security/Hasher.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-24 13:54:30 +0200
committerGitHub <noreply@github.com>2017-07-24 13:54:30 +0200
commit5bc0edbd297285f4ceded0bb9a8dcb59ba61ada4 (patch)
tree84c375c5bb03066c8ba1fd12a7c1fc7a342b0352 /lib/private/Security/Hasher.php
parent71f1ef9c1d0f826df5fa23c96b46575f1231f79c (diff)
parent5f227bd93b23d8a528476e3d9243dae31c9d0050 (diff)
downloadnextcloud-server-5bc0edbd297285f4ceded0bb9a8dcb59ba61ada4.tar.gz
nextcloud-server-5bc0edbd297285f4ceded0bb9a8dcb59ba61ada4.zip
Merge pull request #5844 from nextcloud/phpstorm_inspect2
More phpstorm inspection fixes
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]);
}