Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
db6395ae
Commit
db6395ae
authored
9 years ago
by
Joas Schilling
Browse files
Options
Downloads
Patches
Plain Diff
Fix several type(hint) errors in private/helper.php
parent
93c25a1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/helper.php
+5
-4
5 additions, 4 deletions
lib/private/helper.php
with
5 additions
and
4 deletions
lib/private/helper.php
+
5
−
4
View file @
db6395ae
...
@@ -129,9 +129,7 @@ class OC_Helper {
...
@@ -129,9 +129,7 @@ class OC_Helper {
/**
/**
* Creates an url using a defined route
* Creates an url using a defined route
* @param string $route
* @param string $route
* @param array $parameters
* @param array $parameters with param=>value, will be appended to the returned url
* @return
* @internal param array $args with param=>value, will be appended to the returned url
* @return string the url
* @return string the url
* @deprecated Use \OC::$server->getURLGenerator()->linkToRoute($route, $parameters)
* @deprecated Use \OC::$server->getURLGenerator()->linkToRoute($route, $parameters)
*
*
...
@@ -694,6 +692,7 @@ class OC_Helper {
...
@@ -694,6 +692,7 @@ class OC_Helper {
$match_length
=
strlen
(
$matches
[
0
][
$last_match
][
0
]);
$match_length
=
strlen
(
$matches
[
0
][
$last_match
][
0
]);
}
else
{
}
else
{
$counter
=
2
;
$counter
=
2
;
$match_length
=
0
;
$offset
=
false
;
$offset
=
false
;
}
}
do
{
do
{
...
@@ -876,7 +875,7 @@ class OC_Helper {
...
@@ -876,7 +875,7 @@ class OC_Helper {
/**
/**
* Calculate PHP upload limit
* Calculate PHP upload limit
*
*
* @return PHP upload file size limit
* @return
int
PHP upload file size limit
*/
*/
public
static
function
uploadLimit
()
{
public
static
function
uploadLimit
()
{
$upload_max_filesize
=
OCP\Util
::
computerFileSize
(
ini_get
(
'upload_max_filesize'
));
$upload_max_filesize
=
OCP\Util
::
computerFileSize
(
ini_get
(
'upload_max_filesize'
));
...
@@ -954,6 +953,7 @@ class OC_Helper {
...
@@ -954,6 +953,7 @@ class OC_Helper {
* @param string $path
* @param string $path
* @param \OCP\Files\FileInfo $rootInfo (optional)
* @param \OCP\Files\FileInfo $rootInfo (optional)
* @return array
* @return array
* @throws \OCP\Files\NotFoundException
*/
*/
public
static
function
getStorageInfo
(
$path
,
$rootInfo
=
null
)
{
public
static
function
getStorageInfo
(
$path
,
$rootInfo
=
null
)
{
// return storage info without adding mount points
// return storage info without adding mount points
...
@@ -984,6 +984,7 @@ class OC_Helper {
...
@@ -984,6 +984,7 @@ class OC_Helper {
// TODO: need a better way to get total space from storage
// TODO: need a better way to get total space from storage
if
(
$storage
->
instanceOfStorage
(
'\OC\Files\Storage\Wrapper\Quota'
))
{
if
(
$storage
->
instanceOfStorage
(
'\OC\Files\Storage\Wrapper\Quota'
))
{
/** @var \OC\Files\Storage\Wrapper\Quota $storage */
$quota
=
$storage
->
getQuota
();
$quota
=
$storage
->
getQuota
();
}
}
$free
=
$storage
->
free_space
(
''
);
$free
=
$storage
->
free_space
(
''
);
...
...
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