Fixed new checkstyle issues in swift.php from build #1341.

remotes/origin/stable5
Diederik de Haas 13 years ago
parent 051635412d
commit 3cc6df489f
  1. 4
      apps/files_external/lib/swift.php

@ -271,8 +271,8 @@ class OC_FileStorage_SWIFT extends OC_Filestorage_Common{
$this->host=$params['host'];
$this->user=$params['user'];
$this->root=isset($params['root'])?$params['root']:'/';
if(isset($params['secure'])){
if(is_string($params['secure'])){
if(isset($params['secure'])) {
if(is_string($params['secure'])) {
$this->secure = ($params['secure'] === 'true');
}else{
$this->secure = (bool)$params['secure'];

Loading…
Cancel
Save