From 65d9e2bb49b8dafba62517ca4e59987ba1c14e87 Mon Sep 17 00:00:00 2001 From: Sokolovskyy Roman Date: Thu, 20 Jul 2017 11:35:08 +0200 Subject: [PATCH] Added missin break removed return statement --- phpseclib/Crypt/TripleDES.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Crypt/TripleDES.php b/phpseclib/Crypt/TripleDES.php index 044c3773..9dede481 100644 --- a/phpseclib/Crypt/TripleDES.php +++ b/phpseclib/Crypt/TripleDES.php @@ -258,6 +258,7 @@ class TripleDES extends DES switch (strlen($key)) { case 16: $key.= substr($key, 0, 8); + break; case 24: break; default: @@ -438,7 +439,6 @@ class TripleDES extends DES * @see \phpseclib\Crypt\Common\SymmetricKey::setPreferredEngine() * @param int $engine * @access public - * @return int */ public function setPreferredEngine($engine) { @@ -448,6 +448,6 @@ class TripleDES extends DES $this->des[2]->setPreferredEngine($engine); } - return parent::setPreferredEngine($engine); + parent::setPreferredEngine($engine); } }