Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
ab4d5d20
Commit
ab4d5d20
authored
9 years ago
by
Lukas Reschke
Browse files
Options
Downloads
Patches
Plain Diff
Typehint $targetVersion
parent
1db047a3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/ocsclient.php
+4
-4
4 additions, 4 deletions
lib/private/ocsclient.php
with
4 additions
and
4 deletions
lib/private/ocsclient.php
+
4
−
4
View file @
ab4d5d20
...
...
@@ -111,7 +111,7 @@ class OCSClient {
* @note returns NULL if config value appstoreenabled is set to false
* This function returns a list of all the application categories on the OCS server
*/
public
function
getCategories
(
$targetVersion
)
{
public
function
getCategories
(
array
$targetVersion
)
{
if
(
!
$this
->
isAppStoreEnabled
())
{
return
null
;
}
...
...
@@ -162,7 +162,7 @@ class OCSClient {
* @param array $targetVersion The target ownCloud version
* @return array An array of application data
*/
public
function
getApplications
(
array
$categories
,
$page
,
$filter
,
$targetVersion
)
{
public
function
getApplications
(
array
$categories
,
$page
,
$filter
,
array
$targetVersion
)
{
if
(
!
$this
->
isAppStoreEnabled
())
{
return
[];
}
...
...
@@ -239,7 +239,7 @@ class OCSClient {
*
* This function returns an applications from the OCS server
*/
public
function
getApplication
(
$id
,
$targetVersion
)
{
public
function
getApplication
(
$id
,
array
$targetVersion
)
{
if
(
!
$this
->
isAppStoreEnabled
())
{
return
null
;
}
...
...
@@ -304,7 +304,7 @@ class OCSClient {
* @param array $targetVersion The target ownCloud version
* @return array|null an array of application data or null
*/
public
function
getApplicationDownload
(
$id
,
$targetVersion
)
{
public
function
getApplicationDownload
(
$id
,
array
$targetVersion
)
{
if
(
!
$this
->
isAppStoreEnabled
())
{
return
null
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment