1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 12:44:38 +01:00

Merge pull request #671 from bantu/case-with-semicolon

Replace ; with : in case statement.

* bantu/case-with-semicolon:
  Replace ; with : in case statement.
This commit is contained in:
Andreas Fischer 2015-05-03 14:12:44 +02:00
commit 8893f8f53e
3 changed files with 8 additions and 8 deletions

View File

@ -2921,7 +2921,7 @@ class File_X509
switch (true) { switch (true) {
case !($algorithm = $this->_subArray($csr, 'certificationRequestInfo/subjectPKInfo/algorithm/algorithm')): case !($algorithm = $this->_subArray($csr, 'certificationRequestInfo/subjectPKInfo/algorithm/algorithm')):
case is_object($csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']); case is_object($csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']):
break; break;
default: default:
switch ($algorithm) { switch ($algorithm) {
@ -3048,7 +3048,7 @@ class File_X509
$algorithm = $this->_subArray($spkac, 'publicKeyAndChallenge/spki/algorithm/algorithm'); $algorithm = $this->_subArray($spkac, 'publicKeyAndChallenge/spki/algorithm/algorithm');
switch (true) { switch (true) {
case !$algorithm: case !$algorithm:
case is_object($spkac['publicKeyAndChallenge']['spki']['subjectPublicKey']); case is_object($spkac['publicKeyAndChallenge']['spki']['subjectPublicKey']):
break; break;
default: default:
switch ($algorithm) { switch ($algorithm) {
@ -4128,7 +4128,7 @@ class File_X509
case $disposition == FILE_X509_ATTR_APPEND: case $disposition == FILE_X509_ATTR_APPEND:
$last = $key; $last = $key;
break; break;
case $disposition >= $n; case $disposition >= $n:
$disposition -= $n; $disposition -= $n;
break; break;
default: default:

View File

@ -1848,7 +1848,7 @@ class Net_SFTP extends Net_SSH2
// http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.2.3 // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.2.3
$dataCallback = false; $dataCallback = false;
switch (true) { switch (true) {
case $mode & NET_SFTP_CALLBACK; case $mode & NET_SFTP_CALLBACK:
if (!is_callable($data)) { if (!is_callable($data)) {
user_error("\$data should be is_callable if you set NET_SFTP_CALLBACK flag"); user_error("\$data should be is_callable if you set NET_SFTP_CALLBACK flag");
} }

View File

@ -1346,7 +1346,7 @@ class Net_SSH2
case 'arcfour256': case 'arcfour256':
$decryptKeyLength = 32; // eg. 128 / 8 $decryptKeyLength = 32; // eg. 128 / 8
break; break;
case 'none'; case 'none':
$decryptKeyLength = 0; $decryptKeyLength = 0;
} }
@ -1390,7 +1390,7 @@ class Net_SSH2
case 'arcfour256': case 'arcfour256':
$encryptKeyLength = 32; $encryptKeyLength = 32;
break; break;
case 'none'; case 'none':
$encryptKeyLength = 0; $encryptKeyLength = 0;
} }
@ -1606,7 +1606,7 @@ class Net_SSH2
} }
$this->encrypt = new Crypt_RC4(); $this->encrypt = new Crypt_RC4();
break; break;
case 'none'; case 'none':
//$this->encrypt = new Crypt_Null(); //$this->encrypt = new Crypt_Null();
} }
@ -1682,7 +1682,7 @@ class Net_SSH2
} }
$this->decrypt = new Crypt_RC4(); $this->decrypt = new Crypt_RC4();
break; break;
case 'none'; case 'none':
//$this->decrypt = new Crypt_Null(); //$this->decrypt = new Crypt_Null();
} }