From f6547bd376d960ece829b0d1a15ff576c9d42335 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Wed, 22 Jan 2025 14:46:52 +1300 Subject: [PATCH] Make some lines more readable --- inc/DAVResource.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/DAVResource.php b/inc/DAVResource.php index 78c7d7a0..f88b16e5 100644 --- a/inc/DAVResource.php +++ b/inc/DAVResource.php @@ -363,13 +363,19 @@ class DAVResource $this->FetchCollection(); if ( $this->_is_collection ) { - if ( $this->_is_principal || $this->collection->type == 'principal' ) $this->FetchPrincipal(); + if ( $this->_is_principal || $this->collection->type == 'principal' ) + $this->FetchPrincipal(); } else { $this->FetchResource(); } dbg_error_log( 'DAVResource', ':FromPath: Path "%s" is%s a collection%s.', - $this->dav_name, ($this->_is_collection?' '.$this->resourcetypes:' not'), ($this->_is_principal?' and a principal':'') ); + $this->dav_name, + ($this->_is_collection ? ' ' . $this->resourcetypes + : ' not'), + ($this->_is_principal ? ' and a principal' + : '') + ); }