Skip to content

Commit 2c14407

Browse files
committed
clean up return and param values
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
1 parent 613cd16 commit 2c14407

File tree

23 files changed

+28
-28
lines changed

23 files changed

+28
-28
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2602,7 +2602,7 @@ public function deleteSubscription($subscriptionId) {
26022602
*
26032603
* @param string $principalUri
26042604
* @param string $objectUri
2605-
* @return array
2605+
* @return array|null
26062606
*/
26072607
public function getSchedulingObject($principalUri, $objectUri) {
26082608
$query = $this->db->getQueryBuilder();

apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function getPrincipalsByPrefix($prefixPath): array {
157157
*
158158
* @param string $prefixPath
159159
*
160-
* @return array
160+
* @return array|null
161161
*/
162162
public function getPrincipalByPath($path) {
163163
if (strpos($path, $this->principalPrefix) !== 0) {

apps/dav/lib/CardDAV/CardDavBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ public function getCards($addressbookId) {
543543
*
544544
* @param mixed $addressBookId
545545
* @param string $cardUri
546-
* @return array
546+
* @return array|false
547547
*/
548548
public function getCard($addressBookId, $cardUri) {
549549
$query = $this->db->getQueryBuilder();

apps/dav/lib/Connector/Sabre/FilesReportPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function getSupportedReportSet($uri) {
183183
public function onReport($reportName, $report, $uri) {
184184
$reportTargetNode = $this->server->tree->getNodeForPath($uri);
185185
if (!$reportTargetNode instanceof Directory || $reportName !== self::REPORT_NAME) {
186-
return;
186+
return false;
187187
}
188188

189189
$ns = '{' . $this::NS_OWNCLOUD . '}';

apps/dav/lib/Connector/Sabre/Principal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function getPrincipalsByPrefix($prefixPath) {
159159
* getPrincipalsByPrefix.
160160
*
161161
* @param string $path
162-
* @return array
162+
* @return array|null
163163
*/
164164
public function getPrincipalByPath($path) {
165165
[$prefix, $name] = \Sabre\Uri\split($path);

apps/dav/lib/Connector/Sabre/TagsPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private function getTagsAndFav($fileId) {
158158
* Returns tags for the given file id
159159
*
160160
* @param integer $fileId file id
161-
* @return array list of tags for that file
161+
* @return array|null list of tags for that file
162162
*/
163163
private function getTags($fileId) {
164164
if (isset($this->cachedTags[$fileId])) {

apps/dav/lib/DAV/GroupPrincipalBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function getPrincipalsByPrefix($prefixPath) {
101101
* getPrincipalsByPrefix.
102102
*
103103
* @param string $path
104-
* @return array
104+
* @return array|null
105105
*/
106106
public function getPrincipalByPath($path) {
107107
$elements = explode('/', $path, 3);

apps/dav/lib/DAV/SystemPrincipalBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function getPrincipalsByPrefix($prefixPath) {
6565
* getPrincipalsByPrefix.
6666
*
6767
* @param string $path
68-
* @return array
68+
* @return array|null
6969
*/
7070
public function getPrincipalByPath($path) {
7171
if ($path === 'principals/system/system') {

core/Command/Config/ListConfigs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function getSystemConfigs($noSensitiveValues) {
135135
*/
136136
protected function getAppConfigs($app, $noSensitiveValues) {
137137
if ($noSensitiveValues) {
138-
return $this->appConfig->getFilteredValues($app, false);
138+
return $this->appConfig->getFilteredValues($app);
139139
} else {
140140
return $this->appConfig->getValues($app, false);
141141
}

lib/private/App/AppStore/Fetcher/Fetcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function get($allowUnstable = false) {
187187

188188
// Refresh the file content
189189
try {
190-
$responseJson = $this->fetch($ETag, $content, $allowUnstable);
190+
$responseJson = $this->fetch($ETag, $content);
191191

192192
if (empty($responseJson)) {
193193
return [];

0 commit comments

Comments
 (0)