Skip to content

Commit acb56a5

Browse files
committed
chore: apply php-cs-fixer fixes
Mostly it has removed the space between the ampersand and the parameter name in pass-by-reference parameters.
1 parent 961c253 commit acb56a5

16 files changed

Lines changed: 31 additions & 32 deletions

File tree

lib/CalDAV/ICSExportPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function initialize(DAV\Server $server)
6060
{
6161
$this->server = $server;
6262
$server->on('method:GET', [$this, 'httpGet'], 90);
63-
$server->on('browserButtonActions', function ($path, $node, & $actions) {
63+
$server->on('browserButtonActions', function ($path, $node, &$actions) {
6464
if ($node instanceof ICalendar) {
6565
$actions .= '<a href="'.htmlspecialchars($path, ENT_QUOTES, 'UTF-8').'?export"><span class="oi" data-glyph="calendar"></span></a>';
6666
}

lib/CalDAV/Plugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ protected function freeBusyQueryReport(Xml\Request\FreeBusyQueryReport $report)
711711
* @param bool $modified should be set to true, if this event handler
712712
* changed &$data
713713
*/
714-
public function beforeWriteContent($path, DAV\IFile $node, & $data, & $modified)
714+
public function beforeWriteContent($path, DAV\IFile $node, &$data, &$modified)
715715
{
716716
if (!$node instanceof ICalendarObject) {
717717
return;
@@ -748,7 +748,7 @@ public function beforeWriteContent($path, DAV\IFile $node, & $data, & $modified)
748748
* @param bool $modified should be set to true, if this event handler
749749
* changed &$data
750750
*/
751-
public function beforeCreateFile($path, & $data, DAV\ICollection $parentNode, & $modified)
751+
public function beforeCreateFile($path, &$data, DAV\ICollection $parentNode, &$modified)
752752
{
753753
if (!$parentNode instanceof ICalendar) {
754754
return;
@@ -777,7 +777,7 @@ public function beforeCreateFile($path, & $data, DAV\ICollection $parentNode, &
777777
* @param ResponseInterface $response the http response
778778
* @param bool $isNew is the item a new one, or an update
779779
*/
780-
protected function validateICalendar(& $data, $path, & $modified, RequestInterface $request, ResponseInterface $response, $isNew)
780+
protected function validateICalendar(&$data, $path, &$modified, RequestInterface $request, ResponseInterface $response, $isNew)
781781
{
782782
// If it's a stream, we convert it to a string first.
783783
if (is_resource($data)) {
@@ -913,7 +913,7 @@ protected function validateICalendar(& $data, $path, & $modified, RequestInterfa
913913
* This method is triggered whenever a subsystem requests the privileges
914914
* that are supported on a particular node.
915915
*/
916-
public function getSupportedPrivilegeSet(INode $node, array & $supportedPrivilegeSet)
916+
public function getSupportedPrivilegeSet(INode $node, array &$supportedPrivilegeSet)
917917
{
918918
if ($node instanceof ICalendar) {
919919
$supportedPrivilegeSet['{DAV:}read']['aggregates']['{'.self::NS_CALDAV.'}read-free-busy'] = [
@@ -932,7 +932,7 @@ public function getSupportedPrivilegeSet(INode $node, array & $supportedPrivileg
932932
*
933933
* @return bool
934934
*/
935-
public function htmlActionsPanel(INode $node, & $output)
935+
public function htmlActionsPanel(INode $node, &$output)
936936
{
937937
if (!$node instanceof CalendarHome) {
938938
return;

lib/CalDAV/Schedule/Plugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public function propPatch($path, PropPatch $propPatch)
314314
* @param mixed $modified the iCalendar object has been touched
315315
* @param mixed $isNew Whether this was a new item or we're updating one
316316
*/
317-
public function calendarObjectChange(RequestInterface $request, ResponseInterface $response, VCalendar $vCal, $calendarPath, & $modified, $isNew)
317+
public function calendarObjectChange(RequestInterface $request, ResponseInterface $response, VCalendar $vCal, $calendarPath, &$modified, $isNew)
318318
{
319319
if (!$this->scheduleReply($this->server->httpRequest)) {
320320
return;
@@ -545,7 +545,7 @@ public function scheduleLocalDelivery(Message $iTipMessage)
545545
*
546546
* We need to add a number of privileges for scheduling purposes.
547547
*/
548-
public function getSupportedPrivilegeSet(INode $node, array & $supportedPrivilegeSet)
548+
public function getSupportedPrivilegeSet(INode $node, array &$supportedPrivilegeSet)
549549
{
550550
$ns = '{'.self::NS_CALDAV.'}';
551551
if ($node instanceof IOutbox) {
@@ -608,7 +608,7 @@ public function getSupportedPrivilegeSet(INode $node, array & $supportedPrivileg
608608
* @param array $ignore any addresses to not send messages to
609609
* @param bool $modified a marker to indicate that the original object modified by this process
610610
*/
611-
protected function processICalendarChange($oldObject, VCalendar $newObject, array $addresses, array $ignore = [], & $modified = false)
611+
protected function processICalendarChange($oldObject, VCalendar $newObject, array $addresses, array $ignore = [], &$modified = false)
612612
{
613613
$broker = $this->createITipBroker();
614614
$messages = $broker->parseEvent($newObject, $addresses, $oldObject);

lib/CardDAV/Plugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public function addressbookMultiGetReport($report)
266266
* @param bool $modified should be set to true, if this event handler
267267
* changed &$data
268268
*/
269-
public function beforeWriteContent($path, DAV\IFile $node, & $data, & $modified)
269+
public function beforeWriteContent($path, DAV\IFile $node, &$data, &$modified)
270270
{
271271
if (!$node instanceof ICard) {
272272
return;
@@ -286,7 +286,7 @@ public function beforeWriteContent($path, DAV\IFile $node, & $data, & $modified)
286286
* @param bool $modified should be set to true, if this event handler
287287
* changed &$data
288288
*/
289-
public function beforeCreateFile($path, & $data, DAV\ICollection $parentNode, & $modified)
289+
public function beforeCreateFile($path, &$data, DAV\ICollection $parentNode, &$modified)
290290
{
291291
if (!$parentNode instanceof IAddressBook) {
292292
return;
@@ -304,7 +304,7 @@ public function beforeCreateFile($path, & $data, DAV\ICollection $parentNode, &
304304
* @param bool $modified should be set to true, if this event handler
305305
* changed &$data
306306
*/
307-
protected function validateVCard(& $data, & $modified)
307+
protected function validateVCard(&$data, &$modified)
308308
{
309309
// If it's a stream, we convert it to a string first.
310310
if (is_resource($data)) {
@@ -694,7 +694,7 @@ public function propFindLate(DAV\PropFind $propFind, DAV\INode $node)
694694
*
695695
* @return bool
696696
*/
697-
public function htmlActionsPanel(DAV\INode $node, & $output)
697+
public function htmlActionsPanel(DAV\INode $node, &$output)
698698
{
699699
if (!$node instanceof AddressBookHome) {
700700
return;
@@ -752,7 +752,7 @@ public function httpAfterGet(RequestInterface $request, ResponseInterface $respo
752752
*
753753
* @return string
754754
*/
755-
protected function negotiateVCard($input, & $mimeType = null)
755+
protected function negotiateVCard($input, &$mimeType = null)
756756
{
757757
$result = HTTP\negotiateContentType(
758758
$input,

lib/CardDAV/VCFExportPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function initialize(DAV\Server $server)
3737
{
3838
$this->server = $server;
3939
$this->server->on('method:GET', [$this, 'httpGet'], 90);
40-
$server->on('browserButtonActions', function ($path, $node, & $actions) {
40+
$server->on('browserButtonActions', function ($path, $node, &$actions) {
4141
if ($node instanceof IAddressBook) {
4242
$actions .= '<a href="'.htmlspecialchars($path, ENT_QUOTES, 'UTF-8').'?export"><span class="oi" data-glyph="book"></span></a>';
4343
}

lib/DAV/Browser/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ public function generateFooter()
490490
*
491491
* @param string $path
492492
*/
493-
public function htmlActionsPanel(DAV\INode $node, & $output, $path)
493+
public function htmlActionsPanel(DAV\INode $node, &$output, $path)
494494
{
495495
if (!$node instanceof DAV\ICollection) {
496496
return;

lib/DAV/Collection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ abstract class Collection extends Node implements ICollection
2626
* This method must throw Sabre\DAV\Exception\NotFound if the node does not
2727
* exist.
2828
*
29-
* @throws Exception\NotFound
30-
*
3129
* @return INode
3230
*
3331
* @throws Exception\NotFound
32+
* @throws Exception\NotFound
3433
*/
3534
public function getChild(string $name)
3635
{

lib/DAV/Locks/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ protected function generateLockResponse(LockInfo $lockInfo)
386386
* must be present in the request, and reject requests without the proper
387387
* tokens.
388388
*/
389-
public function validateTokens(RequestInterface $request, & $conditions)
389+
public function validateTokens(RequestInterface $request, &$conditions)
390390
{
391391
// First we need to gather a list of locks that must be satisfied.
392392
$mustLocks = [];

lib/DAV/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ public function getPropertiesByNode(PropFind $propFind, INode $node)
10791079
*
10801080
* @return bool
10811081
*/
1082-
public function createFile($uri, $data, & $etag = null)
1082+
public function createFile($uri, $data, &$etag = null)
10831083
{
10841084
list($dir, $name) = Uri\split($uri);
10851085

@@ -1132,7 +1132,7 @@ public function createFile($uri, $data, & $etag = null)
11321132
*
11331133
* @return bool
11341134
*/
1135-
public function updateFile($uri, $data, & $etag = null)
1135+
public function updateFile($uri, $data, &$etag = null)
11361136
{
11371137
$node = $this->tree->getNodeForPath($uri);
11381138

lib/DAV/Sharing/Plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function httpPost(RequestInterface $request, ResponseInterface $response)
199199
*
200200
* We need to add a number of privileges for scheduling purposes.
201201
*/
202-
public function getSupportedPrivilegeSet(INode $node, array & $supportedPrivilegeSet)
202+
public function getSupportedPrivilegeSet(INode $node, array &$supportedPrivilegeSet)
203203
{
204204
if ($node instanceof ISharedNode) {
205205
$supportedPrivilegeSet['{DAV:}share'] = [
@@ -238,7 +238,7 @@ public function getPluginInfo()
238238
*
239239
* @return bool|null
240240
*/
241-
public function htmlActionsPanel(INode $node, & $output, $path)
241+
public function htmlActionsPanel(INode $node, &$output, $path)
242242
{
243243
if (!$node instanceof ISharedNode) {
244244
return;

0 commit comments

Comments
 (0)