@@ -30,30 +30,30 @@ |
||
30 | 30 | use Sabre\DAVACL\PrincipalBackend; |
31 | 31 | |
32 | 32 | class CalendarRoot extends \Sabre\CalDAV\CalendarRoot { |
33 | - private LoggerInterface $logger; |
|
33 | + private LoggerInterface $logger; |
|
34 | 34 | |
35 | - public function __construct( |
|
36 | - PrincipalBackend\BackendInterface $principalBackend, |
|
37 | - Backend\BackendInterface $caldavBackend, |
|
38 | - $principalPrefix, |
|
39 | - LoggerInterface $logger |
|
40 | - ) { |
|
41 | - parent::__construct($principalBackend, $caldavBackend, $principalPrefix); |
|
42 | - $this->logger = $logger; |
|
43 | - } |
|
35 | + public function __construct( |
|
36 | + PrincipalBackend\BackendInterface $principalBackend, |
|
37 | + Backend\BackendInterface $caldavBackend, |
|
38 | + $principalPrefix, |
|
39 | + LoggerInterface $logger |
|
40 | + ) { |
|
41 | + parent::__construct($principalBackend, $caldavBackend, $principalPrefix); |
|
42 | + $this->logger = $logger; |
|
43 | + } |
|
44 | 44 | |
45 | - public function getChildForPrincipal(array $principal) { |
|
46 | - return new CalendarHome($this->caldavBackend, $principal, $this->logger); |
|
47 | - } |
|
45 | + public function getChildForPrincipal(array $principal) { |
|
46 | + return new CalendarHome($this->caldavBackend, $principal, $this->logger); |
|
47 | + } |
|
48 | 48 | |
49 | - public function getName() { |
|
50 | - if ($this->principalPrefix === 'principals/calendar-resources' || |
|
51 | - $this->principalPrefix === 'principals/calendar-rooms') { |
|
52 | - $parts = explode('/', $this->principalPrefix); |
|
49 | + public function getName() { |
|
50 | + if ($this->principalPrefix === 'principals/calendar-resources' || |
|
51 | + $this->principalPrefix === 'principals/calendar-rooms') { |
|
52 | + $parts = explode('/', $this->principalPrefix); |
|
53 | 53 | |
54 | - return $parts[1]; |
|
55 | - } |
|
54 | + return $parts[1]; |
|
55 | + } |
|
56 | 56 | |
57 | - return parent::getName(); |
|
58 | - } |
|
57 | + return parent::getName(); |
|
58 | + } |
|
59 | 59 | } |