use consistent spacing around else

pull/1211/head
Andreas Ziegler 2016-06-04 15:46:34 +02:00
parent 7cadf8340c
commit e600df3262
2 changed files with 3 additions and 3 deletions

View File

@ -553,7 +553,7 @@ class User extends AppModel {
// openssl_pkcs7_encrypt good -- Model/User expired;
$results[$user['User']['id']][0] = true;
}
} else{
} else {
// openssl_pkcs7_encrypt NOT good -- Model/User
$results[$user['User']['id']][0] = true;
}

View File

@ -7,14 +7,14 @@
$gpgpath = ROOT.DS.APP_DIR.DS.WEBROOT_DIR.DS.'gpg.asc';
if (file_exists($gpgpath) && is_file($gpgpath)){ ?>
<span>Download: <?php echo $this->Html->link('PGP/GPG key', $this->webroot.'gpg.asc');?></span>
<?php }else{ ?>
<?php } else { ?>
<span>Could not locate the PGP/GPG public key.</span>
<?php }
if (Configure::read('SMIME.enabled')):
$smimepath = ROOT.DS.APP_DIR.DS.WEBROOT_DIR.DS.'public_certificate.pem';
if (file_exists($smimepath) && is_file($smimepath)){ ?>
<span>Download: <?php echo $this->Html->link('SMIME certificate', $this->webroot.'public_certificate.pem');?></span>
<?php }else{ ?>
<?php } else { ?>
<span>Could not locate SMIME certificate.</span>
<?php }
endif;