From 5d2590feb047602eb1eb06ffeb557c86d577cf19 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 1 May 2015 14:59:30 +0200 Subject: [PATCH] Replace ; with : in case statement. --- phpseclib/File/X509.php | 6 +++--- phpseclib/Net/SFTP.php | 2 +- phpseclib/Net/SSH2.php | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 931363ea..97902013 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -2921,7 +2921,7 @@ class File_X509 switch (true) { case !($algorithm = $this->_subArray($csr, 'certificationRequestInfo/subjectPKInfo/algorithm/algorithm')): - case is_object($csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']); + case is_object($csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']): break; default: switch ($algorithm) { @@ -3048,7 +3048,7 @@ class File_X509 $algorithm = $this->_subArray($spkac, 'publicKeyAndChallenge/spki/algorithm/algorithm'); switch (true) { case !$algorithm: - case is_object($spkac['publicKeyAndChallenge']['spki']['subjectPublicKey']); + case is_object($spkac['publicKeyAndChallenge']['spki']['subjectPublicKey']): break; default: switch ($algorithm) { @@ -4128,7 +4128,7 @@ class File_X509 case $disposition == FILE_X509_ATTR_APPEND: $last = $key; break; - case $disposition >= $n; + case $disposition >= $n: $disposition -= $n; break; default: diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 5c71ee04..dac16506 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -1848,7 +1848,7 @@ class Net_SFTP extends Net_SSH2 // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.2.3 $dataCallback = false; switch (true) { - case $mode & NET_SFTP_CALLBACK; + case $mode & NET_SFTP_CALLBACK: if (!is_callable($data)) { user_error("\$data should be is_callable if you set NET_SFTP_CALLBACK flag"); } diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 70e9a6ac..35447729 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1346,7 +1346,7 @@ class Net_SSH2 case 'arcfour256': $decryptKeyLength = 32; // eg. 128 / 8 break; - case 'none'; + case 'none': $decryptKeyLength = 0; } @@ -1390,7 +1390,7 @@ class Net_SSH2 case 'arcfour256': $encryptKeyLength = 32; break; - case 'none'; + case 'none': $encryptKeyLength = 0; } @@ -1606,7 +1606,7 @@ class Net_SSH2 } $this->encrypt = new Crypt_RC4(); break; - case 'none'; + case 'none': //$this->encrypt = new Crypt_Null(); } @@ -1682,7 +1682,7 @@ class Net_SSH2 } $this->decrypt = new Crypt_RC4(); break; - case 'none'; + case 'none': //$this->decrypt = new Crypt_Null(); }