Skip to content

Commit 5d93b39

Browse files
Remove unnecessary return
1 parent 48a46d2 commit 5d93b39

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Backup/Crypter/OpenSSL.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ public function crypt(Target $target, Result $result)
100100

101101
$result->warn($name . ': The ' . $this->algorithm . ' algorithm is considered weak');
102102
}
103-
104-
return parent::crypt($target, $result);
103+
parent::crypt($target, $result);
105104
}
106105

107106

@@ -115,10 +114,15 @@ public function simulate(Target $target, Result $result)
115114

116115
$result->warn($name . ': The ' . $this->algorithm . ' algorithm is considered weak');
117116
}
118-
119-
return parent::simulate($target, $result);
117+
parent::simulate($target, $result);
120118
}
121119

120+
/**
121+
* Is the configured cipher secure enough
122+
*
123+
* @return bool
124+
* @throws \phpbu\App\Backup\Crypter\Exception
125+
*/
122126
public function isUsingWeakAlgorithm(): bool
123127
{
124128
if (null === $this->algorithm) {

0 commit comments

Comments
 (0)